$value) { if(isset($_POST['media_icon_checkbox']['media_icon_checkbox_'.$media_icon_support]) && ($_POST['media_icon_checkbox']['media_icon_checkbox_'.$media_icon_support] == 1)) $conf_media_icon_general['support'][$media_icon_support] = 1; else $conf_media_icon_general['support'][$media_icon_support] = 0; } //Save conf_update_param('media_icon_general', serialize($conf_media_icon_general)); array_push($page['infos'], l10n('Information data registered in database')); } //Parameters of the template $template->assign('media_icon_style',$conf_media_icon_general['style']); $template->assign( 'media_icon_style_selected', array( 'logo' => (($conf_media_icon_general['style'] == 'logo') ? 'selected = "selected"' : ""), 'photo' => (($conf_media_icon_general['style'] == 'photo') ? 'selected = "selected"' : ""), 'folder' => (($conf_media_icon_general['style'] == 'folder') ? 'selected = "selected"' : ""), 'foldercolor' => (($conf_media_icon_general['style'] == 'foldercolor') ? 'selected = "selected"' : ""), ) ); $template->assign('media_icon_support',$conf_media_icon_general['support']); $template->assign( 'media_icon_support_checked', array( 'youtube' => (($conf_media_icon_general['support']['youtube'] == 1) ? 'checked = "checked"' : ""), 'vimeo' => (($conf_media_icon_general['support']['vimeo'] == 1) ? 'checked = "checked"' : ""), 'dailymotion' => (($conf_media_icon_general['support']['dailymotion'] == 1) ? 'checked = "checked"' : ""), 'wideo' => (($conf_media_icon_general['support']['wideo'] == 1) ? 'checked = "checked"' : ""), 'wat' => (($conf_media_icon_general['support']['wat'] == 1) ? 'checked = "checked"' : ""), 'video' => (($conf_media_icon_general['support']['video'] == 1) ? 'checked = "checked"' : ""), 'music' => (($conf_media_icon_general['support']['music'] == 1) ? 'checked = "checked"' : ""), 'pdf' => (($conf_media_icon_general['support']['pdf'] == 1) ? 'checked = "checked"' : ""), 'document' => (($conf_media_icon_general['support']['document'] == 1) ? 'checked = "checked"' : ""), 'spreadsheet' => (($conf_media_icon_general['support']['spreadsheet'] == 1) ? 'checked = "checked"' : ""), 'presentation' => (($conf_media_icon_general['support']['presentation'] == 1) ? 'checked = "checked"' : ""), ) ); //Add our template to the global template $template->set_filenames( array( 'plugin_admin_content_general' => dirname(__FILE__).'/admin_general.tpl' ) ); //Assign the template contents to ADMIN_CONTENT $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content_general'); ?>