|
|
Ligne 1 : |
Ligne 1 : |
− | [[Image:Logo_spip_thelia.png]]
| |
− | [http://www.spip-contrib.net/Plugin-Thelia le plugin thelia-spip]
| |
| | | |
− | '''Attention ces boucles nécessitent l'installation du plugin spip-thelia'''
| |
− |
| |
− | == vide ==
| |
− | <pre>
| |
− | THELIA-FILTRE_vide(valeur à tester||afficher si )
| |
− | </pre>
| |
− | <pre>
| |
− | THELIA-FILTRE_vide(THELIA-CHAPO||<div class="chapo">THELIA-CHAPO</div>)
| |
− | </pre>
| |
− |
| |
− | Permet de tester si une balise est vide, et dans ce cas afficher quelque chose.
| |
− |
| |
− | == egalite ==
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_egalite(variable à tester||valeur||affichage si égale)
| |
− | </pre>
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_egalite(THELIA-CHAPO||1||<div class="chapo">THELIA-CHAPO</div>)
| |
− | </pre>
| |
− |
| |
− | Permet de tester si THELIA-CHAPO est égale à 1, et dans ce cas afficher quelque chose.
| |
− |
| |
− | == different ==
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_different(variable à tester||valeur||affichage si différent)
| |
− | </pre>
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_different(THELIA-CHAPO||1||<div class="chapo">THELIA-CHAPO</div>)
| |
− | </pre>
| |
− |
| |
− | Permet de tester si THELIA-CHAPO est différent de 1, et dans ce cas afficher quelque chose.
| |
− |
| |
− | == vrai ou faux ==
| |
− |
| |
− | '''vrai''' :
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_vrai(Variable à tester||Résultat si vrai)
| |
− | </pre>
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_vrai(THELIA-CHAPO||<div class="chapo">THELIA-CHAPO</div>)
| |
− | </pre>
| |
− |
| |
− | Permet de tester si THELIA-CHAPO existe, et dans ce cas afficher quelque chose (ici le THELIA-CHAPO).
| |
− |
| |
− | '''faux''' :
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_faux(Variable à tester||Résultat si faux)
| |
− | </pre>
| |
− |
| |
− | <pre>
| |
− | THELIA-FILTRE_faux(THELIA-CHAPO||<div class="chapo">PAS DE RESUME DISPONIBLE</div>)
| |
− | </pre>
| |
− |
| |
− | Permet de tester si THELIA-CHAPO n'existe pas, et dans ce cas afficher quelque chose (ici la phrase "PAS DE RESUME DISPONIBLE").
| |
− |
| |
− | == fonctions ==
| |
− |
| |
− | '''min''' :
| |
− | <pre>
| |
− | THELIA-FILTRE_min(CHAINE)
| |
− | </pre>
| |
− | Écrit en minuscule la chaîne de caractères passé en paramètre
| |
− |
| |
− | '''maj''' :
| |
− | <pre>
| |
− | THELIA-FILTRE_maj(chaine)
| |
− | </pre>
| |
− | Écrit en majuscule la chaîne de caractères passé en paramètre
| |
− |
| |
− | '''sanstags''' :
| |
− | <pre>
| |
− | THELIA-FILTRE_sanstags(CHAINE)
| |
− | </pre>
| |
− | Écrit la chaîne passé en paramètre après avoir supprimé toutes les balises PHP et HTML.
| |
− |
| |
− | * [[Les boucles spip et thelia]]
| |
− | * [[Les filtres]]
| |
− |
| |
− | --[[Utilisateur:Alainormandie|alainormandie]] 24 septembre 2008 à 09:07 (UTC)
| |