1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/plugins-dist/textwheel/wheels/spip/spip.php
2015-04-28 17:10:23 +02:00

29 lines
No EOL
580 B
PHP

<?php
if (!defined('_ECRIRE_INC_VERSION')) return;
include_spip('inc/texte');
/**
* callback pour la puce qui est definissable/surchargeable
* @return string
*/
function replace_puce(){
static $puce;
if (!isset($puce))
$puce = "\n<br />".definir_puce()."&nbsp;";
return $puce;
}
/**
* callback pour les Abbr :
* [ABBR|abbrevation]
* [ABBR|abbrevation{lang}]
* @param array $m
* @return string
*/
function inserer_abbr($m){
$title = attribut_html($m[2]);
$lang = (isset($m[3])?" lang=\"".$m[3]."\"":"");
return "<abbr title=\"$title\"$lang>".$m[1]."</abbr>";
}