OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / yoga_v1 / 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-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
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->params->get('show_url') && $this->article->urls)
33     artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
34 if ($this->item->params->get('show_create_date')) {
35 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')), '', ' | ');
36 }
37 if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
38   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)), '', ' | ');
39 }
40 if ($this->item->params->get('show_pdf_icon'))
41   artxFragment('', JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access), '', ' | ');
42 if ($this->item->params->get('show_print_icon'))
43   artxFragment('', JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access), '', ' | ');
44 if ($this->item->params->get('show_email_icon'))
45   artxFragment('', JHTML::_('icon.email', $this->item, $this->item->params, $this->access), '', ' | ');
46 if ($canEdit)
47   artxFragment('', JHTML::_('icon.edit', $this->item, $this->item->params, $this->access), '', ' | ');
48 artxFragmentEnd("\r\n</div>\r\n");
49 echo "<div class=\"art-PostContent\">\r\n";
50 if (!$this->item->params->get('show_intro'))
51  echo $this->item->event->afterDisplayTitle;
52 echo $this->item->event->beforeDisplayContent;
53 if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
54 ?>
55 <table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
56 <tr>
57  <td>
58 <?php
59 if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
60  echo "<span>";
61  if ($this->item->params->get('link_section'))
62   echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">';
63  echo $this->item->section;
64  if ($this->item->params->get('link_section'))
65   echo '</a>';
66  if ($this->item->params->get('show_category'))
67   echo ' - ';
68  echo "</span>";
69 }
70 if ($this->item->params->get('show_category') && $this->item->catid) {
71  echo "<span>";
72  if ($this->item->params->get('link_category'))
73   echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">';
74  echo $this->item->category;
75  if ($this->item->params->get('link_category'))
76   echo '</a>';
77  echo "</span>";
78 }
79 ?>
80  </td>
81 </tr>
82 </table>
83 <?php
84 }
85 if (isset ($this->item->toc))
86  echo $this->item->toc;
87 echo "<div class=\"art-article\">", $this->item->text, "</div>";
88 if (intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) {
89  echo "<p class=\"modifydate\">";
90  echo JText::_('Last Updated') . ' (' . JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')) . ')';
91  echo "</p>";
92 }
93 if ($this->item->params->get('show_readmore') && $this->item->readmore) {
94 ?>
95 <p>
96  <span class="art-button-wrapper">
97   <span class="l"> </span>
98   <span class="r"> </span>
99   <a class="readon art-button" 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  </span>
111 </p>
112 <?php
113 }
114 echo "<span class=\"article_separator\">&nbsp;</span>";
115 echo $this->item->event->afterDisplayContent;
116 echo "\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
117 ?>
118
119 </div>
120
121                 <div class="cleared"></div>
122     </div>
123 </div>
124
125
126 <?php if ($this->item->state == 0) : ?>
127 </div>
128 <?php endif; ?>