Changeset 10357 for extensions/Icons_Set


Ignore:
Timestamp:
Apr 13, 2011, 4:19:22 PM (13 years ago)
Author:
flop25
Message:

hover works on the admin page
the icons set are not include on admin pages

Location:
extensions/Icons_Set
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Icons_Set/icons/sylvia/icon_admin.css

    r10339 r10357  
    44}
    55
    6 #iconBox_sylvia .pwg-icon a:hover {
     6#iconBox_sylvia a:hover .pwg-icon {
    77        background-image: url(outline_ff7700.png);
    88}
  • extensions/Icons_Set/main.inc.php

    r10334 r10357  
    2929function load_set()
    3030{
    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 is_array($conf_themes) and array_key_exists($user['theme'], $conf_themes) and !empty($conf_themes[$user['theme']]) and file_exists(ICONS_PATH.$conf_themes[$user['theme']]) )
     31        if (!defined('IN_ADMIN') or !IN_ADMIN)
    3632        {
    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                
     33                global $template, $user, $conf;
     34                $conf_iconset = @unserialize($conf['iconset']);//pwg_db_real_escape_string(serialize($conf_iconset))
     35                $conf_themes=$conf_iconset['themes'];
     36                $conf_icons=$conf_iconset['icons'];
     37                if (isset($user['theme']) and is_array($conf_themes) and array_key_exists($user['theme'], $conf_themes) and !empty($conf_themes[$user['theme']]) and file_exists(ICONS_PATH.$conf_themes[$user['theme']]) )
     38                {
     39                        include ICONS_PATH.$conf_themes[$user['theme']];
     40                        $template->func_combine_css(array(
     41                                'path' => $iconsetconf['css_file'],
     42                                'order' => 100,
     43                                ),
     44                                $smarty
     45                        );
     46                }
    4547        }
    4648
Note: See TracChangeset for help on using the changeset viewer.