Changeset 4603 for extensions/LLGBO2/admin/llgbo_admin.php
- Timestamp:
- Jan 2, 2010, 3:57:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r4596 r4603 32 32 // Setup plugin Language 33 33 load_language('plugin.lang', LLGBO_PATH); 34 include(LLGBO_PATH.'defaultvalues.php'); 35 36 34 37 // +-----------------------------------------------------------------------+ 35 38 // | Tabssheet … … 44 47 l10n('llgbo_M_manage'), 45 48 $my_base_url.'&tab=manage'); 46 $tabsheet->add('tooltip', 47 l10n('llgbo_M_tooltip'), 48 $my_base_url.'&tab=tooltip'); 49 $disptabtooltip = 'false'; 49 50 $disptabframe = 'false'; 50 51 $disptabheader = 'false'; … … 54 55 else 55 56 {$disptabframe = $_POST['llgbo_frame'];} 57 58 if ((!isset($_POST['llgbo_tooltip_disp'])) or (!isset($_POST['llgbo_exifunderbt']) ) or ( !isset($_POST['llgbo_usemap_thumb']) )) 59 { if (($conf['LLGBO_SETTINGS'][1] == 'true' ) or ($conf['LLGBO_SETTINGS'][2] == 'true') 60 or ($conf['LLGBO_SETTINGS'][4] == 'true' )) 61 { $disptabtooltip = 'true';} } 62 else 63 {if (($_POST['llgbo_tooltip_disp'] == 'true' ) or ($_POST['llgbo_exifunderbt'] == 'true') 64 or ($_POST['llgbo_usemap_thumb'] == 'true' )) 65 { $disptabtooltip = 'true';} } 66 67 56 68 if (!isset($_POST['llgbo_header']) ) 57 69 {$disptabheader = $conf['LLGBO_SETTINGS'][6] ;} 58 70 else 59 71 {$disptabheader = $_POST['llgbo_header'];} 72 73 if ($disptabtooltip == 'true'){ 74 $tabsheet->add('tooltip', 75 l10n('llgbo_M_tooltip'), 76 $my_base_url.'&tab=tooltip');} 77 60 78 61 79 if (($disptabframe == 'true')) … … 82 100 /* Plugin template initialisation for admin panel display */ 83 101 /* ****************************************************** */ 84 global $template , $conf,$lang; 102 global $template , $conf,$lang; 85 103 {$template->assign( 'LLGBO_VERSION' , LLGBO_INFO_VERSION);} 86 104 $me = get_plugin_data($plugin_id); … … 117 135 if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';} 118 136 if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';} 119 if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';} //9 } 137 if (!isset($_POST['llgbo_default_navthumb'])) {$_POST['llgbo_default_navthumb'] = 'false';} 138 if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10 120 139 $param_llgbo = array($_POST['llgbo_frame'], 121 140 $_POST['llgbo_tooltip_disp'], $_POST['llgbo_exifunderbt'], … … 123 142 $_POST['llgbo_title_frame'], $_POST['llgbo_header'], 124 143 $_POST['llgbo_maintain_header'], $_POST['llgbo_allinfo'], 125 $_POST['llgbo_default_navthumb'] 144 $_POST['llgbo_default_navthumb'] ,$_POST['llgbo_always_displayexif'] 126 145 ); 127 146 $llgbo_new_value = implode ("," , $param_llgbo); … … 135 154 $conf['LLGBO_SETTINGS'] = explode ("," ,$llgbo_new_value); 136 155 } 156 if ( isset($_POST['reset']) ) 157 { $conf['LLGBO_SETTINGS'] = explode ("," ,$plugvalues);} 137 158 138 159 // Reload settings for correct display after update … … 156 177 if ($conf['LLGBO_SETTINGS'][9] == 'true') 157 178 {$template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => 'true'));} else { $template->assign(array( 'LLGBO_DEFAULT_NAVTHUMB' => "false"));} 158 } 179 if ($conf['LLGBO_SETTINGS'][10] == 'true') 180 {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));} else { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));} 181 182 } 159 183 /////////////////////////////////////////////////////////////////////////////////////// 160 184 //// TOOLTIP … … 187 211 $conf['LLGBO_TOOLTIP'] = explode ("," ,$llgbo_newtooltip_value); 188 212 } 213 214 if ( isset($_POST['reset']) ) 215 { $conf['LLGBO_TOOLTIP'] = explode ("," ,$ttvalues);} 216 189 217 // Reload settings for correct display after update 190 218 if (isset($conf['LLGBO_TOOLTIP'][0])) {$template->assign(array( 'LLGBO_TOOLTIP_WIDTH' => $conf['LLGBO_TOOLTIP'][0]));} … … 241 269 $conf['LLGBO_FRAME'] = explode ("," ,$llgbo_newframe_value ); 242 270 } 271 if ( isset($_POST['reset']) ) 272 { $conf['LLGBO_FRAME'] = explode ("," ,$frvalues );} 243 273 if ( isset($_POST['previewsample']) ) 244 274 { if (isset($_POST['sample'])) { //print_r($_POST); … … 322 352 $conf['LLGBO_HEADER'] = explode ("," ,$llgbo_newheader_value); 323 353 } 354 if ( isset($_POST['reset']) ) 355 { $conf['LLGBO_HEADER'] = explode ("," ,$headvalues);} 324 356 // Reload settings for correct display after update 325 357 if (isset($conf['LLGBO_HEADER'][0])) {$template->assign(array( 'LLGBO_HEADER_HOME' => $conf['LLGBO_HEADER'][0]));}
Note: See TracChangeset
for help on using the changeset viewer.