Project

General

Profile

Bug #18949 » path_4.2.diff

Administrator Admin, 2009-05-16 00:04

View differences:

typo3/classes/class.modulemenu.php (working copy)
$menu = '';
$onBlur = $GLOBALS['CLIENT']['FORMSTYLE'] ? 'this.blur();' : '';
$tmpArr = $GLOBALS['BE_USER']->getTSConfig('options.moduleMenuCollapsable');
$collapsable = (isset($tmpArr['value']) && $tmpArr['value'] == 0) ? 0 : 1;
unset($tmpArr);
$rawModuleData = $this->getRawModuleData();
foreach($rawModuleData as $moduleKey => $moduleData) {
......
$moduleLabel = '<a href="#" onclick="top.goToModule(\''.$moduleData['name'].'\');'.$onBlur.'return false;">'.$moduleLabel.'</a>';
}
$menu .= '<li id="'.$moduleKey.'" class="menuSection" title="'.$moduleData['description'].'"><div class="'.($menuState ? 'collapsed' : 'expanded').'">'.$moduleData['icon']['html'].' '.$moduleLabel.'</div>';
$menu .= '<li id="'.$moduleKey.'" '. ($collapsable? 'class="menuSection"':'') . ' title="'.$moduleData['description'].'"><div class="'.($menuState ? 'collapsed' : 'expanded').'">'.$moduleData['icon']['html'].' '.$moduleLabel.'</div>';
// traverse submodules
if(is_array($moduleData['subitems'])) {
(2-2/2)