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-PostHeaderIcon-wrapper"> <span 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->item->params->get('show_create_date')) {
33 echo 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')), '', ' | ');
35 if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
36 echo 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)), '', ' | ');
39 if ($this->params->get('show_url') && $this->article->urls)
40 artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
41 artxFragmentBegin('<span class="art-metadata-icons">');
42 if ($this->item->params->get('show_pdf_icon'))
43 artxFragment('', JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access), '', ' ');
44 if ($this->item->params->get('show_print_icon' ))
45 artxFragment('', JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access), '', ' ');
46 if ($this->item->params->get('show_email_icon'))
47 artxFragment('', JHTML::_('icon.email', $this->item, $this->item->params, $this->access), '', ' ');
48 artxFragmentEnd('</span>', ' | ');
50 artxFragment('', JHTML::_('icon.edit', $this->item, $this->item->params, $this->access), '', ' | ');
51 artxFragmentEnd("\r\n</div>\r\n");
52 echo "<div class=\"art-PostContent\">\r\n";
53 if (!$this->item->params->get('show_intro'))
54 echo $this->item->event->afterDisplayTitle;
55 echo $this->item->event->beforeDisplayContent;
56 if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
58 <table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
62 if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
64 if ($this->item->params->get('link_section'))
65 echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
66 echo $this->item->section;
67 if ($this->item->params->get('link_section'))
69 if ($this->item->params->get('show_category'))
73 if ($this->item->params->get('show_category') && $this->item->catid) {
75 if ($this->item->params->get('link_category'))
76 echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
77 echo $this->item->category;
78 if ($this->item->params->get('link_category'))
88 if (isset ($this->item->toc))
89 echo $this->item->toc;
90 echo "<div class=\"art-article\">", $this->item->text, "</div>";
91 if (intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) {
92 echo "<p class=\"modifydate\">";
93 echo JText::_('Last Updated') . ' (' . JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')) . ')';
96 if ($this->item->params->get('show_readmore') && $this->item->readmore) {
99 <a class="readon" 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...'));
113 echo "<span class=\"article_separator\"> </span>";
114 echo $this->item->event->afterDisplayContent;
115 echo "\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
124 <?php if ($this->item->state == 0) : ?>