[ Index ]

PHP Cross Reference of Joomla 1.5.25

title

Body

[close]

/templates/beez/html/com_content/frontpage/ -> default.php (source)

   1  <?php // @version $Id: default.php 11917 2009-05-29 19:37:05Z ian $
   2  defined('_JEXEC') or die('Restricted access');
   3  ?>
   4  
   5  <?php if ($this->params->get('show_page_title',1)) : ?>
   6  <h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
   7      <?php echo $this->escape($this->params->get('page_title')); ?>
   8  </h1>
   9  <?php endif; ?>
  10  
  11  <div class="blog<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  12  
  13      <?php $i = $this->pagination->limitstart;
  14      $rowcount = $this->params->def('num_leading_articles', 1);
  15      for ($y = 0; $y < $rowcount && $i < $this->total; $y++, $i++) : ?>
  16          <div class="leading<?php echo $this->params->get('pageclass_sfx'); ?>">
  17              <?php $this->item =& $this->getItem($i, $this->params);
  18              echo $this->loadTemplate('item'); ?>
  19          </div>
  20          <span class="leading_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">&nbsp;</span>
  21      <?php endfor; ?>
  22  
  23      <?php $introcount = $this->params->def('num_intro_articles', 4);
  24      if ($introcount) :
  25          $colcount = $this->params->def('num_columns', 2);
  26          if ($colcount == 0) :
  27              $colcount = 1;
  28          endif;
  29          $rowcount = (int) $introcount / $colcount;
  30          $ii = 0;
  31          for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
  32              <div class="article_row<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  33                  <?php for ($z = 0; $z < $colcount && $ii < $introcount && $i < $this->total; $z++, $i++, $ii++) : ?>
  34                      <div class="article_column column<?php echo $z + 1; ?> cols<?php echo $colcount; ?>" >
  35                          <?php $this->item =& $this->getItem($i, $this->params);
  36                          echo $this->loadTemplate('item'); ?>
  37                      </div>
  38                      <span class="article_separator">&nbsp;</span>
  39                  <?php endfor; ?>
  40                  <span class="row_separator<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">&nbsp;</span>
  41              </div>
  42          <?php endfor;
  43      endif; ?>
  44  
  45      <?php $numlinks = $this->params->def('num_links', 4);
  46      if ($numlinks && $i < $this->total) : ?>
  47      <div class="blog_more<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  48          <?php $this->links = array_slice($this->items, $i - $this->pagination->limitstart, $i - $this->pagination->limitstart + $numlinks);
  49          echo $this->loadTemplate('links'); ?>
  50      </div>
  51      <?php endif; ?>
  52  
  53      <?php if ($this->params->def('show_pagination', 2) == 1  || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
  54          <?php if( $this->pagination->get('pages.total') > 1 ) : ?>
  55          <p class="counter">
  56              <?php echo $this->pagination->getPagesCounter(); ?>
  57          </p>
  58          <?php endif; ?>
  59          <?php if ($this->params->def('show_pagination_results', 1)) : ?>
  60              <?php echo $this->pagination->getPagesLinks(); ?>
  61          <?php endif; ?>
  62      <?php endif; ?>
  63  </div>


Generated: Mon Nov 14 16:47:20 2011 Cross-referenced by PHPXref 0.7.1