001.
<?php
002.
003.
004.
005.
006.
007.
008.
009.
010.
011.
012.
013.
014.
015.
016.
017.
018.
019.
020.
021.
defined(
'_JEXEC'
)
or
die
;
022.
023.
024.
025.
JHtml::addIncludePath(JPATH_COMPONENT.
'/helpers'
);
026.
027.
028.
029.
030.
031.
$params
=
$this
->item->params;
032.
033.
?>
034.
035.
<div
class
=
"item-page<?php echo $params->get('pageclass_sfx')?>"
>
036.
037.
<?php
if
(
$this
->params->get(
'show_page_heading'
, 1)) : ?>
038.
039.
<h1>
040.
041.
<?php
echo
$this
->escape(
$this
->params->get(
'page_heading'
)); ?>
042.
043.
</h1>
044.
045.
<?php
endif
; ?>
046.
047.
<?php
if
(
$params
->get(
'show_title'
)||
$params
->get(
'access-edit'
)) : ?>
048.
049.
<h2>
050.
051.
<?php
if
(
$params
->get(
'link_titles'
) && !
empty
(
$this
->item->readmore_link)) : ?>
052.
053.
<a href=
"/<?php echo $this->item->readmore_link; ?>"
>
054.
055.
<?php
echo
$this
->escape(
$this
->item->title); ?></a>
056.
057.
<?php
else
: ?>
058.
059.
<?php
echo
$this
->escape(
$this
->item->title); ?>
060.
061.
<?php
endif
; ?>
062.
063.
</h2>
064.
065.
<?php
endif
; ?>
066.
067.
068.
069.
070.
071.
<?php
if
(
$params
->get(
'access-edit'
) ||
$params
->get(
'show_print_icon'
) ||
$params
->get(
'show_email_icon'
)) : ?>
072.
073.
<ul
class
=
"actions"
>
074.
075.
<?php
if
(!
$this
->print) : ?>
076.
077.
<?php
if
(
$params
->get(
'show_print_icon'
)) : ?>
078.
079.
<li
class
=
"print-icon"
>
080.
081.
<?php
echo
JHtml::_(
'icon.print_popup'
,
$this
->item,
$params
); ?>
082.
083.
</li>
084.
085.
<?php
endif
; ?>
086.
087.
088.
089.
<?php
if
(
$params
->get(
'show_email_icon'
)) : ?>
090.
091.
<li
class
=
"email-icon"
>
092.
093.
<?php
echo
JHtml::_(
'icon.email'
,
$this
->item,
$params
); ?>
094.
095.
</li>
096.
097.
<?php
endif
; ?>
098.
099.
<?php
if
(
$this
->user->authorise(
'core.edit'
,
'com_content.article.'
.
$this
->item->id)) : ?>
100.
101.
<li
class
=
"edit-icon"
>
102.
103.
<?php
echo
JHtml::_(
'icon.edit'
,
$this
->item,
$params
); ?>
104.
105.
</li>
106.
107.
<?php
endif
; ?>
108.
109.
<?php
else
: ?>
110.
111.
<li>
112.
113.
<?php
echo
JHtml::_(
'icon.print_screen'
,
$this
->item,
$params
); ?>
114.
115.
</li>
116.
117.
<?php
endif
; ?>
118.
119.
</ul>
120.
121.
<?php
endif
; ?>
122.
123.
124.
125.
<?php
if
(!
$params
->get(
'show_intro'
)) :
126.
127.
echo
$this
->item->event->afterDisplayTitle;
128.
129.
endif
; ?>
130.
131.
132.
133.
<?php
echo
$this
->item->event->beforeDisplayContent; ?>
134.
135.
136.
137.
<?php
$useDefList
= ((
$params
->get(
'show_author'
)) OR (
$params
->get(
'show_category'
)) OR (
$params
->get(
'show_parent_category'
))
138.
139.
OR (
$params
->get(
'show_create_date'
)) OR (
$params
->get(
'show_modify_date'
)) OR (
$params
->get(
'show_publish_date'
))
140.
141.
OR (
$params
->get(
'show_hits'
))); ?>
142.
143.
144.
145.
<?php
if
(
$useDefList
) : ?>
146.
147.
<dl
class
=
"article-info"
>
148.
149.
<dt
class
=
"article-info-term"
><?php
echo
JText::_(
'COM_CONTENT_ARTICLE_INFO'
); ?></dt>
150.
151.
<?php
endif
; ?>
152.
153.
<?php
if
(
$params
->get(
'show_parent_category'
) &&
$this
->item->parent_slug !=
'1:root'
) : ?>
154.
155.
<dd
class
=
"parent-category-name"
>
156.
157.
<?php
$title
=
$this
->escape(
$this
->item->parent_title);
158.
159.
$url
=
'<a href="'
.JRoute::_(ContentHelperRoute::getCategoryRoute(
$this
->item->parent_slug)).
'">'
.
$title
.
'</a>'
;?>
160.
161.
<?php
if
(
$params
->get(
'link_parent_category'
) AND
$this
->item->parent_slug) : ?>
162.
163.
<?php
echo
JText::sprintf(
'COM_CONTENT_PARENT'
,
$url
); ?>
164.
165.
<?php
else
: ?>
166.
167.
<?php
echo
JText::sprintf(
'COM_CONTENT_PARENT'
,
$title
); ?>
168.
169.
<?php
endif
; ?>
170.
171.
</dd>
172.
173.
<?php
endif
; ?>
174.
175.
<?php
if
(
$params
->get(
'show_category'
)) : ?>
176.
177.
<dd
class
=
"category-name"
>
178.
179.
<?php
$title
=
$this
->escape(
$this
->item->category_title);
180.
181.
$url
=
'<a href="'
.JRoute::_(ContentHelperRoute::getCategoryRoute(
$this
->item->catslug)).
'">'
.
$title
.
'</a>'
;?>
182.
183.
<?php
if
(
$params
->get(
'link_category'
) AND
$this
->item->catslug) : ?>
184.
185.
<?php
echo
JText::sprintf(
'COM_CONTENT_CATEGORY'
,
$url
); ?>
186.
187.
<?php
else
: ?>
188.
189.
<?php
echo
JText::sprintf(
'COM_CONTENT_CATEGORY'
,
$title
); ?>
190.
191.
<?php
endif
; ?>
192.
193.
</dd>
194.
195.
<?php
endif
; ?>
196.
197.
<?php
if
(
$params
->get(
'show_create_date'
)) : ?>
198.
199.
<dd
class
=
"create"
>
200.
201.
<?php
echo
JText::sprintf(
'COM_CONTENT_CREATED_DATE_ON'
, JHTML::_(
'date'
,
$this
->item->created, JText::_(
'DATE_FORMAT_LC2'
))); ?>
202.
203.
</dd>
204.
205.
<?php
endif
; ?>
206.
207.
<?php
if
(
$params
->get(
'show_modify_date'
)) : ?>
208.
209.
<dd
class
=
"modified"
>
210.
211.
<?php
echo
JText::sprintf(
'COM_CONTENT_LAST_UPDATED'
, JHTML::_(
'date'
,
$this
->item->modified, JText::_(
'DATE_FORMAT_LC2'
))); ?>
212.
213.
</dd>
214.
215.
<?php
endif
; ?>
216.
217.
<?php
if
(
$params
->get(
'show_publish_date'
)) : ?>
218.
219.
<dd
class
=
"published"
>
220.
221.
<?php
echo
JText::sprintf(
'COM_CONTENT_PUBLISHED_DATE'
, JHTML::_(
'date'
,
$this
->item->publish_up, JText::_(
'DATE_FORMAT_LC2'
))); ?>
222.
223.
</dd>
224.
225.
<?php
endif
; ?>
226.
227.
<?php
if
(
$params
->get(
'show_author'
) && !
empty
(
$this
->item->author)) : ?>
228.
229.
<dd
class
=
"createdby"
>
230.
231.
<?php
$author
=
$params
->get(
'link_author'
, 0) ? JHTML::_(
'link'
,JRoute::_(
'index.php?option=com_users&view=profile&member_id='
.
$this
->item->created_by),
$this
->item->author) :
$this
->item->author; ?>
232.
233.
<?php
$author
=(
$this
->item->created_by_alias ?
$this
->item->created_by_alias :
$author
);?>
234.
235.
<?php
echo
JText::sprintf(
'COM_CONTENT_WRITTEN_BY'
,
$author
); ?>
236.
237.
</dd>
238.
239.
<?php
endif
; ?>
240.
241.
<?php
if
(
$params
->get(
'show_hits'
)) : ?>
242.
243.
<dd
class
=
"hits"
>
244.
245.
<?php
echo
JText::sprintf(
'COM_CONTENT_ARTICLE_HITS'
,
$this
->item->hits); ?>
246.
247.
</dd>
248.
249.
<?php
endif
; ?>
250.
251.
<?php
if
(
$useDefList
) : ?>
252.
253.
</dl>
254.
255.
<?php
endif
; ?>
256.
257.
258.
259.
<?php
if
(isset (
$this
->item->toc)) : ?>
260.
261.
<?php
echo
$this
->item->toc; ?>
262.
263.
<?php
endif
; ?>
264.
265.
266.
267.
<?php
echo
$this
->item->text; ?>
268.
269.
270.
271.
<?php
echo
$this
->item->event->afterDisplayContent; ?>
272.
273.
</div>