/** * Generate module */ protected function compile() { // load Google Maps JavaScript $arrParams = $this->anystores_signedIn ? array('signed_in' => 'true') : array(); GoogleMaps::includeJs($arrParams); $GLOBALS['TL_JAVASCRIPT']['anystores'] = 'system/modules/anyStores/assets/js/anystores.js'; $GLOBALS['TL_JAVASCRIPT']['markerclusterer'] = 'system/modules/anyStores/assets/js/markerclusterer/src/markerclusterer_compiled.js'; // map height $this->Template->mapHeight = deserialize($this->anystores_mapheight); $this->Template->anystores_token = FrontendAjax::generateRequestToken($this->id); }
<?php // with ♥ and Contao /** * anyStores for Contao Open Source CMS * * @copyright (c) 2015 - 2016 Tastaturberuf <*****@*****.**> * @author Daniel Jahnsmüller <*****@*****.**> * @license http://opensource.org/licenses/lgpl-3.0.html * @package anyStores * @since 1.8.0 */ namespace Tastaturberuf; define('TL_MODE', 'FE'); require '../../../initialize.php'; FrontendAjax::run(\Input::get('module'), \Input::get('token'));