OSDN Git Service

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