<?php defined('_JEXEC') or die('Restricted access'); require JPATH_SITE . '/templates/padraogoverno01/html/com_phocagallery/_helper.php'; //removendo css,js e custom html do componente: TmplPhocagalleryHelper::removeCss(array('phocagallery.css', 'modal.css')); TmplPhocagalleryHelper::removeJs(array('mootools-core-uncompressed.js', 'mootools-more.js', 'core-uncompressed.js', 'modal-uncompressed.js', 'modal.js', '$$(\'a.pg-modal-button\')')); TmplPhocagalleryHelper::removeCustom(array('#phocagallery', '#sbox-window', 'phocagalleryieall.css', '.phocagallery-box-file')); //incluindo campos que nao vem por padrao na consulta $this->category = TmplPhocagalleryHelper::getExtrafields($this->category, array('date')); ?> <div id="phocagallery" class="pg-category-view<?php echo $this->params->get('pageclass_sfx'); ?> "> <?php if ($this->params->get('page_heading') != '') { ?> <span class="documentCategory"><?php echo $this->params->get('page_heading'); ?> </span> <?php } ?> <h1 class="secondaryHeading"><?php echo $this->category->title; ?> </h1>
<?php defined('_JEXEC') or die('Restricted access'); require JPATH_SITE . '/templates/padraogoverno01/html/com_phocagallery/_helper.php'; TmplPhocagalleryHelper::removeCss(array('phocagallery.css')); TmplPhocagalleryHelper::removeCustom(array('.contentpane')); $jinput = JFactory::getApplication()->input; $tmpl = $jinput->get('tmpl', '', 'command'); if ($tmpl == 'component') { TmplPhocagalleryHelper::addCss(JURI::root() . 'templates/padraogoverno01/html/com_phocagallery/detail/default.css'); } else { TmplPhocagalleryHelper::removeJs(array('jquery-1.6.4.min.js')); } echo '<div id="phocagallery" class="pg-detail-view' . $this->params->get('pageclass_sfx') . '">'; switch ($this->tmpl['detailwindow']) { case 4: case 7: case 9: case 10: $closeImage = $this->item->linkimage; $closeButton = ''; break; default: $closeButton = ''; $closeImage = '<a class="main-image" href="#" target="_parent">' . $this->item->linkimage . '</a>'; break; } if ($tmpl == 'component') { echo $closeImage . "<br>"; echo '<div class="prevButton">' . $this->item->prevbutton . "</div>"; echo '<div class="nextButton">' . $this->item->nextbutton . "</div>";