/**
  * @return TribeEvents_EmbeddedMaps
  */
 public static function instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 protected function setup_coords($map_index)
 {
     $embedded_maps = TribeEvents_EmbeddedMaps::instance();
     $venue_data = $embedded_maps->get_map_data($map_index);
     $venue_data['coords'] = array($this->lat, $this->lng);
     $embedded_maps->update_map_data($map_index, $venue_data);
 }
Example #3
0
 /**
  * Google Map Embed
  *
  * Returns an embedded google maps for an event
  *
  * @param string $post_id
  * @param int    $width
  * @param int    $height
  * @param bool   $force_load If true, then load the map even if an address is not provided.
  *
  * @return string An iframe pulling http://maps.google.com/ for this event
  */
 function tribe_get_embedded_map($post_id = null, $width = null, $height = null, $force_load = false)
 {
     return TribeEvents_EmbeddedMaps::instance()->get_map($post_id, $width, $height, $force_load);
 }