2 namespace TYPO3\CMS\Frontend\ContentObject;
30 public function render($conf = array())
32 if (!empty($conf[
'if.']) && !$this->cObj->checkIf($conf[
'if.'])) {
41 $menu = $menuObjectFactory->getMenuObjectByType($menuType);
42 $GLOBALS[
'TSFE']->register[
'count_HMENU']++;
43 $GLOBALS[
'TSFE']->register[
'count_HMENU_MENUOBJ'] = 0;
44 $GLOBALS[
'TSFE']->register[
'count_MENUOBJ'] = 0;
45 $GLOBALS[
'TSFE']->applicationData[
'GMENU_LAYERS'][
'WMid'] = array();
46 $GLOBALS[
'TSFE']->applicationData[
'GMENU_LAYERS'][
'WMparentId'] = array();
48 $menu->start(
$GLOBALS[
'TSFE']->tmpl,
$GLOBALS[
'TSFE']->sys_page,
'', $conf, 1);
50 $theValue .= $menu->writeMenu();
51 }
catch (Menu\
Exception\NoSuchMenuTypeException $e) {
53 $wrap = isset($conf[
'wrap.']) ? $this->cObj->stdWrap($conf[
'wrap'], $conf[
'wrap.']) : $conf[
'wrap'];
55 $theValue = $this->cObj->wrap($theValue, $wrap);
57 if (isset($conf[
'stdWrap.'])) {
58 $theValue = $this->cObj->stdWrap($theValue, $conf[
'stdWrap.']);