- md5
- 832b4af034b544c0c441fc0bc5884fdd
- sha1
- 386c9778fca52d41e163cf3fcc0b3594a650f63e
- sha256
- b49b616810ad1af26123c7466f116b5b5100c8deea85f05f56f0826bb2e74b2e
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_status
*
* @copyright Copyright (C) 2005 - 2018 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\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\Multilangstatus\Administrator\Helper\MultilangstatusAdminHelper;
$hideLinks = $app->input->getBool('hidemainmenu');
// Check if the multilangstatus module is present in the site
if (class_exists(MultilangstatusAdminHelper::class))
{
// Check if the module is present and enabled in the extensions table
if (MultilangstatusAdminHelper::isEnabled())
{
// Publish/Unpublish the module if it exists in the modules table
// depending on the status of the languagefilter
MultilangstatusAdminHelper::publish();
}
}
?>
<div class="ml-auto">
<ul class="nav text-center">
<?php if (class_exists(MultilangstatusAdminHelper::class)) : ?>
<?php if (Multilanguage::isEnabled() && MultilangstatusAdminHelper::isEnabled()) : ?>
<?php $module = ModuleHelper::getModule('mod_multilangstatus'); ?>
<?php echo ModuleHelper::renderModule($module); ?>
<?php endif; ?>
<?php endif; ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo Uri::root(); ?>" title="<?php echo Text::sprintf('MOD_STATUS_PREVIEW', $sitename); ?>" target="_blank">
<span class="fa fa-external-link-square" aria-hidden="true"></span>
<span class="sr-only"><?php echo HTMLHelper::_('string.truncate', $sitename, 28, false, false); ?></span>
</a>
</li>
<li class="nav-item">
<a class="nav-link dropdown-toggle" href="<?php echo Route::_('index.php?option=com_messages'); ?>" title="<?php echo Text::_('MOD_STATUS_PRIVATE_MESSAGES'); ?>">
<span class="fa fa-envelope" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('MOD_STATUS_PRIVATE_MESSAGES'); ?></span>
<?php $countUnread = Factory::getSession()->get('messages.unread'); ?>
<?php if ($countUnread > 0) : ?>
<span class="badge badge-pill badge-success"><?php echo $countUnread; ?></span>
<?php endif; ?>
</a>
</li>
<?php if ($user->authorise('core.manage', 'com_postinstall')) : ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" title="<?php echo Text::_('MOD_STATUS_POST_INSTALLATION_MESSAGES'); ?>">
<span class="fa fa-bell" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('MOD_STATUS_POST_INSTALLATION_MESSAGES'); ?></span>
<?php if (count($messages) > 0) : ?>
<span class="badge badge-pill badge-success"><?php echo count($messages); ?></span>
<?php endif; ?>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-notifications">
<div class="list-group">
<?php if (empty($messages)) : ?>
<p class="list-group-item text-center">
<strong><?php echo Text::_('COM_POSTINSTALL_LBL_NOMESSAGES_TITLE'); ?></strong>
</p>
<?php endif; ?>
<?php foreach ($messages as $message) : ?>
<a href="<?php echo Route::_('index.php?option=com_postinstall&eid=700'); ?>" class="list-group-item list-group-item-action">
<h5 class="list-group-item-heading"><?php echo HTMLHelper::_('string.truncate', Text::_($message->title_key), 28, false, false); ?></h5>
<p class="list-group-item-text small">
<?php echo HTMLHelper::_('string.truncate', Text::_($message->description_key), 120, false, false); ?>
</p>
</a>
<?php endforeach; ?>
</div>
</div>
</li>
<?php endif; ?>
<li class="nav-item dropdown header-profile">
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" title="<?php echo Text::_('MOD_STATUS_USER_MENU'); ?>">
<span class="fa fa-user" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('MOD_STATUS_USER_MENU'); ?></span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="dropdown-item header-profile-user">
<span class="fa fa-user" aria-hidden="true"></span>
<?php echo $user->name; ?>
</div>
<?php $route = 'index.php?option=com_admin&task=profile.edit&id=' . $user->id; ?>
<a class="dropdown-item" href="<?php echo Route::_($route); ?>">
<?php echo Text::_('MOD_STATUS_EDIT_ACCOUNT'); ?></a>
<a class="dropdown-item" href="<?php echo Route::_('index.php?option=com_login&task=logout&'
. Session::getFormToken() . '=1'); ?>"><?php echo Text::_('JLOGOUT'); ?></a>
</div>
</li>
</ul>
</div>
No other release has this exact content. See every version of this file.