Browse Source

Contournée https://core.spip.net/issues/4050 en appelant directement minifier_js

svn/root/tags/v6.7.6
p@henix.be 5 years ago
parent
commit
a023e8bf15
  1. 6
      foundation_6_options.php
  2. 2
      foundation_6_pipelines.php
  3. 2
      javascript/spip.foundation.js.html

6
foundation_6_options.php

@ -17,3 +17,9 @@ if (!defined('_REVEAL_ANIMATION_IN')) {
if (!defined('_REVEAL_ANIMATION_OUT')) {
define('_REVEAL_ANIMATION_OUT', '');
}
/**
* Dans le fichier javascript/spip.foundation.js.html, on utilise la fonction
* minifier_js, on inclut donc directement le fichier ici
*/
include_spip('inc/compresseur_minifier');

2
foundation_6_pipelines.php

@ -39,7 +39,7 @@ function foundation_6_insert_head_css($flux) {
function foundation_6_affichage_final($flux) {
include_spip('inc/config');
if (lire_config('foundation_6/javascript')) {
$js = '<script async src="'.minifier(produire_fond_statique('javascript/spip.foundation.js'), 'js').'" type="text/javascript"></script>';
$js = '<script async src="'.produire_fond_statique('javascript/spip.foundation.js').'" type="text/javascript"></script>';
$pos_body = strpos($flux, '</body>');
if ($pos_body) {

2
javascript/spip.foundation.js.html

@ -81,3 +81,5 @@ onAjaxLoad(function() {
[(#CHEMIN{javascript/foundation_perso.js.html}|oui)
[(#PRODUIRE{fond=javascript/foundation_perso.js}|supprimer_timestamp|file_get_contents)]
]
#FILTRE{minifier_js}

Loading…
Cancel
Save