[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/templates/ja_purity/html/com_content/article/ -> default.php (source)

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


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