/** * The View */ public function renderView($options) { $this->setOptions($options); $this->setLocationData(); $this->enqueueScripts(); include \SimpleLocator\Helpers::view('singular-post'); return $out; }
/** * Front End of Widget */ public function widget($args, $instance) { $this->setOptions(); echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']; } $this->enqueueScripts(); $widget_instance = true; include \SimpleLocator\Helpers::view('simple-locator-form-ajax'); echo $output; echo $args['after_widget']; }
/** * Meta Boxes for Output */ public function displayMeta($post) { $this->setData($post); include \SimpleLocator\Helpers::view('post-meta/location-meta'); }
/** * The View */ public function renderView($options) { $this->setOptions($options); $this->enqueueScripts(); $this->localizeOptions(); if ($this->options['ajax'] !== 'false') { include \SimpleLocator\Helpers::view('simple-locator-form-ajax'); return $output; } include \SimpleLocator\Helpers::view('simple-locator-form'); return $output; }
/** * Add the map to the output */ private function addmap() { include \SimpleLocator\Helpers::view('singular-post'); return $out; }
/** * The View */ public function renderView($options) { $this->setOptions($options); $this->setTaxonomies(); $this->enqueueScripts(); $this->localizeOptions(); $widget = isset($widget_instance) ? true : false; if ($this->options['ajax'] !== 'false') { include \SimpleLocator\Helpers::view('simple-locator-form-ajax'); return apply_filters('simple_locator_form', $output, $this->options['distances'], $this->taxonomies, $widget); } include \SimpleLocator\Helpers::view('simple-locator-form'); return apply_filters('simple_locator_form', $output, $this->options['distances'], $this->taxonomies, $widget); }
/** * Display the Settings Page */ public function settingsPage() { $tab = isset($_GET['tab']) ? $_GET['tab'] : 'general'; include \SimpleLocator\Helpers::view('settings/settings'); }