Ignore:
Timestamp:
Dec 8, 2012, 12:00:44 PM (11 years ago)
Author:
julien1311
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Media_Icon/admin/admin_general.php

    r19324 r19329  
    2424);
    2525       
    26 //add a stylesheet
    27 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">');
    28 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/'.$conf_media_icon_general['style'].'_media_icon.css">');
    29        
    3026//Add our template to the global template
    3127$template->set_filenames(
     
    3733//Assign the template contents to ADMIN_CONTENT
    3834$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
     35
     36add_event_handler('loc_end_page_header', 'media_icon_admin_css');
     37function media_icon_admin_css() {
     38        global $template, $conf;
     39       
     40        $conf_media_icon_general = unserialize($conf['media_icon_general']);
     41       
     42        //add a stylesheet
     43        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">');
     44        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/'.$conf_media_icon_general['style'].'_media_icon.css">');
     45}
    3946?>
Note: See TracChangeset for help on using the changeset viewer.