[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_users/tmpl/profile/ -> default_params.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  
  16  ?>
  17  <?php $fields = $this->form->getFieldset('params'); ?>
  18  <?php if (count($fields)) : ?>
  19      <fieldset id="users-profile-custom" class="com-users-profile__params">
  20          <legend><?php echo Text::_('COM_USERS_SETTINGS_FIELDSET_LABEL'); ?></legend>
  21          <dl class="dl-horizontal">
  22              <?php foreach ($fields as $field) : ?>
  23                  <?php if (!$field->hidden) : ?>
  24                      <dt>
  25                          <?php echo $field->title; ?>
  26                      </dt>
  27                      <dd>
  28                          <?php if (HTMLHelper::isRegistered('users.' . $field->id)) : ?>
  29                              <?php echo HTMLHelper::_('users.' . $field->id, $field->value); ?>
  30                          <?php elseif (HTMLHelper::isRegistered('users.' . $field->fieldname)) : ?>
  31                              <?php echo HTMLHelper::_('users.' . $field->fieldname, $field->value); ?>
  32                          <?php elseif (HTMLHelper::isRegistered('users.' . $field->type)) : ?>
  33                              <?php echo HTMLHelper::_('users.' . $field->type, $field->value); ?>
  34                          <?php else : ?>
  35                              <?php echo HTMLHelper::_('users.value', $field->value); ?>
  36                          <?php endif; ?>
  37                      </dd>
  38                  <?php endif; ?>
  39              <?php endforeach; ?>
  40          </dl>
  41      </fieldset>
  42  <?php endif; ?>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer