Changeset 7358 for extensions/Random_Header/admin/rh_admin.php
- Timestamp:
- Oct 23, 2010, 10:53:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Random_Header/admin/rh_admin.php
r7330 r7358 6 6 include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); 7 7 8 // delete conf for deleted themes (but not for deactivated themes) 9 foreach ($me->rh_config as $theme_in_rh_conf => $test) { 10 if (!file_exists($conf['themes_dir'].'/'.$theme_in_rh_conf.'/'.'themeconf.inc.php')) { 11 unset($me->rh_config[$theme_in_rh_conf]); 12 } 13 } 14 $me->save_config(); 15 16 8 17 9 18 $template->set_filenames( array('plugin_admin_content' => dirname(__FILE__).'/rh_admin.tpl') ); 19 $template->assign("RH_VERSION",RH_VERSION); 20 $template->assign("RH_confpanel",realpath( dirname(__FILE__).'/rh_theme_conf.tpl')); 10 21 $rhthemes = new themes(); 11 22 $rh_vierge=0; 12 23 13 24 foreach (get_pwg_themes() as $pwg_templateID => $pwg_template) { … … 21 32 $me->rh_config[$pwg_templateID]['mode_background'] = (isset( $_POST[$pwg_templateID.'mode_background'] )) ? $_POST[$pwg_templateID.'mode_background'] : 'off' ; 22 33 $me->save_config(); 34 23 35 } 24 36 25 37 $rhscreenshot=(file_exists(PHPWG_THEMES_PATH.$pwg_templateID . '/screenshot.png')) ? PHPWG_THEMES_PATH.$pwg_templateID . '/screenshot.png' : PHPWG_ROOT_PATH.'admin/themes/'.$conf['admin_theme'].'/images/missing_screenshot.png'; 26 $rhthemboxclass=($me->rh_config[$pwg_templateID]['selected_cat']!=0) ? 'themeDefault' : ' toto';27 38 $rhthemboxclass=($me->rh_config[$pwg_templateID]['selected_cat']!=0) ? 'themeDefault' : ''; 39 $rh_vierge=($me->rh_config[$pwg_templateID]['selected_cat']!=0) ? $rh_vierge+1 : $rh_vierge; 28 40 $template->append('rhthemes', array( 29 41 'CURRENT_THEME_NAME'=> $pwg_template, … … 40 52 )); 41 53 } 42 54 $template->assign('rh_vierge',$rh_vierge); 43 55 display_select_cat_wrapper( 44 56 'SELECT id,name,uppercats,global_rank FROM '.CATEGORIES_TABLE,
Note: See TracChangeset
for help on using the changeset viewer.