- md5
- 9e44b4bc9c7eb3e2b606886d94c31f9a
- sha1
- 3461395c648cb8bd334220fa957044903f3558e6
- sha256
- 40355e94f4c90feb6698bce07bec18b9836f7e32f192c18474b556bf997e05a0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_status
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$hideLinks = $input->getBool('hidemainmenu');
$task = $input->getCmd('task');
$output = array();
// Print the Preview link to Main site.
if ($params->get('show_viewsite', 1))
{
$output[] = '<div class="btn-group viewsite">'
. '<a href="' . JUri::root() . '" target="_blank">'
. '<span class="icon-out-2"></span> ' . JText::_('JGLOBAL_VIEW_SITE')
. '</a>'
. '</div>'
. '<div class="btn-group divider"></div>';
}
// Print the link to open a new Administrator window.
if ($params->get('show_viewadmin', 0))
{
$output[] = '<div class="btn-group viewsite">'
. '<a href="' . JURI::base() . 'index.php" target="_blank">'
. '<span class="icon-out-2"></span> ' . JText::_('MOD_STATUS_FIELD_LINK_VIEWADMIN_LABEL')
. '</a>'
. '</div>'
. '<div class="btn-group divider"></div>';
}
// Print the frontend logged in users.
if ($params->get('show_loggedin_users', 1))
{
$output[] = '<div class="btn-group loggedin-users">'
. '<span class="badge">' . $online_num . '</span> '
. JText::plural('MOD_STATUS_USERS', $online_num)
. '</div>';
}
// Print the back-end logged in users.
if ($params->get('show_loggedin_users_admin', 1))
{
$output[] = '<div class="btn-group backloggedin-users">'
. '<span class="badge">' . $count . '</span> '
. JText::plural('MOD_STATUS_BACKEND_USERS', $count)
. '</div>';
}
// Print the inbox message.
if ($params->get('show_messages', 1))
{
$active = $unread ? ' badge-warning' : '';
$output[] = '<div class="btn-group hasTooltip ' . $inboxClass . '"'
. ' title="' . JText::plural('MOD_STATUS_MESSAGES', $unread) . '">'
. ($hideLinks ? '' : '<a href="' . $inboxLink . '">')
. '<span class="icon-envelope"></span> '
. '<span class="badge' . $active . '">' . $unread . '</span>'
. ($hideLinks ? '' : '</a>')
. '<div class="btn-group divider"></div>'
. '</div>';
}
// Print the logout link.
if ($task == 'edit' || $task == 'editA' || $input->getInt('hidemainmenu'))
{
$logoutLink = '';
}
else
{
$logoutLink = JRoute::_('index.php?option=com_login&task=logout&' . JSession::getFormToken() . '=1');
}
if ($params->get('show_logout', 1))
{
$output[] = '<div class="btn-group logout">'
. ($hideLinks ? '' : '<a href="' . $logoutLink . '">')
. '<span class="icon-minus-2"></span> ' . JText::_('JLOGOUT')
. ($hideLinks ? '' : '</a>')
. '</div>';
}
// Output the items.
foreach ($output as $item)
{
echo $item;
}
The same content is in 10 releases, Joomla 3.5.0-beta4 to 3.5.1. See them all, or every version of this file.