Last change
on this file since 11823 was
11823,
checked in by flop25, 13 years ago
|
main color (not grey) in config
header, elements of footer, elements of tittlebar and the menubar in "bubbles"
created 2 new classes : two_columns, one_column
width corrected
|
File size:
1.4 KB
|
Rev | Line | |
---|
[11699] | 1 | <?php |
---|
| 2 | |
---|
| 3 | // Need upgrade? |
---|
| 4 | |
---|
| 5 | global $conf; |
---|
| 6 | |
---|
| 7 | if (!isset($conf['stripped_black_bloc'])) |
---|
| 8 | include(PHPWG_THEMES_PATH.'stripped_black_bloc/admin/upgrade.inc.php'); |
---|
| 9 | |
---|
| 10 | load_language('theme.lang', PHPWG_THEMES_PATH.'stripped_black_bloc/'); |
---|
| 11 | |
---|
| 12 | $config_send= array(); |
---|
| 13 | |
---|
| 14 | if(isset($_POST['submit_stripped_black_bloc'])) |
---|
| 15 | { |
---|
[11823] | 16 | $config_send['color_main']=(isset($_POST['f_color_main']) and !empty($_POST['f_color_main'])) ? $_POST['f_color_main'] : 'E6554F'; |
---|
[11699] | 17 | $config_send['thumbnail']=(isset($_POST['f_thumbnail'])) ? $_POST['f_thumbnail'] : 'piwigo'; |
---|
| 18 | $config_send['column_width']=(isset($_POST['f_column_width'])) ? $_POST['f_column_width'] : 170; |
---|
| 19 | if ( isset($_POST['f_column_width']) and isset($_POST['f_thumbnail_width'])) |
---|
| 20 | { |
---|
| 21 | if ( $_POST['f_column_width']>$_POST['f_thumbnail_width'] ) |
---|
| 22 | { |
---|
| 23 | $config_send['thumbnail_width']=$_POST['f_thumbnail_width']; |
---|
| 24 | } |
---|
| 25 | else |
---|
| 26 | { |
---|
| 27 | $config_send['thumbnail_width']=$_POST['f_column_width']-20; |
---|
| 28 | } |
---|
| 29 | } |
---|
| 30 | else |
---|
| 31 | { |
---|
| 32 | $config_send['thumbnail_width']=150; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config_send))); |
---|
| 36 | |
---|
| 37 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
| 38 | |
---|
| 39 | load_conf_from_db(); |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | $template->set_filenames(array( |
---|
| 43 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
| 44 | |
---|
| 45 | $template->assign('options', unserialize($conf['stripped_black_bloc'])); |
---|
| 46 | |
---|
| 47 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
| 48 | |
---|
| 49 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.