*/ /** * [CLASS/FUNCTION INDEX of SCRIPT] * * * * 78: class SC_alt_menu * 89: function init() * 105: function main() * 182: function printContent() * * TOTAL FUNCTIONS: 3 * (This index is automatically created/updated by the extension "extdeveval") * */ require ('init.php'); require ('template.php'); require_once (PATH_t3lib.'class.t3lib_loadmodules.php'); require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php'); require_once ('class.alt_menu_functions.inc'); /** * Script Class for rendering the vertical menu in the left side of the backend frameset * * @author Kasper Skaarhoj * @package TYPO3 * @subpackage core */ class SC_alt_menu { // Internal, Static: GPvar var $_clearCacheFiles; /** * Initialize * Loads the backend modules available for the logged in user. * * @return void */ function init() { global $TBE_MODULES; // Setting GPvars: $this->_clearCacheFiles = t3lib_div::_GP('_clearCacheFiles'); // Loads the backend modules available for the logged in user. $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules'); $this->loadModules->load($TBE_MODULES); } /** * Main content generated * * @return void */ function main() { global $BE_USER,$TYPO3_CONF_VARS,$TBE_TEMPLATE; $TBE_TEMPLATE->docType='xhtml_trans'; $TBE_TEMPLATE->divClass='vertical-menu'; $this->content.=$TBE_TEMPLATE->startPage('Vertical Backend Menu'); $backPath = $GLOBALS['BACK_PATH']; // Printing the menu $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions'); $this->content.= $alt_menuObj->topMenu($this->loadModules->modules); $this->content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_modules', $GLOBALS['BACK_PATH']); // clear cache commands for Admins if($BE_USER->isAdmin()) { $functionsArray = $alt_menuObj->adminFunctions($backPath); $this->content.='
'; // Header: Admin functions $this->content.= '

'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.adminFunctions',1). '

'; // Table with those admin functions $this->content.=' '; $rows=array(); foreach($functionsArray as $functionsArraySetup) { $rows[]=' '; } // Imploding around the divider table row: $this->content.=implode(' ',$rows); $this->content.='
'.$functionsArraySetup['icon'].' '.htmlspecialchars($functionsArraySetup['title']).'
'; $this->content.=t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_adminFunction', $GLOBALS['BACK_PATH']); $this->content.='
'; } // Printing bottons (logout button) $this->content.='
'.$alt_menuObj->topButtons(). '

['.htmlspecialchars($BE_USER->user['username']).']

'; // End page: $this->content.=$TBE_TEMPLATE->endPage(); } /** * Outputting the accumulated content to screen * * @return void */ function printContent() { echo $this->content; } } // Include extension? if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_menu.php']) { include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_menu.php']); } // Make instance: $SOBE = t3lib_div::makeInstance('SC_alt_menu'); $SOBE->init(); $SOBE->main(); $SOBE->printContent(); ?>