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">
9 <?php $metadata = array(); ?>
11 <div class="Post-body">
12 <div class="Post-inner">
13 <?php if ($this->item->params->get('show_title')) : ?>
14 <h2 class="PostHeaderIcon-wrapper"> <span class="PostHeader"><?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
15 <a href="<?php echo $this->item->readmore_link; ?>" class="PostHeader">
16 <?php echo $this->escape($this->item->title); ?></a>
18 <?php echo $this->escape($this->item->title); ?>
23 <div class="PostHeaderIcons metadata-icons">
24 <?php if ($this->item->params->get('show_create_date')) : ?>
25 <?php ob_start(); ?><?php echo JHTML::_('image.site', 'PostDateIcon.png', null, null, null, JText::_("PostDateIcon"), array('width' => '17', 'height' => '18')); ?> <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
26 <?php $metadata[] = ob_get_clean(); ?>
28 <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
29 <?php ob_start(); ?><?php echo JHTML::_('image.site', 'PostAuthorIcon.png', null, null, null, JText::_("PostAuthorIcon"), array('width' => '14', 'height' => '14')); ?> <?php JText::printf('Author: %s', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?>
30 <?php $metadata[] = ob_get_clean(); ?>
34 if ($this->item->params->get('show_url') && $this->item->urls)
35 $metadata[] = '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>';
36 $joomlaIcons = array();
37 if ($this->item->params->get('show_pdf_icon'))
38 $joomlaIcons[] = JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access);
39 if ($this->item->params->get('show_print_icon' ))
40 $joomlaIcons[] = JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access);
41 if ($this->item->params->get('show_email_icon'))
42 $joomlaIcons[] = JHTML::_('icon.email', $this->item, $this->item->params, $this->access);
43 if (0 != count($joomlaIcons))
44 $metadata[] = '<span class="metadata-icons">' . implode(' ', $joomlaIcons) . '</span>';
46 $metadata[] = JHTML::_('icon.edit', $this->item, $this->item->params, $this->access);
47 echo implode(' | ', $metadata);
51 <div class="PostContent">
52 <?php if (!$this->item->params->get('show_intro')) :
53 echo $this->item->event->afterDisplayTitle;
55 <?php echo $this->item->event->beforeDisplayContent; ?>
56 <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
57 <table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
60 <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
62 <?php if ($this->item->params->get('link_section')) : ?>
63 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
65 <?php echo $this->item->section; ?>
66 <?php if ($this->item->params->get('link_section')) : ?>
69 <?php if ($this->item->params->get('show_category')) : ?>
74 <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
76 <?php if ($this->item->params->get('link_category')) : ?>
77 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
79 <?php echo $this->item->category; ?>
80 <?php if ($this->item->params->get('link_category')) : ?>
89 <?php if (isset ($this->item->toc)) : ?>
90 <?php echo $this->item->toc; ?>
93 <?php echo $this->item->text; ?>
95 <?php if (intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
96 <p class="modifydate">
97 <?php echo JText::_('Last Updated'); ?> (<?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?>)
100 <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
102 <a class="Button" href="<?php echo $this->item->readmore_link; ?>">
104 <span class="l"></span>
105 <span class="r"></span>
106 <span class="t"><?php if ($this->item->readmore_register) :
107 echo str_replace(' ', ' ', JText::_('Register to read more...'));
108 elseif ($readmore = $this->item->params->get('readmore')) :
109 echo str_replace(' ', ' ', $readmore);
111 echo str_replace(' ', ' ', JText::sprintf('Read more...'));
117 <span class="article_separator"> </span>
118 <?php echo $this->item->event->afterDisplayContent; ?>
121 <div class="cleared"></div>
129 <?php if ($this->item->state == 0) : ?>