diff --git a/docs/designers.sgml b/docs/designers.sgml
index 680a2dcf..92b3f932 100644
--- a/docs/designers.sgml
+++ b/docs/designers.sgml
@@ -3594,6 +3594,13 @@ You must supply a <b>state</b>.
emptystring of text to separate each checkbox item
+
+ labels
+ boolean
+ No
+ true
+ add <label>-tags to the output
+
diff --git a/docs/programmers.sgml b/docs/programmers.sgml
index ba7653d3..27efadbf 100644
--- a/docs/programmers.sgml
+++ b/docs/programmers.sgml
@@ -455,6 +455,21 @@ $smarty->autoload_filters = array('pre' => array('trim', 'stamp'),
variables_order in php.ini
+
+ $request_use_auto_globals
+
+
+ Specifies if Smarty should use php's $HTTP_*_VARS[]
+ ($request_use_auto_globals=false which is the default value) or
+ $_*[] ($request_use_auto_globals=true). This affects templates
+ that make use of {$smarty.request.*}, {$smarty.get.*} etc. .
+ Caution: If you set $request_use_auto_globals to true, variable.request.vars.order
+ has no effect but php's configuration value
+ gpc_order is used.
+
+
+ $compile_id
@@ -1096,14 +1111,29 @@ $smarty->load_filter('output', 'compress'); // load output filter named 'compres
void register_blockstring name
- string impl
+ mixed impl
Use this to dynamically register block functions plugins.
Pass in the block function name, followed by the PHP
- function name that implements it.
+ function callback that implements it.
+
+
+ The php-function callback impl can be either (a) a string
+ containing the function name or (b) an array of the form
+ array(&$object, $method) with
+ &$object being a reference to an
+ object and $method being a string
+ containing the mehod-name or (c) an array of the form
+ array(&$class, $method) with
+ $class being a classname and
+ $method being a class method of that
+ class.
+
+
+
register_block
@@ -2573,8 +2603,9 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...',
block function {func} .. {/func}.
- Your function implementation is called twice by Smarty:
- once for the opening tag, and once for the closing tag.
+ By default your function implementation is called twice by
+ Smarty: once for the opening tag, and once for the closing tag
+ (see &$repeat below how to change this).
Only the opening tag of the block function may have attributes. All
@@ -2595,6 +2626,23 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...',
Smarty, so all you will receive is the template output, not the
template source.
+
+
+ The parameter &$repeat is passed by
+ reference to the function implementation and provides a
+ possibility for it to control how many times the block is
+ displayed. By default $repeat is
+ true at the first call of the block-function
+ (the block opening tag) and false on all
+ subsequent calls to the block function (the block's closing tag).
+ Each time the function implementation returns with
+ &$repeat being true, the contents between
+ {func} .. {/func} are evaluated and the function implementation
+ is called again with the new block contents in the parameter
+ $content.
+
+
+
If you have nested block functions, it's possible to find out what the
parent block function is by accessing