[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage com_users 6 * 7 * @copyright (C) 2009 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\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Text; 16 use Joomla\CMS\Router\Route; 17 18 /** @var Joomla\Component\Users\Site\View\Profile\HtmlView $this */ 19 20 HTMLHelper::_('bootstrap.tooltip', '.hasTooltip'); 21 22 // Load user_profile plugin language 23 $lang = Factory::getLanguage(); 24 $lang->load('plg_user_profile', JPATH_ADMINISTRATOR); 25 26 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 27 $wa = $this->document->getWebAssetManager(); 28 $wa->useScript('keepalive') 29 ->useScript('form.validate'); 30 31 ?> 32 <div class="com-users-profile__edit profile-edit"> 33 <?php if ($this->params->get('show_page_heading')) : ?> 34 <div class="page-header"> 35 <h1> 36 <?php echo $this->escape($this->params->get('page_heading')); ?> 37 </h1> 38 </div> 39 <?php endif; ?> 40 41 <form id="member-profile" action="<?php echo Route::_('index.php?option=com_users'); ?>" method="post" class="com-users-profile__edit-form form-validate form-horizontal well" enctype="multipart/form-data"> 42 <?php // Iterate through the form fieldsets and display each one. ?> 43 <?php foreach ($this->form->getFieldsets() as $group => $fieldset) : ?> 44 <?php $fields = $this->form->getFieldset($group); ?> 45 <?php if (count($fields)) : ?> 46 <fieldset> 47 <?php // If the fieldset has a label set, display it as the legend. ?> 48 <?php if (isset($fieldset->label)) : ?> 49 <legend> 50 <?php echo Text::_($fieldset->label); ?> 51 </legend> 52 <?php endif; ?> 53 <?php if (isset($fieldset->description) && trim($fieldset->description)) : ?> 54 <p> 55 <?php echo $this->escape(Text::_($fieldset->description)); ?> 56 </p> 57 <?php endif; ?> 58 <?php // Iterate through the fields in the set and display them. ?> 59 <?php foreach ($fields as $field) : ?> 60 <?php echo $field->renderField(); ?> 61 <?php endforeach; ?> 62 </fieldset> 63 <?php endif; ?> 64 <?php endforeach; ?> 65 66 <?php if ($this->mfaConfigurationUI) : ?> 67 <fieldset class="com-users-profile__multifactor"> 68 <legend><?php echo Text::_('COM_USERS_PROFILE_MULTIFACTOR_AUTH'); ?></legend> 69 <?php echo $this->mfaConfigurationUI ?> 70 </fieldset> 71 <?php endif; ?> 72 73 <div class="com-users-profile__edit-submit control-group"> 74 <div class="controls"> 75 <button type="submit" class="btn btn-primary validate" name="task" value="profile.save"> 76 <span class="icon-check" aria-hidden="true"></span> 77 <?php echo Text::_('JSAVE'); ?> 78 </button> 79 <button type="submit" class="btn btn-danger" name="task" value="profile.cancel" formnovalidate> 80 <span class="icon-times" aria-hidden="true"></span> 81 <?php echo Text::_('JCANCEL'); ?> 82 </button> 83 <input type="hidden" name="option" value="com_users"> 84 </div> 85 </div> 86 <?php echo HTMLHelper::_('form.token'); ?> 87 </form> 88 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |