[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

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


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