Example #1
0
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Lets get some variables we will need to render the menu
$lang =& JFactory::getLanguage();
$doc =& JFactory::getDocument();
$user =& JFactory::getUser();
// If hidemainmenu is true, we don't want to render this module at all
echo JAdminSubMenu::get();
/**
 * Admin Submenu
 *
 * @package		Joomla
 * @since 1.5
 */
class JAdminSubMenu
{
    function get()
    {
        global $mainframe;
        // Lets get some variables we are going to need
        $menu = JToolBar::getInstance('submenu');
        $list = $menu->_bar;
        if (!is_array($list) || !count($list)) {