mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
quick commit, changing computer
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<sect1 id="language.function.capture">
|
<sect1 id="language.function.capture">
|
||||||
<title>capture</title>
|
<title>capture</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -35,20 +36,23 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Capturer le contenu d'un template.</title>
|
<title>Capturer le contenu d'un template.</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* nous ne voulons afficher une ligne que si cette derni<6E>re est activ<69>. *}
|
{* nous ne voulons afficher une ligne que si cette derni<6E>re est activ<69>. *}
|
||||||
{capture name=banner}
|
{capture name=banner}
|
||||||
{include file="get_banner.tpl"}
|
{include file="get_banner.tpl"}
|
||||||
{/capture}
|
{/capture}
|
||||||
{if $smarty.capture.banner ne ""}
|
{if $smarty.capture.banner ne ""}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{$smarty.capture.banner}
|
{$smarty.capture.banner}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}</programlisting>
|
{/if}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<sect1 id="language.function.config.load">
|
<sect1 id="language.function.config.load">
|
||||||
<title>config_load</title>
|
<title>config_load</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -69,54 +70,61 @@
|
|||||||
de configuration dans un template. Voir <link linkend="config.files">
|
de configuration dans un template. Voir <link linkend="config.files">
|
||||||
Fichiers de configuration</link> pour de plus amples informations.
|
Fichiers de configuration</link> pour de plus amples informations.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>fonction config_load</title>
|
<title>fonction config_load</title>
|
||||||
|
<programlisting>
|
||||||
<programlisting>
|
<![CDATA[
|
||||||
{config_load file="colors.conf"}
|
{config_load file="colors.conf"}
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<title>{#pageTitle#}</title>
|
<title>{#pageTitle#}</title>
|
||||||
<body bgcolor="{#bodyBgColor#}">
|
<body bgcolor="{#bodyBgColor#}">
|
||||||
<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
|
<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
|
||||||
<tr bgcolor="{#rowBgColor#}">
|
<tr bgcolor="{#rowBgColor#}">
|
||||||
<td>First</td>
|
<td>First</td>
|
||||||
<td>Last</td>
|
<td>Last</td>
|
||||||
<td>Address</td>
|
<td>Address</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html></programlisting>
|
</html>
|
||||||
</example>
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Les fichiers de configuration peuvent contenir des sections.
|
Les fichiers de configuration peuvent contenir des sections.
|
||||||
Vous pouvez charger des variables d'une section donn<6E>e avec le
|
Vous pouvez charger des variables d'une section donn<6E>e avec le
|
||||||
nouvel attribut <emphasis>section</emphasis>.
|
nouvel attribut <emphasis>section</emphasis>.
|
||||||
</para>
|
</para>
|
||||||
|
<note>
|
||||||
<para>
|
<para>
|
||||||
NOTE: Les <emphasis>sections des fichiers de configuration</emphasis>
|
Les <emphasis>sections des fichiers de configuration</emphasis>
|
||||||
et la fonction native <emphasis>section</emphasis> n'ont rien en
|
et la fonction native <emphasis>section</emphasis> n'ont rien en
|
||||||
commun, il s'av<61>re simplement qu'elles portent le m<>me nom.
|
commun, il s'av<61>re simplement qu'elles portent le m<>me nom.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
</note>
|
||||||
<title>fonction config_load et section</title>
|
<example>
|
||||||
<programlisting>
|
<title>fonction config_load et section</title>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{config_load file="colors.conf" section="client"}
|
{config_load file="colors.conf" section="client"}
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<title>{#pageTitle#}</title>
|
<title>{#pageTitle#}</title>
|
||||||
<body bgcolor="{#bodyBgColor#}">
|
<body bgcolor="{#bodyBgColor#}">
|
||||||
<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
|
<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
|
||||||
<tr bgcolor="{#rowBgColor#}">
|
<tr bgcolor="{#rowBgColor#}">
|
||||||
<td>First</td>
|
<td>First</td>
|
||||||
<td>Last</td>
|
<td>Last</td>
|
||||||
<td>Address</td>
|
<td>Address</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html></programlisting>
|
</html>
|
||||||
</example>
|
]]>
|
||||||
</sect1>
|
</programlisting>
|
||||||
|
</example>
|
||||||
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<sect1 id="language.function.foreach">
|
<sect1 id="language.function.foreach">
|
||||||
<title>foreach,foreachelse</title>
|
<title>foreach,foreachelse</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
Reference in New Issue
Block a user