OSDN Git Service

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