Last change
on this file since 19353 was
19352,
checked in by julien1311, 11 years ago
|
css and admin improvements
|
-
Property svn:eol-style set to
LF
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php |
---|
2 | //Initialization |
---|
3 | $conf_media_icon_general = unserialize($conf['media_icon_general']); |
---|
4 | |
---|
5 | //Save config |
---|
6 | if (isset($_POST['submit'])) { |
---|
7 | //New parameters |
---|
8 | $conf_media_icon_general['style'] = $_POST['media_icon_style']; |
---|
9 | |
---|
10 | //Save |
---|
11 | conf_update_param('media_icon_general', serialize($conf_media_icon_general)); |
---|
12 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
13 | } |
---|
14 | |
---|
15 | //Parameters of the template |
---|
16 | $template->assign('media_icon_style',$conf_media_icon_general['style']); |
---|
17 | $template->assign( |
---|
18 | 'media_icon_style_selected', |
---|
19 | array( |
---|
20 | 'logo' => (($conf_media_icon_general['style'] == 'logo') ? 'selected = "selected"' : ""), |
---|
21 | 'photo' => (($conf_media_icon_general['style'] == 'photo') ? 'selected = "selected"' : ""), |
---|
22 | 'folder' => (($conf_media_icon_general['style'] == 'folder') ? 'selected = "selected"' : ""), |
---|
23 | 'foldercolor' => (($conf_media_icon_general['style'] == 'foldercolor') ? 'selected = "selected"' : ""), |
---|
24 | ) |
---|
25 | ); |
---|
26 | |
---|
27 | //Add our template to the global template |
---|
28 | $template->set_filenames( |
---|
29 | array( |
---|
30 | 'plugin_admin_content' => dirname(__FILE__).'/admin_general.tpl' |
---|
31 | ) |
---|
32 | ); |
---|
33 | |
---|
34 | //Assign the template contents to ADMIN_CONTENT |
---|
35 | $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); |
---|
36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.