applied manual updates from Peter Morgan. he added loads of useful

crosslinks between related functions and fixed some minors.
This commit is contained in:
messju
2005-05-08 19:47:01 +00:00
parent 575142f90e
commit 93426f93ac
23 changed files with 104 additions and 36 deletions

View File

@@ -5,7 +5,7 @@
<para> <para>
All Smarty template tags are enclosed within delimiters. By All Smarty template tags are enclosed within delimiters. By
default, these delimiters are <literal>{</literal> and default, these delimiters are <literal>{</literal> and
<literal>}</literal>, but they can be changed. <literal>}</literal>, but they can be <link linkend="variable.left.delimiter">changed</link>.
</para> </para>
<para> <para>
For these examples, we will assume that you are using the default For these examples, we will assume that you are using the default

View File

@@ -30,11 +30,11 @@
<para> <para>
Both built-in functions and custom functions have the same syntax in Both built-in functions and custom functions have the same syntax in
the templates. Built-in functions are the inner workings of Smarty, the templates. Built-in functions are the inner workings of Smarty,
such as <command>if</command>, <command>section</command> and such as <link linkend="language.function.if"><command>if</command></link>, <link linkend="language.function.section"><command>section</command></link> and
<command>strip</command>. They cannot be modified. Custom functions are <link linkend="language.function.strip"><command>strip</command></link>. They cannot be modified. Custom functions are
additional functions implemented via plugins. They can be modified to additional functions implemented via plugins. They can be modified to
your liking, or you can add new ones. <command>html_options</command> and your liking, or you can add new ones. <link linkend="language.function.html.options"><command>html_options</command></link> and
<command>html_select_date</command> are examples of custom functions. <link linkend="language.function.html.select.date"><command>html_select_date</command></link> are examples of custom functions.
</para> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -124,6 +124,11 @@
]]> ]]>
</programlisting> </programlisting>
</example> </example>
<para>
See also <link linkend="config.files">Config Files</link> and
<link linkend="language.function.config.load">Config Load</link>.
</para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -28,6 +28,7 @@
]]> ]]>
</screen> </screen>
</example> </example>
<para>See also <link linkend="language.escaping">Escaping Smarty Parsing</link> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -35,6 +35,7 @@
]]> ]]>
</programlisting> </programlisting>
</example> </example>
<para>See also <link linkend="language.escaping">Escaping Smarty Parsing</link> </para>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -62,9 +62,9 @@
$security_settings['MODIFIER_FUNCS']</link>-array. $security_settings['MODIFIER_FUNCS']</link>-array.
</para> </para>
&designers.language-modifiers.language-modifier-cat;
&designers.language-modifiers.language-modifier-capitalize; &designers.language-modifiers.language-modifier-capitalize;
&designers.language-modifiers.language-modifier-count-characters; &designers.language-modifiers.language-modifier-count-characters;
&designers.language-modifiers.language-modifier-cat;
&designers.language-modifiers.language-modifier-count-paragraphs; &designers.language-modifiers.language-modifier-count-paragraphs;
&designers.language-modifiers.language-modifier-count-sentences; &designers.language-modifiers.language-modifier-count-sentences;
&designers.language-modifiers.language-modifier-count-words; &designers.language-modifiers.language-modifier-count-words;

View File

@@ -67,6 +67,7 @@ Next X-Men Film, X3, Delayed.
]]> ]]>
</screen> </screen>
</example> </example>
<para>See also <link linkend="language.modifier.lower">lower</link> <link linkend="language.modifier.upper">upper</link> </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:

View File

@@ -67,6 +67,11 @@ Cold Wave Linked to Temperatures.
]]> ]]>
</screen> </screen>
</example> </example>
<para>See also <link linkend="language.modifier.count.paragraphs">count_paragraphs</link>
<link linkend="language.modifier.count.sentences">count_sentences</link>
<link linkend="language.modifier.count.words">count_words</link>
</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:

View File

@@ -38,6 +38,11 @@ Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation.
]]> ]]>
</screen> </screen>
</example> </example>
<para>See also <link linkend="language.modifier.count.characters">count_characters</link>
<link linkend="language.modifier.count.sentences">count_sentences</link>
<link linkend="language.modifier.count.words">count_words</link>
</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:

View File

@@ -37,6 +37,11 @@ Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.
]]> ]]>
</screen> </screen>
</example> </example>
<para>See also <link linkend="language.modifier.count.characters">count_characters</link>
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link>
<link linkend="language.modifier.count.words">count_words</link>
</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:

View File

@@ -37,6 +37,12 @@ Dealers Will Hear Car Talk at Noon.
]]> ]]>
</screen> </screen>
</example> </example>
<para>See also <link linkend="language.modifier.count.characters">count_characters</link>
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link>
<link linkend="language.modifier.count.sentences">count_sentences</link>
</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:

View File

@@ -203,8 +203,9 @@ Monday, February 5, 2001
<note> <note>
<title>Programmers note</title> <title>Programmers note</title>
<para> <para>
date_format is essentially a wrapper to PHP's strftime() date_format is essentially a wrapper to PHP's
function. You may have more or less conversion specifiers available depending <ulink url="&url.php-manual;strftime">strftime()</ulink> function.
You may have more or less conversion specifiers available depending
on your system's strftime() function where PHP was compiled. Check your on your system's strftime() function where PHP was compiled. Check your
system's manpage for a full list of valid specifiers. system's manpage for a full list of valid specifiers.
</para> </para>

