- md5
- f622423db38ea199417d1bb4e46610e0
- sha1
- 4134706d5272120b2775144f0650777b1a2c1643
- sha256
- 67613a7de3fd4e85faeae6a60f84dc8a0e8ed48fc9b2f7b6f2ec1659b4e0bce9
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\String\PunycodeHelper;
/** @var \Joomla\Component\Contact\Site\View\Contact\HtmlView $this */
$icon = $this->params->get('contact_icons') == 0;
/**
* Marker_class: Class based on the selection of text, none, or icons
* jicon-text, jicon-none, jicon-icon
*/
?>
<dl class="com-contact__address contact-address dl-horizontal">
<?php
if (
($this->params->get('address_check') > 0) &&
($this->item->address || $this->item->suburb || $this->item->state || $this->item->country || $this->item->postcode)
) : ?>
<dt>
<?php if ($icon && !$this->params->get('marker_address')) : ?>
<span class="icon-address" aria-hidden="true"></span>
<?php elseif ($icon && $this->params->get('marker_address')) : ?>
<span class="jicons-image">
<?php echo $this->params->get('marker_address'); ?>
</span>
<?php endif; ?>
<span class="<?php echo $this->params->get('marker_class'); ?>"><?php echo Text::_('COM_CONTACT_ADDRESS'); ?>: </span>
</dt>
<?php if ($this->item->address && $this->params->get('show_street_address')) : ?>
<dd>
<span class="contact-street">
<?php echo nl2br($this->item->address, false); ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->suburb && $this->params->get('show_suburb')) : ?>
<dd>
<span class="contact-suburb">
<?php echo $this->item->suburb; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->state && $this->params->get('show_state')) : ?>
<dd>
<span class="contact-state">
<?php echo $this->item->state; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->postcode && $this->params->get('show_postcode')) : ?>
<dd>
<span class="contact-postcode">
<?php echo $this->item->postcode; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->country && $this->params->get('show_country')) : ?>
<dd>
<span class="contact-country">
<?php echo $this->item->country; ?>
</span>
</dd>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->item->email_to && $this->params->get('show_email')) : ?>
<dt>
<?php if ($icon && !$this->params->get('marker_email')) : ?>
<span class="icon-envelope" aria-hidden="true"></span>
<?php elseif ($icon && $this->params->get('marker_email')) : ?>
<span class="jicons-icon">
<?php echo $this->params->get('marker_email'); ?>
</span>
<?php endif; ?>
<span class="<?php echo $this->params->get('marker_class'); ?>"><?php echo Text::_('COM_CONTACT_EMAIL_LABEL'); ?>: </span>
</dt>
<dd>
<span class="contact-emailto">
<?php echo $this->item->email_to; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->telephone && $this->params->get('show_telephone')) : ?>
<dt>
<?php if ($icon && !$this->params->get('marker_telephone')) : ?>
<span class="icon-phone" aria-hidden="true"></span>
<?php elseif ($icon && $this->params->get('marker_telephone')) : ?>
<span class="jicons-image">
<?php echo $this->params->get('marker_telephone'); ?>
</span>
<?php endif; ?>
<span class="<?php echo $this->params->get('marker_class'); ?>"><?php echo Text::_('COM_CONTACT_TELEPHONE'); ?>: </span>
</dt>
<dd>
<span class="contact-telephone">
<?php echo $this->item->telephone; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->fax && $this->params->get('show_fax')) : ?>
<dt>
<?php if ($icon && !$this->params->get('marker_fax')) : ?>
<span class="icon-fax" aria-hidden="true"></span>
<?php elseif ($icon && $this->params->get('marker_fax')) : ?>
<span class="jicons-image">
<?php echo $this->params->get('marker_fax'); ?>
</span>
<?php endif; ?>
<span class="<?php echo $this->params->get('marker_class'); ?>"><?php echo Text::_('COM_CONTACT_FAX'); ?>: </span>
</dt>
<dd>
<span class="contact-fax">
<?php echo $this->item->fax; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->mobile && $this->params->get('show_mobile')) : ?>
<dt>
<?php if ($icon && !$this->params->get('marker_mobile')) : ?>
<span class="icon-mobile" aria-hidden="true"></span>
<?php elseif ($icon && $this->params->get('marker_mobile')) : ?>
<span class="jicons-image">
<?php echo $this->params->get('marker_mobile'); ?>
</span>
<?php endif; ?>
<span class="<?php echo $this->params->get('marker_class'); ?>"><?php echo Text::_('COM_CONTACT_MOBILE'); ?>: </span>
</dt>
<dd>
<span class="contact-mobile">
<?php echo $this->item->mobile; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->webpage && $this->params->get('show_webpage')) : ?>
<dt>
<?php if ($icon && !$this->params->get('marker_webpage')) : ?>
<span class="icon-home" aria-hidden="true"></span>
<?php elseif ($icon && $this->params->get('marker_webpage')) : ?>
<span class="jicons-image">
<?php echo $this->params->get('marker_webpage'); ?>
</span>
<?php endif; ?>
<span class="<?php echo $this->params->get('marker_class'); ?>"><?php echo Text::_('COM_CONTACT_WEBPAGE'); ?>: </span>
</dt>
<dd>
<span class="contact-webpage">
<a href="<?php echo $this->item->webpage; ?>" target="_blank" rel="noopener noreferrer">
<?php echo $this->escape(PunycodeHelper::urlToUTF8($this->item->webpage)); ?></a>
</span>
</dd>
<?php endif; ?>
</dl>
The same content is in 99 releases, Joomla 5.3.0-alpha2 to 6.3.0-alpha1. See them all, or every version of this file.