2 defined('_JEXEC') or die('Restricted access'); // no direct access
3 $canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
5 <?php if ($this->item->state == 0) : ?>
6 <div class="system-unpublished">
10 <div class="art-post-body">
11 <div class="art-post-inner">
13 if ($this->item->params->get('show_title')) {
16 <h2 class="art-postheader">
18 artxFragmentBegin(ob_get_clean());
19 if ($this->item->params->get('link_titles') && $this->item->readmore_link != '')
20 artxFragmentContent('<a href="' . $this->item->readmore_link . '" class="PostHeader">' . $this->escape($this->item->title) . '</a>');
22 artxFragmentContent($this->escape($this->item->title));
29 artxFragmentEnd(ob_get_clean());
31 artxFragmentBegin("<div class=\"art-postheadericons art-metadata-icons\">\r\n");
32 if ($this->params->get('show_url') && $this->article->urls)
33 artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
34 if ($this->item->params->get('show_create_date')) {
35 artxFragment('', JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
37 if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
38 artxFragment('', JText::sprintf('Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author)), '', ' | ');
41 artxFragment('', JHTML::_('icon.edit', $this->item, $this->item->params, $this->access), '', ' | ');
42 artxFragmentEnd("\r\n</div>\r\n");
43 echo "<div class=\"art-postcontent\">\r\n <!-- article-content -->\r\n";
44 if (!$this->item->params->get('show_intro'))
45 echo $this->item->event->afterDisplayTitle;
46 echo $this->item->event->beforeDisplayContent;
47 if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
49 <table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
53 if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
55 if ($this->item->params->get('link_section'))
56 echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
57 echo $this->item->section;
58 if ($this->item->params->get('link_section'))
60 if ($this->item->params->get('show_category'))
64 if ($this->item->params->get('show_category') && $this->item->catid) {
66 if ($this->item->params->get('link_category'))
67 echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
68 echo $this->item->category;
69 if ($this->item->params->get('link_category'))
79 if (isset ($this->item->toc))
80 echo $this->item->toc;
81 echo "<div class=\"art-article\">", $this->item->text, "</div>";
82 if (intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) {
83 echo "<p class=\"modifydate\">";
84 echo JText::_('Last Updated') . ' (' . JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')) . ')';
87 if ($this->item->params->get('show_readmore') && $this->item->readmore) {
90 <span class="art-button-wrapper">
91 <span class="l"> </span>
92 <span class="r"> </span>
93 <a class="readon art-button" href="<?php echo $this->item->readmore_link; ?>">
95 if ($this->item->readmore_register) {
96 echo str_replace(' ', ' ', JText::_('Register to read more...'));
97 } elseif ($readmore = $this->item->params->get('readmore')){
98 echo str_replace(' ', ' ', $readmore);
100 echo str_replace(' ', ' ', JText::sprintf('Read more...'));
108 echo "<span class=\"article_separator\"> </span>";
109 echo $this->item->event->afterDisplayContent;
110 echo "\r\n <!-- /article-content -->\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
115 <div class="cleared"></div>
120 <?php if ($this->item->state == 0) : ?>