$placemarkListId = $params->get('placemarklistid', ''); $cssClassSuffix = $params->get('moduleclass_sfx', ''); $map = modZhYandexMapHelper::getMap((int) $id); if (isset($map) && (int) $map->id != 0) { $markergroups = modZhYandexMapHelper::getMarkerGroups($map->id, $placemarkListId); $markers = modZhYandexMapHelper::getMarkers($map->id, $placemarkListId, $map->usermarkers, $map->usermarkersfilter, $map->usercontact); $routers = modZhYandexMapHelper::getRouters($map->id); $paths = modZhYandexMapHelper::getPaths($map->id); $mapapikey = modZhYandexMapHelper::getAPIKey(); $licenseinfo = modZhYandexMapHelper::getMapLicenseInfo(); $maptypes = modZhYandexMapHelper::getMapTypes(); if ($licenseinfo == "") { $licenseinfo = 102; } $urlProtocol = "http"; $curHTTPProtocol = modZhYandexMapHelper::getHttpsProtocol(); if ($curHTTPProtocol != "") { if ((int) $curHTTPProtocol == 1) { $urlProtocol = 'https'; } } $custMapTypeList = explode(";", $map->custommaptypelist); if (count($custMapTypeList) != 0) { $custMapTypeFirst = $custMapTypeList[0]; } else { $custMapTypeFirst = 0; } // Change translation language and load translation if (isset($map->lang) && $map->lang != "") { $currentLanguage = JFactory::getLanguage(); $currentLangTag = $currentLanguage->getTag();
<?php /*------------------------------------------------------------------------ # mod_zhyandexmap - Zh YandexMap Module # ------------------------------------------------------------------------ # author Dmitry Zhuk # copyright Copyright (C) 2011 zhuk.cc. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later # Websites: http://zhuk.cc # Technical Support Forum: http://forum.zhuk.cc/ -------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); $componentApiVersion = modZhYandexMapHelper::getAPIVersion(); if ($componentApiVersion == "") { $componentApiVersion = '2.x'; } if ($componentApiVersion == '2.x') { require_once JPATH_SITE . '/modules/mod_zhyandexmap/tmpl/v2x.php'; } else { require_once JPATH_SITE . '/modules/mod_zhyandexmap/tmpl/v1x.php'; }