CoreFiles by mySites.guru
default.php56 lines, 2,153 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
113760209e8bf2b9ebd4d8f136229583
sha1
c0c8f1636aceea5536418e908d335b63de6363d9
sha256
8a7fa51e5b3fece63692980e938f79ecb1b0bda55ccbef942e68b225f04b491a
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_post_installation_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;

$hideLinks = $app->input->getBool('hidemainmenu');
?>
<?php if ($user->authorise('core.manage', 'com_postinstall')) : ?>
	<div class="header-item-content dropdown d-flex">
		<button class="dropdown-toggle d-flex flex-column align-items-stretch <?php echo ($hideLinks ? 'disabled' : ''); ?>" data-toggle="dropdown" type="button" <?php echo ($hideLinks ? 'disabled' : ''); ?>
			title="<?php echo Text::_('MOD_POST_INSTALLATION_MESSAGES'); ?>">
			<div class="d-flex align-items-end mx-auto">
				<span class="fa fa-bell" aria-hidden="true"></span>
			</div>
			<div class="tiny">
				<?php echo Text::_('MOD_POST_INSTALLATION_MESSAGES'); ?>
			</div>
			<span class="fa fa-angle-down" aria-hidden="true"></span>
			<?php if (count($messages) > 0) : ?>
				<span class="badge badge-pill badge-danger"><?php echo count($messages); ?></span>
			<?php endif; ?>
		</button>
		<?php if (!$hideLinks) : ?>
		<div class="dropdown-menu dropdown-menu-right dropdown-notifications border-0">
			<div class="dropdown-header">
				<?php echo Text::_('MOD_POST_INSTALLATION_MESSAGES'); ?>
			</div>
			<?php if (empty($messages)) : ?>
				<div class="dropdown-item">
					<a href="<?php echo Route::_('index.php?option=com_postinstall&eid=' . $joomlaFilesExtensionId); ?>">
						<?php echo Text::_('COM_POSTINSTALL_LBL_NOMESSAGES_TITLE'); ?>
					</a>
				</div>
			<?php endif; ?>
			<?php foreach ($messages as $message) : ?>
				<div class="dropdown-item">
					<?php $route = 'index.php?option=com_postinstall&amp;eid=' . $joomlaFilesExtensionId; ?>
					<?php $title = Text::_($message->title_key); ?>
					<a href="<?php echo Route::_($route); ?>" title="<?php echo $title; ?>">
						<?php echo $title; ?>
					</a>
				</div>
			<?php endforeach; ?>
		</div>
		<?php endif; ?>
	</div>
<?php endif; ?>

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