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::_('image.site', 'PostDateIcon.png', null, null, null, JText::_("PostDateIcon"), array('width' => '17', 'height' => '18')) . JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
37 if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
38 artxFragment('', JHTML::_('image.site', 'PostAuthorIcon.png', null, null, null, JText::_("PostAuthorIcon"), array('width' => '14', 'height' => '14')) . JText::sprintf('Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author)), '', ' | ');
40 if ($this->item->params->get('show_pdf_icon'))
41 artxFragment('', JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access), '', ' | ');
42 if ($this->item->params->get('show_print_icon'))
43 artxFragment('', JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access), '', ' | ');
44 if ($this->item->params->get('show_email_icon'))
45 artxFragment('', JHTML::_('icon.email', $this->item, $this->item->params, $this->access), '', ' | ');
47 artxFragment('', JHTML::_('icon.edit', $this->item, $this->item->params, $this->access), '', ' | ');
48 artxFragmentEnd("\r\n</div>\r\n");
49 echo "<div class=\"art-PostContent\">\r\n";
50 if (!$this->item->params->get('show_intro'))
51 echo $this->item->event->afterDisplayTitle;
52 echo $this->item->event->beforeDisplayContent;
53 if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
55 <table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
59 if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
61 if ($this->item->params->get('link_section'))
62 echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
63 echo $this->item->section;
64 if ($this->item->params->get('link_section'))
66 if ($this->item->params->get('show_category'))
70 if ($this->item->params->get('show_category') && $this->item->catid) {
72 if ($this->item->params->get('link_category'))
73 echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
74 echo $this->item->category;
75 if ($this->item->params->get('link_category'))
85 if (isset ($this->item->toc))
86 echo $this->item->toc;
87 echo "<div class=\"art-article\">", $this->item->text, "</div>";
88 if (intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) {
89 echo "<p class=\"modifydate\">";
90 echo JText::_('Last Updated') . ' (' . JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')) . ')';
93 if ($this->item->params->get('show_readmore') && $this->item->readmore) {
96 <span class="art-button-wrapper">
97 <span class="l"> </span>
98 <span class="r"> </span>
99 <a class="readon art-button" href="<?php echo $this->item->readmore_link; ?>">
101 if ($this->item->readmore_register) {
102 echo str_replace(' ', ' ', JText::_('Register to read more...'));
103 } elseif ($readmore = $this->item->params->get('readmore')){
104 echo str_replace(' ', ' ', $readmore);
106 echo str_replace(' ', ' ', JText::sprintf('Read more...'));
114 echo "<span class=\"article_separator\"> </span>";
115 echo $this->item->event->afterDisplayContent;
116 echo "\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
121 <div class="cleared"></div>
126 <?php if ($this->item->state == 0) : ?>