[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/templates/beez/html/com_contact/contact/ -> default.php (source)

   1  <?php // @version $Id: default.php 11917 2009-05-29 19:37:05Z ian $
   2  defined('_JEXEC') or die('Restricted access');
   3  $cparams = JComponentHelper::getParams ('com_media');
   4  ?>
   5  
   6  <?php if ($this->params->get('show_page_title',1) && $this->params->get('page_title') != $this->contact->name) : ?>
   7  <h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
   8      <?php echo $this->escape($this->params->get('page_title')); ?>
   9  </h1>
  10  <?php endif; ?>
  11  
  12  <div class="contact<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  13      <?php if ($this->params->get('show_contact_list') && count($this->contacts) > 1) : ?>
  14      <form method="post" name="selectForm" id="selectForm">
  15          <?php echo JText::_('Select Contact'); ?>
  16          <br />
  17          <?php echo JHTML::_('select.genericlist', $this->contacts, 'contact_id', 'class="inputbox" onchange="this.form.submit()"', 'id', 'name', $this->contact->id); ?>
  18          <input type="hidden" name="option" value="com_contact" />
  19      </form>
  20      <?php endif; ?>
  21  
  22      <?php if ($this->contact->name && $this->contact->params->get('show_name')) : ?>
  23      <p>
  24          <?php echo $this->escape($this->contact->name); ?>
  25      </p>
  26      <?php endif; ?>
  27  
  28      <?php if ($this->contact->con_position && $this->contact->params->get('show_position')) : ?>
  29      <p>
  30          <?php echo $this->escape($this->contact->con_position); ?>
  31      </p>
  32      <?php endif; ?>
  33  
  34      <?php if ($this->contact->image && $this->contact->params->get('show_image')) : ?>
  35      <div style="float: right;">
  36          <?php echo JHTML::_('image', 'images/stories' . '/'.$this->escape($this->contact->image), JText::_( 'Contact' ), array('align' => 'middle')); ?>
  37      </div>
  38      <?php endif; ?>
  39  
  40      <?php echo $this->loadTemplate('address'); ?>
  41  
  42      <?php if ( $this->contact->params->get('allow_vcard')) : ?>
  43      <p>
  44          <?php echo JText::_('Download information as a'); ?>
  45          <a href="index.php?option=com_contact&amp;task=vcard&amp;contact_id=<?php echo (int)$this->contact->id; ?>&amp;format=raw">
  46              <?php echo JText::_('VCard'); ?></a>
  47      </p>
  48      <?php endif; ?>
  49  
  50      <?php if ($this->contact->params->get('show_email_form')) :
  51          echo $this->loadTemplate('form');
  52      endif; ?>
  53  </div>


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