[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

   1  <?php // no direct access
   2  defined('_JEXEC') or die('Restricted access'); ?>
   3  <?php $canEdit   = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')); ?>
   4  <?php if ($this->item->state == 0) : ?>
   5  <div class="system-unpublished">
   6  <?php endif; ?>
   7  
   8  <?php if ($this->item->params->get('show_title') || $this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon') || $canEdit) : ?>
   9  <table class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  10  <tr>
  11      <?php if ($this->item->params->get('show_title')) : ?>
  12      <td class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>" width="100%">
  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              <?php echo $this->escape($this->item->title); ?>
  18          <?php endif; ?>
  19      </td>
  20      <?php endif; ?>
  21  
  22      <?php if ($this->item->params->get('show_pdf_icon')) : ?>
  23      <td align="right" width="100%" class="buttonheading">
  24      <?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?>
  25      </td>
  26      <?php endif; ?>
  27  
  28      <?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
  29      <td align="right" width="100%" class="buttonheading">
  30      <?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?>
  31      </td>
  32      <?php endif; ?>
  33  
  34      <?php if ($this->item->params->get('show_email_icon')) : ?>
  35      <td align="right" width="100%" class="buttonheading">
  36      <?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?>
  37      </td>
  38      <?php endif; ?>
  39      
  40      <?php if ($canEdit) : ?>
  41         <td align="right" width="100%" class="buttonheading">
  42         <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
  43         </td>
  44     <?php endif; ?>
  45      
  46  </tr>
  47  </table>
  48  <?php endif; ?>
  49  <?php  if (!$this->item->params->get('show_intro')) :
  50      echo $this->item->event->afterDisplayTitle;
  51  endif; ?>
  52  <?php echo $this->item->event->beforeDisplayContent; ?>
  53  <table class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  54  <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
  55  <tr>
  56      <td>
  57          <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->section->title)) : ?>
  58          <span>
  59              <?php if ($this->item->params->get('link_section')) : ?>
  60                  <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
  61              <?php endif; ?>
  62              <?php echo $this->escape($this->section->title); ?>
  63              <?php if ($this->item->params->get('link_section')) : ?>
  64                  <?php echo '</a>'; ?>
  65              <?php endif; ?>
  66                  <?php if ($this->item->params->get('show_category')) : ?>
  67                  <?php echo ' - '; ?>
  68              <?php endif; ?>
  69          </span>
  70          <?php endif; ?>
  71          <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
  72          <span>
  73              <?php if ($this->item->params->get('link_category')) : ?>
  74                  <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
  75              <?php endif; ?>
  76              <?php echo $this->escape($this->item->category); ?>
  77              <?php if ($this->item->params->get('link_category')) : ?>
  78                  <?php echo '</a>'; ?>
  79              <?php endif; ?>
  80          </span>
  81          <?php endif; ?>
  82      </td>
  83  </tr>
  84  <?php endif; ?>
  85  
  86  <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
  87  <tr>
  88      <td width="70%"  valign="top" colspan="2">
  89          <span class="small">
  90              <?php JText::printf( 'Written by', ($this->escape($this->item->created_by_alias) ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
  91          </span>
  92          &nbsp;&nbsp;
  93      </td>
  94  </tr>
  95  <?php endif; ?>
  96  
  97  <?php if ($this->item->params->get('show_create_date')) : ?>
  98  <tr>
  99      <td valign="top" colspan="2" class="createdate">
 100          <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
 101      </td>
 102  </tr>
 103  <?php endif; ?>
 104  
 105  <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
 106  <tr>
 107      <td valign="top" colspan="2">
 108          <a href="http://<?php echo $this->escape($this->item->urls) ; ?>" target="_blank">
 109              <?php echo $this->escape($this->item->urls); ?></a>
 110      </td>
 111  </tr>
 112  <?php endif; ?>
 113  
 114  <tr>
 115  <td valign="top" colspan="2">
 116  <?php if (isset ($this->item->toc)) : ?>
 117      <?php echo $this->item->toc; ?>
 118  <?php endif; ?>
 119  <?php echo $this->item->text; ?>
 120  </td>
 121  </tr>
 122  
 123  <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
 124  <tr>
 125      <td colspan="2"  class="modifydate">
 126          <?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
 127      </td>
 128  </tr>
 129  <?php endif; ?>
 130  
 131  <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
 132  <tr>
 133      <td  colspan="2">
 134          <a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
 135              <?php if ($this->item->readmore_register) :
 136                  echo JText::_('Register to read more...');
 137              elseif ($readmore = $this->item->params->get('readmore')) :
 138                  echo $readmore;
 139              else :
 140                  echo JText::sprintf('Read more...');
 141              endif; ?></a>
 142      </td>
 143  </tr>
 144  <?php endif; ?>
 145  
 146  </table>
 147  <?php if ($this->item->state == 0) : ?>
 148  </div>
 149  <?php endif; ?>
 150  <span class="article_separator">&nbsp;</span>
 151  <?php echo $this->item->event->afterDisplayContent; ?>


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