Ejemplo n.º 1
0
{
	if(wplj.inArray(dataMarker.id, loaded_markers<?php 
echo $this->activity_id;
?>
) != '-1') return true;
	
  	marker = new google.maps.Marker(
    {
		position: new google.maps.LatLng(dataMarker.googlemap_lt, dataMarker.googlemap_ln),
		map: <?php 
echo $this->show_marker ? 'wpl_map' . $this->activity_id : 'null';
?>
,
		property_ids: dataMarker.pids,
		icon: '<?php 
echo wpl_global::get_wpl_url();
?>
assets/img/listing_types/gicon/'+dataMarker.gmap_icon,
		title: dataMarker.title,
	});
	
	/** extend the bounds to include each marker's position **/
  	if(wpl_map_bounds_extend<?php 
echo $this->activity_id;
?>
) bounds<?php 
echo $this->activity_id;
?>
.extend(marker.position);
  
	loaded_markers<?php 
Ejemplo n.º 2
0
 /**
  * Returns image URL
  * @author Howard R <*****@*****.**>
  * @static
  * @param string $image
  * @return string|boolean
  */
 public static function get_images_url($image = '')
 {
     /** first validation **/
     if (trim($image) == '') {
         return false;
     }
     $path = wpl_global::get_wpl_root_path() . 'libraries' . DS . 'notifications' . DS . 'templates' . DS . 'cache' . DS . $image . '.png';
     $url = wpl_global::get_wpl_url() . 'libraries/notifications/templates/cache/' . $image . '.png';
     if (!wpl_file::exists($path)) {
         wpl_images::text_to_image($image, '000000', $path);
     }
     return $url;
 }