/** * Usage @panel('title',true,true).....@endpanel() * * @param $expression * @return string */ protected function compilePanel($expression) { $this->customItem[] = 'Panel'; return $this->phpTag . "echo \$this->panel{$expression}; ?>"; } protected function compileEndPanel() { $r = @array_pop($this->customItem); if ($r === null) { $this->showError('@endpanel', 'Missing @compilepanel or so many @compilepanel', true); } return ' '; // we don't need to create a function for this. } // // protected function panel($title = '', $toggle = true, $dismiss = true) { return "
" . (($toggle) ? "" : '') . ' ' . (($dismiss) ? "" : '') . "

$title

"; } // }