2 defined( '_JEXEC' ) or die( 'Restricted access' );
4 $cparams = JComponentHelper::getParams ('com_media');
7 <div class="Post-body">
8 <div class="Post-inner">
10 <?php if ($this->params->get('show_page_title', 1) && !$this->contact->params->get( 'popup' ) && $this->params->get('page_title') != $this->contact->name ): ?>
11 <h2 class="PostHeaderIcon-wrapper"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_("PostHeaderIcon"), array('width' => '24', 'height' => '31')); ?> <span class="PostHeader">
12 <span class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"><?php echo $this->escape($this->params->get('page_title')); ?></span>
17 <div class="PostContent">
19 <div id="component-contact">
20 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpaneopen<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
21 <?php if ( $this->params->get( 'show_contact_list' ) && count( $this->contacts ) > 1) : ?>
23 <td colspan="2" align="center">
25 <form action="<?php echo JRoute::_('index.php') ?>" method="post" name="selectForm" id="selectForm">
26 <?php echo JText::_( 'Select Contact' ); ?>:
28 <?php echo JHTML::_('select.genericlist', $this->contacts, 'contact_id', 'class="inputbox" onchange="this.form.submit()"', 'id', 'name', $this->contact->id);?>
29 <option type="hidden" name="option" value="com_contact" />
34 <?php if ( $this->contact->name && $this->contact->params->get( 'show_name' ) ) : ?>
36 <td width="100%" class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
37 <?php echo $this->contact->name; ?>
41 <?php if ( $this->contact->con_position && $this->contact->params->get( 'show_position' ) ) : ?>
44 <?php echo $this->contact->con_position; ?>
51 <table border="0" width="100%">
54 <td rowspan="2" align="right" valign="top">
55 <?php if ( $this->contact->image && $this->contact->params->get( 'show_image' ) ) : ?>
56 <div style="float: right;">
57 <?php echo JHTML::_('image', $cparams->get('image_path') . '/'.$this->contact->image, JText::_( 'Contact' ), array('align' => 'middle')); ?>
64 <?php echo $this->loadTemplate('address'); ?>
71 <?php if ( $this->contact->params->get( 'allow_vcard' ) ) : ?>
74 <?php echo JText::_( 'Download information as a' );?>
75 <a href="<?php echo JURI::base(); ?>index.php?option=com_contact&task=vcard&contact_id=<?php echo $this->contact->id; ?>&format=raw&tmpl=component">
76 <?php echo JText::_( 'VCard' );?></a>
80 if ( $this->contact->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id))
81 echo $this->loadTemplate('form');
87 <div class="cleared"></div>