getBool('hidemainmenu');
$task = $input->getCmd('task');
$output = array();
// Print the Preview link to Main site.
if ($params->get('show_viewsite', 1)) :
$output[] = '
';
endif;
// Print the logged in users.
if ($params->get('show_loggedin_users', 1)) :
$output[] = '' . JText::plural('MOD_STATUS_USERS', $online_num) . '
';
endif;
// Print the back-end logged in users.
if ($params->get('show_loggedin_users_admin', 1)) :
$output[] = '' . JText::plural('MOD_STATUS_BACKEND_USERS', $count) . '
';
endif;
// Print the inbox message.
if ($params->get('show_messages', 1)) :
$output[] = '';
endif;
// 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[] = '';
endif;
// Output the items.
foreach ($output as $item) :
echo $item;
endforeach;