OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / moyoo_lane_street / html / com_content / category / blog_item.php
1 <?php
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'));
4 ?>
5 <?php if ($this->item->state == 0) : ?>
6 <div class="system-unpublished">
7 <?php endif; ?>
8
9 <div class="art-Post">
10     <div class="art-Post-body">
11 <div class="art-Post-inner">
12 <?php
13 if ($this->item->params->get('show_title')) {
14  ob_start();
15 ?>
16  <h2 class="art-PostHeaderIcon-wrapper"> <span class="art-PostHeader">
17 <?php
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>');
21  else
22   artxFragmentContent($this->escape($this->item->title));
23  ob_start();
24 ?>
25 </span>
26 </h2>
27
28 <?php
29  artxFragmentEnd(ob_get_clean());
30 }
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')), '', ' | ');
34 }
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)), '', ' | ');
37 }
38
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), '', '&nbsp;');
44 if ($this->item->params->get('show_print_icon' ))
45  artxFragment('', JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access), '', '&nbsp;');
46 if ($this->item->params->get('show_email_icon'))
47  artxFragment('', JHTML::_('icon.email', $this->item, $this->item->params, $this->access), '', '&nbsp;');
48 artxFragmentEnd('</span>', ' | ');
49 if ($canEdit)
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)) {
57 ?>
58 <table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
59 <tr>
60         <td>
61 <?php
62 if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
63  echo "<span>";
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'))
68   echo '</a>';
69  if ($this->item->params->get('show_category'))
70   echo ' - ';
71  echo "</span>";
72 }
73 if ($this->item->params->get('show_category') && $this->item->catid) {
74  echo "<span>";
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'))
79   echo '</a>';
80  echo "</span>";
81 }
82 ?>
83         </td>
84 </tr>
85 </table>
86 <?php
87 }
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')) . ')';
94  echo "</p>";
95 }
96 if ($this->item->params->get('show_readmore') && $this->item->readmore) {
97 ?>
98 <p>
99  <a class="readon" href="<?php echo $this->item->readmore_link; ?>">
100   <?php
101    if ($this->item->readmore_register) {
102     echo str_replace(' ', '&nbsp;', JText::_('Register to read more...'));
103    } elseif ($readmore = $this->item->params->get('readmore')){ 
104     echo str_replace(' ', '&nbsp;', $readmore);
105    } else {
106     echo str_replace(' ', '&nbsp;', JText::sprintf('Read more...'));
107    }
108   ?>
109  </a>
110 </p>
111 <?php
112 }
113 echo "<span class=\"article_separator\">&nbsp;</span>";
114 echo $this->item->event->afterDisplayContent;
115 echo "\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
116 ?>
117
118 </div>
119
120     </div>
121 </div>
122
123
124 <?php if ($this->item->state == 0) : ?>
125 </div>
126 <?php endif; ?>