[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage com_contact 6 * 7 * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Language\Text; 14 use Joomla\CMS\String\PunycodeHelper; 15 16 $icon = $this->params->get('contact_icons') == 0; 17 18 /** 19 * Marker_class: Class based on the selection of text, none, or icons 20 * jicon-text, jicon-none, jicon-icon 21 */ 22 ?> 23 <dl class="com-contact__address contact-address dl-horizontal" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> 24 <?php if ( 25 ($this->params->get('address_check') > 0) && 26 ($this->item->address || $this->item->suburb || $this->item->state || $this->item->country || $this->item->postcode) 27 ) : ?> 28 <dt> 29 <?php if ($icon && !$this->params->get('marker_address')) : ?> 30 <span class="icon-address" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_ADDRESS'); ?></span> 31 <?php else : ?> 32 <span class="<?php echo $this->params->get('marker_class'); ?>"> 33 <?php echo $this->params->get('marker_address'); ?> 34 </span> 35 <?php endif; ?> 36 </dt> 37 38 <?php if ($this->item->address && $this->params->get('show_street_address')) : ?> 39 <dd> 40 <span class="contact-street" itemprop="streetAddress"> 41 <?php echo nl2br($this->item->address, false); ?> 42 </span> 43 </dd> 44 <?php endif; ?> 45 46 <?php if ($this->item->suburb && $this->params->get('show_suburb')) : ?> 47 <dd> 48 <span class="contact-suburb" itemprop="addressLocality"> 49 <?php echo $this->item->suburb; ?> 50 </span> 51 </dd> 52 <?php endif; ?> 53 <?php if ($this->item->state && $this->params->get('show_state')) : ?> 54 <dd> 55 <span class="contact-state" itemprop="addressRegion"> 56 <?php echo $this->item->state; ?> 57 </span> 58 </dd> 59 <?php endif; ?> 60 <?php if ($this->item->postcode && $this->params->get('show_postcode')) : ?> 61 <dd> 62 <span class="contact-postcode" itemprop="postalCode"> 63 <?php echo $this->item->postcode; ?> 64 </span> 65 </dd> 66 <?php endif; ?> 67 <?php if ($this->item->country && $this->params->get('show_country')) : ?> 68 <dd> 69 <span class="contact-country" itemprop="addressCountry"> 70 <?php echo $this->item->country; ?> 71 </span> 72 </dd> 73 <?php endif; ?> 74 <?php endif; ?> 75 76 <?php if ($this->item->email_to && $this->params->get('show_email')) : ?> 77 <dt> 78 <?php if ($icon && !$this->params->get('marker_email')) : ?> 79 <span class="icon-envelope" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_EMAIL_LABEL'); ?></span> 80 <?php else : ?> 81 <span class="<?php echo $this->params->get('marker_class'); ?>"> 82 <?php echo $this->params->get('marker_email'); ?> 83 </span> 84 <?php endif; ?> 85 </dt> 86 <dd> 87 <span class="contact-emailto"> 88 <?php echo $this->item->email_to; ?> 89 </span> 90 </dd> 91 <?php endif; ?> 92 93 <?php if ($this->item->telephone && $this->params->get('show_telephone')) : ?> 94 <dt> 95 <?php if ($icon && !$this->params->get('marker_telephone')) : ?> 96 <span class="icon-phone" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_TELEPHONE'); ?></span> 97 <?php else : ?> 98 <span class="<?php echo $this->params->get('marker_class'); ?>"> 99 <?php echo $this->params->get('marker_telephone'); ?> 100 </span> 101 <?php endif; ?> 102 </dt> 103 <dd> 104 <span class="contact-telephone" itemprop="telephone"> 105 <?php echo $this->item->telephone; ?> 106 </span> 107 </dd> 108 <?php endif; ?> 109 <?php if ($this->item->fax && $this->params->get('show_fax')) : ?> 110 <dt> 111 <?php if ($icon && !$this->params->get('marker_fax')) : ?> 112 <span class="icon-fax" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_FAX'); ?></span> 113 <?php else : ?> 114 <span class="<?php echo $this->params->get('marker_class'); ?>"> 115 <?php echo $this->params->get('marker_fax'); ?> 116 </span> 117 <?php endif; ?> 118 </dt> 119 <dd> 120 <span class="contact-fax" itemprop="faxNumber"> 121 <?php echo $this->item->fax; ?> 122 </span> 123 </dd> 124 <?php endif; ?> 125 <?php if ($this->item->mobile && $this->params->get('show_mobile')) : ?> 126 <dt> 127 <?php if ($icon && !$this->params->get('marker_mobile')) : ?> 128 <span class="icon-mobile" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_MOBILE'); ?></span> 129 <?php else : ?> 130 <span class="<?php echo $this->params->get('marker_class'); ?>"> 131 <?php echo $this->params->get('marker_mobile'); ?> 132 </span> 133 <?php endif; ?> 134 </dt> 135 <dd> 136 <span class="contact-mobile" itemprop="telephone"> 137 <?php echo $this->item->mobile; ?> 138 </span> 139 </dd> 140 <?php endif; ?> 141 <?php if ($this->item->webpage && $this->params->get('show_webpage')) : ?> 142 <dt> 143 <?php if ($icon && !$this->params->get('marker_webpage')) : ?> 144 <span class="icon-home" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_WEBPAGE'); ?></span> 145 <?php else : ?> 146 <span class="<?php echo $this->params->get('marker_class'); ?>"> 147 <?php echo $this->params->get('marker_webpage'); ?> 148 </span> 149 <?php endif; ?> 150 </dt> 151 <dd> 152 <span class="contact-webpage"> 153 <a href="<?php echo $this->item->webpage; ?>" target="_blank" rel="noopener noreferrer" itemprop="url"> 154 <?php echo PunycodeHelper::urlToUTF8($this->item->webpage); ?></a> 155 </span> 156 </dd> 157 <?php endif; ?> 158 </dl>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |