| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // no direct access 2 defined('_JEXEC') or die('Restricted access'); ?> 3 <?php if ($this->params->get('show_page_title', 1)) : ?> 4 <div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> 5 <?php echo $this->escape($this->params->get('page_title')); ?> 6 </div> 7 <?php endif; ?> 8 <table class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" cellpadding="0" cellspacing="0"> 9 <?php if ($this->params->def('num_leading_articles', 1)) : ?> 10 <tr> 11 <td valign="top"> 12 <?php for ($i = $this->pagination->limitstart; $i < ($this->pagination->limitstart + $this->params->get('num_leading_articles')); $i++) : ?> 13 <?php if ($i >= $this->total) : break; endif; ?> 14 <div> 15 <?php 16 $this->item =& $this->getItem($i, $this->params); 17 echo $this->loadTemplate('item'); 18 ?> 19 </div> 20 <?php endfor; ?> 21 </td> 22 </tr> 23 <?php else : $i = $this->pagination->limitstart; endif; ?> 24 25 <?php 26 $startIntroArticles = $this->pagination->limitstart + $this->params->get('num_leading_articles'); 27 $numIntroArticles = $startIntroArticles + $this->params->get('num_intro_articles', 4); 28 if (($numIntroArticles != $startIntroArticles) && ($i < $this->total)) : ?> 29 <tr> 30 <td valign="top"> 31 <table width="100%" cellpadding="0" cellspacing="0"> 32 <tr> 33 <?php 34 $divider = ''; 35 if ($this->params->def('multi_column_order',1)) : // order across as before 36 for ($z = 0; $z < $this->params->def('num_columns', 2); $z ++) : 37 if ($z > 0) : $divider = " column_separator"; endif; ?> 38 <?php 39 $rows = (int) ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns')); 40 $cols = ($this->params->get('num_intro_articles', 4) % $this->params->get('num_columns')); 41 ?> 42 <td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>"> 43 <?php 44 $loop = (($z < $cols)?1:0) + $rows; 45 46 for ($y = 0; $y < $loop; $y ++) : 47 $target = $i + ($y * $this->params->get('num_columns')) + $z; 48 if ($target < $this->total && $target < ($numIntroArticles)) : 49 $this->item =& $this->getItem($target, $this->params); 50 echo $this->loadTemplate('item'); 51 endif; 52 endfor; 53 ?></td> 54 <?php endfor; 55 $i = $i + $this->params->get('num_intro_articles') ; 56 else : // otherwise, order down columns, like old category blog 57 for ($z = 0; $z < $this->params->get('num_columns'); $z ++) : 58 if ($z > 0) : $divider = " column_separator"; endif; ?> 59 <td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>"> 60 <?php for ($y = 0; $y < ($this->params->get('num_intro_articles') / $this->params->get('num_columns')); $y ++) : 61 if ($i < $this->total && $i < ($numIntroArticles)) : 62 $this->item =& $this->getItem($i, $this->params); 63 echo $this->loadTemplate('item'); 64 $i ++; 65 endif; 66 endfor; ?> 67 </td> 68 <?php endfor; 69 endif;?> 70 </tr> 71 </table> 72 </td> 73 </tr> 74 <?php endif; ?> 75 <?php if ($this->params->def('num_links', 4) && ($i < $this->total)) : ?> 76 <tr> 77 <td valign="top"> 78 <div class="blog_more<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> 79 <?php 80 $this->links = array_splice($this->items, $i - $this->pagination->limitstart); 81 echo $this->loadTemplate('links'); 82 ?> 83 </div> 84 </td> 85 </tr> 86 <?php endif; ?> 87 88 <?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?> 89 <tr> 90 <td valign="top" align="center"> 91 <?php echo $this->pagination->getPagesLinks(); ?> 92 <br /><br /> 93 </td> 94 </tr> 95 <?php if ($this->params->def('show_pagination_results', 1)) : ?> 96 <tr> 97 <td valign="top" align="center"> 98 <?php echo $this->pagination->getPagesCounter(); ?> 99 </td> 100 </tr> 101 <?php endif; ?> 102 <?php endif; ?> 103 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |