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[] = '
' . '' . '' . JText::_('JGLOBAL_VIEW_SITE') . '' . '' . '
'; } // Print the link to open a new Administrator window. if ($params->get('show_viewadmin', 0)) { $output[] = '
' . '' . '' . JText::_('MOD_STATUS_FIELD_LINK_VIEWADMIN_LABEL') . '' . '' . '
'; } // Print logged in user count based on the shared session state if (JFactory::getConfig()->get('shared_session', '0')) { // Print the frontend logged in users. if ($params->get('show_loggedin_users', 1)) { $output[] = '
' . '' . $total_users . '' . JText::plural('MOD_STATUS_TOTAL_USERS', $total_users) . '' . '
'; } } else { // Print the frontend logged in users. if ($params->get('show_loggedin_users', 1)) { $output[] = '
' . '' . $online_num . '' . JText::plural('MOD_STATUS_USERS', $online_num) . '' . '
'; } // Print the backend logged in users. if ($params->get('show_loggedin_users_admin', 1)) { $output[] = '
' . '' . $count . '' . JText::plural('MOD_STATUS_BACKEND_USERS', $count) . '' . '
'; } } // Print the inbox message. if ($params->get('show_messages', 1)) { $active = $unread ? ' badge-warning' : ''; $output[] = '
' . ($hideLinks ? '' : '') . '' . $unread . '' . JText::plural('MOD_STATUS_MESSAGES_LABEL', $unread) . ($hideLinks ? '' : '') . '' . '
'; } // 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[] = '
' . ($hideLinks ? '' : '') . '' . JText::_('JLOGOUT') . ($hideLinks ? '' : '') . '
'; } // Output the items. foreach ($output as $item) { echo $item; }