| 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/amisdesseniors-fr/plugins/vmcustom/mymaplocations/mymaplocations/tmpl/ |
Upload File : |
<?php
/**
* @version 4.6.2
* @package com_mymaplocations
* @copyright JoomUnited (C) 2011. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
$db = JFactory::getDBO();
$product = $viewData[0];
$sql = "SELECT a.* FROM #__mymaplocations_location AS a where a.component=" . $db->Quote('com_virtuemart') . " AND a.extra_id=" . $db->Quote($product->virtuemart_product_id);
$db->setQuery($sql);
$mapitem = $db->loadObject();
if(is_countable($mapitem)&&(count($mapitem)==0))
{
return;
}
$this->params = $viewData[1];
$mapitem->google_maptype = $this->params->google_maptype;
$mapitem->virtuemart_product_id =$product->virtuemart_product_id;
$mapitem->bing_maptype = $this->params->bing_maptype;
$mapitem->map_design = $this->params->map_design;
$mapitem->openmapstyle = $this->params->openmapstyle;
$height = $this->params->height;
$zoom = $this->params->zoom;
$type = $this->params->type;
$width = $this->params->width;
$description_view=$this->params->description_view;
if($description_view)
{
$mapitems[0] = $mapitem;
$map = MyMaplocationsHelper::createMap($mapitems, $width, $height, $zoom, $type,false);
echo $map;
}
?>