cvs: smarty /docs/en/designers/language-custom-functions language-function-assign.xml language-function-counter.xml language-function-cycle.xml language-function-eval.xml language-function-fetch.xml language-function-html-checkboxes.xml language-function-html-image.xml language-function-html-options.xml language-function-html-radios.xml language-function-html-select-date.xml language-function-html-select-time.xml language-function-html-table.xml language-function-mailto.xml language-function-math.xml language-function-popup-init.xml language-function-popup.xml language-function-textformat.xml
"Peter 'Mash' Morgan" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvspete_morgan1126638192@cvsserver> |
pete_morgan Tue Sep 13 15:03:12 2005 EDT
Modified files:
/smarty/docs/en/designers/language-custom-functions
language-function-assign.xml
language-function-counter.xml
language-function-cycle.xml
language-function-eval.xml
language-function-fetch.xml
language-function-html-checkboxes.xml
language-function-html-image.xml
language-function-html-options.xml
language-function-html-radios.xml
language-function-html-select-date.xml
language-function-html-select-time.xml
language-function-html-table.xml
language-function-mailto.xml
language-function-math.xml
language-function-popup-init.xml
language-function-popup.xml
language-function-textformat.xml
Log:
Moved description to top of page
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pete_morgan-20050913150312.txt
(text/plain, 30.1 KB)
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-assign.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-assign.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-assign.xml:1.5 smarty/docs/en/designers/language-custom-functions/language-function-assign.xml:1.6
--- smarty/docs/en/designers/language-custom-functions/language-function-assign.xml:1.5 Fri May 27 12:25:01 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-assign.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<sect1 id="language.function.assign">
<title>{assign}</title>
+ <para>
+ {assign} is used for assigning template variables
+ <emphasis role="bold">during the execution
+ of the template</emphasis>.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -36,11 +42,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {assign} is used for assigning template variables
- <emphasis role="bold">during the execution
- of the template</emphasis>.
- </para>
+
<example>
<title>{assign}</title>
<programlisting>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-counter.xml?r1=1.4&r2=1.5&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-counter.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-counter.xml:1.4 smarty/docs/en/designers/language-custom-functions/language-function-counter.xml:1.5
--- smarty/docs/en/designers/language-custom-functions/language-function-counter.xml:1.4 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-counter.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,21 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<sect1 id="language.function.counter">
<title>{counter}</title>
+ <para>
+ {counter} is used to print out a count. {counter} will remember the
+ count on each iteration. You can adjust the number, the interval
+ and the direction of the count, as well as determine whether or not
+ to print the value. You can run multiple counters concurrently by
+ supplying a unique name for each one. If you do not supply a name,
+ the name 'default' will be used.
+ </para>
+ <para>
+ If you supply the special "assign" attribute, the output of the
+ counter function will be assigned to this template variable instead of
+ being output to the template.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -64,19 +78,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {counter} is used to print out a count. {counter} will remember the
- count on each iteration. You can adjust the number, the interval
- and the direction of the count, as well as determine whether or not
- to print the value. You can run multiple counters concurrently by
- supplying a unique name for each one. If you do not supply a name,
- the name 'default' will be used.
- </para>
- <para>
- If you supply the special "assign" attribute, the output of the
- counter function will be assigned to this template variable instead of
- being output to the template.
- </para>
+
<example>
<title>counter</title>
<programlisting>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-cycle.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-cycle.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-cycle.xml:1.5 smarty/docs/en/designers/language-custom-functions/language-function-cycle.xml:1.6
--- smarty/docs/en/designers/language-custom-functions/language-function-cycle.xml:1.5 Sat Sep 10 09:18:40 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-cycle.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<sect1 id="language.function.cycle">
<title>{cycle}</title>
+ <para>
+ {cycle} is used to cycle though a set of values. This makes it easy
+ to alternate for example between two or more colors in a table, or cycle
+ through an array of values.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -74,11 +80,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {cycle} is used to cycle though a set of values. This makes it easy
- to alternate for example between two or more colors in a table, or cycle
- through an array of values.
- </para>
+
<para>
You can {cycle} through more than one set of values in your template
by supplying a name attribute. Give each set of values a unique
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-eval.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-eval.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-eval.xml:1.3 smarty/docs/en/designers/language-custom-functions/language-function-eval.xml:1.4
--- smarty/docs/en/designers/language-custom-functions/language-function-eval.xml:1.3 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-eval.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,18 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="language.function.eval">
<title>{eval}</title>
+ <para>
+ {eval} is used to evaluate a variable as a template. This can be used
+ for things like embedding template tags/variables into variables or
+ tags/variables into config file variables.
+ </para>
+ <para>
+ If you supply the special "assign" attribute, the output of the
+ {eval} function will be assigned to this template variable instead of
+ being output to the template.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -37,16 +48,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {eval} is used to evaluate a variable as a template. This can be used
- for things like embedding template tags/variables into variables or
- tags/variables into config file variables.
- </para>
- <para>
- If you supply the special "assign" attribute, the output of the
- {eval} function will be assigned to this template variable instead of
- being output to the template.
- </para>
+
<note>
<title>Technical Note</title>
<para>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-fetch.xml?r1=1.8&r2=1.9&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-fetch.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-fetch.xml:1.8 smarty/docs/en/designers/language-custom-functions/language-function-fetch.xml:1.9
--- smarty/docs/en/designers/language-custom-functions/language-function-fetch.xml:1.8 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-fetch.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,21 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<sect1 id="language.function.fetch">
<title>{fetch}</title>
+ <para>
+ {fetch} is used to fetch files from the local file system, http, or
+ ftp and display the contents. If the file name begins with
+ "http://", the web site page will be fetched and displayed. If the
+ file name begins with "ftp://", the file will be fetched from the
+ ftp server and displayed. For local files, the full system file
+ path must be given, or a path relative to the executed php script.
+ </para>
+ <para>
+ If you supply the special "assign" attribute, the output of the
+ {fetch} function will be assigned to this template variable instead of
+ being output to the template. (new in Smarty 1.5.0)
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -37,19 +51,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {fetch} is used to fetch files from the local file system, http, or
- ftp and display the contents. If the file name begins with
- "http://", the web site page will be fetched and displayed. If the
- file name begins with "ftp://", the file will be fetched from the
- ftp server and displayed. For local files, the full system file
- path must be given, or a path relative to the executed php script.
- </para>
- <para>
- If you supply the special "assign" attribute, the output of the
- {fetch} function will be assigned to this template variable instead of
- being output to the template. (new in Smarty 1.5.0)
- </para>
+
<note>
<title>Technical Note</title>
<para>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml?r1=1.10&r2=1.11&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml:1.10 smarty/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml:1.11
--- smarty/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml:1.10 Sun Jun 5 15:46:19 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,17 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<sect1 id="language.function.html.checkboxes">
<title>{html_checkboxes}</title>
+ <para>
+ {html_checkboxes} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that creates an html checkbox
+ group with provided data. It takes care of which item(s) are
+ selected by default as well. Required attributes are values and
+ output, unless you use options instead. All output is XHTML
+ compatible.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -71,15 +81,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_checkboxes} is a
- <link linkend="language.custom.functions">custom function</link>
- that creates an html checkbox
- group with provided data. It takes care of which item(s) are
- selected by default as well. Required attributes are values and
- output, unless you use options instead. All output is XHTML
- compatible.
- </para>
+
<para>
All parameters that are not in the list above are printed as
name/value-pairs inside each of the created <input>-tags.
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-image.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-image.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-image.xml:1.5 smarty/docs/en/designers/language-custom-functions/language-function-html-image.xml:1.6
--- smarty/docs/en/designers/language-custom-functions/language-function-html-image.xml:1.5 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-image.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,15 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<sect1 id="language.function.html.image">
<title>{html_image}</title>
+ <para>
+ {html_image} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that generates an HTML tag for an
+ image. The height and width are automatically calculated from the
+ image file if none are supplied.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -64,13 +72,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_image} is a
- <link linkend="language.custom.functions">custom function</link>
- that generates an HTML tag for an
- image. The height and width are automatically calculated from the
- image file if none are supplied.
- </para>
+
<para>
basedir is the base directory that relative image paths are based
from. If not given, the web server document root (
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml?r1=1.10&r2=1.11&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.10 smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.11
--- smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml:1.10 Sat Sep 10 09:23:59 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-options.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<sect1 id="language.function.html.options">
<title>{html_options}</title>
+ <para>
+ {html_options} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that creates html <select><option> group
+ with provided data. It takes care of which item(s) are selected by
+ default as well. Required attributes are values and output, unless
+ you use options instead.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -57,14 +66,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_options} is a
- <link linkend="language.custom.functions">custom function</link>
- that creates html <select><option> group
- with provided data. It takes care of which item(s) are selected by
- default as well. Required attributes are values and output, unless
- you use options instead.
- </para>
+
<para>
If a given value is an array, it will treat it as an html <optgroup>,
and display the groups. Recursion is supported with <optgroup>. All
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml?r1=1.8&r2=1.9&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml:1.8 smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml:1.9
--- smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml:1.8 Fri May 27 12:25:01 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-radios.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<sect1 id="language.function.html.radios">
<title>{html_radios}</title>
+ <para>
+ {html_radios} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that creates html radio button
+ group with provided data. It takes care of which item is selected
+ by default as well. Required attributes are values and output,
+ unless you use options instead. All output is XHTML compatible.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -64,14 +73,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_radios} is a
- <link linkend="language.custom.functions">custom function</link>
- that creates html radio button
- group with provided data. It takes care of which item is selected
- by default as well. Required attributes are values and output,
- unless you use options instead. All output is XHTML compatible.
- </para>
+
<para>
All parameters that are not in the list above are printed as
name/value-pairs inside each of the created <input>-tags.
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-select-date.xml?r1=1.8&r2=1.9&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-select-date.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-select-date.xml:1.8 smarty/docs/en/designers/language-custom-functions/language-function-html-select-date.xml:1.9
--- smarty/docs/en/designers/language-custom-functions/language-function-html-select-date.xml:1.8 Fri May 27 12:25:01 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-select-date.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<sect1 id="language.function.html.select.date">
<title>{html_select_date}</title>
+ <para>
+ {html_select_date} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that creates date dropdowns
+ for you. It can display any or all of year, month, and day.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -221,12 +228,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_select_date} is a
- <link linkend="language.custom.functions">custom function</link>
- that creates date dropdowns
- for you. It can display any or all of year, month, and day.
- </para>
+
<example>
<title>{html_select_date}</title>
<para>Template code</para>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-select-time.xml?r1=1.6&r2=1.7&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-select-time.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-select-time.xml:1.6 smarty/docs/en/designers/language-custom-functions/language-function-html-select-time.xml:1.7
--- smarty/docs/en/designers/language-custom-functions/language-function-html-select-time.xml:1.6 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-select-time.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<sect1 id="language.function.html.select.time">
<title>{html_select_time}</title>
+ <para>
+ {html_select_time} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that creates time dropdowns for you. It can display
+ any or all of hour, minute, second and meridian.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -132,12 +139,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_select_time} is a
- <link linkend="language.custom.functions">custom function</link>
- that creates time dropdowns for you. It can display
- any or all of hour, minute, second and meridian.
- </para>
+
<para>
The time-attribute can have different
formats. It can be a unique timestamp, a
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-html-table.xml?r1=1.7&r2=1.8&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-html-table.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-html-table.xml:1.7 smarty/docs/en/designers/language-custom-functions/language-function-html-table.xml:1.8
--- smarty/docs/en/designers/language-custom-functions/language-function-html-table.xml:1.7 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-html-table.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,20 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<sect1 id="language.function.html.table">
<title>{html_table}</title>
+ <para>
+ {html_table} is a
+ <link linkend="language.custom.functions">custom function</link>
+ that dumps an array of
+ data into an HTML table. The <emphasis>cols</emphasis> attribute determines
+ how many columns will be in the table. The <emphasis>table_attr</emphasis>,
+ <emphasis>tr_attr</emphasis> and <emphasis>td_attr</emphasis> values
+ determine the attributes given to the table, tr and td tags. If
+ <emphasis>tr_attr</emphasis> or <emphasis>td_attr</emphasis> are arrays,
+ they will be cycled through. <emphasis>trailpad</emphasis> is the value put
+ into the trailing cells on the last table row if there are any present.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -116,18 +129,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {html_table} is a
- <link linkend="language.custom.functions">custom function</link>
- that dumps an array of
- data into an HTML table. The <emphasis>cols</emphasis> attribute determines
- how many columns will be in the table. The <emphasis>table_attr</emphasis>,
- <emphasis>tr_attr</emphasis> and <emphasis>td_attr</emphasis> values
- determine the attributes given to the table, tr and td tags. If
- <emphasis>tr_attr</emphasis> or <emphasis>td_attr</emphasis> are arrays,
- they will be cycled through. <emphasis>trailpad</emphasis> is the value put
- into the trailing cells on the last table row if there are any present.
- </para>
+
<example>
<title>html_table</title>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml:1.5 smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml:1.6
--- smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml:1.5 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-mailto.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<sect1 id="language.function.mailto">
<title>{mailto}</title>
+ <para>
+ {mailto} automates the creation of mailto: links and optionally
+ encodes them. Encoding e-mails makes it more difficult for
+ web spiders to lift e-mail addresses off of your site.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -90,11 +96,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {mailto} automates the creation of mailto: links and optionally
- encodes them. Encoding e-mails makes it more difficult for
- web spiders to lift e-mail addresses off of your site.
- </para>
+
<note>
<title>Technical Note</title>
<para>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-math.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-math.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-math.xml:1.3 smarty/docs/en/designers/language-custom-functions/language-function-math.xml:1.4
--- smarty/docs/en/designers/language-custom-functions/language-function-math.xml:1.3 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-math.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,23 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="language.function.math">
<title>{math}</title>
+ <para>
+ {math} allows the template designer to do math equations in the
+ template. Any numeric template variables may be used in the
+ equations, and the result is printed in place of the tag. The
+ variables used in the equation are passed as parameters, which can
+ be template variables or static values. +, -, /, *, abs, ceil, cos,
+ exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt,
+ srans and tan are all valid operators. Check the PHP documentation
+ for further information on these math functions.
+ </para>
+ <para>
+ If you supply the special "assign" attribute, the output of the
+ math function will be assigned to this template variable instead of
+ being output to the template.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -57,21 +73,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {math} allows the template designer to do math equations in the
- template. Any numeric template variables may be used in the
- equations, and the result is printed in place of the tag. The
- variables used in the equation are passed as parameters, which can
- be template variables or static values. +, -, /, *, abs, ceil, cos,
- exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt,
- srans and tan are all valid operators. Check the PHP documentation
- for further information on these math functions.
- </para>
- <para>
- If you supply the special "assign" attribute, the output of the
- math function will be assigned to this template variable instead of
- being output to the template.
- </para>
+
<note>
<title>Technical Note</title>
<para>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml:1.3 smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml:1.4
--- smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml:1.3 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml Tue Sep 13 15:03:11 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="language.function.popup.init">
<title>{popup_init}</title>
<para>
@@ -10,23 +10,20 @@
help windows or tooltips.{popup_init} must be called once at the
top of any page you plan on using the
<link linkend="language.function.popup">{popup}</link> function.
+ </para>
+ <para>
<ulink url="&url.overLib;">overLib</ulink>
- was written by Erik Bosrup, and the homepage is located at
+ was written by Erik Bosrup, and the homepage/download is located at
<ulink url="&url.overLib;">&url.overLib;</ulink>.
</para>
- <para>
- As of Smarty version 2.1.2, overLib does NOT come with the release.
- Download overLib, place the 'overlib.js' file under your document
- root and supply the relative path to this file as the "src"
- parameter to {popup_init}.
- </para>
+
<example>
- <title>popup_init</title>
+ <title>{popup_init}</title>
<programlisting>
<![CDATA[
<head>
{* popup_init must be called once at the top of the page *}
-{popup_init src="/javascripts/overlib.js"}
+{popup_init src="javascripts/overlib.js"}
</head>
]]>
</programlisting>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-popup.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-popup.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-popup.xml:1.5 smarty/docs/en/designers/language-custom-functions/language-function-popup.xml:1.6
--- smarty/docs/en/designers/language-custom-functions/language-function-popup.xml:1.5 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-popup.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<sect1 id="language.function.popup">
<title>{popup}</title>
+ <para>
+ {popup} is used to create javascript popup windows.
+ <link linkend="language.function.popup.init">{popup_init}</link> MUST be called first for
+ this to work.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -390,11 +396,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {popup} is used to create javascript popup windows.
- <link linkend="language.function.popup.init">{popup_init}</link> MUST be called first for
- this to work.
- </para>
+
<example>
<title>{popup}</title>
<programlisting>
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-custom-functions/language-function-textformat.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-textformat.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-textformat.xml:1.3 smarty/docs/en/designers/language-custom-functions/language-function-textformat.xml:1.4
--- smarty/docs/en/designers/language-custom-functions/language-function-textformat.xml:1.3 Wed May 25 15:13:20 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-textformat.xml Tue Sep 13 15:03:11 2005
@@ -1,7 +1,19 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="language.function.textformat">
<title>{textformat}</title>
+ <para>
+ {textformat} is a
+ <link linkend="plugins.block.functions">block function</link>
+ used to format text. It basically
+ cleans up spaces and special characters, and formats paragraphs by
+ wrapping at a boundary and indenting lines.
+ </para>
+ <para>
+ You can set the parameters explicitly, or use a preset style.
+ Currently "email" is the only available style.
+ </para>
+
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
@@ -81,17 +93,7 @@
</tbody>
</tgroup>
</informaltable>
- <para>
- {textformat} is a
- <link linkend="plugins.block.functions">block function</link>
- used to format text. It basically
- cleans up spaces and special characters, and formats paragraphs by
- wrapping at a boundary and indenting lines.
- </para>
- <para>
- You can set the parameters explicitly, or use a preset style.
- Currently "email" is the only available style.
- </para>
+
<example>
<title>{textformat}</title>
<programlisting>