+function public_previsualisation_dist($page)
+{
+ if (preg_match(',^\s*text/html,',$page['entetes']['Content-Type'])) {
+ include_spip('inc/filtres'); // pour http_img_pack
+ $x = _T('previsualisation');
+ $x = http_img_pack('naviguer-site.png', $x) . ' ' . majuscules($x);
+ $x = "<div class='spip-previsu'>$x</div>";
+ if (!$pos = strpos($page['texte'], '</body>'))
+ $pos = strlen($page['texte']);
+ $page['texte'] = substr_replace($page['texte'], $x, $pos, 0);
+ }
+ return $page;
+}