Project

General

Profile

Feature #14991 » alt_topmenu_dummy.php.diff

Administrator Admin, 2005-09-23 17:12

View differences:

alt_topmenu_dummy.php 2005-09-23 16:42:33.000000000 +0200
*/
class SC_alt_topmenu_dummy {
var $content;
var $contentArray;
/**
* Main function - making the menu happen.
......
// Start page
$TBE_TEMPLATE->docType = 'xhtml_trans';
$TBE_TEMPLATE->bodyTagId.= '-iconmenu';
$this->content.=$TBE_TEMPLATE->startPage('Top frame dummy display');
$this->content.='
<!--
Alternative module menu made of links, icons and similar displayed in top frame:
-->
<table border="0" cellpadding="0" cellspacing="0" id="typo3-topMenu">
<tr>';
// Hook for adding content to the topmenu.
if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_topmenu_dummy.php']['fetchContentTopmenu'])) {
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')){
$this->tempContent= '<td class="c-menu" style="padding-top:4px;">'.$hookObj->fetchContentTopmenu_processContent($this).'</td>';
//Placement priority handling.
if(is_int($hookObj->priority) and ($hookObj->priority>=1 and $hookObj->priority<=9)) {
$this->contentArray[$hookObj->priority][] = $this->tempContent;
} else {
$this->contentArray[5][] = $this->tempContent;
}
}
}
}
ksort($this->contentArray);
foreach ($this->contentArray as $priority => $menucontent) $this->content.= implode("\n",$menucontent);
$this->content.='
</tr>
</table>';
// End page:
$this->content.=$TBE_TEMPLATE->endPage();
(1-1/3)