mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
Ctags, <g & stuff
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.syntax.attributes">
|
||||
<title>Param<EFBFBD>tres</title>
|
||||
<para>
|
||||
@@ -20,6 +20,7 @@
|
||||
<example>
|
||||
<title>Param<EFBFBD>tres de fonction, syntaxe</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{include file="header.tpl"}
|
||||
|
||||
{include file=$includeFile}
|
||||
@@ -28,9 +29,11 @@
|
||||
|
||||
{html_select_date display_days=yes}
|
||||
|
||||
<SELECT name=company>
|
||||
<select name="company">
|
||||
{html_options values=$vals selected=$selected output=$output}
|
||||
</SELECT></programlisting>
|
||||
</select>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.syntax.comments">
|
||||
<title>Commentaires</title>
|
||||
<para>
|
||||
@@ -14,6 +14,7 @@
|
||||
<example>
|
||||
<title>Commentaires</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* Smarty *}
|
||||
|
||||
{* Inclusion de l'en t<>te *}
|
||||
@@ -24,9 +25,11 @@
|
||||
{include file=#includeFile#}
|
||||
|
||||
{* affiche des listes d<>roulantes *}
|
||||
<SELECT name=company>
|
||||
<SELECT name=company>
|
||||
{html_options values=$vals selected=$selected output=$output}
|
||||
</SELECT></programlisting>
|
||||
</SELECT>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.syntax.functions">
|
||||
<title>Fonctions</title>
|
||||
<para>
|
||||
@@ -12,6 +12,8 @@
|
||||
<example>
|
||||
<title>syntaxe des fonctions</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
|
||||
{config_load file="colors.conf"}
|
||||
|
||||
{include file="header.tpl"}
|
||||
@@ -22,7 +24,9 @@
|
||||
Bienvenue, <font color="{#fontColor#}">{$name}!</font>
|
||||
{/if}
|
||||
|
||||
{include file="footer.tpl"}</programlisting>
|
||||
{include file="footer.tpl"}
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.syntax.quotes">
|
||||
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
|
||||
<para>
|
||||
@@ -13,18 +13,21 @@
|
||||
<example>
|
||||
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
EXEMPLE DE SYNTAXE:
|
||||
{func var="test $foo test"} <-- comprends $foo
|
||||
{func var="test $foo_bar test"} <-- comprends $foo_bar
|
||||
{func var="test $foo[0] test"} <-- comprends $foo[0]
|
||||
{func var="test $foo[bar] test"} <-- comprends $foo[bar]
|
||||
{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
|
||||
{func var="test `$foo.bar` test"} <-- comprends $foo.bar
|
||||
{func var="test $foo test"} <-- comprends $foo
|
||||
{func var="test $foo_bar test"} <-- comprends $foo_bar
|
||||
{func var="test $foo[0] test"} <-- comprends $foo[0]
|
||||
{func var="test $foo[bar] test"} <-- comprends $foo[bar]
|
||||
{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
|
||||
{func var="test `$foo.bar` test"} <-- comprends $foo.bar
|
||||
|
||||
EXEMPLE PRATIQUE:
|
||||
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
|
||||
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
|
||||
apostrophes inverses</programlisting>
|
||||
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
|
||||
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
|
||||
apostrophes inverses
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
Reference in New Issue
Block a user