CoreFiles by mySites.guru
default.php35 lines, 1,180 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
9b7a0d10d1755fb68c826d9f12673f67
sha1
2a911d74d81d710a7dcd0aa834098c1a36b31756
sha256
6302c5fc5617d9759b28985b94ad335c51fe33fa65810563cd9113ba84a4affb
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_messages
 *
 * @copyright   Copyright (C) 2005 - 2020 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="fas fa-envelope" aria-hidden="true"></span>
		</div>
		<div class="tiny">
			<?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>
		</div>
		<?php if ($countUnread > 0) : ?>
			<span class="badge badge-danger"><?php echo $countUnread; ?></span>
		<?php endif; ?>
	</a>
</div>


The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.