spip_bonux_options.php
Plugin Spip-Bonux Le plugin qui lave plus SPIP que SPIP (c) 2008 Mathieu Marcillaud, Cedric Morin, Tetue Licence GPL
Table of Contents
Constants
- _PREVISU_TEMPORAIRE_ACTIVE = \true
- _VAR_PREVIEW_EXCEPTION = \true
Functions
- spip_bonux_affichage_final() : mixed
- _T_ou_typo() : mixed
- une fonction qui regarde si $texte est une chaine de langue de la forme <:qqch:> si oui applique _T() si non applique typo() suivant le mode choisi
- spip_array_insert() : mixed
- text_truncate() : string
- Truncates text.
Constants
_PREVISU_TEMPORAIRE_ACTIVE
public
mixed
_PREVISU_TEMPORAIRE_ACTIVE
= \true
_VAR_PREVIEW_EXCEPTION
public
mixed
_VAR_PREVIEW_EXCEPTION
= \true
Functions
spip_bonux_affichage_final()
spip_bonux_affichage_final(mixed $flux) : mixed
Parameters
- $flux : mixed
_T_ou_typo()
une fonction qui regarde si $texte est une chaine de langue de la forme <:qqch:> si oui applique _T() si non applique typo() suivant le mode choisi
_T_ou_typo(mixed $valeur[, string $mode_typo = 'toujours' ][, mixed $connect = null ][, mixed $env = [] ]) : mixed
Parameters
- $valeur : mixed
-
Une valeur à tester. Si c'est un tableau, la fonction s'appliquera récursivement dessus.
- $mode_typo : string = 'toujours'
-
Le mode d'application de la fonction typo(), avec trois valeurs possibles "toujours", "jamais" ou "multi".
- $connect : mixed = null
- $env : mixed = []
Return values
mixed —Retourne la valeur éventuellement modifiée.
spip_array_insert()
spip_array_insert(mixed $arr1, mixed $cle, mixed $arr2[, mixed $avant = false ]) : mixed
Parameters
- $arr1 : mixed
- $cle : mixed
- $arr2 : mixed
- $avant : mixed = false
text_truncate()
Truncates text.
text_truncate(string $text[, int $length = 100 ][, array<string|int, mixed> $options = [] ]) : string
Cuts a string to the length of $length and replaces the last characters with the ending if the text is longer than length.
Options:
ending
Will be used as Ending and appended to the trimmed stringexact
If false, $text will not be cut mid-wordhtml
If true, HTML tags would be handled correctly
Parameters
- $text : string
-
String to truncate.
- $length : int = 100
-
Length of returned string, including ellipsis.
- $options : array<string|int, mixed> = []
-
An array of html attributes and options.
Tags
Return values
string —Trimmed string.