OSDN Git Service

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