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

Last change on this file was 103575, checked in by brunobergot@…, 23 months ago

version 0.2.3 : compatible 3.2 + pas de fermeture php

File size: 369 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}
Note: See TracBrowser for help on using the repository browser.