function xspf_affichage_final($page) { // on regarde rapidement si la page a des classes player if (strpos($page, 'class="xspf_player"')===FALSE) return $page; // Si oui on ajoute le js de swfobject $jsFile = find_in_path('lib/swfobject/swfobject.js'); $head = ""; $pos_head = strpos($page, ''); return substr_replace($page, $head, $pos_head, 0); }