Beispiel #1
0
 public function PreviewThemeIframe($theme, $theme_info)
 {
     global $langmessage, $config;
     \gp\admin\Tools::$show_toolbar = false;
     $this->page->gpLayout = false;
     $this->page->theme_name = $theme_info['folder'];
     $this->page->theme_color = $theme_info['color'];
     $this->page->theme_dir = $theme_info['full_dir'];
     $this->page->theme_rel = $theme_info['rel'] . '/' . $theme_info['color'];
     $this->LoremIpsum();
     if (isset($theme_info['id'])) {
         $this->page->theme_addon_id = $theme_info['id'];
     }
     $this->page->theme_path = \gp\tool::GetDir($this->page->theme_rel);
     $this->page->show_admin_content = false;
 }
Beispiel #2
0
 /**
  * Prepare the page for css editing
  *
  */
 public function ShowInIframe()
 {
     $this->LoremIpsum();
     $cmd = \gp\tool::GetCommand();
     $this->page->show_admin_content = false;
     \gp\admin\Tools::$show_toolbar = false;
     // <head>
     $this->page->head .= '<script type="text/javascript">parent.$gp.iframeloaded();</script>';
     if ($cmd != 'PreviewCSS') {
         $this->page->head .= '<script type="text/javascript">var gpLayouts=true;</script>';
     }
 }