- md5
- 05af86591189d93517b9e0da7ee990c8
- sha1
- ef7a3e83cc929f993d91e2f1f3c2fa44a33ac010
- sha256
- dd8558284139517b1f34e8ef90dd5310c0ea6f0349561669086493faa382329c
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
<?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))
{
// Gets the FrontEnd Main page Uri
$frontEndUri = JUri::getInstance(JUri::root());
$frontEndUri->setScheme(((int) JFactory::getApplication()->get('force_ssl', 0) === 2) ? 'https' : 'http');
$output[] = '<div class="btn-group viewsite">'
. '<a href="' . $frontEndUri->toString() . '" 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 9 releases, Joomla 3.6.0-beta1 to 3.6.2. See them all, or every version of this file.