using <note>

This commit is contained in:
didou
2004-04-18 17:23:26 +00:00
parent 72ab60010c
commit 421af5ed7c
4 changed files with 35 additions and 27 deletions

View File

@@ -95,12 +95,14 @@
within a section with the added attribute within a section with the added attribute
<emphasis>section</emphasis>. <emphasis>section</emphasis>.
</para> </para>
<note>
<para> <para>
NOTE: <emphasis>Config file sections</emphasis> and the built-in <emphasis>Config file sections</emphasis> and the built-in
template function called <emphasis>section</emphasis> have nothing template function called <emphasis>section</emphasis> have nothing
to do with each other, they just happen to share a common naming to do with each other, they just happen to share a common naming
convention. convention.
</para> </para>
</note>
<example> <example>
<title>function config_load with section</title> <title>function config_load with section</title>
<programlisting> <programlisting>

View File

@@ -237,13 +237,15 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
Sections also have their own variables that handle section properties. Sections also have their own variables that handle section properties.
These are indicated like so: {$smarty.section.sectionname.varname} These are indicated like so: {$smarty.section.sectionname.varname}
</para> </para>
<note>
<para> <para>
NOTE: As of Smarty 1.5.0, the syntax for section property variables has As of Smarty 1.5.0, the syntax for section property variables has
been changed from {%sectionname.varname%} to been changed from {%sectionname.varname%} to
{$smarty.section.sectionname.varname}. The old syntax is still {$smarty.section.sectionname.varname}. The old syntax is still
supported, but you will only see reference to the new syntax in the supported, but you will only see reference to the new syntax in the
manual examples. manual examples.
</para> </para>
</note>
<sect2 id="section.property.index"> <sect2 id="section.property.index">
<title>index</title> <title>index</title>
<para> <para>
@@ -339,12 +341,14 @@ e-mail: jane@mydomain.com&lt;p&gt;</programlisting>
<para> <para>
iteration is used to display the current loop iteration. iteration is used to display the current loop iteration.
</para> </para>
<note>
<para> <para>
NOTE: This is not affected by the section properties start, step and This is not affected by the section properties start, step and
max, unlike the index property. Iteration also starts with 1 max, unlike the index property. Iteration also starts with 1
instead of 0 like index. rownum is an alias to iteration, they work instead of 0 like index. rownum is an alias to iteration, they work
identical. identical.
</para> </para>
</note>
<example> <example>
<title>section property iteration</title> <title>section property iteration</title>
<programlisting> <programlisting>

View File

@@ -18,11 +18,13 @@
<listitem><para>SMARTY_PHP_ALLOW - Smarty will execute the tags <listitem><para>SMARTY_PHP_ALLOW - Smarty will execute the tags
as PHP code.</para></listitem> as PHP code.</para></listitem>
</itemizedlist> </itemizedlist>
<note>
<para> <para>
NOTE: Embedding PHP code into templates is highly discouraged. Embedding PHP code into templates is highly discouraged.
Use <link linkend="language.custom.functions">custom functions</link> or Use <link linkend="language.custom.functions">custom functions</link> or
<link linkend="language.modifiers">modifiers</link> instead. <link linkend="language.modifiers">modifiers</link> instead.
</para> </para>
</note>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables: