Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 public function __construct($args)
 {
     parent::__construct($args);
     $this->page->head_js[] = '/include/js/auto_width.js';
 }