[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

   1  <?php // @version $Id: default_item.php 11917 2009-05-29 19:37:05Z ian $
   2  defined('_JEXEC') or die('Restricted access');
   3  ?>
   4  
   5  <?php if ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) : ?>
   6  <div class="contentpaneopen_edit<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
   7      <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
   8  </div>
   9  <?php endif; ?>
  10  
  11  <?php if ($this->item->params->get('show_title')) : ?>
  12  <h2 class="contentheading<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
  13      <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
  14          <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
  15              <?php echo $this->escape($this->item->title); ?></a>
  16      <?php else :
  17          echo $this->escape($this->item->title);
  18      endif; ?>
  19  </h2>
  20  <?php endif; ?>
  21  
  22  <?php if (!$this->item->params->get('show_intro')) :
  23      echo $this->item->event->afterDisplayTitle;
  24  endif; ?>
  25  
  26  <?php if ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?>
  27  <p class="buttonheading">
  28      <img src="<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/trans.gif" alt="<?php echo JText::_('attention open in a new window'); ?>" />
  29      <?php if ($this->item->params->get('show_pdf_icon')) :
  30          echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access);
  31      endif;
  32      if ($this->item->params->get('show_print_icon')) :
  33          echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access);
  34      endif;
  35      if ($this->item->params->get('show_email_icon')) :
  36          echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access);
  37      endif; ?>
  38  </p>
  39  <?php endif; ?>
  40  
  41  <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
  42  <p class="pageinfo">
  43      <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
  44      <span>
  45          <?php if ($this->item->params->get('link_section')) : ?>
  46              <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
  47          <?php endif; ?>
  48          <?php echo $this->escape($this->item->section); ?>
  49          <?php if ($this->item->params->get('link_section')) : ?>
  50              <?php echo '</a>'; ?>
  51          <?php endif; ?>
  52          <?php if ($this->item->params->get('show_category')) : ?>
  53              <?php echo ' - '; ?>
  54          <?php endif; ?>
  55      </span>
  56      <?php endif; ?>
  57      <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
  58      <span>
  59          <?php if ($this->item->params->get('link_category')) : ?>
  60              <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
  61          <?php endif; ?>
  62          <?php echo $this->escape($this->item->category); ?>
  63          <?php if ($this->item->params->get('link_category')) : ?>
  64              <?php echo '</a>'; ?>
  65          <?php endif; ?>
  66      </span>
  67      <?php endif; ?>
  68  </p>
  69  <?php endif; ?>
  70  
  71  <?php if ((intval($this->item->modified) !=0 && $this->item->params->get('show_modify_date')) || ($this->item->params->get('show_author') && ($this->item->author != "")) || ($this->item->params->get('show_create_date'))) : ?>
  72  <p class="iteminfo">
  73      <?php if (intval($this->item->modified) !=0 && $this->item->params->get('show_modify_date')) : ?>
  74      <span class="modifydate">
  75          <?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
  76      </span>
  77      <?php endif; ?>
  78  
  79      <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
  80      <span class="createdby">
  81          <?php JText::printf('Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author)); ?>
  82      </span>
  83      <?php endif; ?>
  84  
  85      <?php if ($this->item->params->get('show_create_date')) : ?>
  86      <span class="createdate">
  87          <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
  88      </span>
  89      <?php endif; ?>
  90  </p>
  91  <?php endif; ?>
  92  
  93  <?php echo $this->item->event->beforeDisplayContent; ?>
  94  
  95  <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
  96  <span class="small">
  97      <a href="<?php echo $this->escape($this->item->urls); ?>" target="_blank">
  98          <?php echo $this->escape($this->item->urls); ?></a>
  99  </span>
 100  <?php endif; ?>
 101  
 102  <?php if (isset ($this->item->toc)) :
 103      echo $this->item->toc;
 104  endif; ?>
 105  
 106  <?php echo JFilterOutput::ampReplace($this->item->text); ?>
 107  
 108  <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
 109  <p>
 110      <a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
 111          <?php if ($this->item->readmore_register) :
 112              echo JText::_('Register to read more...');
 113          elseif ($readmore = $this->item->params->get('readmore')) :
 114              echo $readmore;
 115          else :
 116              echo JText::sprintf('Read more', $this->escape($this->item->title));
 117          endif; ?></a>
 118  </p>
 119  <?php endif; ?>
 120  
 121  <?php echo $this->item->event->afterDisplayContent;


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