OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / tft0006j_back_to_nature / html / com_content / frontpage / default.php
1 <?php // no direct access\r\r
2 defined('_JEXEC') or die('Restricted access'); ?>\r\r
3 <?php if ($this->params->get('show_page_title', 1)) : ?>\r\r
4 <div class="Post">\r\r
5     <div class="Post-tl"></div>\r\r
6     <div class="Post-tr"><div></div></div>\r\r
7     <div class="Post-bl"><div></div></div>\r\r
8     <div class="Post-br"><div></div></div>\r\r
9     <div class="Post-tc"><div></div></div>\r\r
10     <div class="Post-bc"><div></div></div>\r\r
11     <div class="Post-cl"><div></div></div>\r\r
12     <div class="Post-cr"><div></div></div>\r\r
13     <div class="Post-cc"></div>\r\r
14     <div class="Post-body">\r\r
15 <div class="Post-inner">\r\r
16 \r\r
17 <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
18         <?php echo $this->escape($this->params->get('page_title')); ?>\r\r
19 </span>\r\r
20 </h2>\r\r
21 \r\r
22 \r\r
23 </div>\r\r
24 \r\r
25     </div>\r\r
26 </div>\r\r
27 \r\r
28 <?php endif; ?>\r\r
29 <?php if ($this->params->def('num_leading_articles', 1)) : ?>\r\r
30 <?php for ($i = $this->pagination->limitstart; $i < ($this->pagination->limitstart + $this->params->get('num_leading_articles')); $i++) : ?>\r\r
31 <?php if ($i >= $this->total) : break; endif; ?>\r\r
32 <?php\r\r
33                         $this->item =& $this->getItem($i, $this->params);\r\r
34                         echo $this->loadTemplate('item');\r\r
35                 ?>\r\r
36 <?php endfor; ?>\r\r
37 <?php else : $i = $this->pagination->limitstart; endif; ?>\r\r
38 \r\r
39 <?php\r\r
40 $startIntroArticles = $this->pagination->limitstart + $this->params->get('num_leading_articles');\r\r
41 $numIntroArticles = $startIntroArticles + $this->params->get('num_intro_articles', 4);\r\r
42 if (($numIntroArticles != $startIntroArticles) && ($i < $this->total)) : ?>\r\r
43                 <table width="100%"  cellpadding="0" cellspacing="0">\r\r
44                 <tr>\r\r
45                 <?php\r\r
46                         $divider = '';\r\r
47                         if ($this->params->get('multi_column_order')) : // order across as before\r\r
48                         for ($z = 0; $z < $this->params->def('num_columns', 2); $z ++) :\r\r
49                                 if ($z > 0) : $divider = " column_separator"; endif; ?>\r\r
50                                 <?php\r\r
51                                     $rows = (int) ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns'));\r\r
52                                     $cols = ($this->params->get('num_intro_articles', 4) % $this->params->get('num_columns'));\r\r
53                                 ?>\r\r
54                                 <td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>">\r\r
55                                 <?php\r\r
56                                 $loop = (($z < $cols)?1:0) + $rows;\r\r
57 \r\r
58                                 for ($y = 0; $y < $loop; $y ++) :\r\r
59                                         $target = $i + ($y * $this->params->get('num_columns')) + $z;\r\r
60                                         if ($target < $this->total && $target < ($numIntroArticles)) :\r\r
61                                                 $this->item =& $this->getItem($target, $this->params);\r\r
62                                                 echo $this->loadTemplate('item');\r\r
63                                         endif;\r\r
64                                 endfor;\r\r
65                                                 ?></td>\r\r
66                                                 <?php endfor; \r\r
67                                                 $i = $i + $this->params->get('num_intro_articles') ; \r\r
68                         else : // otherwise, order down columns, like old category blog\r\r
69                                 for ($z = 0; $z < $this->params->get('num_columns'); $z ++) :\r\r
70                                         if ($z > 0) : $divider = " column_separator"; endif; ?>\r\r
71                                         <td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>">\r\r
72                                         <?php for ($y = 0; $y < ($this->params->get('num_intro_articles') / $this->params->get('num_columns')); $y ++) :\r\r
73                                         if ($i < $this->total && $i < ($numIntroArticles)) :\r\r
74                                                 $this->item =& $this->getItem($i, $this->params);\r\r
75                                                 echo $this->loadTemplate('item');\r\r
76                                                 $i ++;\r\r
77                                         endif;\r\r
78                                 endfor; ?>\r\r
79                                 </td>\r\r
80                 <?php endfor; \r\r
81                 endif;?>\r\r
82                 <?php $i = $i + $this->params->get('num_intro_articles') ; ?>\r\r
83                 </tr>\r\r
84                 </table>\r\r
85 <?php endif; ?>\r\r
86 <?php if ($this->params->def('num_links', 4) && ($i < $this->total)) : ?>\r\r
87 <?php $this->links = array_splice($this->items, $i - $this->pagination->limitstart); ?>\r\r
88 <?php if (count($this->links) > 0) : ?>\r\r
89 <div class="Post">\r\r
90     <div class="Post-tl"></div>\r\r
91     <div class="Post-tr"><div></div></div>\r\r
92     <div class="Post-bl"><div></div></div>\r\r
93     <div class="Post-br"><div></div></div>\r\r
94     <div class="Post-tc"><div></div></div>\r\r
95     <div class="Post-bc"><div></div></div>\r\r
96     <div class="Post-cl"><div></div></div>\r\r
97     <div class="Post-cr"><div></div></div>\r\r
98     <div class="Post-cc"></div>\r\r
99     <div class="Post-body">\r\r
100 <div class="Post-inner">\r\r
101 \r\r
102 <div class="PostContent">\r\r
103 \r\r
104         <div class="blog_more<?php echo $this->params->get('pageclass_sfx') ?>">\r\r
105                         <?php echo $this->loadTemplate('links'); ?>\r\r
106                 </div>\r\r
107 \r\r
108 </div>\r\r
109 <div class="cleared"></div>\r\r
110 \r\r
111 \r\r
112 </div>\r\r
113 \r\r
114     </div>\r\r
115 </div>\r\r
116 \r\r
117 <?php endif; ?>\r\r
118 <?php endif; ?>\r\r
119 <?php if ($this->params->def('show_pagination', 2) == 1  || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>\r\r
120 <div class="Post">\r\r
121     <div class="Post-tl"></div>\r\r
122     <div class="Post-tr"><div></div></div>\r\r
123     <div class="Post-bl"><div></div></div>\r\r
124     <div class="Post-br"><div></div></div>\r\r
125     <div class="Post-tc"><div></div></div>\r\r
126     <div class="Post-bc"><div></div></div>\r\r
127     <div class="Post-cl"><div></div></div>\r\r
128     <div class="Post-cr"><div></div></div>\r\r
129     <div class="Post-cc"></div>\r\r
130     <div class="Post-body">\r\r
131 <div class="Post-inner">\r\r
132 \r\r
133 <div class="PostContent">\r\r
134 \r\r
135         <p style="text-align: center;">\r\r
136                 <?php echo $this->pagination->getPagesLinks(); ?>\r\r
137         </p>\r\r
138 <?php if ($this->params->def('show_pagination_results', 1)) : ?>\r\r
139         <p style="text-align: center;">\r\r
140                 <?php echo $this->pagination->getPagesCounter(); ?>\r\r
141         </p>\r\r
142 <?php endif; ?>\r\r
143 \r\r
144 </div>\r\r
145 <div class="cleared"></div>\r\r
146 \r\r
147 \r\r
148 </div>\r\r
149 \r\r
150     </div>\r\r
151 </div>\r\r
152 \r\r
153 <?php endif; ?>\r\r
154 \r\r