1 | <?php |
---|
2 | |
---|
3 | /***************************************************************************\ |
---|
4 | * SPIP, Systeme de publication pour l'internet * |
---|
5 | * * |
---|
6 | * Copyright (c) 2001-2015 * |
---|
7 | * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * |
---|
8 | * * |
---|
9 | * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * |
---|
10 | * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
---|
11 | \***************************************************************************/ |
---|
12 | |
---|
13 | if (!defined("_ECRIRE_INC_VERSION")) { |
---|
14 | return; |
---|
15 | } // securiser |
---|
16 | |
---|
17 | /* |
---|
18 | Ce jeu d'URLs est une variation de inc-urls-propres, qui ajoute |
---|
19 | le suffixe '.html' aux adresses ; |
---|
20 | */ |
---|
21 | |
---|
22 | # donner un exemple d'url pour le formulaire de choix |
---|
23 | define('URLS_PROPRES2_EXEMPLE', 'Titre-de-l-article.html -Rubrique-.html'); |
---|
24 | # specifier le form de config utilise pour ces urls |
---|
25 | define('URLS_PROPRES2_CONFIG', 'propres'); |
---|
26 | |
---|
27 | if (!defined('_terminaison_urls_propres')) { |
---|
28 | define('_terminaison_urls_propres', '.html'); |
---|
29 | } |
---|
30 | |
---|
31 | // http://code.spip.net/@urls_propres2_dist |
---|
32 | function urls_propres2_dist($i, &$entite, $args = '', $ancre = '') { |
---|
33 | $f = charger_fonction('propres', 'urls'); |
---|
34 | |
---|
35 | return $f($i, $entite, $args, $ancre); |
---|
36 | } |
---|
37 | |
---|
38 | ?> |
---|