예제 #1
0
 function setup()
 {
     $this->defprev = BLOG_BASEURL . ADMIN_DIR . 'panels/' . ADMIN_PANEL . '/preview-default.png';
     $current_theme = admin_theme_data(THEMES_DIR . THE_THEME . '/theme.conf.php', THE_THEME, $this->defprev);
     $this->smarty->assign('current_theme', $current_theme);
     $this->smarty->assign('available_themes', $this->theme_list());
 }
예제 #2
0
 function setup()
 {
     global $fp_config;
     $this->defprev = BLOG_BASEURL . ADMIN_DIR . 'panels/' . ADMIN_PANEL . '/preview-default.png';
     if (isset($fp_config['general']['style'])) {
         $this->smarty->assign('current_style', admin_theme_data(THEMES_DIR . THE_THEME . '/' . $fp_config['general']['style'] . '/style.conf.php', THE_THEME, $this->defprev));
     }
     $this->smarty->assign('available_styles', $this->style_list());
 }