- md5
- 56875225b5bb8f2363e93529b40c341c
- sha1
- a9e6f208245e59c78d0afff6ab862d1d5fa40f47
- sha256
- 90ca4233d563dd7d459a5e686b87be492fd2a1a1b1835677227eec0b344d0717
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_user
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
$hideLinks = $app->input->getBool('hidemainmenu');
?>
<div class="header-item-content dropdown header-profile d-flex">
<button class="dropdown-toggle d-flex flex-column align-items-stretch <?php echo ($hideLinks ? 'disabled' : ''); ?>" data-toggle="dropdown" type="button" <?php echo ($hideLinks ? 'disabled' : ''); ?>
title="<?php echo Text::_('MOD_USER_MENU'); ?>">
<div class="d-flex align-items-end mx-auto">
<span class="fa fa-user-circle" aria-hidden="true"></span>
</div>
<div class="tiny">
<?php echo Text::_('MOD_USER_MENU'); ?>
</div>
<span class="fa fa-angle-down" aria-hidden="true"></span>
</button>
<div class="dropdown-menu dropdown-menu-right icons-left">
<div class="dropdown-header"><?php echo $user->name; ?></div>
<?php $uri = Uri::getInstance(); ?>
<?php $route = 'index.php?option=com_users&task=user.edit&id=' . $user->id . '&return=' . base64_encode($uri); ?>
<div class="dropdown-item">
<a href="<?php echo Route::_($route); ?>">
<span class="fa fa-user"></span>
<?php echo Text::_('MOD_USER_EDIT_ACCOUNT'); ?>
</a>
</div>
<div class="dropdown-item">
<?php // TODO: route to accessibility settings ?>
<a href="#">
<span class="fa fa-universal-access"></span>
<?php echo Text::_('MOD_USER_ACCESSIBILITY_SETTINGS'); ?>
</a>
</div>
<div class="dropdown-item">
<?php $route = 'index.php?option=com_login&task=logout&' . Session::getFormToken() . '=1'; ?>
<a href="<?php echo Route::_($route); ?>">
<span class="fa fa-power-off"></span>
<?php echo Text::_('JLOGOUT'); ?>
</a>
</div>
</div>
</div>
The same content is in 2 releases, Joomla 4.0.0-alpha11 to 4.0.0-alpha12. See them all, or every version of this file.