OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / FishNew / 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 <?php $metadata = array(); ?>
10 <div class="Post">
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>
17                 <?php else : ?>
18                         <?php echo $this->escape($this->item->title); ?>
19                 <?php endif; ?>
20 </span>
21 </h2>
22 <?php endif; ?>
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(); ?>
27 <?php endif; ?>
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(); ?>
31 <?php endif; ?>
32
33 <?php
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('&nbsp;', $joomlaIcons) . '</span>';
45 if ($canEdit)
46   $metadata[] = JHTML::_('icon.edit', $this->item, $this->item->params, $this->access);
47 echo implode(' | ', $metadata);
48 ?>
49
50 </div>
51 <div class="PostContent">
52 <?php  if (!$this->item->params->get('show_intro')) :
53         echo $this->item->event->afterDisplayTitle;
54 endif; ?>
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' ); ?>">
58 <tr>
59         <td>
60                 <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
61                 <span>
62                         <?php if ($this->item->params->get('link_section')) : ?>
63                                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
64                         <?php endif; ?>
65                         <?php echo $this->item->section; ?>
66                         <?php if ($this->item->params->get('link_section')) : ?>
67                                 <?php echo '</a>'; ?>
68                         <?php endif; ?>
69                                 <?php if ($this->item->params->get('show_category')) : ?>
70                                 <?php echo ' - '; ?>
71                         <?php endif; ?>
72                 </span>
73                 <?php endif; ?>
74                 <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
75                 <span>
76                         <?php if ($this->item->params->get('link_category')) : ?>
77                                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
78                         <?php endif; ?>
79                         <?php echo $this->item->category; ?>
80                         <?php if ($this->item->params->get('link_category')) : ?>
81                                 <?php echo '</a>'; ?>
82                         <?php endif; ?>
83                 </span>
84                 <?php endif; ?>
85         </td>
86 </tr>
87 </table>
88 <?php endif; ?>
89 <?php if (isset ($this->item->toc)) : ?>
90         <?php echo $this->item->toc; ?>
91 <?php endif; ?>
92 <div class="article">
93 <?php echo $this->item->text; ?>
94 </div>
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')); ?>)
98 </p>
99 <?php endif; ?>
100 <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
101 <p>
102  <a class="Button" href="<?php echo $this->item->readmore_link; ?>">
103      <span class="btn">
104           <span class="l"></span>
105           <span class="r"></span>
106           <span class="t"><?php if ($this->item->readmore_register) :
107                                 echo str_replace(' ', '&nbsp;', JText::_('Register to read more...'));
108                         elseif ($readmore = $this->item->params->get('readmore')) :
109                                 echo str_replace(' ', '&nbsp;', $readmore);
110                         else :
111                                 echo str_replace(' ', '&nbsp;', JText::sprintf('Read more...'));
112                         endif; ?></span>
113      </span>
114  </a>
115 </p>
116 <?php endif; ?>
117 <span class="article_separator">&nbsp;</span>
118 <?php echo $this->item->event->afterDisplayContent; ?>
119
120 </div>
121 <div class="cleared"></div>
122
123 </div>
124
125     </div>
126 </div>
127
128
129 <?php if ($this->item->state == 0) : ?>
130 </div>
131 <?php endif; ?>