1 | <?php |
---|
2 | |
---|
3 | global $conf; |
---|
4 | |
---|
5 | load_language('theme.lang', PHPWG_THEMES_PATH.'stripped_responsive/'); |
---|
6 | |
---|
7 | $config= array (); |
---|
8 | |
---|
9 | if(isset($_POST['submit_stripped'])) |
---|
10 | { |
---|
11 | $config['paramVersion']='2.3'; |
---|
12 | |
---|
13 | $config['themeStyle']=$_POST['f_themeStyle']; |
---|
14 | $config['noLowercase']=!isset($_POST['f_forceLowercase']); |
---|
15 | $config['albumFrame']=isset($_POST['f_albumFrame']); |
---|
16 | $config['thumbFrame']=isset($_POST['f_thumbFrame']); |
---|
17 | $config['showThumbLegend']=isset($_POST['f_showThumbLegend']); |
---|
18 | $config['menuOnRight']=isset($_POST['f_menuOnRight']); |
---|
19 | |
---|
20 | $config['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']); |
---|
21 | $config['imageFrame']=isset($_POST['f_imageFrame']); |
---|
22 | $config['imageCaption']=$_POST['f_imageCaption']; |
---|
23 | $config['imageArrows']=isset($_POST['f_imageArrows']); |
---|
24 | $config['HDlightbox']=($_POST['f_lightboxOptions'] != 'never'); |
---|
25 | $config['forceLightboxOn']=($_POST['f_lightboxOptions'] == 'always'); |
---|
26 | $config['defaultZoomSize']=$_POST['f_defaultZoomSize']; |
---|
27 | $config['animatedTabs']=isset($_POST['f_animatedTabs']); |
---|
28 | $config['infoTabAdminOnly']=isset($_POST['f_infoTabAdminOnly']); |
---|
29 | $config['defaultTab']=$_POST['f_defaultTab']; |
---|
30 | |
---|
31 | $config['thumbSize']=$_POST['f_thumbSize']; |
---|
32 | $config['imageSize']=$_POST['f_imageSize']; |
---|
33 | $config['hdSize']=$_POST['f_hdSize']; |
---|
34 | |
---|
35 | $config['imageAutosize']=isset($_POST['f_imageAutosize']); |
---|
36 | if (isset($_POST['f_imageAutosizeMargin'])) { $config['imageAutosizeMargin']=intval($_REQUEST['f_imageAutosizeMargin']); } |
---|
37 | if (isset($_POST['f_imageAutosizeMinHeight'])) { $config['imageAutosizeMinHeight']=intval($_REQUEST['f_imageAutosizeMinHeight']); } |
---|
38 | |
---|
39 | $config['imagePreload']=isset($_POST['f_imagePreload']); |
---|
40 | $config['imagePreloadNb']=$_POST['f_imagePreloadNb']; |
---|
41 | $config['imagePreloadThumbs']=isset($_POST['f_imagePreloadThumbs']); |
---|
42 | $config['imagePreloadHD']=false; |
---|
43 | |
---|
44 | $config['marginContainer']=30; |
---|
45 | $config['paddingContainer']=10; |
---|
46 | $config['highResClickMode']='zoom'; |
---|
47 | $config['maxThumb']=15; |
---|
48 | |
---|
49 | conf_update_param('stripped_responsive', pwg_db_real_escape_string(serialize($config))); |
---|
50 | |
---|
51 | array_push($page['infos'], l10n('Responsive stripped Configuration updated')); |
---|
52 | |
---|
53 | load_conf_from_db(); |
---|
54 | } |
---|
55 | |
---|
56 | $template->set_filenames(array( |
---|
57 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
58 | |
---|
59 | $template->assign('options', unserialize($conf['stripped_responsive'])); |
---|
60 | |
---|
61 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
62 | |
---|
63 | ?> |
---|