Bug #15521 » bug_2415.diff
TYPO3core/typo3/alt_topmenu_dummy.php 2006-03-21 09:22:27.000000000 +0100 | ||
---|---|---|
// Remember if noMenuMode is set to 'icons' or not because the hook will be ignored in this case.
|
||
if (!strcmp($BE_USER->uc['noMenuMode'],'icons')) { $iconMenuMode = true; }
|
||
$contentArray=array();
|
||
// Hook for adding content to the topmenu. Only works if noMenuMode is not set to "icons" in the users setup!
|
||
if (!$iconMenuMode && is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_topmenu_dummy.php']['fetchContentTopmenu'])) {
|
||
$contentArray=array();
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_topmenu_dummy.php']['fetchContentTopmenu'] as $classRef) {
|
||
$hookObj = &t3lib_div::getUserObj($classRef);
|
||
if (method_exists($hookObj,'fetchContentTopmenu_processContent')) {
|
||
$tempContent = $hookObj->fetchContentTopmenu_processContent($this);
|
||
// Placement priority handling.
|
||
if(is_int($hookObj->priority) and ($hookObj->priority>=1 and $hookObj->priority<=9)) {
|
||
if (is_int($hookObj->priority) and ($hookObj->priority>=1 and $hookObj->priority<=9)) {
|
||
$priority = $hookObj->priority;
|
||
} else $priority = 5;
|
||
... | ... | |
$this->content.=$TBE_TEMPLATE->startPage('Top frame icon menu');
|
||
if ($iconMenuMode) {
|
||
$contentArray[0][] = $alt_menuObj->topMenu($loadModules->modules,0,'',3);
|
||
$contentArray[0][] = '<td class="c-menu">'.$alt_menuObj->topMenu($loadModules->modules,0,'',3).'</td>';
|
||
if ($BE_USER->isAdmin()) {
|
||
$contentArray[1][] = $alt_menuObj->adminButtons();
|
||
$contentArray[1][] = '<td class="c-admin">'.$alt_menuObj->adminButtons().'</td>';
|
||
}
|
||
$contentArray[2][] = $alt_menuObj->topButtons();
|
||
$contentArray[2][] = '<td class="c-logout">'.$alt_menuObj->topButtons().'</td>';
|
||
}
|
||
// Make menu and add it:
|
- « Previous
- 1
- 2
- Next »