<?php defined('_JEXEC') or die('Restricted access'); echo '<div id="phocamapsprintroute">'; $id = ''; $map = new PhocaMapsMap(); echo $map->getIconPrintScreen(); $map->loadAPI(); echo $map->startJScData(); echo $map->addAjaxAPI('maps', '3.x', $this->t['params']); echo $map->createDirection(1); echo $map->setDirectionFunction(); echo $map->directionInitializeFunction($this->t['from'], $this->t['to']); echo $map->endJScData(); echo '<div id="directionsPanel' . $id . '" ></div>'; echo PhocaMapsHelper::getInfo(); echo '</div>';
<?php defined('_JEXEC') or die('Restricted access'); $app = JFactory::getApplication(); if ($app->input->get('print', '', 'int') == 1 || $app->input->get('tmpl', '', 'string') == 'component') { $foutput = '<div style="clear:both"></div>'; echo '<div id="phocamaps" class="phocamaps' . $this->t['p']->get('pageclass_sfx') . '">'; } else { echo '<div id="phocamaps" class="phocamaps' . $this->t['p']->get('pageclass_sfx') . '">'; if ($this->t['p']->def('show_page_heading', 1)) { echo '<h1>' . $this->t['p']->get('page_heading') . '</h1>'; } $foutput = PhocaMapsHelper::getInfo(); } if (!isset($this->map->longitude) || !isset($this->map->latitude) || isset($this->map->longitude) && $this->map->longitude == '' || isset($this->map->latitude) && $this->map->latitude == '') { echo '<p>' . JText::_('COM_PHOCAMAPS_GOOGLE_MAPS_ERROR_FRONT') . '</p>'; } else { echo $this->t['description']; $id = ''; $map = new PhocaMapsMap($id); $map->loadAPI('jsapi', (int) $this->t['load_api_ssl']); $map->loadGeoXMLJS(); $map->loadBase64JS(); // Map Box if ($this->t['border'] == '') { echo '<div class="phocamaps-box" align="center" style="' . $this->t['stylesite'] . '">'; if ($this->t['fullwidth'] == 1) { echo '<div id="phocaMap' . $id . '" style="margin:0;padding:0;width:100%;height:' . $this->map->height . 'px"></div>'; } else { echo '<div id="phocaMap' . $id . '" style="margin:0;padding:0;width:' . $this->map->width . 'px;height:' . $this->map->height . 'px"></div>'; }