mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
Sync with en
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.14 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.15 Maintainer: gerald Status: ready -->
|
||||||
<chapter id="language.modifiers">
|
<chapter id="language.modifiers">
|
||||||
<title>Modificateurs de variables</title>
|
<title>Modificateurs de variables</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -16,17 +16,25 @@
|
|||||||
<title>Exemple de modificateur</title>
|
<title>Exemple de modificateur</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{* Met le titre en majuscule *}
|
{* applique un modificateur <20> une variable *}
|
||||||
<h2>{$title|upper}</h2>
|
{$titre|upper}
|
||||||
|
|
||||||
{* Tronque le sujet <20> 40 caract<63>res, place des "..." <20> la fin *}
|
{* modificateur avec param<61>tres *}
|
||||||
Sujet: {$sujet|truncate:40:"..."}
|
{$titre|truncate:40:"..."}
|
||||||
|
|
||||||
{* formatage en cha<EFBFBD>ne *}
|
{* applique un modificateur <20> un param<61>tre de fonction *}
|
||||||
{"now"|date_format:"%Y/%m/%d"}
|
{html_table loop=$mavariable|upper}
|
||||||
|
{* avec param<61>tres *}
|
||||||
|
{html_table loop=$mavariable|truncate:40:"..."}
|
||||||
|
|
||||||
{* application d'un modificateur <20> une fonction utilisateur *}
|
{* applique un modificateur <20> une chaine de caract<63>res *}
|
||||||
{mailto|upper address="me@domain.dom"}
|
{"foobar"|upper}
|
||||||
|
|
||||||
|
{* utilise date_format pour mettre en forme la date *}
|
||||||
|
{$smarty.now|date_format:"%d/%m/%Y"}
|
||||||
|
|
||||||
|
{* applique un modificateur <20> une fonction utilisateur *}
|
||||||
|
{mailto|upper address="moi@domaine.dom"}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
Reference in New Issue
Block a user