[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/modules/mod_user/tmpl/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  mod_user
   6   *
   7   * @copyright   (C) 2019 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  use Joomla\CMS\Router\Route;
  16  use Joomla\CMS\Session\Session;
  17  use Joomla\CMS\Uri\Uri;
  18  
  19  $hideLinks = $app->input->getBool('hidemainmenu');
  20  
  21  if ($hideLinks) {
  22      return;
  23  }
  24  
  25  // Load the Bootstrap Dropdown
  26  HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle');
  27  ?>
  28  <div class="header-item-content dropdown header-profile">
  29      <button class="dropdown-toggle d-flex align-items-center ps-0 py-0" data-bs-toggle="dropdown" type="button"
  30          title="<?php echo Text::_('MOD_USER_MENU'); ?>">
  31          <div class="header-item-icon">
  32              <span class="icon-user-circle" aria-hidden="true"></span>
  33          </div>
  34          <div class="header-item-text">
  35              <?php echo Text::_('MOD_USER_MENU'); ?>
  36          </div>
  37          <span class="icon-angle-down" aria-hidden="true"></span>
  38      </button>
  39      <div class="dropdown-menu dropdown-menu-end">
  40          <div class="dropdown-header">
  41              <span class="icon-user-circle icon-fw" aria-hidden="true"></span>
  42              <?php echo Text::sprintf('MOD_USER_TITLE', $user->name); ?>
  43          </div>
  44          <?php $uri   = Uri::getInstance(); ?>
  45          <?php $route = 'index.php?option=com_users&task=user.edit&id=' . $user->id . '&return=' . base64_encode($uri) . '#attrib-user_details'; ?>
  46          <a class="dropdown-item" href="<?php echo Route::_($route); ?>">
  47              <span class="icon-user icon-fw" aria-hidden="true"></span>
  48              <?php echo Text::_('MOD_USER_EDIT_ACCOUNT'); ?>
  49          </a>
  50          <?php $route = 'index.php?option=com_users&task=user.edit&id=' . $user->id . '&return=' . base64_encode($uri) . '#attrib-accessibility'; ?>
  51          <a class="dropdown-item" href="<?php echo Route::_($route); ?>">
  52              <span class="icon-universal-access icon-fw" aria-hidden="true"></span>
  53              <?php echo Text::_('MOD_USER_ACCESSIBILITY_SETTINGS'); ?>
  54          </a>
  55          <?php $route = 'index.php?option=com_login&task=logout&amp;' . Session::getFormToken() . '=1'; ?>
  56          <a class="dropdown-item" href="<?php echo Route::_($route); ?>">
  57              <span class="icon-power-off icon-fw" aria-hidden="true"></span>
  58              <?php echo Text::_('JLOGOUT'); ?>
  59          </a>
  60      </div>
  61  </div>


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