/**
  * The View
  */
 public function renderView($options)
 {
     $this->setOptions($options);
     $this->setLocationData();
     $this->enqueueScripts();
     include \SimpleLocator\Helpers::view('singular-post');
     return $out;
 }
예제 #2
0
 /**
  * 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'];
 }
예제 #3
0
 /**
  * Meta Boxes for Output
  */
 public function displayMeta($post)
 {
     $this->setData($post);
     include \SimpleLocator\Helpers::view('post-meta/location-meta');
 }
예제 #4
0
 /**
  * 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;
 }
예제 #5
0
 /**
  * Add the map to the output
  */
 private function addmap()
 {
     include \SimpleLocator\Helpers::view('singular-post');
     return $out;
 }
예제 #6
0
 /**
  * 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);
 }
예제 #7
0
 /**
  * Display the Settings Page
  */
 public function settingsPage()
 {
     $tab = isset($_GET['tab']) ? $_GET['tab'] : 'general';
     include \SimpleLocator\Helpers::view('settings/settings');
 }