source: extensions/Media_Icon/admin/admin_general.php @ 19335

Last change on this file since 19335 was 19335, checked in by julien1311, 11 years ago

tooltip
language update

  • Property svn:eol-style set to LF
File size: 1.1 KB
Line 
1<?php
2//Initialization
3$conf_media_icon_general = unserialize($conf['media_icon_general']);
4
5//Save config
6if (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(
17        'media_icon_style',
18        array(
19                'logo' => (($conf_media_icon_general['style'] == 'logo') ? true : false),
20                'photo' => (($conf_media_icon_general['style'] == 'photo') ? true : false),
21                'folder' => (($conf_media_icon_general['style'] == 'folder') ? true : false),
22                'foldercolor' => (($conf_media_icon_general['style'] == 'foldercolor') ? true : false),
23        )
24);
25       
26//Add our template to the global template
27$template->set_filenames(
28        array(
29                'plugin_admin_content' => dirname(__FILE__).'/admin_general.tpl'
30        )   
31);
32 
33//Assign the template contents to ADMIN_CONTENT
34$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
35?>
Note: See TracBrowser for help on using the repository browser.