Project

General

Profile

Bug #18949 » path.diff

Administrator Admin, 2009-05-15 23:28

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="modmenu_' . $moduleData['name'] . '" class="menuSection" title="' . $moduleData['description'] . '"><div class="' . ($menuState ? 'collapsed' : 'expanded') . '">' . $moduleData['icon']['html'] . ' ' . $moduleLabel . '</div>';
$menu .= '<li id="modmenu_' . $moduleData['name'] . '" '. ($collapsable? 'class="menuSection"':'') . ' title="' . $moduleData['description'] . '"><div class="' . ($menuState ? 'collapsed' : 'expanded') . '">' . $moduleData['icon']['html'] . ' ' . $moduleLabel . '</div>';
// traverse submodules
if(is_array($moduleData['subitems'])) {
(1-1/2)