Ejemplo n.º 1
0
<?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>
Ejemplo n.º 2
0
<?php

defined('_JEXEC') or die('Restricted access');
$this->categories = TmplPhocagalleryHelper::getExtrafields($this->categories, array('metakey', 'date'));
?>
<div id="phocagallery-categories-detail" class="tile-list-1">
	<?php 
for ($i = 0, $limit = count($this->categories); $i < $limit; $i++) {
    ?>
	
		<div class="tileItem">
			<div class="span10 tileContent">
				<div class="tileImage">
					<a href="<?php 
    echo $this->categories[$i]->link;
    ?>
">
						<?php 
    if (isset($this->categories[$i]->extpic) && $this->categories[$i]->extpic) {
        $correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($this->categories[$i]->extw, $this->categories[$i]->exth, $this->tmpl['picasa_correct_width'], $this->tmpl['picasa_correct_height']);
        echo JHtml::_('image', $this->categories[$i]->linkthumbnailpath, str_replace('&raquo;', '-', $this->categories[$i]->title), array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height'], 'class' => 'tileImage'));
    } else {
        echo JHtml::_('image', $this->categories[$i]->linkthumbnailpath, str_replace('&raquo;', '-', $this->categories[$i]->title), array('class' => 'tileImage'));
    }
    ?>
					</a>						
				</div>
				<h2 class="tileHeadline">
	            	<a href="<?php 
    echo $this->categories[$i]->link;
    ?>