[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_content/views/category/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         <?php if ($canEdit) : ?>
  40         <td align="right" width="100%" class="buttonheading">
  41         <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
  42         </td>
  43     <?php endif; ?>
  44  </tr>
  45  </table>
  46  <?php endif; ?>
  47  <?php  if (!$this->item->params->get('show_intro')) :
  48      echo $this->item->event->afterDisplayTitle;
  49  endif; ?>
  50  <?php echo $this->item->event->beforeDisplayContent; ?>
  51  <table class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  52  <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
  53  <tr>
  54      <td>
  55          <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
  56          <span>
  57              <?php if ($this->item->params->get('link_section')) : ?>
  58                  <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
  59              <?php endif; ?>
  60              <?php echo $this->escape($this->item->section); ?>
  61              <?php if ($this->item->params->get('link_section')) : ?>
  62                  <?php echo '</a>'; ?>
  63              <?php endif; ?>
  64                  <?php if ($this->item->params->get('show_category')) : ?>
  65                  <?php echo ' - '; ?>
  66              <?php endif; ?>
  67          </span>
  68          <?php endif; ?>
  69          <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
  70          <span>
  71              <?php if ($this->item->params->get('link_category')) : ?>
  72                  <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
  73              <?php endif; ?>
  74              <?php echo $this->escape($this->item->category); ?>
  75              <?php if ($this->item->params->get('link_category')) : ?>
  76                  <?php echo '</a>'; ?>
  77              <?php endif; ?>
  78          </span>
  79          <?php endif; ?>
  80      </td>
  81  </tr>
  82  <?php endif; ?>
  83  
  84  <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
  85  <tr>
  86      <td width="70%"  valign="top" colspan="2">
  87          <span class="small">
  88              <?php JText::printf( 'Written by', ($this->escape($this->item->created_by_alias) ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
  89          </span>
  90          &nbsp;&nbsp;
  91      </td>
  92  </tr>
  93  <?php endif; ?>
  94  
  95  <?php if ($this->item->params->get('show_create_date')) : ?>
  96  <tr>
  97      <td valign="top" colspan="2" class="createdate">
  98          <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
  99      </td>
 100  </tr>
 101  <?php endif; ?>
 102  
 103  <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
 104  <tr>
 105      <td valign="top" colspan="2">
 106          <a href="http://<?php echo $this->escape($this->item->urls) ; ?>" target="_blank">
 107              <?php echo $this->escape($this->item->urls); ?></a>
 108      </td>
 109  </tr>
 110  <?php endif; ?>
 111  
 112  <tr>
 113  <td valign="top" colspan="2">
 114  <?php if (isset ($this->item->toc)) : ?>
 115      <?php echo $this->item->toc; ?>
 116  <?php endif; ?>
 117  <?php echo $this->item->text; ?>
 118  </td>
 119  </tr>
 120  
 121  <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
 122  <tr>
 123      <td colspan="2"  class="modifydate">
 124          <?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
 125      </td>
 126  </tr>
 127  <?php endif; ?>
 128  
 129  <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
 130  <tr>
 131      <td  colspan="2">
 132          <a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
 133              <?php if ($this->item->readmore_register) :
 134                  echo JText::_('Register to read more...');
 135              elseif ($readmore = $this->item->params->get('readmore')) :
 136                  echo $readmore;
 137              else :
 138                  echo JText::sprintf('Read more...');
 139              endif; ?></a>
 140      </td>
 141  </tr>
 142  <?php endif; ?>
 143  
 144  </table>
 145  <?php if ($this->item->state == 0) : ?>
 146  </div>
 147  <?php endif; ?>
 148  <span class="article_separator">&nbsp;</span>
 149  <?php echo $this->item->event->afterDisplayContent; ?>


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