/administrator/modules/mod_status/tmpl/default.php
https://github.com/joebushi/joomla · PHP · 35 lines · 13 code · 8 blank · 14 comment · 1 complexity · 2f42a3e621574ee4e7584f866131d6ca MD5 · raw file
- <?php
- /**
- * @version $Id$
- * @package Joomla.Administrator
- * @subpackage mod_status
- * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- // No direct access.
- defined('_JEXEC') or die;
- $output = array();
- // Print the logged in users.
- $output[] = "<span class=\"loggedin-users\">".$online_num. " " . JText::_('mod_status_users') . "</span>";
- // Print the inbox message.
- $output[] = "<span class=\"$inboxClass\"><a href=\"$inboxLink\">". $unread . " " . JText::_('mod_status_Messages'). "</a></span>";
- // Print the Preview link to Main site.
- $output[] = "<span class=\"viewsite\"><a href=\"".JURI::root()."\" target=\"_blank\">".JText::_('mod_status_View_site')."</a></span>";
- // Print the logout link.
- $output[] = "<span class=\"logout\"><a href=\"$logoutLink\">".JText::_('mod_status_Log_out')."</a></span>";
- // Reverse rendering order for rtl display.
- if ($lang->isRTL()) {
- $output = array_reverse($output);
- }
- // Output the items.
- foreach ($output as $item){
- echo $item;
- }