1 <?php // no direct access
2 defined('_JEXEC') or die('Restricted access'); ?>
3 <?php $canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')); ?>
4 <?php if ($this->item->state == 0) : ?>
5 <div class="system-unpublished">
8 <?php $metadata = array(); ?>
10 <div class="Post-tl"></div>
11 <div class="Post-tr"><div></div></div>
12 <div class="Post-bl"><div></div></div>
13 <div class="Post-br"><div></div></div>
14 <div class="Post-tc"><div></div></div>
15 <div class="Post-bc"><div></div></div>
16 <div class="Post-cl"><div></div></div>
17 <div class="Post-cr"><div></div></div>
18 <div class="Post-cc"></div>
19 <div class="Post-body">
20 <div class="Post-inner">
21 <?php if ($this->item->params->get('show_title')) : ?>
22 <h2 class="PostHeaderIcon-wrapper"> <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
23 <a href="<?php echo $this->item->readmore_link; ?>" class="PostHeader">
24 <?php echo $this->escape($this->item->title); ?></a>
26 <?php echo $this->escape($this->item->title); ?>
30 <div class="PostMetadataHeader">
31 <div class="PostHeaderIcons metadata-icons">
32 <?php if ($this->item->params->get('show_create_date')) : ?>
33 <?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')); ?>
34 <?php $metadata[] = ob_get_clean(); ?>
36 <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
37 <?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) ); ?>
38 <?php $metadata[] = ob_get_clean(); ?>
42 if ($this->item->params->get('show_url') && $this->item->urls)
43 $metadata[] = '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>';
44 $joomlaIcons = array();
45 if ($this->item->params->get('show_pdf_icon'))
46 $joomlaIcons[] = JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access);
47 if ( $this->item->params->get( 'show_print_icon' ))
48 $joomlaIcons[] = JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access);
49 if ($this->item->params->get('show_email_icon'))
50 $joomlaIcons[] = JHTML::_('icon.email', $this->item, $this->item->params, $this->access);
51 if (0 != count($joomlaIcons))
52 $metadata[] = '<span class="metadata-icons">' . implode(' ', $joomlaIcons) . '</span>';
54 $metadata[] = JHTML::_('icon.edit', $this->item, $this->item->params, $this->access);
55 echo implode(' | ', $metadata);
61 <div class="PostContent">
62 <?php if (!$this->item->params->get('show_intro')) :
63 echo $this->item->event->afterDisplayTitle;
65 <?php echo $this->item->event->beforeDisplayContent; ?>
66 <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
67 <table class="contentpaneopen<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>">
70 <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
72 <?php if ($this->item->params->get('link_section')) : ?>
73 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
75 <?php echo $this->item->section; ?>
76 <?php if ($this->item->params->get('link_section')) : ?>
79 <?php if ($this->item->params->get('show_category')) : ?>
84 <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
86 <?php if ($this->item->params->get('link_category')) : ?>
87 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
89 <?php echo $this->item->category; ?>
90 <?php if ($this->item->params->get('link_category')) : ?>
99 <?php if (isset ($this->item->toc)) : ?>
100 <?php echo $this->item->toc; ?>
102 <div class="article">
103 <?php echo $this->item->text; ?>
105 <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
106 <p class="modifydate">
107 <?php echo JText::_( 'Last Updated' ); ?> ( <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?> )
110 <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
112 <a class="Button" href="<?php echo $this->item->readmore_link; ?>">
114 <span class="t"><?php if ($this->item->readmore_register) :
115 echo str_replace(' ', ' ', JText::_('Register to read more...'));
116 elseif ($readmore = $this->item->params->get('readmore')) :
117 echo str_replace(' ', ' ', $readmore);
119 echo str_replace(' ', ' ', JText::sprintf('Read more...'));
121 <span class="r"><span></span></span>
122 <span class="l"></span>
129 <div class="cleared"></div>
137 <?php if ($this->item->state == 0) : ?>
140 <span class="article_separator"> </span>
141 <?php echo $this->item->event->afterDisplayContent; ?>