Changeset 7330 for extensions/Random_Header/admin/rh_admin.php
- Timestamp:
- Oct 22, 2010, 1:56:23 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Random_Header/admin/rh_admin.php
r7134 r7330 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 3 4 global $template ;4 global $template,$conf; 5 5 $me = get_plugin_data($plugin_id); 6 6 include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); … … 23 23 } 24 24 25 $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 25 28 $template->append('rhthemes', array( 26 29 'CURRENT_THEME_NAME'=> $pwg_template, … … 32 35 'HEAD_CSS' => $me->rh_config[$pwg_templateID]['head_css'], 33 36 'IMG_CSS' => $me->rh_config[$pwg_templateID]['img_css'], 34 'CATSELECTED' => $me->rh_config[$pwg_templateID]['selected_cat'] 37 'CATSELECTED' => $me->rh_config[$pwg_templateID]['selected_cat'], 38 'SCREENSHOT_URL' => $rhscreenshot, 39 'THEMEBOXCLASS' => $rhthemboxclass 35 40 )); 36 41 }
Note: See TracChangeset
for help on using the changeset viewer.