Your IP : 216.73.216.240
<?php
/* .............................................................................
* Author:--------------- LogicHunt Team
* AuthorEmail:-----------logichunt.info@gmail.com
* Technical Support:---- http://logichunt.com/
* Websites:------------- http://logichunt.com/
* Copyright:------------ Copyright (C) 2015 logichunt.com. All Rights Reserved.
* License:-------------- http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* ..............................................................................
* File:- mod_gmap_embed.php - Module - Google Map Embed
................................................................................ */
defined ('_JEXEC') or die;
// Include the syndicate functions only once
require_once __DIR__ . '/helper.php';
$lang = JFactory::getLanguage ();
$app = JFactory::getApplication ();
$lgxgmap_latitude = htmlspecialchars ($params->get ('lgxgmap_latitude', 0));
$lgxgmap_longitude = htmlspecialchars ($params->get ('lgxgmap_longitude', 0));
$lgxmap_maptype = htmlspecialchars ($params->get ('lgxmap_maptype', 'ROADMAP'));
$lgxgmap_icon_img = htmlspecialchars ($params->get ('lgxgmap_icon_img'));
$lgxgmap_info_show = (int)($params->get ('lgxgmap_info_show', '1'));
$lgxmap_zoomsize = (int)($params->get ('lgxmap_zoomsize', 15));
$lgxmap_height = (int)($params->get ('lgxmap_height', 500));
$lgxgmap_zoom = (int)($params->get ('lgxgmap_zoom', 0));
$lgxgmap_info_title = htmlspecialchars ($params->get ('lgxgmap_info_title'));
$lgxgmap_info_title_show = (int)($params->get ('lgxgmap_info_title_show', 1));
$lgxgmap_info_content = htmlspecialchars ($params->get ('lgxgmap_info_content'));
$lgxgmap_info_content_show = (int)($params->get ('lgxgmap_info_content_show', 1));
$lgxmap_mouseZoom = ($lgxgmap_zoom == 0) ? 'false' : 'true';
$lgxgmap_info_title = ($lgxgmap_info_title_show == 1) ? $lgxgmap_info_title : '';
$lgxgmap_info_content = ($lgxgmap_info_content_show == 1) ? $lgxgmap_info_content : '';
$infowindow = ",title: '" . $lgxgmap_info_title . "',text: '" . $lgxgmap_info_content . "'";
$infowindow = ($lgxgmap_info_show == 1) ? $infowindow : '';
$moduleclass_sfx = htmlspecialchars ($params->get ('moduleclass_sfx'));
$lgxgmap_icon_show = (!empty($lgxgmap_icon_img) || $lgxgmap_icon_img != "") ? "icon: '" . JUri::root () . $lgxgmap_icon_img . "'" : "icon: false";
$api_key = $params->get('lgxgmap_api_key');
require JModuleHelper::getLayoutPath ('mod_gmap_embed', $params->get ('layout', 'default'));