[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / textwheel / wheels / spip / spip.php
1 <?php
2
3 if (!defined('_ECRIRE_INC_VERSION')) return;
4
5 include_spip('inc/texte');
6
7 /**
8 * callback pour la puce qui est definissable/surchargeable
9 * @return string
10 */
11 function replace_puce(){
12 static $puce;
13 if (!isset($puce))
14 $puce = "\n<br />".definir_puce()."&nbsp;";
15 return $puce;
16 }
17
18 /**
19 * callback pour les Abbr :
20 * [ABBR|abbrevation]
21 * [ABBR|abbrevation{lang}]
22 * @param array $m
23 * @return string
24 */
25 function inserer_abbr($m){
26 $title = attribut_html($m[2]);
27 $lang = (isset($m[3])?" lang=\"".$m[3]."\"":"");
28 return "<abbr title=\"$title\"$lang>".$m[1]."</abbr>";
29 }