| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/dansnotreville-fr/plugins/content/mymaplocations/tmpl/ |
Upload File : |
<?php
/**
* @version 4.5.2
* @package com_mymaplocations
* @copyright JoomUnited (C) 2011. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
// No direct access to this file
defined('_JEXEC') or die;
require_once(JPATH_SITE .'/components/com_mymaplocations/helpers/mymaplocations.php');
$output = '';
$img = '';
$db = JFactory::getDBO();
$sql = "SELECT a.*,k.title as name,k.alias as alias,k.catid as catid FROM #__mymaplocations_location AS a LEFT JOIN #__content AS k ON k.id = a.extra_id where a.state=1 and a.component=" . $db->Quote('com_content') . " AND k.state =1 AND a.extra_id=" . $db->Quote($content->id);
$db->setQuery($sql);
$mapitem = $db->loadObject();
if(!($mapitem))
{
return;
}
if(($mapitem->latitude==0)&&($mapitem->longitude==0))
{
return;
}
$height = $this->params->get('qheight', 300);
$width = $this->params->get('qwidth', '70%');
$zoom =$this->params->get('zoom', '10');
$type = $this->params->get('type', 'google');
$mapitem->google_maptype = $this->params->get('google_maptype', 'ROADMAP');
$mapitem->bing_maptype = $this->params->get('bing_maptype', 'road');
$mapitem->map_design =$this->params->get('map_design',1);
$mapitem->openmapstyle=$this->params->get('openmapstyle', 1);
if (!empty($mapitem)) {
$mapitems[0] = $mapitem;
$map = MyMaplocationsHelper::createMap($mapitems, $width, $height, $zoom, $type);
$output = '<div class="row-fluid mymaplocation itemAuthorBlock" style="width:100%;float:left;"><div class="span12"><div class="locationsearch" id="locationsearch">';
$address = "";
$address.="<span class='locationaddress'>".stripslashes(MyMaplocationsHelper::formatAddress($mapitem))."</span>";
if (!empty($mapitem->phone)) {
$address.='<br/><span><i class="icon-phone"></i><span itemprop="telephone"><a href="tel:'.$mapitem->phone.'" target="_blank">' . $mapitem->phone . '</a></span>';
}
if (!empty($mapitem->hours)) {
$address.='<br/><span><i class="icon-calendar"></i>' . $mapitem->hours . '</span>';
}
if (!empty($mapitem->logo)) {
$img = '<img src="' . $mapitem->logo . '" class="mml_logo"/>';
}
$output.= $map . $img . '
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Organization" style="margin-left: 10px; float: left;" class="mmladdress">
<br/>
<div rel="v:address">
<div typeof="v:Address">
' . $address . '
</div>
</div>
<div rel="v:geo">
<span typeof="v:Geo">
<span property="v:latitude" content="' . $mapitem->latitude . '"></span>
<span property="v:longitude" content="' . $mapitem->longitude . '"></span>
</span>
</div>
</div>
<div class="description" style="float:left;margin-left:10px;">
' . $mapitem->description . '
</div>
</div> </div></div><div class="clr"></div>';
echo $output;
}
?>