CoreFiles by mySites.guru
default.php34 lines, 987 bytes, from Joomla_4.2.4-Stable-Full_Package.zip
Raw History Compare with 4.2.3
md5
903f0ee8b577baa8b012e666a060ed58
sha1
620710a14997c1a6e709183024b4daa282722954
sha256
46ff055235a4df5e9f14943e700566883ea53322bf611de56b2173dff49e9939
<?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 19 releases, Joomla 4.2.0-beta3 to 4.2.9. See them all, or every version of this file.