echo $this->escape($this->params->get('page_subheading')); ?> </h2> <?php } ?> <?php if ($this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) { ?> <div class="subtitle"> <?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) { ?> <?php TemplateContentCategoryHelper::displayCategoryImage($this->category->getParams()->get('image')); ?> <?php } ?> <?php if ($this->params->get('show_description') && $this->category->description) { ?> <?php echo JHtml::_('content.prepare', $this->category->description, '', 'com_content.category'); ?> <?php } ?> </div> <?php
static function getLastArticleModifiedDate($category, $children = false) { $category_ids = array($category->id); if ($children !== false) { $category_ids = array_merge($category_ids, TemplateContentCategoryHelper::getChildIds($children, $category)); } $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('MAX(modified) AS max_modified, MAX(created) AS max_created'); $query->from('#__content'); $query->where('catid IN (' . implode(',', $category_ids) . ') AND state = 1'); // echo $query->dump(); $db->setQuery($query); $options = $db->loadObject(); if (strtotime($options->max_modified) > strtotime($options->max_created)) { return JHtml::_('date', $options->max_modified, JText::_('DATE_FORMAT_LC2')); } else { return JHtml::_('date', $options->max_created, JText::_('DATE_FORMAT_LC2')); } }
} ?> </div> <?php } ?> <?php if ($this->item->metakey != '' || $params->get('show_parent_category') && $this->item->parent_id != 1 || $params->get('show_category') || $params->get('show_author') && !empty($this->item->author)) { ?> <div class="keywords"> <?php if ($this->item->metakey != '') { ?> <p>Tags: <?php TemplateContentCategoryHelper::displayMetakeyLinks($this->item->metakey); ?> </p> <?php } ?> <?php if ($params->get('show_category') || $params->get('show_parent_category') && $this->item->parent_id != 1) { ?> <?php $categories = ''; if ($params->get('show_parent_category') && $this->item->parent_id != 1) { if ($params->get('link_parent_category')) { $categories .= '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_id)) . '">' . $title . '</a>'; } else {
static function displayMetakeyLinks($metakey, $link = '') { return parent::displayMetakeyLinks($metakey, $link); }
<?php echo JHtml::_('icon.edit', $article, $params); ?> </li> </ul> <?php } ?> </span> <?php if ($article->metakey != '') { ?> <span class="keywords"> Tags: <?php TemplateContentCategoryHelper::displayMetakeyLinks($article->metakey); ?> </span> <?php } ?> </div> <div class="span2 tileInfo"> <ul> <?php // var_dump($article); $author = $article->created_by_alias ? $article->created_by_alias : $article->author; ?> <li class="hide"><?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>