/** * Set the current layout * */ protected function SetCurrLayout($layout) { global $langmessage, $gpLayouts; if (!isset($gpLayouts[$layout])) { return false; } $this->curr_layout = $layout; $this->SetLayoutArray(); $this->page->SetTheme($layout); if (!$this->page->gpLayout) { message($langmessage['OOPS'] . ' (Theme Not Found)'); parent::RunScript(); return false; } \gp\tool\Output::TemplateSettings(); return true; }
public function __construct($args) { parent::__construct($args); $this->page->head_js[] = '/include/js/auto_width.js'; }