20 parent::__construct();
28 if(
empty($this->aItems))
32 $GLOBALS[
'ch_profiler']->beginMenu(ucfirst($this->sName) .
' Menu');
37 $GLOBALS[
'ch_profiler']->endMenu(ucfirst($this->sName) .
' Menu');
45 foreach($this->aItems
as $aItem) {
49 list( $aItem[
'Link'] ) = explode(
'|', $aItem[
'Link'] );
53 $aItem[
'Script'] = $this->
replaceMetas($aItem[
'Script']);
56 'caption' => $aItem[
'Caption'],
58 'icon' => $aItem[
'Icon'],
59 'link' => $aItem[
'Script'] ?
'javascript:void(0)' : $this->oPermalinks->permalink($aItem[
'Link']),
60 'script' => $aItem[
'Script'] ?
'onclick="' . $aItem[
'Script'] .
'"' :
null,
61 'target' => $aItem[
'Target'] ?
'target="_blank"' :
null
65 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'extra_' . $this->sName .
'_menu.html', array(
'ch_repeat:items' => $aTmplVars));
70 if(
empty($this->aItems))
74 $GLOBALS[
'ch_profiler']->beginMenu(ucfirst($this->sName) .
' Menu');
78 foreach ($this->aItems
as $aItem) {
83 if ($iCount > $iLimit)
86 list($aItem[
'Link']) = explode(
'|', $aItem[
'Link']);
90 $aItem[
'Script'] = $this->
replaceMetas($aItem[
'Script']);
93 'name' => $aItem[
'Name'],
94 'caption' => $aItem[
'Caption'],
96 'icon' => $aItem[
'Icon'],
97 'link' => $aItem[
'Script'] ?
'javascript:void(0)' : $this->oPermalinks->permalink($aItem[
'Link']),
98 'script' => $aItem[
'Script'] ?
'onclick="' . $aItem[
'Script'] .
'"' :
null,
99 'target' => $aItem[
'Target'] ?
'target="_blank"' :
null
104 $GLOBALS[
'ch_profiler']->endMenu(ucfirst($this->sName) .
' Menu');