Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/info/plugins-dist/textwheel/wheels/spip/ |
<?php /** * Fonctions utiles pour les wheels SPIP * * @SPIP\Textwheel\Wheel\SPIP\Fonctions **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } include_spip('inc/texte'); /** * Callback pour les <math></math> * Gestion du TeX * * @param string $t * @return string */ function replace_math($t) { if (!function_exists('traiter_math')) { include_spip('inc/math'); } $t = traiter_math($t, '', true); return $t; } /** * Callback pour la puce qui est définissable/surchargeable * * @return string * Code HTML d'une puce */ function replace_puce() { $puce = "\n<br />" . definir_puce() . ' '; return $puce; } /** * Callback pour les Abbr * * @example * ``` * [ABBR|abbrevation] * [ABBR|abbrevation{lang}] * ``` * @param array $m * @return string * Code HTML d'une abréviation */ function inserer_abbr($m) { $title = attribut_html($m[2]); $lang = (isset($m[3]) ? ' lang="' . $m[3] . '"' : ''); return "<abbr title=\"$title\"$lang>" . $m[1] . '</abbr>'; }