default_address.php
3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/* marker_class: Class based on the selection of text, none, or icons
* jicon-text, jicon-none, jicon-icon
*/
?>
<dl class="contact-address dl-horizontal">
<?php if (($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode) && ($addressCheck = $this->params->get('address_check') > 0)) : ?>
<?php if ($addressCheck === true) : ?>
<dt>
<span class="<?php echo $this->params->get('marker_class'); ?>" >
<?php echo $this->params->get('marker_address'); ?>
</span>
</dt>
<dd>
<address>
<?php endif; ?>
<?php if ($this->contact->address && $this->params->get('show_street_address')) : ?>
<span class="contact-street">
<?php echo nl2br($this->contact->address); ?>
</span>
<?php endif; ?>
<?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?>
<span class="contact-suburb">
<?php echo $this->contact->suburb; ?>
</span>
<?php endif; ?>
<?php if ($this->contact->state && $this->params->get('show_state')) : ?>
<span class="contact-state">
<?php echo $this->contact->state; ?>
</span>
<?php endif; ?>
<?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?>
<span class="contact-postcode">
<?php echo $this->contact->postcode; ?>
</span>
<?php endif; ?>
<?php if ($this->contact->country && $this->params->get('show_country')) : ?>
<span class="contact-country">
<?php echo $this->contact->country; ?>
</span>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->params->get('address_check') > 0) : ?>
</address>
</dd>
<?php endif; ?>
<?php if ($this->contact->email_to && $this->params->get('show_email')) : ?>
<dt>
<span class="<?php echo $this->params->get('marker_class'); ?>" >
<?php echo $this->params->get('marker_email'); ?>
</span>
</dt>
<dd>
<span class="contact-emailto">
<?php echo $this->contact->email_to; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
<dt>
<span class="<?php echo $this->params->get('marker_class'); ?>" >
<?php echo $this->params->get('marker_telephone'); ?>
</span>
</dt>
<dd>
<span class="contact-telephone">
<?php echo nl2br($this->contact->telephone); ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
<dt>
<span class="<?php echo $this->params->get('marker_class'); ?>" >
<?php echo $this->params->get('marker_fax'); ?>
</span>
</dt>
<dd>
<span class="contact-fax">
<?php echo nl2br($this->contact->fax); ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->contact->mobile && $this->params->get('show_mobile')) :?>
<dt>
<span class="<?php echo $this->params->get('marker_class'); ?>" >
<?php echo $this->params->get('marker_mobile'); ?>
</span>
</dt>
<dd>
<span class="contact-mobile">
<?php echo nl2br($this->contact->mobile); ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->contact->webpage && $this->params->get('show_webpage')) : ?>
<dt>
<span class="<?php echo $this->params->get('marker_class'); ?>" >
</span>
</dt>
<dd>
<span class="contact-webpage">
<a href="<?php echo $this->contact->webpage; ?>" target="_blank" rel="noopener noreferrer">
<?php echo $this->contact->webpage; ?></a>
</span>
</dd>
<?php endif; ?>
</dl>