View File

@@ -37,7 +37,12 @@ two convicts evade noose, jury hung.
]]> ]]>
</screen> </screen>
</example> </example>
</sect1> <para>
See also <link linkend="language.modifier.upper">upper</link> and
<link linkend="language.modifier.capitalize">Capitalize</link>.
</para>
</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
@@ -57,4 +62,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

@@ -37,7 +37,12 @@ IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.
]]> ]]>
</screen> </screen>
</example> </example>
</sect1> <para>
See also <link linkend="language.modifier.lower">lower</link> and
<link linkend="language.modifier.capitalize">capitalize</link>.
</para>
</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
@@ -57,4 +62,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

@@ -86,7 +86,7 @@
<sect2 id="language.variables.smarty.capture"> <sect2 id="language.variables.smarty.capture">
<title>{$smarty.capture}</title> <title>{$smarty.capture}</title>
<para> <para>
The output captured via {capture}..{/capture} construct can be The output captured via <link linkend="language.function.capture">{capture}..{/capture}</link> construct can be
accessed using {$smarty} variable. See section on accessed using {$smarty} variable. See section on
<link linkend="language.function.capture">capture</link> for an example. <link linkend="language.function.capture">capture</link> for an example.
</para> </para>

View File

@@ -78,8 +78,13 @@ $smarty->display("db:header.tpl");
]]> ]]>
</programlisting> </programlisting>
</example> </example>
<para>
See also <link linkend="api.fetch">fetch()</link> and
<link linkend="api.template.exists">template_exists</link>.
</para>
</refsect1> </refsect1>
</refentry> </refentry>
<!-- 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

View File

@@ -61,8 +61,13 @@ echo $output;
</programlisting> </programlisting>
</example> </example>
</para> </para>
<para>
See also <link linkend="api.display">display()</link> and
<link linkend="api.template.exists">template_exists</link>.
</para>
</refsect1> </refsect1>
</refentry> </refentry>
<!-- 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

View File

@@ -20,8 +20,12 @@
<link linkend="advanced.features.objects">object section</link> <link linkend="advanced.features.objects">object section</link>
of the manual for examples. of the manual for examples.
</para> </para>
<para>
See Also <link linkend="api.unregister.object">unregister_object</link>.
</para>
</refsect1> </refsect1>
</refentry> </refentry>
<!-- 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

View File

@@ -14,6 +14,7 @@
<para> <para>
Use this to unregister an object. Use this to unregister an object.
</para> </para>
<para>See also <link linkend="api.register.object">register_object</link> <link linkend="advanced.features.objects">object section</link></para>
</refsect1> </refsect1>
</refentry> </refentry>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<sect1 id="variable.error.reporting"> <sect1 id="variable.error.reporting">
<title>$error_reporting</title> <title>$error_reporting</title>
<para> <para>
When this value is set to a non-null-value it's value is When this value is set to a non-null-value it's value is used as php's
used as php's error_reporting-level inside of display() and error_reporting-level inside of <link linkend="api.display">display()</link>
fetch(). When debugging is enabled this value is ignored and <link linkend="api.fetch">fetch()</link>. When <link
and the error-level is left untouched. linkend="chapter.debugging.console">debugging</link> is enabled this value
</para> is ignored and the error-level is left untouched.
</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
@@ -28,4 +30,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

@@ -1,12 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<sect1 id="variable.left.delimiter"> <sect1 id="variable.left.delimiter">
<title>$left_delimiter</title> <title>$left_delimiter</title>
<para> <para>
This is the left delimiter used by the template language. This is the left delimiter used by the template language.
Default is "{". Default is "{".
</para> </para>
<para>
See also <link linkend="variable.right.delimiter">$right_delimiter</link>.
</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
@@ -26,4 +30,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

@@ -1,12 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<sect1 id="variable.right.delimiter"> <sect1 id="variable.right.delimiter">
<title>$right_delimiter</title> <title>$right_delimiter</title>
<para> <para>
This is the right delimiter used by the template language. This is the right delimiter used by the template language.
Default is "}". Default is "}".
</para> </para>
<para>
See also <link linkend="variable.left.delimiter">$left_delimiter</link>.
</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
@@ -26,4 +30,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

@@ -10,6 +10,9 @@
<!ENTITY url.php-accelerator 'http://www.php-accelerator.co.uk'> <!ENTITY url.php-accelerator 'http://www.php-accelerator.co.uk'>
<!ENTITY url.zend 'http://www.zend.com/'> <!ENTITY url.zend 'http://www.zend.com/'>
<!-- to use like <ulink url="&url.php-manual;some_function"> -->
<!ENTITY url.php-manual 'http://php.net/'>
<!-- The three special language constants --> <!-- The three special language constants -->
<!ENTITY true '<constant>TRUE</constant>'> <!ENTITY true '<constant>TRUE</constant>'>
<!ENTITY false '<constant>FALSE</constant>'> <!ENTITY false '<constant>FALSE</constant>'>