OSDN Git Service

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