Server : Apache System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 User : pragmatice ( 1003) PHP Version : 8.2.24 Disable Function : NONE Directory : /home/slc/public_html/plugins-dist/compagnon/ |
<?php /** * Fonctions pour les squelettes * * @package SPIP\Compagnon\Fonctions **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Retourne un court texte de compréhension * aléatoirement parmi une liste. * * @example * [(#VAL|ok_aleatoire)] * * @return string * Le texte traduit. **/ function filtre_ok_aleatoire_dist() { $alea = [ 'compagnon:ok', 'compagnon:ok_jai_compris', 'compagnon:ok_bien', 'compagnon:ok_merci', 'compagnon:ok_parfait', ]; return _T($alea[array_rand($alea)]); }