Ignore:
Timestamp:
Apr 12, 2011, 5:55:18 PM (13 years ago)
Author:
flop25
Message:

plugin functional !
todo : localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Icons_Set/main.inc.php

    r10297 r10330  
    2626  return $menu;
    2727}
     28add_event_handler('loc_after_page_header', 'load_set');
     29function 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        }
    2846
     47
     48}
    2949?>
Note: See TracChangeset for help on using the changeset viewer.