43 parent::__construct();
59 parent::render($showMain);
70 $this->makeTab(
XH_hsc($this->mainUrl),
'', $this->mainLabel);
80 $this->makeTab(
XH_hsc($this->cssUrl),
'', $this->cssLabel);
90 $this->makeTab(
XH_hsc($this->configUrl),
'', $this->configLabel);
100 $this->makeTab(
XH_hsc($this->languageUrl),
'', $this->languageLabel);
110 $this->makeTab(
XH_hsc($this->helpUrl),
'target="_blank"', $this->helpLabel);
120 public function makeRow(array $style = array())
122 if (!isset($style[
'row'])) {
123 $style[
'row'] =
'class="edit" style="width: 100%;"';
125 $template =
'<table {{STYLE_ROW}}>' .
"\n" 126 .
'<tr>' .
"\n" .
'{{TAB}}</tr>' .
"\n" .
'</table>' .
"\n" .
"\n";
128 $this->menu .= str_replace(
'{{STYLE_ROW}}', $style[
'row'], $template);
143 if (!isset($style[
'tab'])) {
146 if (!isset($style[
'link'])) {
150 '<td {{STYLE_TAB}}><a {{STYLE_LINK}} href="{{LINK}}"' 151 .
' {{TARGET}}>{{TEXT}}</a></td>' .
"\n",
153 '{{STYLE_TAB}}' => $style[
'tab'],
154 '{{STYLE_LINK}}' => $style[
'link'],
156 '{{TARGET}}' => $target,
160 $this->menu = str_replace(
'{{TAB}}', $tab .
'{{TAB}}', $this->menu);
173 if (!isset($style[
'data'])) {
177 '<td {{STYLE_DATA}}>{{TEXT}}</td>' .
"\n",
179 '{{STYLE_DATA}}' => $style[
'data'],
183 $this->menu = str_replace(
'{{TAB}}', $data .
'{{TAB}}', $this->menu);
193 $this->menu = str_replace(
'{{TAB}}',
'', $this->menu);
194 $result = $this->menu;