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

$title

"; } // }