1 | <?php |
---|
2 | |
---|
3 | // Need upgrade? |
---|
4 | |
---|
5 | global $conf; |
---|
6 | |
---|
7 | if (!isset($conf['stripped'])) |
---|
8 | include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); |
---|
9 | |
---|
10 | load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/'); |
---|
11 | |
---|
12 | $config= array (); |
---|
13 | |
---|
14 | if(isset($_POST['submit_stripped'])) |
---|
15 | { |
---|
16 | $config['hideMenu']=isset($_POST['f_hideMenu']); |
---|
17 | $config['animatedMenu']=isset($_POST['f_animatedMenu']); |
---|
18 | $config['animatedTabs']=isset($_POST['f_animatedTabs']); |
---|
19 | $config['replaceActionIcons']=isset($_POST['f_replaceActionIcons']); |
---|
20 | $config['noLowercase']=!isset($_POST['f_forceLowercase']); |
---|
21 | $config['showThumbLegend']=isset($_POST['f_showThumbLegend']); |
---|
22 | $config['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']); |
---|
23 | $config['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']); |
---|
24 | $config['useNavigationArrows']=isset($_POST['f_useNavigationArrows']); |
---|
25 | $config['infoTabAdminOnly']=isset($_POST['f_infoTabAdminOnly']); |
---|
26 | $config['imageAutosize']=isset($_POST['f_imageAutosize']); |
---|
27 | $config['imageAutosizeTitle']=isset($_POST['f_imageAutosizeTitle']); |
---|
28 | if (isset($_POST['f_imageAutosizeMargin'])) { $config['imageAutosizeMargin']=intval($_REQUEST['f_imageAutosizeMargin']); } |
---|
29 | if (isset($_POST['f_imageAutosizeMinHeight'])) { $config['imageAutosizeMinHeight']=intval($_REQUEST['f_imageAutosizeMinHeight']); } |
---|
30 | $config['navThumbsFade']=150; |
---|
31 | $config['marginContainer']=30; |
---|
32 | $config['paddingContainer']=10; |
---|
33 | $config['defaultZoomSize']='full'; |
---|
34 | $config['highResClickMode']='zoom'; |
---|
35 | |
---|
36 | |
---|
37 | conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); |
---|
38 | |
---|
39 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
40 | |
---|
41 | load_conf_from_db(); |
---|
42 | } |
---|
43 | |
---|
44 | $template->set_filenames(array( |
---|
45 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
46 | |
---|
47 | $template->assign('options', unserialize($conf['stripped'])); |
---|
48 | |
---|
49 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
50 | |
---|
51 | ?> |
---|