OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / pwc007_music / html / com_content / section / blog_item.php
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">
6 <?php endif; ?>
7
8 <?php $metadata = array(); ?>
9 <div class="Post">
10     <div class="Post-body">
11 <div class="Post-inner">
12 <?php if ($this->item->params->get('show_title')) : ?>
13 <h2 class="PostHeaderIcon-wrapper"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_("PostHeaderIcon"), array('width' => '24', 'height' => '31')); ?> <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
14                 <a href="<?php echo $this->item->readmore_link; ?>" class="PostHeader">
15                         <?php echo $this->escape($this->item->title); ?></a>
16                 <?php else : ?>
17                         <?php echo $this->escape($this->item->title); ?>
18                 <?php endif; ?>
19 </h2>
20 <?php endif; ?>
21 <div class="PostHeaderIcons metadata-icons">
22 <?php if ($this->item->params->get('show_create_date')) : ?>
23 <?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')); ?>
24 <?php $metadata[] = ob_get_clean(); ?>
25 <?php endif; ?>
26 <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
27 <?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) ); ?>
28 <?php $metadata[] = ob_get_clean(); ?>
29 <?php endif; ?>
30
31 <?php
32 if ($this->item->params->get('show_url') && $this->item->urls)
33  $metadata[] = '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>';
34 $joomlaIcons = array();
35 if ($this->item->params->get('show_pdf_icon'))
36  $joomlaIcons[] = JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access);
37 if ( $this->item->params->get( 'show_print_icon' ))
38  $joomlaIcons[] = JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access);
39 if ($this->item->params->get('show_email_icon'))
40  $joomlaIcons[] = JHTML::_('icon.email', $this->item, $this->item->params, $this->access);
41 if (0 != count($joomlaIcons))
42  $metadata[] = '<span class="metadata-icons">' . implode('&nbsp;', $joomlaIcons) . '</span>';
43 if ($canEdit)
44   $metadata[] = JHTML::_('icon.edit', $this->item, $this->item->params, $this->access);
45 echo implode(' | ', $metadata);
46 ?>
47
48 </div>
49 <div class="PostContent">
50 <?php  if (!$this->item->params->get('show_intro')) :
51         echo $this->item->event->afterDisplayTitle;
52 endif; ?>
53 <?php echo $this->item->event->beforeDisplayContent; ?>
54 <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
55 <table class="contentpaneopen<?php echo $this->item->params->get( 'pageclass_sfx' ); ?>">
56 <tr>
57         <td>
58                 <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
59                 <span>
60                         <?php if ($this->item->params->get('link_section')) : ?>
61                                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
62                         <?php endif; ?>
63                         <?php echo $this->item->section; ?>
64                         <?php if ($this->item->params->get('link_section')) : ?>
65                                 <?php echo '</a>'; ?>
66                         <?php endif; ?>
67                                 <?php if ($this->item->params->get('show_category')) : ?>
68                                 <?php echo ' - '; ?>
69                         <?php endif; ?>
70                 </span>
71                 <?php endif; ?>
72                 <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
73                 <span>
74                         <?php if ($this->item->params->get('link_category')) : ?>
75                                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
76                         <?php endif; ?>
77                         <?php echo $this->item->category; ?>
78                         <?php if ($this->item->params->get('link_category')) : ?>
79                                 <?php echo '</a>'; ?>
80                         <?php endif; ?>
81                 </span>
82                 <?php endif; ?>
83         </td>
84 </tr>
85 </table>
86 <?php endif; ?>
87 <?php if (isset ($this->item->toc)) : ?>
88         <?php echo $this->item->toc; ?>
89 <?php endif; ?>
90 <div class="article">
91 <?php echo $this->item->text; ?>
92 </div>
93 <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
94 <p class="modifydate">
95 <?php echo JText::_( 'Last Updated' ); ?> ( <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?> )
96 </p>
97 <?php endif; ?>
98 <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
99 <p>
100  <a class="Button" href="<?php echo $this->item->readmore_link; ?>">
101   <span class="btn">
102    <span class="t"><?php if ($this->item->readmore_register) :
103                                 echo str_replace(' ', '&nbsp;', JText::_('Register to read more...'));
104                         elseif ($readmore = $this->item->params->get('readmore')) :
105                                 echo str_replace(' ', '&nbsp;', $readmore);
106                         else :
107                                 echo str_replace(' ', '&nbsp;', JText::sprintf('Read more...'));
108                         endif; ?></span>
109    <span class="r"><span></span></span>
110    <span class="l"></span>
111   </span>
112  </a>
113 </p>
114 <?php endif; ?>
115
116 </div>
117 <div class="cleared"></div>
118
119 </div>
120
121     </div>
122 </div>
123
124
125 <?php if ($this->item->state == 0) : ?>
126 </div>
127 <?php endif; ?>
128 <span class="article_separator">&nbsp;</span>
129 <?php echo $this->item->event->afterDisplayContent; ?>