2 defined('_JEXEC') or die('Restricted access'); // no direct access
3 require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../../../functions.php');
5 $canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
7 echo artxPost(artxPageTitle($this, $this->params->get('show_page_title', 1) && $this->params->get('page_title') != $this->article->title), null);
10 <div class="art-Post-tl"></div>
11 <div class="art-Post-tr"></div>
12 <div class="art-Post-bl"></div>
13 <div class="art-Post-br"></div>
14 <div class="art-Post-tc"></div>
15 <div class="art-Post-bc"></div>
16 <div class="art-Post-cl"></div>
17 <div class="art-Post-cr"></div>
18 <div class="art-Post-cc"></div>
19 <div class="art-Post-body">
20 <div class="art-Post-inner">
22 if ($this->params->get('show_title')) {
25 <h2 class="art-PostHeader"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_("PostHeaderIcon"), array('width' => '26', 'height' => '26')); ?>
27 artxFragmentBegin(ob_get_clean());
28 if ($this->params->get('link_titles') && $this->article->readmore_link != '')
29 artxFragmentContent('<a href="' . $this->article->readmore_link . '" class="PostHeader">' . $this->escape($this->article->title) . '</a>');
31 artxFragmentContent($this->escape($this->article->title));
38 artxFragmentEnd(ob_get_clean());
40 artxFragmentBegin("<div class=\"art-PostHeaderIcons art-metadata-icons\">\r\n");
41 if ($this->params->get('show_url') && $this->article->urls)
42 artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
43 if ($this->params->get('show_create_date')) {
44 artxFragment('', JHTML::_('image.site', 'PostDateIcon.png', null, null, null, JText::_("PostDateIcon"), array('width' => '13', 'height' => '11')) . JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
46 if (($this->params->get('show_author')) && ($this->article->author != "")) {
47 artxFragment('', JHTML::_('image.site', 'PostAuthorIcon.png', null, null, null, JText::_("PostAuthorIcon"), array('width' => '12', 'height' => '14')) . JText::sprintf('Written by', ($this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author)), '', ' | ');
49 if (!$this->print && $this->params->get('show_pdf_icon'))
50 artxFragment('', JHTML::_('icon.pdf', $this->article, $this->params, $this->access), '', ' | ');
51 if (!$this->print && $this->params->get('show_print_icon' ))
52 artxFragment('', JHTML::_('icon.print_popup', $this->article, $this->params, $this->access), '', ' | ');
53 if (!$this->print && $this->params->get('show_email_icon'))
54 artxFragment('', JHTML::_('icon.email', $this->article, $this->params, $this->access), '', ' | ');
55 if (!$this->print && $canEdit)
56 artxFragment('', JHTML::_('icon.edit', $this->article, $this->params, $this->access), '', ' | ');
59 artxFragment('', JHTML::_('icon.print_screen', $this->article, $this->params, $this->access, array('class' => 'art-metadata-icon')), '', ' | ');
60 artxFragmentEnd("\r\n</div>\r\n");
61 echo "<div class=\"art-PostContent\">\r\n";
62 if (!$this->params->get('show_intro'))
63 echo $this->article->event->afterDisplayTitle;
64 echo $this->article->event->beforeDisplayContent;
65 if (($this->params->get('show_section') && $this->article->sectionid) || ($this->params->get('show_category') && $this->article->catid)) {
67 <table class="contentpaneopen<?php echo $this->params->get('pageclass_sfx' ); ?>">
71 if ($this->params->get('show_section') && $this->article->sectionid && isset($this->article->section)) {
73 if ($this->params->get('link_section'))
74 echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->article->sectionid)).'">';
75 echo $this->article->section;
76 if ($this->params->get('link_section'))
78 if ($this->params->get('show_category'))
82 if ($this->params->get('show_category') && $this->article->catid) {
84 if ($this->params->get('link_category'))
85 echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->article->catslug, $this->article->sectionid)).'">';
86 echo $this->article->category;
87 if ($this->params->get('link_category'))
97 if (isset ($this->article->toc))
98 echo $this->article->toc;
99 echo "<div class=\"art-article\">";
100 echo $this->article->text;
102 if (intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) {
103 echo "<p class=\"modifydate\">";
104 echo JText::_('Last Updated' ) . ' (' . JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2')) . ')';
107 echo "<span class=\"article_separator\"> </span>";
108 echo $this->article->event->afterDisplayContent;
109 echo "\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
114 <div class="cleared"></div>