Ignore:
Timestamp:
Dec 8, 2012, 8:56:24 PM (11 years ago)
Author:
julien1311
Message:

bug css

File:
1 edited

Legend:

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

    r19325 r19338  
    3838include_once(MEDIA_ICON_PATH.'thumbnails.php');
    3939include_once(MEDIA_ICON_PATH.'picture.php');
     40
     41/* +-----------------------------------------------------------------------+
     42 * | CSS Style                                                          |
     43 * +-----------------------------------------------------------------------+ */
     44
     45add_event_handler('loc_end_page_header', 'media_icon_css');
     46
     47function media_icon_css() {
     48        global $template, $conf;
     49       
     50        $conf_media_icon_general = unserialize($conf['media_icon_general']);
     51
     52        //add a stylesheet
     53        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">');
     54        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/'.$conf_media_icon_general['style'].'_media_icon.css">');
     55        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'admin/admin.css">');
     56}
    4057?>
Note: See TracChangeset for help on using the changeset viewer.