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>
<para> <note>
NOTE: <emphasis>Config file sections</emphasis> and the built-in <para>
template function called <emphasis>section</emphasis> have nothing <emphasis>Config file sections</emphasis> and the built-in
to do with each other, they just happen to share a common naming template function called <emphasis>section</emphasis> have nothing
convention. to do with each other, they just happen to share a common naming
</para> convention.
</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>
<para> <note>
NOTE: As of Smarty 1.5.0, the syntax for section property variables has <para>
been changed from {%sectionname.varname%} to As of Smarty 1.5.0, the syntax for section property variables has
{$smarty.section.sectionname.varname}. The old syntax is still been changed from {%sectionname.varname%} to
supported, but you will only see reference to the new syntax in the {$smarty.section.sectionname.varname}. The old syntax is still
manual examples. supported, but you will only see reference to the new syntax in the
</para> manual examples.
</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>
<para> <note>
NOTE: This is not affected by the section properties start, step and <para>
max, unlike the index property. Iteration also starts with 1 This is not affected by the section properties start, step and
instead of 0 like index. rownum is an alias to iteration, they work max, unlike the index property. Iteration also starts with 1
identical. instead of 0 like index. rownum is an alias to iteration, they work
</para> identical.
</para>
</note>
<example> <example>
<title>section property iteration</title> <title>section property iteration</title>
<programlisting> <programlisting>
@@ -565,4 +569,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml vim: et tw=78 syn=sgml
vi: ts=1 sw=1 vi: ts=1 sw=1
--> -->

View File

@@ -426,4 +426,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml vim: et tw=78 syn=sgml
vi: ts=1 sw=1 vi: ts=1 sw=1
--> -->

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>
<para> <note>
NOTE: Embedding PHP code into templates is highly discouraged. <para>
Use <link linkend="language.custom.functions">custom functions</link> or Embedding PHP code into templates is highly discouraged.
<link linkend="language.modifiers">modifiers</link> instead. Use <link linkend="language.custom.functions">custom functions</link> or
</para> <link linkend="language.modifiers">modifiers</link> instead.
</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:
@@ -43,4 +45,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml vim: et tw=78 syn=sgml
vi: ts=1 sw=1 vi: ts=1 sw=1
--> -->