Project

General

Profile

Feature #23898 ยป tslib_content_HMENU.diff

Administrator Admin, 2010-11-01 10:39

View differences:

typo3/sysext/cms/tslib/content/class.tslib_content_hierarchicalmenu.php (revision )
* @return string Output
*/
public function render($conf = array()) {
$content = '';
$theValue = '';
if ($this->cObj->checkIf($conf['if.'])) {
$cls = strtolower($conf[1]);
if (t3lib_div::inList($GLOBALS['TSFE']->tmpl->menuclasses, $cls)) {
if ($conf['special.']['value.']) {
if (isset($conf['special.']['value.'])) {
$conf['special.']['value'] = $this->cObj->stdWrap($conf['special.']['value'], $conf['special.']['value.']);
}
$GLOBALS['TSFE']->register['count_HMENU']++;
$GLOBALS['TSFE']->register['count_HMENU_MENUOBJ'] = 0;
$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'] = array();
......
$menu->parent_cObj = $this->cObj;
$menu->start($GLOBALS['TSFE']->tmpl, $GLOBALS['TSFE']->sys_page, '', $conf, 1);
$menu->makeMenu();
$content .= $menu->writeMenu();
$theValue .= $menu->writeMenu();
}
if ($conf['wrap'])
$content = $this->cObj->wrap($content, $conf['wrap']);
if ($conf['stdWrap.'])
$content = $this->cObj->stdWrap($content, $conf['stdWrap.']);
$wrap = isset($conf['wrap.'])
? $this->cObj->stdWrap($conf['wrap'], $conf['wrap.'])
: $conf['wrap'];
if ($wrap) {
$theValue = $this->cObj->wrap($theValue, $wrap);
}
}
return $content;
if (isset($conf['stdWrap.'])) {
$theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
}
}
}
}
return $theValue;
}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_hierarchicalmenu.php']) {
include_once ($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_hierarchicalmenu.php']);
}
    (1-1/1)