Example #1
0
		</section>
	<?php 
    }
}
if ($extrafieldsexist) {
    ?>
</div>
<?php 
}
?>
</article>
<!-- //Article -->

<?php 
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) {
    ?>
	<?php 
    echo $this->item->pagination;
}
?>

<?php 
echo $this->item->event->afterDisplayContent;
?>

</div>

<?php 
if (DecorHelper::loadModules('after-content', 't3xhtml')) {
    DecorHelper::loadModules('after-content', 't3xhtml');
}
Example #2
0
 public static function getCategory($pid, $maxLevel = -1, $sub = '')
 {
     static $res = array();
     if ($maxLevel == '-1') {
         $maxLevel = '999999';
     }
     $db = JFactory::getDbo();
     $query = $db->getQuery(true);
     $query->select('a.id AS id, a.title as title');
     $query->from('#__categories AS a');
     $query->join('LEFT', $db->quoteName('#__categories') . ' AS b ON a.lft > b.lft AND a.rgt < b.rgt');
     // Filter by the type
     $query->where('a.extension =' . $db->quote('com_content'));
     $query->where('a.parent_id = ' . $pid);
     $query->where('a.published = 1');
     if ($maxLevel) {
         $query->where('a.level <= ' . (int) $maxLevel);
     }
     $query->group('a.id, a.title, a.level, a.lft, a.rgt');
     $query->order('a.lft ASC');
     // Get the options.
     $db->setQuery($query);
     $rows = $db->loadObjectList();
     foreach ($rows as $row) {
         $row->url = ContentHelperRoute::getCategoryRoute($row->id);
         $row->title = $sub . $row->title;
         array_push($res, $row);
         if (DecorHelper::getChildCategory($row->id, $maxLevel)) {
             DecorHelper::getCategory($row->id, $maxLevel, $sub != '' ? $sub . '-' : '-');
         }
     }
     return $res;
 }
Example #3
0
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
if (version_compare(JVERSION, '3.0', 'lt')) {
    JHtml::_('behavior.tooltip');
}
JHtml::_('behavior.framework');
// Create a shortcut for params.
$params =& $this->item->params;
$images = json_decode($this->item->images);
$canEdit = $this->item->params->get('access-edit');
$info = $params->get('info_block_position', 2);
$aInfo1 = $params->get('show_publish_date') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author');
$aInfo2 = $params->get('show_create_date') || $params->get('show_modify_date') || $params->get('show_hits');
$topInfo = $aInfo1 && $info != 1 || $aInfo2 && $info == 0;
$botInfo = $aInfo1 && $info == 1 || $aInfo2 && $info != 0;
$icons = $params->get('access-edit') || $params->get('show_print_icon') || $params->get('show_email_icon');
$loadParamsContents = DecorHelper::loadParamsContents($this->item);
$grid_info = explode('x', $loadParamsContents['size']);
$grid = '';
$grid .= $grid_info[0] > 1 ? 'item-w' . $grid_info[0] : '';
$grid .= $grid_info[1] > 1 ? 'item-h' . $grid_info[1] : '';
// update catslug if not exists - compatible with 2.5
if (empty($this->item->catslug)) {
    $this->item->catslug = $this->item->category_alias ? $this->item->catid . ':' . $this->item->category_alias : $this->item->catid;
}
?>
<div class="item isotope-item <?php 
echo $grid;
?>
">

<?php 
Example #4
0
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::addIncludePath(T3_PATH . '/html/com_content');
JHtml::addIncludePath(dirname(dirname(__FILE__)));
JHtml::_('behavior.caption');
//register the helper class
JLoader::register('DecorHelper', T3_TEMPLATE_PATH . '/templateHelper.php');
//template params
$tplparams = JFactory::getApplication()->getTemplate(true)->params;
//Load grid items
DecorHelper::loadGridItems();
$catparent = '';
if ($this->maxLevel != 0) {
    $catparent = DecorHelper::getCategory($this->category->id, $this->maxLevel);
}
$bloglayout = isset($_COOKIE['blog-layout']) ? $_COOKIE['blog-layout'] : '0';
?>

<div class="ja-masonry-wrap">
<!-- Add toolbar change grid -->
<div class="toobar-grid">
    <h3><?php 
echo JText::_('TPL_FILTER_PROJECT');
?>
</h3>
    <!-- Filter by category -->
    <?php 
if ($catparent) {
    ?>