|
10 | 10 | defined('_JEXEC') or die; |
11 | 11 |
|
12 | 12 | $cparams = JComponentHelper::getParams('com_media'); |
13 | | - |
| 13 | +$tparams = $this->params; |
14 | 14 | jimport('joomla.html.html.bootstrap'); |
15 | 15 | ?> |
| 16 | + |
16 | 17 | <div class="contact<?php echo $this->pageclass_sfx?>" itemscope itemtype="https://schema.org/Person"> |
17 | | - <?php if ($this->params->get('show_page_heading')) : ?> |
| 18 | + <?php if ($tparams->get('show_page_heading')) : ?> |
18 | 19 | <h1> |
19 | | - <?php echo $this->escape($this->params->get('page_heading')); ?> |
| 20 | + <?php echo $this->escape($tparams->get('page_heading')); ?> |
20 | 21 | </h1> |
21 | 22 | <?php endif; ?> |
22 | 23 |
|
23 | | - <?php if ($this->contact->name && $this->params->get('show_name')) : ?> |
| 24 | + <?php if ($this->contact->name && $tparams->get('show_name')) : ?> |
24 | 25 | <div class="page-header"> |
25 | 26 | <h2> |
26 | 27 | <?php if ($this->item->published == 0) : ?> |
|
31 | 32 | </div> |
32 | 33 | <?php endif; ?> |
33 | 34 |
|
34 | | - <?php if ($this->params->get('show_contact_category') == 'show_no_link') : ?> |
| 35 | + <?php $show_contact_category = $tparams->get('show_contact_category'); ?> |
| 36 | + |
| 37 | + <?php if ($show_contact_category == 'show_no_link') : ?> |
35 | 38 | <h3> |
36 | 39 | <span class="contact-category"><?php echo $this->contact->category_title; ?></span> |
37 | 40 | </h3> |
38 | | - <?php endif; ?> |
39 | | - |
40 | | - <?php echo $this->item->event->afterDisplayTitle; ?> |
41 | | - |
42 | | - <?php if ($this->params->get('show_contact_category') == 'show_with_link') : ?> |
| 41 | + <?php elseif ($show_contact_category == 'show_with_link') : ?> |
43 | 42 | <?php $contactLink = ContactHelperRoute::getCategoryRoute($this->contact->catid); ?> |
44 | 43 | <h3> |
45 | 44 | <span class="contact-category"><a href="<?php echo $contactLink; ?>"> |
|
48 | 47 | </h3> |
49 | 48 | <?php endif; ?> |
50 | 49 |
|
51 | | - <?php if ($this->params->get('show_contact_list') && count($this->contacts) > 1) : ?> |
| 50 | + <?php echo $this->item->event->afterDisplayTitle; ?> |
| 51 | + |
| 52 | + <?php if ($tparams->get('show_contact_list') && count($this->contacts) > 1) : ?> |
52 | 53 | <form action="#" method="get" name="selectForm" id="selectForm"> |
53 | 54 | <?php echo JText::_('COM_CONTACT_SELECT_CONTACT'); ?> |
54 | | - <?php echo JHtml::_('select.genericlist', $this->contacts, 'id', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link);?> |
| 55 | + <?php echo JHtml::_('select.genericlist', $this->contacts, 'id', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link); ?> |
55 | 56 | </form> |
56 | 57 | <?php endif; ?> |
57 | 58 |
|
58 | | - <?php if ($this->params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> |
| 59 | + <?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> |
59 | 60 | <?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> |
60 | 61 | <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?> |
61 | 62 | <?php endif; ?> |
62 | 63 |
|
63 | 64 | <?php echo $this->item->event->beforeDisplayContent; ?> |
| 65 | + |
| 66 | + <?php $presentation_style = $tparams->get('presentation_style'); ?> |
64 | 67 |
|
65 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 68 | + <?php if ($presentation_style == 'sliders') : ?> |
66 | 69 | <?php echo JHtml::_('bootstrap.startAccordion', 'slide-contact', array('active' => 'basic-details')); ?> |
67 | | - <?php endif; ?> |
68 | | - |
69 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
70 | | - <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'basic-details')); ?> |
71 | | - <?php endif; ?> |
72 | | - |
73 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
74 | 70 | <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_DETAILS'), 'basic-details'); ?> |
75 | | - <?php endif; ?> |
76 | | - |
77 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 71 | + <?php elseif ($presentation_style == 'tabs') : ?> |
| 72 | + <?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'basic-details')); ?> |
78 | 73 | <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'basic-details', JText::_('COM_CONTACT_DETAILS')); ?> |
| 74 | + <?php elseif ($presentation_style == 'plain') : ?> |
| 75 | + <?php echo '<h3>' . JText::_('COM_CONTACT_DETAILS') . '</h3>'; ?> |
79 | 76 | <?php endif; ?> |
80 | 77 |
|
81 | | - <?php if ($this->params->get('presentation_style') == 'plain'):?> |
82 | | - <?php echo '<h3>' . JText::_('COM_CONTACT_DETAILS') . '</h3>'; ?> |
83 | | - <?php endif; ?> |
84 | | - |
85 | | - <?php if ($this->contact->image && $this->params->get('show_image')) : ?> |
| 78 | + <?php if ($this->contact->image && $tparams->get('show_image')) : ?> |
86 | 79 | <div class="thumbnail pull-right"> |
87 | 80 | <?php echo JHtml::_('image', $this->contact->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('align' => 'middle', 'itemprop' => 'image')); ?> |
88 | 81 | </div> |
89 | 82 | <?php endif; ?> |
90 | 83 |
|
91 | | - <?php if ($this->contact->con_position && $this->params->get('show_position')) : ?> |
| 84 | + <?php if ($this->contact->con_position && $tparams->get('show_position')) : ?> |
92 | 85 | <dl class="contact-position dl-horizontal"> |
93 | 86 | <dd itemprop="jobTitle"> |
94 | 87 | <?php echo $this->contact->con_position; ?> |
|
98 | 91 |
|
99 | 92 | <?php echo $this->loadTemplate('address'); ?> |
100 | 93 |
|
101 | | - <?php if ($this->params->get('allow_vcard')) : ?> |
102 | | - <?php echo JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS');?> |
| 94 | + <?php if ($tparams->get('allow_vcard')) : ?> |
| 95 | + <?php echo JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?> |
103 | 96 | <a href="<?php echo JRoute::_('index.php?option=com_contact&view=contact&id=' . $this->contact->id . '&format=vcf'); ?>"> |
104 | | - <?php echo JText::_('COM_CONTACT_VCARD');?></a> |
| 97 | + <?php echo JText::_('COM_CONTACT_VCARD'); ?></a> |
105 | 98 | <?php endif; ?> |
106 | 99 |
|
107 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 100 | + <?php if ($presentation_style == 'sliders') : ?> |
108 | 101 | <?php echo JHtml::_('bootstrap.endSlide'); ?> |
109 | | - <?php endif; ?> |
110 | | - |
111 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 102 | + <?php elseif ($presentation_style == 'tabs') : ?> |
112 | 103 | <?php echo JHtml::_('bootstrap.endTab'); ?> |
113 | 104 | <?php endif; ?> |
114 | 105 |
|
115 | | - <?php if ($this->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?> |
116 | | - |
117 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 106 | + <?php if ($tparams->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?> |
| 107 | + <?php if ($presentation_style == 'sliders') : ?> |
118 | 108 | <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_EMAIL_FORM'), 'display-form'); ?> |
119 | | - <?php endif; ?> |
120 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 109 | + <?php elseif ($presentation_style == 'tabs') : ?> |
121 | 110 | <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-form', JText::_('COM_CONTACT_EMAIL_FORM')); ?> |
| 111 | + <?php elseif ($presentation_style == 'plain') : ?> |
| 112 | + <?php echo '<h3>' . JText::_('COM_CONTACT_EMAIL_FORM') . '</h3>'; ?> |
122 | 113 | <?php endif; ?> |
123 | 114 |
|
124 | | - <?php if ($this->params->get('presentation_style') == 'plain'): ?> |
125 | | - <?php echo '<h3>' . JText::_('COM_CONTACT_EMAIL_FORM') . '</h3>'; ?> |
126 | | - <?php endif; ?> |
127 | | - |
128 | | - <?php echo $this->loadTemplate('form'); ?> |
| 115 | + <?php echo $this->loadTemplate('form'); ?> |
129 | 116 |
|
130 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 117 | + <?php if ($presentation_style == 'sliders') : ?> |
131 | 118 | <?php echo JHtml::_('bootstrap.endSlide'); ?> |
132 | | - <?php endif; ?> |
133 | | - |
134 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 119 | + <?php elseif ($presentation_style == 'tabs') : ?> |
135 | 120 | <?php echo JHtml::_('bootstrap.endTab'); ?> |
136 | 121 | <?php endif; ?> |
137 | 122 | <?php endif; ?> |
138 | 123 |
|
139 | | - <?php if ($this->params->get('show_links')) : ?> |
| 124 | + <?php if ($tparams->get('show_links')) : ?> |
140 | 125 | <?php echo $this->loadTemplate('links'); ?> |
141 | 126 | <?php endif; ?> |
142 | 127 |
|
143 | | - <?php if ($this->params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?> |
144 | | - |
145 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 128 | + <?php if ($tparams->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?> |
| 129 | + <?php if ($presentation_style == 'sliders') : ?> |
146 | 130 | <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('JGLOBAL_ARTICLES'), 'display-articles'); ?> |
147 | | - <?php endif; ?> |
148 | | - |
149 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 131 | + <?php elseif ($presentation_style == 'tabs') : ?> |
150 | 132 | <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-articles', JText::_('JGLOBAL_ARTICLES')); ?> |
151 | | - <?php endif; ?> |
152 | | - |
153 | | - <?php if ($this->params->get('presentation_style') == 'plain'):?> |
154 | | - <?php echo '<h3>' . JText::_('JGLOBAL_ARTICLES') . '</h3>'; ?> |
| 133 | + <?php elseif ($presentation_style == 'plain') : ?> |
| 134 | + <?php echo '<h3>' . JText::_('JGLOBAL_ARTICLES') . '</h3>'; ?> |
155 | 135 | <?php endif; ?> |
156 | 136 |
|
157 | 137 | <?php echo $this->loadTemplate('articles'); ?> |
158 | 138 |
|
159 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 139 | + <?php if ($presentation_style == 'sliders') : ?> |
160 | 140 | <?php echo JHtml::_('bootstrap.endSlide'); ?> |
161 | | - <?php endif; ?> |
162 | | - |
163 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 141 | + <?php elseif ($presentation_style == 'tabs') : ?> |
164 | 142 | <?php echo JHtml::_('bootstrap.endTab'); ?> |
165 | 143 | <?php endif; ?> |
166 | | - |
167 | 144 | <?php endif; ?> |
168 | 145 |
|
169 | | - <?php if ($this->params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?> |
170 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 146 | + <?php if ($tparams->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?> |
| 147 | + <?php if ($presentation_style == 'sliders') : ?> |
171 | 148 | <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_PROFILE'), 'display-profile'); ?> |
172 | | - <?php endif; ?> |
173 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 149 | + <?php elseif ($presentation_style == 'tabs') : ?> |
174 | 150 | <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-profile', JText::_('COM_CONTACT_PROFILE')); ?> |
175 | | - <?php endif; ?> |
176 | | - <?php if ($this->params->get('presentation_style') == 'plain'):?> |
177 | | - <?php echo '<h3>' . JText::_('COM_CONTACT_PROFILE') . '</h3>'; ?> |
| 151 | + <?php elseif ($presentation_style == 'plain') : ?> |
| 152 | + <?php echo '<h3>' . JText::_('COM_CONTACT_PROFILE') . '</h3>'; ?> |
178 | 153 | <?php endif; ?> |
179 | 154 |
|
180 | 155 | <?php echo $this->loadTemplate('profile'); ?> |
181 | 156 |
|
182 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 157 | + <?php if ($presentation_style == 'sliders') : ?> |
183 | 158 | <?php echo JHtml::_('bootstrap.endSlide'); ?> |
184 | | - <?php endif; ?> |
185 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 159 | + <?php elseif ($presentation_style == 'tabs') : ?> |
186 | 160 | <?php echo JHtml::_('bootstrap.endTab'); ?> |
187 | 161 | <?php endif; ?> |
188 | 162 | <?php endif; ?> |
189 | 163 |
|
190 | | - <?php if ($this->contact->misc && $this->params->get('show_misc')) : ?> |
191 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 164 | + <?php if ($this->contact->misc && $tparams->get('show_misc')) : ?> |
| 165 | + <?php if ($presentation_style == 'sliders') : ?> |
192 | 166 | <?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', JText::_('COM_CONTACT_OTHER_INFORMATION'), 'display-misc'); ?> |
193 | | - <?php endif; ?> |
194 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 167 | + <?php elseif ($presentation_style == 'tabs') : ?> |
195 | 168 | <?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-misc', JText::_('COM_CONTACT_OTHER_INFORMATION')); ?> |
196 | | - <?php endif; ?> |
197 | | - <?php if ($this->params->get('presentation_style') == 'plain'):?> |
198 | | - <?php echo '<h3>' . JText::_('COM_CONTACT_OTHER_INFORMATION') . '</h3>'; ?> |
| 169 | + <?php elseif ($presentation_style == 'plain') : ?> |
| 170 | + <?php echo '<h3>' . JText::_('COM_CONTACT_OTHER_INFORMATION') . '</h3>'; ?> |
199 | 171 | <?php endif; ?> |
200 | 172 |
|
201 | 173 | <div class="contact-miscinfo"> |
202 | 174 | <dl class="dl-horizontal"> |
203 | 175 | <dt> |
204 | | - <span class="<?php echo $this->params->get('marker_class'); ?>"> |
205 | | - <?php echo $this->params->get('marker_misc'); ?> |
| 176 | + <span class="<?php echo $tparams->get('marker_class'); ?>"> |
| 177 | + <?php echo $tparams->get('marker_misc'); ?> |
206 | 178 | </span> |
207 | 179 | </dt> |
208 | 180 | <dd> |
|
213 | 185 | </dl> |
214 | 186 | </div> |
215 | 187 |
|
216 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 188 | + <?php if ($presentation_style == 'sliders') : ?> |
217 | 189 | <?php echo JHtml::_('bootstrap.endSlide'); ?> |
218 | | - <?php endif; ?> |
219 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 190 | + <?php elseif ($presentation_style == 'tabs') : ?> |
220 | 191 | <?php echo JHtml::_('bootstrap.endTab'); ?> |
221 | 192 | <?php endif; ?> |
222 | | - |
223 | 193 | <?php endif; ?> |
224 | 194 |
|
225 | | - <?php if ($this->params->get('presentation_style') == 'sliders') : ?> |
| 195 | + <?php if ($presentation_style == 'sliders') : ?> |
226 | 196 | <?php echo JHtml::_('bootstrap.endAccordion'); ?> |
227 | | - <?php endif; ?> |
228 | | - <?php if ($this->params->get('presentation_style') == 'tabs') : ?> |
| 197 | + <?php elseif ($presentation_style == 'tabs') : ?> |
229 | 198 | <?php echo JHtml::_('bootstrap.endTabSet'); ?> |
230 | 199 | <?php endif; ?> |
| 200 | + |
231 | 201 | <?php echo $this->item->event->afterDisplayContent; ?> |
232 | 202 | </div> |
0 commit comments