Changeset 10330 for extensions/Icons_Set/main.inc.php
- Timestamp:
- Apr 12, 2011, 5:55:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Icons_Set/main.inc.php
r10297 r10330 26 26 return $menu; 27 27 } 28 add_event_handler('loc_after_page_header', 'load_set'); 29 function load_set() 30 { 31 global $template, $user, $conf; 32 $conf_iconset = @unserialize($conf['iconset']);//pwg_db_real_escape_string(serialize($conf_iconset)) 33 $conf_themes=$conf_iconset['themes']; 34 $conf_icons=$conf_iconset['icons']; 35 if (isset($user['theme']) and array_key_exists($user['theme'], $conf_themes) and !empty($conf_themes[$user['theme']]) and file_exists(ICONS_PATH.$conf_themes[$user['theme']]) ) 36 { 37 include ICONS_PATH.$conf_themes[$user['theme']]; 38 $template->func_combine_css(array( 39 'path' => $iconsetconf['css_file'], 40 'order' => 100, 41 ), 42 $smarty 43 ); 44 45 } 28 46 47 48 } 29 49 ?>
Note: See TracChangeset
for help on using the changeset viewer.