Changeset 87529 in spip-zone


Ignore:
Timestamp:
Feb 18, 2015, 4:20:39 PM (5 years ago)
Author:
cyp@…
Message:

Ajout d'un define pour ne pas utiliser la feuille de style par defaut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/cookiebar/trunk/cookiebar_pipelines.php

    r86732 r87529  
    1414 */
    1515function cookiebar_insert_head_css($flux){
    16   $flux .= '<link rel="stylesheet" type="text/css" href="'.find_in_path("css/jquery.cookiebar.css").'" />';
    17   return $flux;
     16
     17        if(defined('_COOKIEBAR_CSS_NON'))
     18                return $flux;
     19
     20        $flux .= '<link rel="stylesheet" type="text/css" href="'.find_in_path("css/jquery.cookiebar.css").'" />';
     21                return $flux;
    1822}
    1923
     
    2529 */
    2630function cookiebar_insert_head($flux){
    27   //$js_cookiebar = parametre_url(generer_url_public('jquery.cookiebar.js'), 'lang', $lang);
    28   include_spip('inc/filtres');
    29   if (!$lang) $lang = $GLOBALS["spip_lang"];
    30   $js_cookiebar = produire_fond_statique("jquery.cookiebar.js", array("lang"=>$lang));
     31        //$js_cookiebar = parametre_url(generer_url_public('jquery.cookiebar.js'), 'lang', $lang);
     32        include_spip('inc/filtres');
     33        if (!$lang) $lang = $GLOBALS["spip_lang"];
     34        $js_cookiebar = produire_fond_statique("jquery.cookiebar.js", array("lang"=>$lang));
    3135
    32   $flux .=
    33            "<script type='text/javascript' src='$js_cookiebar'></script>\n"
    34          . "<script type='text/javascript' src='".find_in_path('js/jquery.cookiebar.call.js')."'></script>";
    35  
    36   return $flux;
     36        $flux .=
     37                "<script type='text/javascript' src='$js_cookiebar'></script>\n"
     38                . "<script type='text/javascript' src='".find_in_path('js/jquery.cookiebar.call.js')."'></script>";
     39
     40        return $flux;
    3741}
    3842
Note: See TracChangeset for help on using the changeset viewer.