Feature #18063 » alt_menu.patch
typo3conf/ext/gt3uipatching/ux_alt_menu.php 2008-01-25 14:42:14.000000000 +0100 | ||
---|---|---|
$this->content.=$TBE_TEMPLATE->startPage('Vertical Backend Menu');
|
||
$backPath = $GLOBALS['BACK_PATH'];
|
||
// Printing the menu
|
||
// Printing the menu
|
||
$alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
|
||
$this->content.= $alt_menuObj->topMenu($this->loadModules->modules);
|
||
// clear cache commands for Admins
|
||
$theMods = $this->loadModules->modules;
|
||
// Hook: Allow to process modules array before returning it for rendering
|
||
$hookObjectsArr = array();
|
||
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/alt_menu.php']['preProcessModulesArrayBeforeRendering'])) {
|
||
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/alt_menu.php']['preProcessModulesArrayBeforeRendering'] as $classRef) {
|
||
$hookObjectsArr[] = t3lib_div::getUserObj($classRef);
|
||
}
|
||
}
|
||
reset($hookObjectsArr);
|
||
while (list(,$hookObj) = each($hookObjectsArr)) {
|
||
if (method_exists($hookObj,'preProcessModulesArrayBeforeRendering')) {
|
||
$theMods = $hookObj->preProcessModulesArrayBeforeRendering($theMods);
|
||
}
|
||
}
|
||
|
||
$this->content.= $alt_menuObj->topMenu($theMods);
|
||
// clear cache commands for Admins
|
||
if($BE_USER->isAdmin()) { // && $BE_USER->workspace===0 NOT used anyway because under a workspace developers might still like to clear cache!
|
||
$functionsArray = $alt_menuObj->adminFunctions($backPath);
|
||