[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/templates/beez/html/com_content/section/ -> 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  $cparams = JComponentHelper::getParams ('com_media');
   4  ?>
   5  
   6  <?php if ($this->params->get('show_page_title',1)) : ?>
   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  <?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
  13  <div class="contentdescription<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  14      <?php if ($this->params->get('show_description_image') && $this->section->image) : ?>
  15      <img src="<?php echo $this->baseurl . '/' . $this->escape($cparams->get('image_path')).'/'.$this->escape($this->section->image); ?>" class="image_<?php echo $this->escape($this->section->image_position); ?>" />
  16      <?php endif; ?>
  17  
  18      <?php if ($this->params->get('show_description') && $this->section->description) :
  19          echo $this->section->description;
  20      endif; ?>
  21  
  22      <?php if ($this->params->get('show_description_image') && $this->section->image) : ?>
  23      <div class="wrap_image">&nbsp;</div>
  24      <?php endif; ?>
  25  </div>
  26  <?php endif; ?>
  27  
  28  <?php if ($this->params->def('show_categories', 1) && count($this->categories)) : ?>
  29  <ul>
  30      <?php foreach ($this->categories as $category) :
  31          if (!$this->params->get('show_empty_categories') && !$category->numitems) :
  32              continue;
  33          endif; ?>
  34          <li>
  35              <a href="<?php echo $category->link; ?>" class="category"><?php echo $this->escape($category->title); ?></a>
  36  
  37              <?php if ($this->params->get('show_cat_num_articles')) : ?>
  38              <span class="small">
  39                  ( <?php if ($category->numitems==1) {
  40                  echo $category->numitems ." ". JText::_( 'item' );    }
  41                  else {
  42                  echo $category->numitems ." ". JText::_( 'items' );} ?> )
  43              </span>
  44              <?php endif; ?>
  45  
  46              <?php if ($this->params->def('show_category_description', 1) && $category->description) : ?>
  47              <br />
  48              <?php echo $category->description; ?>
  49              <?php endif; ?>
  50      </li>
  51      <?php endforeach; ?>
  52  </ul>
  53  <?php endif;


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