fromPost($_POST); $themeconfig->save(); } } if ($page['tab'] == TAB_SETTINGS_EXTRA) { if (isset($_POST['boostrap_darkroom_settings'])) { $themeconfig_extra->fromPost($_POST); $themeconfig_extra->save(); } } // TabSheet $tabsheet = new tabsheet(); $tabsheet->set_id('bsdark'); $tabsheet->add(TAB_SETTINGS, 'Bootstrap Default ' . l10n('Settings'), ADMIN_PATH . '&tab=' . TAB_SETTINGS); $tabsheet->add(TAB_SETTINGS_EXTRA, 'Bootstrap Darkroom Extra ' . l10n('Settings'), ADMIN_PATH . '&tab=' . TAB_SETTINGS_EXTRA); $tabsheet->add(TAB_ABOUT, l10n('About'), ADMIN_PATH . '&tab=' . TAB_ABOUT); $tabsheet->select($page['tab']); $tabsheet->assign(); // Fetch the template. global $template; // Add our template to the global template $template->set_filenames( array( 'theme_admin_content' => dirname(__FILE__) . '/template/' . $page['tab'] . '.tpl' ) ); // Assign the template contents to ADMIN_CONTENT $template->assign('theme_config', $themeconfig); $template->assign('theme_config_extra', $themeconfig_extra); $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');