diff --git a/components/com_content/views/article/tmpl/default.php b/components/com_content/views/article/tmpl/default.php index 1b7201f206133..9d2bb8a9646e5 100644 --- a/components/com_content/views/article/tmpl/default.php +++ b/components/com_content/views/article/tmpl/default.php @@ -12,54 +12,48 @@ JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); // 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', 0); +$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', 0); +$useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author')); JHtml::_('behavior.caption'); ?>
- + params->get('show_page_heading')) : ?> - - item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative) - { - echo $this->item->pagination; - } - ?> - - - get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') - || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?> - + + + item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative) : ?> + item->pagination; ?> + print) : ?>
item, $params); ?>
-
+
get('show_title') || $params->get('show_author')) : ?> - + item->publish_up) > strtotime(JFactory::getDate())) : ?> + + + item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate()) : ?> + + +
print) : ?> get('show_print_icon') || $params->get('show_email_icon')) : ?> @@ -72,96 +66,83 @@ - $this->item, 'params' => $params, 'position' => 'above')); ?> - get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> - item->tagLayout->render($this->item->tags->itemTags); ?> - get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?> item->event->beforeDisplayContent; ?> - - urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) - || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?> - loadTemplate('links'); ?> + urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) || (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?> + loadTemplate('links'); ?> - get('access-view')):?> - image_fulltext) && !empty($images->image_fulltext)) : ?> - float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?> -
image_fulltext_caption): - echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"'; - endif; ?> - src="image_fulltext); ?>" alt="image_fulltext_alt); ?>" itemprop="image"/>
- - item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative): - echo $this->item->pagination; - endif; - ?> - item->toc)) : - echo $this->item->toc; - endif; ?> -
- item->text; ?> -
- - - $this->item, 'params' => $params, 'position' => 'below')); ?> - get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> - item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> - item->tagLayout->render($this->item->tags->itemTags); ?> + get('access-view')): ?> + image_fulltext) && !empty($images->image_fulltext)) : ?> + float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?> +
image_fulltext_caption) : ?> + image_fulltext_caption) . '"'; ?> + + src="image_fulltext); ?>" + alt="image_fulltext_alt); ?>" itemprop="image" /> +
- - - item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative): - echo $this->item->pagination; - ?> - - urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))) : ?> - loadTemplate('links'); ?> - - + item->pagination) && $this->item->pagination && !$this->item->paginationposition && !$this->item->paginationrelative) : ?> + item->pagination; ?> + + item->toc)) : ?> + item->toc; ?> + +
+ item->text; ?> +
+ + $this->item, 'params' => $params, 'position' => 'below')); ?> + get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> + item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> + item->tagLayout->render($this->item->tags->itemTags); ?> + + + item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative) : ?> + item->pagination; ?> + + urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))) : ?> + loadTemplate('links'); ?> + + get('show_noauth') == true && $user->get('guest')) : ?> - item->introtext; ?> - - get('show_readmore') && $this->item->fulltext != null) : ?> - getMenu(); ?> - getActive(); ?> - id; ?> - - setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); ?> -

- - item->attribs); ?> - alternative_readmore == null) : - echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); - elseif ($readmore = $this->item->alternative_readmore) : - echo $readmore; - if ($params->get('show_readmore_title', 0) != 0) : - echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); - endif; - elseif ($params->get('show_readmore_title', 0) == 0) : - echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE'); - else : - echo JText::_('COM_CONTENT_READ_MORE'); - echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); - endif; ?> - -

- + item->introtext; ?> + + get('show_readmore') && $this->item->fulltext != null) : ?> + getMenu(); ?> + getActive(); ?> + id; ?> + + setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); ?> +

+ + item->attribs); ?> + alternative_readmore == null) : ?> + + item->alternative_readmore) : ?> + + get('show_readmore_title', 0) != 0) : ?> + item->title), $params->get('readmore_limit')); ?> + + get('show_readmore_title', 0) == 0) : ?> + + + + item->title), $params->get('readmore_limit')); ?> + + +

+ - item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) : - echo $this->item->pagination; - ?> + item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) : ?> + item->pagination; ?> item->event->afterDisplayContent; ?>