JHtml::addIncludePath(dirname(dirname(__FILE__))); //register the helper class JLoader::register('DecorHelper', T3_TEMPLATE_PATH . '/templateHelper.php'); // Create shortcuts to some parameters. $params = $this->item->params; $images = json_decode($this->item->images); $urls = json_decode($this->item->urls); $canEdit = $params->get('access-edit'); $user = JFactory::getUser(); $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'); $extrafields = DecorHelper::loadParamsContents($this->item); $extrafieldsexist = $extrafields['jcontent_client'] != '' || $extrafields['jcontent_location'] != '' || $extrafields['jcontent_category'] != '' || $extrafields['jcontent_year'] != ''; JHtml::_('behavior.caption'); ?> <!-- Load Extrafields if exists --> <?php if (DecorHelper::loadModules('before-content', 'raw')) { DecorHelper::loadModules('before-content', 'raw'); } ?> <?php if ($this->params->get('show_page_heading', 1)) { ?> <div class="page-header clearfix">
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