| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // @version $Id: default_address.php 12387 2009-06-30 01:17:44Z ian $ 2 defined('_JEXEC') or die('Restricted access'); 3 ?> 4 5 <div class="contact_address"> 6 <!--open contact_address div --> 7 <?php 8 9 $show_address = (($this->contact->params->get('address_check') > 0) && 10 ($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) || 11 (($this->contact->email_to && $this->contact->params->get('show_email')) || $this->contact->telephone || $this->contact->fax ); 12 13 if ($show_address): 14 echo '<address>'; 15 endif; 16 17 if (($this->contact->params->get('address_check') > 0) && ($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : 18 if ( $this->contact->params->get('address_check') > 0) : 19 if (( $this->contact->params->get('contact_icons') ==0) || ($this->contact->params->get('contact_icons') ==1)): 20 echo '<span class="marker">'.$this->contact->params->get('marker_address').'</span> <br />'; 21 endif; 22 endif; 23 24 if ($this->contact->address && $this->contact->params->get('show_street_address')) : 25 echo nl2br($this->escape($this->contact->address)).'<br />'; 26 endif; 27 28 if ($this->contact->suburb && $this->contact->params->get('show_suburb')) : 29 echo $this->escape($this->contact->suburb).'<br />'; 30 endif; 31 32 if ($this->contact->state && $this->contact->params->get('show_state')) : 33 echo $this->escape($this->contact->state).'<br />'; 34 endif; 35 36 if ($this->contact->country && $this->contact->params->get('show_country')) : 37 echo $this->escape($this->contact->country).'<br />'; 38 endif; 39 40 if ($this->contact->postcode && $this->contact->params->get('show_postcode')) : 41 echo $this->escape($this->contact->postcode).'<br />'; 42 endif; 43 44 endif; 45 46 if (($this->contact->email_to && $this->contact->params->get('show_email')) || $this->contact->telephone || $this->contact->fax ) : 47 if ($this->contact->email_to && $this->contact->params->get('show_email')) : 48 if (( $this->contact->params->get('contact_icons') ==0) || ( $this->contact->params->get('contact_icons') ==1)): 49 echo '<span class="marker">'.$this->contact->params->get('marker_email').'</span>'; 50 endif; 51 52 echo $this->contact->email_to.'<br />'; 53 endif; 54 55 if ($this->contact->telephone && $this->contact->params->get('show_telephone')) : 56 if (( $this->contact->params->get('contact_icons') ==0) || ( $this->contact->params->get('contact_icons') ==1)): 57 echo '<span class="marker">'.$this->contact->params->get('marker_telephone').'</span>'; 58 endif; 59 echo nl2br($this->escape($this->contact->telephone)).'<br />'; 60 endif; 61 62 if ($this->contact->fax && $this->contact->params->get('show_fax')) : 63 if (( $this->contact->params->get('contact_icons') ==0) || ( $this->contact->params->get('contact_icons') ==1)): 64 echo '<span class="marker">'.$this->contact->params->get('marker_fax').'</span>'; 65 endif; 66 echo nl2br($this->escape($this->contact->fax)).'<br />'; 67 endif; 68 69 if ( $this->contact->mobile && $this->contact->params->get( 'show_mobile' ) ) : 70 if (( $this->contact->params->get('contact_icons') ==0) || ( $this->contact->params->get('contact_icons') ==1)): 71 echo '<span class="marker">'.$this->contact->params->get( 'marker_mobile' ).'</span>'; 72 endif; 73 echo nl2br($this->escape($this->contact->mobile)).'<br />'; 74 endif; 75 76 if ($this->contact->webpage && $this->contact->params->get('show_webpage')) : 77 echo '<a href="'.$this->escape($this->contact->webpage).'" target="_blank"> '.$this->escape($this->contact->webpage).'</a><br />'; 78 echo '</address>'; 79 endif; 80 endif; 81 82 if ($show_address): 83 echo '</address>'; 84 endif; ?> 85 86 </div> 87 <!--close contact_address div --> 88 <?php if ($this->contact->misc && $this->contact->params->get('show_misc')) : ?> 89 <p> 90 <?php if (( $this->contact->params->get('contact_icons') ==0) || ( $this->contact->params->get('contact_icons') ==1)): ?> 91 <span class="marker"><?php echo $this->contact->params->get('marker_misc'); ?></span> <?php echo nl2br($this->contact->misc); ?> 92 <?php endif; ?> 93 </p> 94 <?php endif; ?> 95
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |