Changeset 39834 in spip-zone


Ignore:
Timestamp:
Aug 14, 2010, 1:29:06 PM (9 years ago)
Author:
cedric@…
Message:

soyons un peu plus subtil dans l'insertion du pied de biche.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/petronille/petronille_pipelines.php

    r39793 r39834  
    1313 */
    1414function petronille_pied_de_biche($head){
    15         $p = stripos($head, "<link");
     15        $search = "<link";
     16        if (preg_match(",<link\s[^>]*stylesheet,Uims", $head, $match))
     17                $search = $match[0];
     18        $p = stripos($head, $search);
    1619        $h = recuperer_fond('inclure/petronille-head',array());
     20        $h = "\n".trim($h)."\n";
    1721
    1822        $head = substr_replace($head, $h, $p, 0);
Note: See TracChangeset for help on using the changeset viewer.