Les articles publiés sur le site
-
|couleur_*
It is a good idea to first read the article titled: "Couleurs automatiques" in this documentation. |couleur_extraire The ||couleur_extraire (extract_colour) filter is applied to an image tag (logo, typographical image...) and returns the hexadecimal RGB value of a colour shown in the image. (...) -
|couper
The |couper filter truncates a text after a certtain configurable number of characters. It attempts not to cut any words in half and removes any formatting from the text. If the original test is long than the truncated portion, then "(...)" will be added to the end of the extract to indicate (...) -
|direction_css
The |direction_css filter is applied to a CSS stylesheet and replaces any occurrences of left with right and of right with left. Depending on the language of the environment, the filter therefore makes it possible to completely "invert" any such directional rules specified in a CSS file. This (...) -
|entites_html
The |entites_html filter is applied to a text tag and will translate the HTML rendition of that tag by transforming into HTML entities any constituent characters that do not belong to the page's charset, as well as any ", . This is used to insert the text of a tag into a without causing any (...) -
|extraire_attribut
The |extraire_attributattribute_name filter (since SPIP 1.8.2) is used to retrieve the value of a specific attribute from an HTML tag. For example: Suppose that the #LOGO_SITE_SPIP tag generates the HTML code: , In that case: [(#LOGO_SITE_SPIP||extraire_attributsrc)] (...) - Filters / (...)