Last change
on this file since 13558 was
13558,
checked in by plg, 12 years ago
|
import theme Simple version 2.5.3
add an option and admin page to choose the layout for albums (with description under or next to the album thumbnail)
|
File size:
727 bytes
|
Line | |
---|
1 | <?php |
---|
2 | load_language('theme.lang', PHPWG_THEMES_PATH.'simple/'); |
---|
3 | |
---|
4 | global $conf; |
---|
5 | if (!isset($conf['stripped'])) |
---|
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.