[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_content/views/archive/tmpl/ -> default_items.php (source)

   1  <?php // no direct access
   2  defined('_JEXEC') or die('Restricted access'); ?>
   3  <ul id="archive-list" style="list-style: none;">
   4  <?php foreach ($this->items as $item) : ?>
   5      <li class="row<?php echo ($item->odd +1 ); ?>">
   6          <h4 class="contentheading">
   7              <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug)); ?>">
   8                  <?php echo $this->escape($item->title); ?></a>
   9          </h4>
  10  
  11          <?php if (($this->params->get('show_section') && $item->sectionid) || ($this->params->get('show_category') && $item->catid)) : ?>
  12              <div>
  13              <?php if ($this->params->get('show_section') && $item->sectionid && isset($item->section)) : ?>
  14                  <span>
  15                  <?php if ($this->params->get('link_section')) : ?>
  16                      <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($item->sectionid)).'">'; ?>
  17                  <?php endif; ?>
  18  
  19                  <?php echo $this->escape($item->section); ?>
  20  
  21                  <?php if ($this->params->get('link_section')) : ?>
  22                      <?php echo '</a>'; ?>
  23                  <?php endif; ?>
  24  
  25                  <?php if ($this->params->get('show_category')) : ?>
  26                      <?php echo ' - '; ?>
  27                  <?php endif; ?>
  28                  </span>
  29              <?php endif; ?>
  30              <?php if ($this->params->get('show_category') && $item->catid) : ?>
  31                  <span>
  32                  <?php if ($this->params->get('link_category')) : ?>
  33                      <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug, $item->sectionid)).'">'; ?>
  34                  <?php endif; ?>
  35                  <?php echo $this->escape($item->category); ?>
  36                  <?php if ($this->params->get('link_category')) : ?>
  37                      <?php echo '</a>'; ?>
  38                  <?php endif; ?>
  39                  </span>
  40              <?php endif; ?>
  41              </div>
  42          <?php endif; ?>
  43  
  44          <h5 class="metadata">
  45          <?php if ($this->params->get('show_create_date')) : ?>
  46              <span class="created-date">
  47                  <?php echo JText::_('Created') .': '.  JHTML::_( 'date', $item->created, JText::_('DATE_FORMAT_LC2')) ?>
  48              </span>
  49              <?php endif; ?>
  50              <?php if ($this->params->get('show_author')) : ?>
  51              <span class="author">
  52                  <?php echo JText::_('Author').': '; echo $this->escape($item->created_by_alias) ? $this->escape($item->created_by_alias) : $this->escape($item->author); ?>
  53              </span>
  54          <?php endif; ?>
  55          </h5>
  56          <div class="intro">
  57              <?php echo substr(strip_tags($item->introtext), 0, 255);  ?>...
  58          </div>
  59      </li>
  60  <?php endforeach; ?>
  61  </ul>
  62  <div id="navigation">
  63      <span><?php echo $this->pagination->getPagesLinks(); ?></span>
  64      <span><?php echo $this->pagination->getPagesCounter(); ?></span>
  65  </div>


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