[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/templates/beez/html/com_content/category/ -> blog.php (source)

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


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1