Changeset 66341 in spip-zone


Ignore:
Timestamp:
Sep 28, 2012, 4:13:14 PM (7 years ago)
Author:
cedric@…
Message:

insertion facultative de la CSS, uniquement si pas inhibee par un autre plugin/squelette

Location:
_plugins_/albums/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/albums/trunk/albums_pipelines.php

    r66242 r66341  
    131131*/
    132132function albums_insert_head_css($flux) {
    133         $flux .= '<link rel="stylesheet" href="'.find_in_path('css/albums.css').'" type="text/css" media="all" />';
     133        if (!defined('_ALBUMS_INSERT_HEAD_CSS') OR !_ALBUMS_INSERT_HEAD_CSS){
     134                include_spip("inc/config");
     135                $cfg = (defined('_ALBUMS_INSERT_HEAD_CSS')?_ALBUMS_INSERT_HEAD_CSS:lire_config("albums/insert_head_css",1));
     136                if ($cfg){
     137                        $flux .= '<link rel="stylesheet" href="'.find_in_path('css/albums.css').'" type="text/css" />';
     138                }
     139        }
     140
    134141        return $flux;
    135142}
  • _plugins_/albums/trunk/paquet.xml

    r66340 r66341  
    22        prefix="Albums"
    33        categorie="multimedia"
    4         version="2.0.10"
     4        version="2.0.11"
    55        etat="dev"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.