PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/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
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Administrator
  5. * @subpackage mod_status
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. // No direct access.
  10. defined('_JEXEC') or die;
  11. $output = array();
  12. // Print the logged in users.
  13. $output[] = "<span class=\"loggedin-users\">".$online_num. " " . JText::_('mod_status_users') . "</span>";
  14. // Print the inbox message.
  15. $output[] = "<span class=\"$inboxClass\"><a href=\"$inboxLink\">". $unread . " " . JText::_('mod_status_Messages'). "</a></span>";
  16. // Print the Preview link to Main site.
  17. $output[] = "<span class=\"viewsite\"><a href=\"".JURI::root()."\" target=\"_blank\">".JText::_('mod_status_View_site')."</a></span>";
  18. // Print the logout link.
  19. $output[] = "<span class=\"logout\"><a href=\"$logoutLink\">".JText::_('mod_status_Log_out')."</a></span>";
  20. // Reverse rendering order for rtl display.
  21. if ($lang->isRTL()) {
  22. $output = array_reverse($output);
  23. }
  24. // Output the items.
  25. foreach ($output as $item){
  26. echo $item;
  27. }