2 defined('_JEXEC') or die('Restricted access');
3 $cparams =& JComponentHelper::getParams('com_media');
5 <?php if ($this->params->get('show_page_title')) : ?>
7 <div class="Post-tl"></div>
8 <div class="Post-tr"><div></div></div>
9 <div class="Post-bl"><div></div></div>
10 <div class="Post-br"><div></div></div>
11 <div class="Post-tc"><div></div></div>
12 <div class="Post-bc"><div></div></div>
13 <div class="Post-cl"><div></div></div>
14 <div class="Post-cr"><div></div></div>
15 <div class="Post-cc"></div>
16 <div class="Post-body">
17 <div class="Post-inner">
19 <h2 class="PostHeaderIcon-wrapper"> <span class="PostHeader">
20 <?php echo $this->escape($this->params->get('page_title')); ?>
31 <?php if (($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1))
32 && strlen($this->section->description) > 0 && strlen($this->section->image) > 0) :?>
34 <div class="Post-tl"></div>
35 <div class="Post-tr"><div></div></div>
36 <div class="Post-bl"><div></div></div>
37 <div class="Post-br"><div></div></div>
38 <div class="Post-tc"><div></div></div>
39 <div class="Post-bc"><div></div></div>
40 <div class="Post-cl"><div></div></div>
41 <div class="Post-cr"><div></div></div>
42 <div class="Post-cc"></div>
43 <div class="Post-body">
44 <div class="Post-inner">
46 <div class="PostContent">
48 <?php if ($this->params->get('show_description_image') && $this->section->image) : ?>
49 <img src="<?php echo $this->baseurl . '/' . $cparams->get('image_path') . '/'. $this->section->image;?>" align="<?php echo $this->section->image_position;?>" hspace="6" alt="" />
51 <?php if ($this->params->get('show_description') && $this->section->description) : ?>
52 <?php echo $this->section->description; ?>
56 <div class="cleared"></div>
65 <?php if ($this->params->def('num_leading_articles', 1)) : ?>
66 <table class="blog<?php echo $this->params->get('pageclass_sfx'); ?>" cellpadding="0" cellspacing="0">
69 <?php for ($i = $this->pagination->limitstart; $i < ($this->pagination->limitstart + $this->params->get('num_leading_articles')); $i++) : ?>
70 <?php if ($i >= $this->total) : break; endif; ?>
73 $this->item =& $this->getItem($i, $this->params);
74 echo $this->loadTemplate('item');
81 <?php else : $i = $this->pagination->limitstart; endif; ?>
84 $startIntroArticles = $this->pagination->limitstart + $this->params->get('num_leading_articles');
85 $numIntroArticles = $startIntroArticles + $this->params->get('num_intro_articles', 4);
86 if (($numIntroArticles != $startIntroArticles) && ($i < $this->total)) : ?>
87 <table width="100%" cellpadding="0" cellspacing="0">
91 if ($this->params->get('multi_column_order')) : // order across, like front page
92 for ($z = 0; $z < $this->params->def('num_columns', 2); $z ++) :
93 if ($z > 0) : $divider = " column_separator"; endif; ?>
95 $rows = (int) ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns'));
96 $cols = ($this->params->get('num_intro_articles', 4) % $this->params->get('num_columns'));
99 width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%"
100 class="article_column<?php echo $divider ?>">
102 $loop = (($z < $cols)?1:0) + $rows;
104 for ($y = 0; $y < $loop; $y ++) :
105 $target = $i + ($y * $this->params->get('num_columns')) + $z;
106 if ($target < $this->total && $target < ($numIntroArticles)) :
107 $this->item =& $this->getItem($target, $this->params);
108 echo $this->loadTemplate('item');
113 $i = $i + $this->params->get('num_intro_articles', 4) ;
114 else : // otherwise, order down, same as before (default behaviour)
115 for ($z = 0; $z < $this->params->get('num_columns'); $z ++) :
116 if ($z > 0) : $divider = " column_separator"; endif; ?>
117 <td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>">
118 <?php for ($y = 0; $y < ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns')); $y ++) :
119 if ($i < $this->total && $i < ($numIntroArticles)) :
120 $this->item =& $this->getItem($i, $this->params);
121 echo $this->loadTemplate('item');
131 <?php if ($this->params->def('num_links', 4) && ($i < $this->total)) : ?>
133 <div class="Post-tl"></div>
134 <div class="Post-tr"><div></div></div>
135 <div class="Post-bl"><div></div></div>
136 <div class="Post-br"><div></div></div>
137 <div class="Post-tc"><div></div></div>
138 <div class="Post-bc"><div></div></div>
139 <div class="Post-cl"><div></div></div>
140 <div class="Post-cr"><div></div></div>
141 <div class="Post-cc"></div>
142 <div class="Post-body">
143 <div class="Post-inner">
145 <div class="PostContent">
148 $this->links = array_splice($this->items, $i - $this->pagination->limitstart);
149 echo $this->loadTemplate('links');
153 <div class="cleared"></div>
163 <?php if ($this->params->def('show_pagination', 2)) : ?>
165 <div class="Post-tl"></div>
166 <div class="Post-tr"><div></div></div>
167 <div class="Post-bl"><div></div></div>
168 <div class="Post-br"><div></div></div>
169 <div class="Post-tc"><div></div></div>
170 <div class="Post-bc"><div></div></div>
171 <div class="Post-cl"><div></div></div>
172 <div class="Post-cr"><div></div></div>
173 <div class="Post-cc"></div>
174 <div class="Post-body">
175 <div class="Post-inner">
177 <div class="PostContent">
179 <?php echo $this->pagination->getPagesLinks(); ?>
182 <div class="cleared"></div>
191 <?php if ($this->params->def('show_pagination_results', 1)) : ?>
193 <div class="Post-tl"></div>
194 <div class="Post-tr"><div></div></div>
195 <div class="Post-bl"><div></div></div>
196 <div class="Post-br"><div></div></div>
197 <div class="Post-tc"><div></div></div>
198 <div class="Post-bc"><div></div></div>
199 <div class="Post-cl"><div></div></div>
200 <div class="Post-cr"><div></div></div>
201 <div class="Post-cc"></div>
202 <div class="Post-body">
203 <div class="Post-inner">
205 <div class="PostContent">
207 <?php echo $this->pagination->getPagesCounter(); ?>
210 <div class="cleared"></div>