- md5
- b0d6f290dad148d288abfb7c87d38ac9
- sha1
- 6c2fd8971d93279ec521de913e92bc77c0d83cb4
- sha256
- 9fc91844b96cbf2fd395532b6f6c3a159582ec8a66b5945690d73c9c2b5b1df2
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$params = $this->params;
$presentation_style = $params->get('presentation_style');
$displayGroups = $params->get('show_user_custom_fields');
$userFieldGroups = array();
?>
<?php if (!$displayGroups || !$this->contactUser) : ?>
<?php return; ?>
<?php endif; ?>
<?php foreach ($this->contactUser->fields as $field) : ?>
<?php if (!in_array('-1', $displayGroups) && !in_array($field->catid, $displayGroups)) : ?>
<?php continue; ?>
<?php endif; ?>
<?php if (!key_exists($field->category_title, $userFieldGroups)) : ?>
<?php $userFieldGroups[$field->category_title] = array(); ?>
<?php endif; ?>
<?php $userFieldGroups[$field->category_title][] = $field; ?>
<?php endforeach; ?>
<?php foreach ($userFieldGroups as $categoryTitle => $fields) : ?>
<?php $id = JApplicationHelper::stringURLSafe($categoryTitle); ?>
<?php if ($presentation_style == 'sliders') : ?>
<?php echo JHtml::_('bootstrap.addSlide', 'slide-contact', $categoryTitle ?: JText::_('COM_CONTACT_USER_FIELDS'), 'display-' . $id); ?>
<?php elseif ($presentation_style == 'tabs') : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'display-profile', $categoryTitle ?: JText::_('COM_CONTACT_USER_FIELDS')); ?>
<?php elseif ($presentation_style == 'plain') : ?>
<?php echo '<h3>' . ($categoryTitle ?: JText::_('COM_CONTACT_USER_FIELDS')) . '</h3>'; ?>
<?php endif; ?>
<div class="contact-profile" id="user-custom-fields-<?php echo $id; ?>">
<dl class="dl-horizontal">
<?php foreach ($fields as $field) : ?>
<?php if (!$field->value) : ?>
<?php continue; ?>
<?php endif; ?>
<?php echo '<dt>' . $field->label . '</dt>'; ?>
<?php echo '<dd>' . $field->value . '</dd>'; ?>
<?php endforeach; ?>
</dl>
</div>
<?php if ($presentation_style == 'sliders') : ?>
<?php echo JHtml::_('bootstrap.endSlide'); ?>
<?php elseif ($presentation_style == 'tabs') : ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
<?php endforeach; ?>
No other release has this exact content. See every version of this file.