From 345a0d56faeea6688c2e14a1116b9c78b4877be4 Mon Sep 17 00:00:00 2001 From: pete_morgan Date: Mon, 25 Sep 2006 21:47:31 +0000 Subject: [PATCH] A lot of formatting, tagging and tidy up. Some consistency at last --- .../language-function-capture.xml | 53 +++---- .../language-function-config-load.xml | 32 ++--- .../language-function-foreach.xml | 13 +- .../language-function-if.xml | 24 ++-- .../language-function-include-php.xml | 52 ++++--- .../language-function-include.xml | 134 ++++++++++-------- .../language-function-insert.xml | 54 ++++--- .../language-function-ldelim.xml | 27 ++-- .../language-function-literal.xml | 26 ++-- .../language-function-php.xml | 63 ++++---- .../language-function-section.xml | 5 +- .../language-function-strip.xml | 12 +- 12 files changed, 259 insertions(+), 236 deletions(-) diff --git a/docs/en/designers/language-builtin-functions/language-function-capture.xml b/docs/en/designers/language-builtin-functions/language-function-capture.xml index e463e717..a242c553 100644 --- a/docs/en/designers/language-builtin-functions/language-function-capture.xml +++ b/docs/en/designers/language-builtin-functions/language-function-capture.xml @@ -2,23 +2,24 @@ {capture} - + - {capture} is used to collect the output of the template between the tags into a - variable instead of displaying it. Any content between {capture - name='foo'} and {/capture} is collected into the variable specified - in the name attribute. + {capture} is used to collect the output of the template between the + tags into a variable instead of displaying it. Any content between + {capture name='foo'} and {/capture} is collected + into the variable specified in the name attribute. The captured content can be used in the template from the variable $smarty.capture.foo - where "foo" is the value passed in the name attribute. If you do not - supply a name attribute, then "default" will be used as the name - ie $smarty.capture.default - {capture}'s can be nested. - - - + linkend="language.variables.smarty.capture">$smarty.capture.foo + where foo is the value passed in the name attribute. + If you do not supply the name attribute, then default will + be used as the name ie $smarty.capture.default. + + {capture}'s can be nested. + + + @@ -58,11 +59,11 @@ Be careful when capturing {insert} + linkend="language.function.insert">{insert} output. If you have - $caching + $caching enabled and you have - {insert} + {insert} commands that you expect to run within cached content, do not capture this content. @@ -83,11 +84,11 @@ ]]> - + {capture} into a template variable - This example also demonstrates the - {popup} + This example also demonstrates the + {popup} function - - + + See also $smarty.capture, - {eval}, - {fetch}, - fetch() - and {assign}. + linkend="language.variables.smarty.capture">$smarty.capture, + {eval}, + {fetch}, + fetch() + and {assign}. diff --git a/docs/en/designers/language-builtin-functions/language-function-config-load.xml b/docs/en/designers/language-builtin-functions/language-function-config-load.xml index 1ec978cb..37d50c44 100644 --- a/docs/en/designers/language-builtin-functions/language-function-config-load.xml +++ b/docs/en/designers/language-builtin-functions/language-function-config-load.xml @@ -3,11 +3,11 @@ {config_load} - {config_load} is used for loading config - #variables# from a - configuration file into the template. + {config_load} is used for loading config + #variables# + from a configuration file into the template. - + @@ -73,7 +73,7 @@ {config_load} - example.conf + The example.conf file. Config Files may also contain sections. You can load variables from within a section with the added attribute - 'section'. + section. - Config file sections and the built-in + Config file sections and the built-in template function called - {section} - have nothing - to do with each other, they just happen to share a common naming + {section} + have nothing to do with each other, they just happen to share a common naming convention. @@ -149,16 +148,17 @@ pageTitle = "Customer Info" -See $config_overwrite for arrays of config variables +See $config_overwrite +to create arrays of config file variables. - See also Config files, - Config variables, - $config_dir, - get_config_vars() + See also the config files page, + config variables page, + $config_dir, + get_config_vars() and - config_load(). + config_load(). diff --git a/docs/en/designers/language-builtin-functions/language-function-foreach.xml b/docs/en/designers/language-builtin-functions/language-function-foreach.xml index 7f3dfd86..4b002e23 100644 --- a/docs/en/designers/language-builtin-functions/language-function-foreach.xml +++ b/docs/en/designers/language-builtin-functions/language-function-foreach.xml @@ -80,7 +80,7 @@ {foreach} loops can be nested, and the nested - {foreach} names MUST be unique from each other. + {foreach} names must be unique from each other. @@ -95,10 +95,11 @@ {foreach} loops also have their own variables that handle properties. - These are accessible as: + These are accessed with: {$smarty.foreach.name.property} with - name being the name attribute. + name being the + name attribute. Note @@ -168,7 +169,7 @@ $smarty->assign('myArray', $arr); ]]> Template to output $myArray as key/val pair, - like PHP's foreach. + like PHP's foreach. @@ -425,8 +426,8 @@ $smarty->assign('items', $items_list); - See also {section} and - $smarty.foreach. + See also {section} + and $smarty.foreach. diff --git a/docs/en/designers/language-builtin-functions/language-function-if.xml b/docs/en/designers/language-builtin-functions/language-function-if.xml index da7d0b29..c5a74000 100644 --- a/docs/en/designers/language-builtin-functions/language-function-if.xml +++ b/docs/en/designers/language-builtin-functions/language-function-if.xml @@ -3,21 +3,21 @@ {if},{elseif},{else} - {if} statements in Smarty have much the same flexibility as PHP - if + {if} statements in Smarty have much the same flexibility as PHP + if statements, with a few added features for the template engine. - Every {if} must be paired with an - {/if}. {else} and - {elseif} are also permitted. All PHP conditionals - and functions + Every {if} must be paired with a matching + {/if}. {else} and + {elseif} are also permitted. All PHP conditionals + and functions are recognized, such as ||, or, - &&, and, + &&, and, is_array(), etc. - If $security is enabled + If $security is enabled then IF_FUNCS array in the $security_settings array. + linkend="variable.security.settings">$security_settings array. The following is a list of recognized qualifiers, which must be @@ -221,8 +221,8 @@ ]]> - - + + {if} with more examples @@ -239,7 +239,7 @@ ]]> - +