Browse Source

propager le var_mode=recalcul aux css et js calculees dont l'url est inseree dans le head

3.0 v1.8.4
cedric@yterium.com 12 years ago
parent
commit
39b5f9365f
  1. 2
      plugin.xml
  2. 4
      porte_plume_pipelines.php

2
plugin.xml

@ -3,7 +3,7 @@
<auteur>Matthieu Marcillaud,
[mysitemyway pour l'icone->http://icons.mysitemyway.com/free-clipart-icons/1/traditional-ink-bottle-pen-icon-id/83350/style-id/614/high-resolution-dark-blue-denim-jeans-icons/business/]</auteur>
<licence>GNU/GPL</licence>
<version>1.8.3</version>
<version>1.8.4</version>
<description>
<multi>[fr]Une barre d'outil pour bien &#233;crire
_ Porte plume est une barre d'outil extensible pour SPIP qui

4
porte_plume_pipelines.php

@ -57,6 +57,8 @@ function porte_plume_inserer_head($flux, $lang, $prive = false){
$markitup = find_in_path('javascript/jquery.markitup_pour_spip.js');
$js_previsu = find_in_path('javascript/jquery.previsu_spip.js');
$js_start = parametre_url(generer_url_public('porte_plume_start.js'), 'lang', $lang);
if (_VAR_MODE=="recalcul")
$js_start = parametre_url($js_start, 'var_mode', 'recalcul');
$flux
.= porte_plume_insert_head_css('', $prive) // compat SPIP 2.0
@ -84,6 +86,8 @@ function porte_plume_insert_head_css($flux='', $prive = false){
}
$css = direction_css(find_in_path('css/barre_outils.css'), lang_dir());
$css_icones = generer_url_public('barre_outils_icones.css');
if (_VAR_MODE=="recalcul")
$css_icones = parametre_url($css_icones, 'var_mode', 'recalcul');
$flux
.= "<link rel='stylesheet' type='text/css' media='all' href='$css' />\n"
. "<link rel='stylesheet' type='text/css' media='all' href='$css_icones' />\n";

Loading…
Cancel
Save