source: spip-zone/_plugins_/opensearch/opensearch_pipelines.php @ 52796

Last change on this file since 52796 was 52796, checked in by kent1@…, 9 years ago

if (!defined("_ECRIRE_INC_VERSION")) return; sur tout fichier PHP pour sécurité future principalement

File size: 373 bytes
Line 
1<?php
2
3if (!defined("_ECRIRE_INC_VERSION")) return;
4
5function opensearch_insert_head($flux){
6        $nom_site = textebrut(typo($GLOBALS['meta']['nom_site']));
7        $url_opensearch = url_absolue(generer_url_public('opensearch.xml'));
8        $flux .= '<link rel="search" type="application/opensearchdescription+xml" title="'.$nom_site.'" href="'.$url_opensearch.'" />';
9        return $flux;
10}
11
12?>
Note: See TracBrowser for help on using the repository browser.