2004-04-13 15:43:47 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2006-10-14 14:54:52 +00:00
|
|
|
|
<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready -->
|
2005-11-28 21:20:28 +00:00
|
|
|
|
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<sect1 id="language.syntax.comments">
|
|
|
|
|
|
<title>Commentaires</title>
|
|
|
|
|
|
<para>
|
2005-07-10 19:44:16 +00:00
|
|
|
|
Les commentaires dans Smarty sont entour<75>s d'asterisques,
|
|
|
|
|
|
et entour<75>s par le <link linkend="variable.left.delimiter">d<EFBFBD>limiteurs</link>
|
2006-10-14 14:54:52 +00:00
|
|
|
|
de cette fa<66>on :
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<informalexample>
|
|
|
|
|
|
<programlisting>
|
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
{* ceci est un comentaire *}
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
|
|
|
|
|
</informalexample>
|
|
|
|
|
|
<para>
|
2005-07-10 19:44:16 +00:00
|
|
|
|
Les commentaires Smarty ne sont PAS affich<63>s dans la sortie finale du
|
2006-10-14 14:54:52 +00:00
|
|
|
|
template, diff<66>remment des <literal><!-- commentaires HTML --></literal>.
|
|
|
|
|
|
Ils sont utilis<69>s pour des notes internes, dans le template que personne ne verra ;)
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</para>
|
|
|
|
|
|
<example>
|
2006-04-09 21:59:55 +00:00
|
|
|
|
<title>Commentaires dans un template</title>
|
2005-07-10 19:44:16 +00:00
|
|
|
|
<programlisting>
|
2004-07-02 19:49:32 +00:00
|
|
|
|
<![CDATA[
|
2006-03-11 19:45:40 +00:00
|
|
|
|
{* Je suis un commentaire Smarty, je n'existe pas dans la sortie compil<69>e *}
|
2006-04-09 21:59:55 +00:00
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<title>{$title}</title>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
2006-03-11 19:45:40 +00:00
|
|
|
|
|
|
|
|
|
|
{* un autre commentaire Smarty sur une seule ligne *}
|
|
|
|
|
|
<!-- Un commentaire Html qui sera envoy<6F> au navigateur -->
|
2005-11-28 21:20:28 +00:00
|
|
|
|
|
|
|
|
|
|
{* ces multi-lignes sont des commentaires
|
2006-03-22 17:30:04 +00:00
|
|
|
|
qui ne sont pas envoy<6F>es au navigateur
|
2005-07-10 19:44:16 +00:00
|
|
|
|
*}
|
2004-04-13 15:43:47 +00:00
|
|
|
|
|
2006-03-22 17:30:04 +00:00
|
|
|
|
{*********************************************************
|
|
|
|
|
|
Un bloc de commentaires multilignes contenant les cr<63>dits
|
|
|
|
|
|
@ author: bg@example.com
|
|
|
|
|
|
@ maintainer: support@example.com
|
|
|
|
|
|
@ para: var that sets block style
|
|
|
|
|
|
@ css: the style output
|
|
|
|
|
|
**********************************************************}
|
|
|
|
|
|
|
2006-04-09 21:59:55 +00:00
|
|
|
|
{* Inclusion du fichier d'en-t<>te contenant le logo principal *}
|
2006-02-18 17:54:23 +00:00
|
|
|
|
{include file='header.tpl'}
|
2004-04-13 15:43:47 +00:00
|
|
|
|
|
2005-07-10 19:44:16 +00:00
|
|
|
|
{* Note aux d<>veloppeurs : $includeFile est assign<67> au script foo.php *}
|
2006-03-11 19:45:40 +00:00
|
|
|
|
<!-- Affichage du bloc principal -->
|
2004-04-13 15:43:47 +00:00
|
|
|
|
{include file=$includeFile}
|
|
|
|
|
|
|
2005-11-28 21:20:28 +00:00
|
|
|
|
{* Ce block <select> est redondant *}
|
|
|
|
|
|
{*
|
2005-07-10 19:44:16 +00:00
|
|
|
|
<select name="company">
|
|
|
|
|
|
{html_options options=$vals selected=$selected_id}
|
|
|
|
|
|
</select>
|
2005-11-28 21:20:28 +00:00
|
|
|
|
*}
|
2006-02-18 17:54:23 +00:00
|
|
|
|
|
2006-10-14 14:54:52 +00:00
|
|
|
|
<!-- L'affichage de l'en-t<EFBFBD>te est d<>sactiv<69> -->
|
|
|
|
|
|
{* $affiliate|upper *}
|
|
|
|
|
|
|
|
|
|
|
|
{* Vous ne pouvez pas imbriquer des commentaires *}
|
|
|
|
|
|
{*
|
|
|
|
|
|
<select name="company">
|
|
|
|
|
|
{* <option value="0">-- none -- </option> *}
|
|
|
|
|
|
{html_options options=$vals selected=$selected_id}
|
|
|
|
|
|
</select>
|
|
|
|
|
|
*}
|
|
|
|
|
|
|
2006-04-09 21:59:55 +00:00
|
|
|
|
{* Balise cvs pour un template, ci-dessous, le 36 DOIT <20>TRE une devise am<61>ricaine sinon,
|
|
|
|
|
|
il sera converti en cvs.. *}
|
|
|
|
|
|
{* $Id: Exp $ *}
|
|
|
|
|
|
{* $Id: *}
|
2005-07-10 19:44:16 +00:00
|
|
|
|
</body>
|
2006-04-09 21:59:55 +00:00
|
|
|
|
</html>
|
2004-07-02 19:49:32 +00:00
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</example>
|
2004-04-13 15:43:47 +00:00
|
|
|
|
</sect1>
|
2005-07-10 19:44:16 +00:00
|
|
|
|
|
2004-04-13 15:43:47 +00:00
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
|
|
Local variables:
|
|
|
|
|
|
mode: sgml
|
|
|
|
|
|
sgml-omittag:t
|
|
|
|
|
|
sgml-shorttag:t
|
|
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
|
|
sgml-indent-step:1
|
|
|
|
|
|
sgml-indent-data:t
|
|
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
|
|
sgml-parent-document:nil
|
|
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
|
|
End:
|
|
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
|
|
vi: ts=1 sw=1
|
2005-07-10 19:44:16 +00:00
|
|
|
|
-->
|