Changeset 19338


Ignore:
Timestamp:
12/08/12 20:56:24 (7 years ago)
Author:
julien1311
Message:

bug css

Location:
extensions/Media_Icon
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Media_Icon/admin.php

    r19335 r19338  
    55//Load globals 
    66global $conf, $page; 
    7  
    8 //CSS Style 
    9 add_event_handler('loc_end_page_header', 'media_icon_admin_css'); 
    107 
    118//Library for tabs 
     
    4542                break; 
    4643} 
    47  
    48 function media_icon_admin_css() { 
    49         global $template, $conf; 
    50          
    51         $conf_media_icon_general = unserialize($conf['media_icon_general']); 
    52  
    53         //add a stylesheet 
    54         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">'); 
    55         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'admin/admin.css">'); 
    56 } 
    5744?> 
  • 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?> 
  • extensions/Media_Icon/picture.php

    r19324 r19338  
    6666         
    6767        $template->concat('PLUGIN_INDEX_CONTENT_END', $template->parse('media_icon_template', true)); 
    68          
    69         //add a stylesheet 
    70         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">'); 
    71         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/'.$conf_media_icon_general['style'].'_media_icon.css">'); 
    7268} 
    7369?> 
  • extensions/Media_Icon/thumbnails.php

    r19325 r19338  
    11<?php 
    2 add_event_handler('loc_end_page_header', 'media_icon_thumbnails_css'); 
    32add_event_handler('loc_end_index_thumbnails', 'media_icon_thumbnails'); 
    43 
     
    3635        return $content; 
    3736} 
    38  
    39 function media_icon_thumbnails_css() { 
    40         global $template, $conf; 
    41          
    42         $conf_media_icon_general = unserialize($conf['media_icon_general']); 
    43          
    44         //add a stylesheet 
    45         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">'); 
    46         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/'.$conf_media_icon_general['style'].'_media_icon.css">'); 
    47 } 
    4837?> 
Note: See TracChangeset for help on using the changeset viewer.