CoreFiles by mySites.guru
default.php38 lines, 1,309 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
1261e504546824bf7e59a5fb33250cbb
sha1
69a28fd6bd762e14e3dfac6084ab05a0c9cb7ff7
sha256
d8893dffd329039d619d1c5e2262c36f887e291df5ef08419f5354444481c1e5
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_messages
 *
 * @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\Uri\Uri;
use Joomla\CMS\Factory;

$hideLinks = $app->input->getBool('hidemainmenu');
$uri   = Uri::getInstance();
$route = 'index.php?option=com_messages&view=messages&id=' . $user->id . '&return=' . base64_encode($uri);
$app      = Factory::getApplication();
?>

<div class="header-item-content">
	<a class="d-flex align-items-stretch <?php echo ($hideLinks ? 'disabled' : 'dropdown-toggle'); ?>" <?php echo ($hideLinks ? '' : 'href="' . Route::_($route) . '"'); ?> title="<?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>">
		<div class="d-flex align-items-end mx-auto">
			<span class="fa fa-envelope" aria-hidden="true"></span>
		</div>
		<div class="tiny">
			<?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>
		</div>
		<?php $countUnread = $app->getSession()->get('messages.unread'); ?>
		<?php if ($countUnread > 0) : ?>
			<span class="badge badge-pill badge-danger"><?php echo $countUnread; ?></span>
		<?php endif; ?>
	</a>
</div>


No other release has this exact content. See every version of this file.