Done !
| 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/ptitsanes/components/com_solidres/views/map/tmpl/ |
Upload File : |
<?php
/**
------------------------------------------------------------------------
SOLIDRES - Accommodation booking extension for Joomla
------------------------------------------------------------------------
* @author Solidres Team <contact@solidres.com>
* @website https://www.solidres.com
* @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved.
* @license GNU General Public License version 3, or later
------------------------------------------------------------------------
*/
/*
* This layout file can be overridden by copying to:
*
* /templates/TEMPLATENAME/html/com_solidres/map/default.php
*
* However, occasionally we will need to update template/layout related files and it is the template developers'
* responsibility to update the overridden files (if any) to maintain full compatibility with Solidres.
*
* We do not provide support if any of the overridden files are out of date and are not compatible with Solidres.
*
* @version 2.8.0
*/
defined('_JEXEC') or die;
$doc = JFactory::getDocument();
$solidresParams = JComponentHelper::getParams('com_solidres');
$googleMapApiKey = $solidresParams->get('google_map_api_key', '');
$doc->addScript('//maps.google.com/maps/api/js' . (!empty($googleMapApiKey) ? '?key=' . $googleMapApiKey : ''));
$doc->addScriptDeclaration('
var geocoder, map;
function initialize() {
var latlng = new google.maps.LatLng("' . $this->info->lat . '", "' . $this->info->lng . '");
var options = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("inline_map"), options);
var image = new google.maps.MarkerImage("' . SRURI_MEDIA . '/assets/images/icon-hotel-' . $this->info->rating . '.png",
new google.maps.Size(32, 37),
new google.maps.Point(0,0),
new google.maps.Point(0, 32));
var marker = new google.maps.Marker({
map: map,
position: latlng,
icon: image,
});
var windowContent = "<h4>' . $this->info->name . '</h4>" +
' . json_encode($this->info->description) . ' +
"<ul>" +
"<li>' . $this->info->address_1 . " " . $this->info->city . '</li>" +
"<li>' . $this->info->phone . '</li>" +
"<li>' . $this->info->email . '</li>" +
"<li>' . $this->info->website . '</li>" +
"</ul>";
var infowindow = new google.maps.InfoWindow({
content: windowContent,
maxWidth: 350
});
google.maps.event.addListener(marker, "click", function() {
infowindow.open(map,marker);
});
}
jQuery(document).ready(function () {
initialize();
});
');
?>
<style>
body.contentpane,
body.component-body,
div.component-content {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
body.contentpane > div:not(#system-message-container) {
height: 100%;
}
html {
width: 100%;
height: 100%;
}
</style>
<div id="inline_map"></div>