Browse Source

Compatibilité avec un xslt de mise en forme du backend RSS

master
RealET 7 months ago
parent
commit
7415d7ad17
  1. 12
      foundation_6_pipelines.php

12
foundation_6_pipelines.php

@ -39,12 +39,14 @@ function foundation_6_insert_head_css($flux) {
function foundation_6_affichage_final($flux) {
include_spip('inc/config');
if (lire_config('foundation_6/javascript')) {
include_spip('inc/filtres');
$js = '<script async src="'.produire_fond_statique('javascript/spip.foundation.js').'" type="text/javascript"></script>';
$pos_body = strpos($flux, '</body>');
if (!strpos($flux, '<xsl:stylesheet')) {
include_spip('inc/filtres');
$js = '<script async src="'.produire_fond_statique('javascript/spip.foundation.js').'" type="text/javascript"></script>';
$pos_body = strpos($flux, '</body>');
if ($pos_body) {
return substr_replace($flux, $js, $pos_body, 0);
if ($pos_body) {
return substr_replace($flux, $js, $pos_body, 0);
}
}
}

Loading…
Cancel
Save