[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_content/views/section/tmpl/ -> default.php (source)

   1  <?php // no direct access
   2  defined('_JEXEC') or die('Restricted access');
   3  $cparams =& JComponentHelper::getParams('com_media');
   4  ?>
   5  <?php if ($this->params->get('show_page_title', 1)) : ?>
   6  <div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
   7      <?php echo $this->escape($this->params->get('page_title')); ?>
   8  </div>
   9  <?php endif; ?>
  10  <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="contentpane<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  11  <tr>
  12      <td valign="top" class="contentdescription<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" colspan="2">
  13      <?php if ($this->params->get('show_description_image') && $this->section->image) : ?>
  14          <img src="<?php echo $this->baseurl . '/' . $cparams->get('image_path') . '/'.  $this->section->image;?>" align="<?php echo $this->section->image_position;?>" hspace="6" alt="<?php echo $this->section->image;?>" />
  15      <?php endif; ?>
  16      <?php if ($this->params->get('show_description') && $this->section->description) : ?>
  17          <?php echo $this->section->description; ?>
  18      <?php endif; ?>
  19      </td>
  20  </tr>
  21  <tr>
  22      <td colspan="2">
  23      <?php if ($this->params->get('show_categories', 1)) : ?>
  24      <ul>
  25      <?php foreach ($this->categories as $category) : ?>
  26          <?php if (!$this->params->get('show_empty_categories') && !$category->numitems) continue; ?>
  27          <li>
  28              <a href="<?php echo $category->link; ?>" class="category">
  29                  <?php echo $this->escape($category->title);?></a>
  30              <?php if ($this->params->get('show_cat_num_articles')) : ?>
  31              &nbsp;
  32              <span class="small">
  33                  ( <?php if ($category->numitems==1) {
  34                  echo $category->numitems ." ". JText::_( 'item' );}
  35                  else {
  36                  echo $category->numitems ." ". JText::_( 'items' );} ?> )
  37              </span>
  38              <?php endif; ?>
  39              <?php if ($this->params->def('show_category_description', 1) && $category->description) : ?>
  40              <br />
  41              <?php echo $category->description; ?>
  42              <?php endif; ?>
  43          </li>
  44      <?php endforeach; ?>
  45      </ul>
  46      <?php endif; ?>
  47      </td>
  48  </tr>
  49  </table>


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