__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2016 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\Application\ApplicationHelper;
use Joomla\CMS\Language\Text;
/** @var \Joomla\Component\Contact\Site\View\Contact\HtmlView $this */
$params = $this->item->params;
$displayGroups = $params->get('show_user_custom_fields');
$userFieldGroups = [];
?>
<?php if (!$displayGroups || !$this->contactUser) : ?>
<?php return; ?>
<?php endif; ?>
<?php foreach ($this->contactUser->jcfields as $field) : ?>
<?php if ($field->value && (in_array('-1', $displayGroups) || in_array($field->group_id, $displayGroups))) : ?>
<?php $userFieldGroups[$field->group_title][] = $field; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php foreach ($userFieldGroups as $groupTitle => $fields) : ?>
<?php $id = ApplicationHelper::stringURLSafe($groupTitle); ?>
<?php echo '<h3>' . ($groupTitle ?: Text::_('COM_CONTACT_USER_FIELDS')) . '</h3>'; ?>
<div class="com-contact__user-fields 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 if ($field->params->get('showlabel')) : ?>
<?php echo '<dt>' . Text::_($field->label) . '</dt>'; ?>
<?php endif; ?>
<?php echo '<dd>' . $field->value . '</dd>'; ?>
<?php endforeach; ?>
</dl>
</div>
<?php endforeach; ?>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| default.php | File | 7.82 KB | 0664 |
|
| default.xml | File | 10.59 KB | 0664 |
|
| default_address.php | File | 6.34 KB | 0664 |
|
| default_articles.php | File | 945 B | 0664 |
|
| default_form.php | File | 2.32 KB | 0664 |
|
| default_links.php | File | 1.13 KB | 0664 |
|
| default_profile.php | File | 1.99 KB | 0664 |
|
| default_user_custom_fields.php | File | 1.69 KB | 0664 |
|