Changeset 98001 in spip-zone


Ignore:
Timestamp:
May 24, 2016, 12:52:51 PM (3 years ago)
Author:
kent1@…
Message:

Nettoyage

Location:
_plugins_/cookiebar/trunk
Files:
5 edited

Legend:

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

    r93540 r98001  
    22/**
    33 * Plugin Cookie bar pour Spip 3.0.
    4  * 
     4 *
    55 * @licence    GNU/GPL
    66 * @package    SPIP\Cookiebar\Pipelines
    77 */
    8 if (!defined('_ECRIRE_INC_VERSION'))
     8if (!defined('_ECRIRE_INC_VERSION')) {
    99        return;
     10}
    1011
    1112/**
     
    1314 *
    1415 * @pipeline insert_head_css
    15  * 
     16 *
    1617 * @param string $flux
    1718 *      Le contenu de la balise #INSERT_HEAD_CSS
    1819 * @return string
    1920 */
    20 function cookiebar_insert_head_css($flux){
    21         if(defined('_COOKIEBAR_CSS_NON'))
     21function cookiebar_insert_head_css($flux) {
     22        if (defined('_COOKIEBAR_CSS_NON')) {
    2223                return $flux;
     24        }
    2325
    2426        $flux .= '<link rel="stylesheet" type="text/css" href="'.find_in_path('css/jquery.cookiebar.css').'" />';
     
    3133 *
    3234 * @pipeline insert_head
    33  * 
     35 *
    3436 * @param string $flux
    3537 *      Le contenu de la balise #INSERT_HEAD
    3638 * @return mixed
    3739 */
    38 function cookiebar_insert_head($flux){
     40function cookiebar_insert_head($flux) {
    3941        include_spip('inc/filtres');
    40        
     42
    4143        $lang = (isset($GLOBALS['spip_lang']) ? $GLOBALS['spip_lang'] : 'fr');
    4244        $js_cookiebar = produire_fond_statique('jquery.cookiebar.js', array('lang' => $lang));
  • _plugins_/cookiebar/trunk/css/jquery.cookiebar.css

    r84688 r98001  
    33#cookie-bar.fixed.bottom {bottom:0; top:auto;}
    44#cookie-bar p {margin:0; padding:0;}
    5 #cookie-bar a {color:#ffffff; display:inline-block; border-radius:3px; text-decoration:none; padding:0 0.5em; margin-left:0.6em;}
     5#cookie-bar a {color:#ffffff; display:inline-block; border-radius:3px; text-decoration:none; padding:0 .5em; margin-left:.6em;}
    66#cookie-bar .cb-enable {background:#007700;}
    77#cookie-bar .cb-enable:hover {background:#009900;}
Note: See TracChangeset for help on using the changeset viewer.