Current Directory: /home/astoriaah/www/old15/modules/mod_cthk2category/tmpl
Viewing File: /home/astoriaah/www/old15/modules/mod_cthk2category/tmpl/portfolio.php
<?php
defined('_JEXEC') or die;
$cat = CTHK2CategoryHelper::getCats($params->get('k2CatId'), 1);
if(count($cat)){
$cat = $cat[0];
}
?>
<?php if($cat) :
$catParams = json_decode($cat->params);
$tagsFilter = CTHK2CategoryHelper::getTagsFilter($params);
?>
<!-- portfolio-section
================================================== -->
<div class="section-content portfolio-section">
<div class="container">
<?php if(!empty($cat->description)) :;?>
<div class="title-section">
<?php echo $cat->description;?>
</div>
<?php endif;?>
<?php if(count($items)) :?>
<div class="portfolio-box masonry">
<?php foreach($items as $item) :
$extraFields = json_decode($item->extra_fields);
?>
<div class="project-post">
<img alt="<?php echo $item->title;?>" src="<?php echo JURI::base(true).'/'.$extraFields[0]->value;?>">
<div class="hover-box">
<div class="inner-hover">
<h2><a href="<?php echo CTHK2CategoryHelper::getK2ItemLink($item->id, $item->alias, $item->catid, $item->categoryalias);?>"><?php echo $item->title;?></a></h2>
<?php if(!empty($item->introtext)){
echo $item->introtext;
} ?>
</div>
</div>
</div>
<?php endforeach;?>
</div>
<?php if($catParams->catPagination) : ?>
<div class="middle-button">
<a href="<?php echo CTHK2CategoryHelper::getK2CategoryLink($cat->id);?>" class="button-one"><?php echo JText::_('TPL_MINIMA_LOAD_MORE_TEXT');?></a>
</div>
<?php endif;?>
<?php endif;?>
</div>
</div>
<?php endif;?>