Last change
on this file since 14500 was
13559,
checked in by plg, 13 years ago
|
import theme Simple version 2.5.4
- improve media-queries for small resolutions
- limit width of descriptions - combine files
- bugfix for the admin option
|
File size:
725 bytes
|
Rev | Line | |
---|
[13558] | 1 | <?php |
---|
| 2 | load_language('theme.lang', PHPWG_THEMES_PATH.'simple/'); |
---|
| 3 | |
---|
| 4 | global $conf; |
---|
[13559] | 5 | if (!isset($conf['simple'])) |
---|
[13558] | 6 | { |
---|
| 7 | $conf['simple'] = serialize(array('albumDisplay' => 'column')); |
---|
| 8 | } |
---|
| 9 | |
---|
| 10 | $simple_conf = array(); |
---|
| 11 | |
---|
| 12 | if (isset($_POST['submit'])) |
---|
| 13 | { |
---|
| 14 | $simple_conf['albumDisplay'] = $_POST['albumDisplay']; |
---|
| 15 | |
---|
| 16 | conf_update_param('simple', pwg_db_real_escape_string(serialize($simple_conf))); |
---|
| 17 | |
---|
| 18 | array_push($page['infos'], l10n('Your configuration settings are saved')); |
---|
| 19 | |
---|
| 20 | load_conf_from_db(); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | $template->set_filenames( |
---|
| 24 | array( |
---|
| 25 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl') |
---|
| 26 | ); |
---|
| 27 | |
---|
| 28 | $template->assign('options', unserialize($conf['simple'])); |
---|
| 29 | |
---|
| 30 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
| 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.