CoreFiles by mySites.guru
default.php34 lines, 935 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
20bba92a07f812956a2f188637195a89
sha1
c68daf79c947ed0d47d11e761938519cf3f471d8
sha256
d7afab537f8b1f1384f8495980937d962ed66645c53823bcda9c8106823cf2a4
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_messages
 *
 * @copyright   (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @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;

$hideLinks = $app->input->getBool('hidemainmenu');

if ($hideLinks || $countUnread < 1)
{
	return;
}

$route = 'index.php?option=com_messages&view=messages';
?>
<a class="header-item-content" href="<?php echo Route::_($route); ?>" title="<?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>">
	<div class="header-item-icon">
		<div class="w-auto">
			<span class="icon-envelope icon-fw" aria-hidden="true"></span>
			<small class="header-item-count"><?php echo $countUnread; ?></small>
		</div>
	</div>
	<div class="header-item-text">
		<?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>
	</div>
</a>

The same content is in 49 releases, Joomla 4.0.0-rc1 to 4.2.0-beta2. See them all, or every version of this file.