CoreFiles by mySites.guru
default.php36 lines, 1,260 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
20176d5809018e1a06a4fcb827d48b1a
sha1
8f6778e5b5c2e0a0bd4187a5d0849195ee224493
sha256
2b0130ae9ec1d03f48433debec313398e9bbc5a6ff344930d2c12c6cb0438159
<?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;

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

<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.