Line | |
---|
1 | <?php |
---|
2 | load_language('theme.lang', PHPWG_THEMES_PATH.'Slim/'); |
---|
3 | |
---|
4 | |
---|
5 | if (isset($_POST['submit'])) |
---|
6 | { |
---|
7 | $params = array( |
---|
8 | 'style_slim' => $_POST['style_slim'], |
---|
9 | 'color_theme' => $_POST['color_theme'], |
---|
10 | 'carousel_speed' => $_POST['carousel_speed'], |
---|
11 | ); |
---|
12 | |
---|
13 | conf_update_param('Slim', pwg_db_real_escape_string(serialize($params))); |
---|
14 | |
---|
15 | array_push($page['infos'], l10n('Your configuration settings are saved')); |
---|
16 | |
---|
17 | load_conf_from_db(); |
---|
18 | } |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | $params = array_merge(unserialize($conf['Slim'])); |
---|
23 | |
---|
24 | $template->assign(array( |
---|
25 | 'selected_style_slim' => $params['style_slim'], |
---|
26 | 'selected_color_theme' => $params['color_theme'], |
---|
27 | 'selected_carousel_speed' => $params['carousel_speed'] |
---|
28 | )); |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | $template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
33 | $template->assign('options', unserialize($conf['Slim'])); |
---|
34 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.