<?php defined('_JEXEC') or die('Restricted access'); phocagalleryimport('phocagallery.render.rendermap'); echo '<div id="phocagallery" class="pg-categories-view' . $this->params->get('pageclass_sfx') . '">'; if ($this->params->get('show_page_heading')) { echo '<h1>' . $this->escape($this->params->get('page_heading')) . '</h1>'; } echo '<div id="pg-icons">'; echo PhocaGalleryRenderFront::renderFeedIcon('categories'); echo '</div>'; if ($this->tmplGeo['categorieslng'] == '' || $this->tmplGeo['categorieslat'] == '') { echo '<p>' . JText::_('COM_PHOCAGALLERY_ERROR_MAP_NO_DATA') . '</p>'; } else { echo '<script src="http://www.google.com/jsapi" type="text/javascript"></script>'; echo '<noscript>' . JText::_('COM_PHOCAGALLERY_ERROR_MAP_ENABLE_JAVASCRIPT') . '</noscript>'; echo '<div style="font-size:1px;height:1px;margin:0px;padding:0px;"> </div>'; echo '<div align="center" style="margin:0;padding:0;margin-top:10px;">'; $cmw = ''; if ((int) $this->tmplGeo['categoriesmapwidth'] > 0) { $cmw = 'width:' . $this->tmplGeo['categoriesmapwidth'] . 'px;'; } echo '<div id="phocaMap" style="margin:0;padding:0;' . $cmw . 'height:' . $this->tmplGeo['categoriesmapheight'] . 'px">'; echo '</div></div>'; ?> <script type='text/javascript'>//<![CDATA[ google.load("maps", "3.x", {"other_params":"sensor=false"}); <?php $map = new PhocaGalleryRenderMap(); echo $map->createMap('phocaMap', 'mapPhocaMap', 'phocaLatLng', 'phocaOptions', 'tstPhocaMap', 'tstIntPhocaMap'); echo $map->cancelEventF(); echo $map->checkMapF();
if (isset($this->category->title) && $this->category->title != '') { if ($heading != '') { $heading .= ' - '; } $heading .= $this->category->title; } } // Pagetitle if ($this->tmpl['show_page_heading'] != 0) { if ($heading != '') { echo '<div class="page-header"><h1>' . $this->escape($heading) . '</h1></div>'; } } if (isset($this->category->id) && (int) $this->category->id > 0) { echo '<div id="pg-icons">'; echo PhocaGalleryRenderFront::renderFeedIcon('category', 1, $this->category->id, $this->category->alias); echo '</div>'; } echo '<div style="clear:both"></div>'; // Category Description if (isset($this->category->description) && $this->category->description != '') { echo '<div class="pg-cv-desc">' . JHTML::_('content.prepare', $this->category->description) . '</div>' . "\n"; } $this->checkRights = 1; if ((int) $this->tagId > 0) { // Search by tags $this->checkRights = 1; // Categories View in Category View if ($this->tmpl['display_categories_cv']) { echo $this->loadTemplate('categories'); }