| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/www/plugins/system/bluetheme/assets/shortcode/ |
Upload File : |
<?php
defined('_JEXEC') or die;
add_shortcode('gmap_desi','geomapDesignShortcode');
function geomapDesignShortcode($atts, $content=null){
extract(shortcode_atts(array(
"title" => '',
"class" => '',
"zoom"=>'14',
"maptype"=>'ROADMAP',
"pancontrol"=>"true",
"zoomcontrol"=>"true",
"maptypecontrol"=>"true",
"streetcontrol"=>"true",
"location"=>"",
"height"=>400,
"scrollwheel"=>"false",
"state"=>"true"
),$atts));
if(!$state) return true;
$l_map = getll($location);
$latitude = $l_map[0];
$longitude = $l_map[1];
$st = new BluethemePlugin();
$req = BluethemePlugin::addTemplate('gmap');
if($req["check"]){
require $req["src"];
}
}
function getll($address){
$result = array();
$prepAddr = str_replace(' ','+',$address);
$geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.$prepAddr.'&sensor=false');
$output= json_decode($geocode);
$latitude = $output->results[0]->geometry->location->lat;
$result[0] = $latitude;
$longitude = $output->results[0]->geometry->location->lng;
$result[1] = $longitude;
return $result;
}
?>