diff --git a/docs/en/designers/chapter-debugging-console.xml b/docs/en/designers/chapter-debugging-console.xml index 24275b25..61bd41fe 100644 --- a/docs/en/designers/chapter-debugging-console.xml +++ b/docs/en/designers/chapter-debugging-console.xml @@ -36,6 +36,7 @@ + \ No newline at end of file +--> diff --git a/docs/en/designers/config-files.xml b/docs/en/designers/config-files.xml index 9886d257..3fa10939 100644 --- a/docs/en/designers/config-files.xml +++ b/docs/en/designers/config-files.xml @@ -34,7 +34,8 @@ Intro = """This is a value that spans more host=my.domain.com db=ADDRESSBOOK user=php-user -pass=foobar +pass=foobar + Values of config file variables can be in quotes, but not necessary. @@ -67,7 +68,8 @@ pass=foobar editing, you can be certain that they cannot read sensitive data from the config file by loading it into the template. - + + \ No newline at end of file +--> 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 6b63b5ab..204cc75e 100644 --- a/docs/en/designers/language-builtin-functions/language-function-capture.xml +++ b/docs/en/designers/language-builtin-functions/language-function-capture.xml @@ -66,17 +66,20 @@ capturing template content + + {$smarty.capture.banner} - </td> - </tr> -{/if} + + +{/if} +]]> + 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 76645045..a67ff5ce 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 @@ -73,20 +73,23 @@ function config_load + + +{#pageTitle#} + + + + + + + +
FirstLastAddress
+ + +]]> +
Config files may also contain sections. You can load variables from @@ -102,22 +105,26 @@ function config_load with section + + +{#pageTitle#} + + + + + + + +
FirstLastAddress
+ + +]]> +
+ \ No newline at end of file +--> diff --git a/docs/en/designers/language-builtin-functions/language-function-strip.xml b/docs/en/designers/language-builtin-functions/language-function-strip.xml index 40959fa3..7b06206a 100644 --- a/docs/en/designers/language-builtin-functions/language-function-strip.xml +++ b/docs/en/designers/language-builtin-functions/language-function-strip.xml @@ -27,23 +27,26 @@ strip tags + + + + + This is a test + + + + {/strip} OUTPUT: -<table border=0><tr><td><A HREF="http://my.domain.com"><font color="red">This is a test</font></A></td></tr></table> +
This is a test
+]]> +
Notice that in the above example, all the lines begin and end @@ -52,6 +55,7 @@ OUTPUT: they will be run together, and may not be desired results. + \ No newline at end of file +--> diff --git a/docs/en/designers/language-combining-modifiers.xml b/docs/en/designers/language-combining-modifiers.xml index 5def7b42..d9d4229a 100644 --- a/docs/en/designers/language-combining-modifiers.xml +++ b/docs/en/designers/language-combining-modifiers.xml @@ -1,20 +1,22 @@ - - Combining Modifiers - - You can apply any number of modifiers to a variable. They will be - applied in the order they are combined, from left to right. They must - be separated with a | (pipe) character. - - - combining modifiers - + + Combining Modifiers + + You can apply any number of modifiers to a variable. They will be + applied in the order they are combined, from left to right. They must + be separated with a | (pipe) character. + + + combining modifiers + +assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); +$smarty->display('index.tpl'); +?> index.tpl: @@ -23,17 +25,23 @@ index.tpl: {$articleTitle|lower|spacify|truncate} {$articleTitle|lower|truncate:30|spacify} {$articleTitle|lower|spacify|truncate:30:". . ."} - - -OUTPUT: - +]]> + + + The above example will output: + + + - - +s m o k e r s a r e p. . . +]]> + + + + \ No newline at end of file +--> diff --git a/docs/en/programmers/api-variables/variable-cache-dir.xml b/docs/en/programmers/api-variables/variable-cache-dir.xml index 8796cf39..53ef7998 100644 --- a/docs/en/programmers/api-variables/variable-cache-dir.xml +++ b/docs/en/programmers/api-variables/variable-cache-dir.xml @@ -10,21 +10,22 @@ function to control cache files, which will ignore this setting.
- - Technical Note - - This setting must be either a relative or - absolute path. include_path is not used for writing files. - - - - Technical Note - - It is not recommended to put this directory under - the web server document root. - - - + + Technical Note + + This setting must be either a relative or + absolute path. include_path is not used for writing files. + + + + Technical Note + + It is not recommended to put this directory under + the web server document root. + + + + \ No newline at end of file +--> diff --git a/docs/en/programmers/api-variables/variable-cache-handler-func.xml b/docs/en/programmers/api-variables/variable-cache-handler-func.xml index 193463b3..b75417f6 100644 --- a/docs/en/programmers/api-variables/variable-cache-handler-func.xml +++ b/docs/en/programmers/api-variables/variable-cache-handler-func.xml @@ -8,7 +8,8 @@ custom cache handler function section for details. - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/api-variables/variable-cache-lifetime.xml b/docs/en/programmers/api-variables/variable-cache-lifetime.xml index 489921a3..94969096 100644 --- a/docs/en/programmers/api-variables/variable-cache-lifetime.xml +++ b/docs/en/programmers/api-variables/variable-cache-lifetime.xml @@ -1,34 +1,35 @@ - - $cache_lifetime - - This is the length of time in seconds that a template cache is valid. - Once this time has expired, the cache will be regenerated. $caching must - be set to "true" for $cache_lifetime to have any purpose. A value of -1 - will force the cache to never expire. A value of 0 will cause the cache - to always regenerate (good for testing only, to disable caching a more - efficient method is to set $caching = false.) - - - If $force_compile is - enabled, the cache files will be regenerated every time, effectively - disabling caching. You can clear all the cache files with the clear_all_cache() function, or - individual cache files (or groups) with the clear_cache() function. - - - Technical Note - - If you want to give certain templates their own cache lifetime, you could - do this by setting $caching = 2, - then set $cache_lifetime to a unique value just before calling display() - or fetch(). - - - + + $cache_lifetime + + This is the length of time in seconds that a template cache is valid. + Once this time has expired, the cache will be regenerated. $caching must + be set to "true" for $cache_lifetime to have any purpose. A value of -1 + will force the cache to never expire. A value of 0 will cause the cache + to always regenerate (good for testing only, to disable caching a more + efficient method is to set $caching = false.) + + + If $force_compile is + enabled, the cache files will be regenerated every time, effectively + disabling caching. You can clear all the cache files with the clear_all_cache() function, or + individual cache files (or groups) with the clear_cache() function. + + + Technical Note + + If you want to give certain templates their own cache lifetime, you could + do this by setting $caching = 2, + then set $cache_lifetime to a unique value just before calling display() + or fetch(). + + + + \ No newline at end of file +--> diff --git a/docs/en/programmers/api-variables/variable-cache-modified-check.xml b/docs/en/programmers/api-variables/variable-cache-modified-check.xml index dd6687f1..97c2b78e 100644 --- a/docs/en/programmers/api-variables/variable-cache-modified-check.xml +++ b/docs/en/programmers/api-variables/variable-cache-modified-check.xml @@ -9,7 +9,8 @@ header will be sent instead of the content. This works only on cached content without insert tags. - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-block-functions.xml b/docs/en/programmers/plugins/plugins-block-functions.xml index b38c1ba9..317d759b 100644 --- a/docs/en/programmers/plugins/plugins-block-functions.xml +++ b/docs/en/programmers/plugins/plugins-block-functions.xml @@ -90,9 +90,10 @@ function smarty_block_translate($params, $content, &$smarty) } ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-compiler-functions.xml b/docs/en/programmers/plugins/plugins-compiler-functions.xml index 7769e593..17c390f7 100644 --- a/docs/en/programmers/plugins/plugins-compiler-functions.xml +++ b/docs/en/programmers/plugins/plugins-compiler-functions.xml @@ -64,9 +64,10 @@ function smarty_compiler_tplheader($tag_arg, &$smarty) echo 'index.tpl compiled at 2002-02-20 20:02'; ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-functions.xml b/docs/en/programmers/plugins/plugins-functions.xml index 54043c61..b78717f7 100644 --- a/docs/en/programmers/plugins/plugins-functions.xml +++ b/docs/en/programmers/plugins/plugins-functions.xml @@ -99,10 +99,11 @@ function smarty_function_assign($params, &$smarty) } ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-howto.xml b/docs/en/programmers/plugins/plugins-howto.xml index d43ea835..0c608efb 100644 --- a/docs/en/programmers/plugins/plugins-howto.xml +++ b/docs/en/programmers/plugins/plugins-howto.xml @@ -22,6 +22,7 @@ directories and Smarty will use it automatically. + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-inserts.xml b/docs/en/programmers/plugins/plugins-inserts.xml index 754bc656..00c6675d 100644 --- a/docs/en/programmers/plugins/plugins-inserts.xml +++ b/docs/en/programmers/plugins/plugins-inserts.xml @@ -48,9 +48,10 @@ function smarty_insert_time($params, &$smarty) } ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-modifiers.xml b/docs/en/programmers/plugins/plugins-modifiers.xml index 61147e4b..a482c513 100644 --- a/docs/en/programmers/plugins/plugins-modifiers.xml +++ b/docs/en/programmers/plugins/plugins-modifiers.xml @@ -89,9 +89,10 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...', } ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-naming-conventions.xml b/docs/en/programmers/plugins/plugins-naming-conventions.xml index b7676736..a3ecc866 100644 --- a/docs/en/programmers/plugins/plugins-naming-conventions.xml +++ b/docs/en/programmers/plugins/plugins-naming-conventions.xml @@ -56,7 +56,8 @@ needs is not found, or if the file or the plugin function are named improperly. - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-outputfilters.xml b/docs/en/programmers/plugins/plugins-outputfilters.xml index 8b1cfdf6..361c5e48 100644 --- a/docs/en/programmers/plugins/plugins-outputfilters.xml +++ b/docs/en/programmers/plugins/plugins-outputfilters.xml @@ -42,7 +42,8 @@ ]]> - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml index 8573f4c9..2bceb6c4 100644 --- a/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml +++ b/docs/en/programmers/plugins/plugins-prefilters-postfilters.xml @@ -56,7 +56,7 @@ } ?> ]]> - + @@ -80,9 +80,10 @@ } ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-resources.xml b/docs/en/programmers/plugins/plugins-resources.xml index 0deb6d76..a40705b8 100644 --- a/docs/en/programmers/plugins/plugins-resources.xml +++ b/docs/en/programmers/plugins/plugins-resources.xml @@ -134,9 +134,10 @@ function smarty_resource_db_trusted($tpl_name, &$smarty) } ?> ]]> - + - + + \ No newline at end of file +--> diff --git a/docs/en/programmers/plugins/plugins-writing.xml b/docs/en/programmers/plugins/plugins-writing.xml index 726668b8..d20a9317 100644 --- a/docs/en/programmers/plugins/plugins-writing.xml +++ b/docs/en/programmers/plugins/plugins-writing.xml @@ -31,7 +31,8 @@ require_once $smarty->_get_plugin_filepath('function', 'html_options'); &$repeat after the Smarty object to keep backwards compatibility to older versions of Smarty). - + + \ No newline at end of file +-->