diff --git a/docs/en/designers/language-modifiers/language-modifier-capitalize.xml b/docs/en/designers/language-modifiers/language-modifier-capitalize.xml index 954ea882..9a16bb64 100644 --- a/docs/en/designers/language-modifiers/language-modifier-capitalize.xml +++ b/docs/en/designers/language-modifiers/language-modifier-capitalize.xml @@ -2,6 +2,9 @@ capitalize + + This is used to capitalize the first letter of all words in a variable. + @@ -30,9 +33,6 @@ - - This is used to capitalize the first letter of all words in a variable. - capitalize diff --git a/docs/en/designers/language-modifiers/language-modifier-cat.xml b/docs/en/designers/language-modifiers/language-modifier-cat.xml index 4abbccc7..3b74eb1b 100644 --- a/docs/en/designers/language-modifiers/language-modifier-cat.xml +++ b/docs/en/designers/language-modifiers/language-modifier-cat.xml @@ -2,6 +2,9 @@ cat + + This value is concatenated to the given variable. + @@ -29,9 +32,7 @@ - - This value is concatenated to the given variable. - + cat diff --git a/docs/en/designers/language-modifiers/language-modifier-count-characters.xml b/docs/en/designers/language-modifiers/language-modifier-count-characters.xml index a9e78d83..c1628e6f 100644 --- a/docs/en/designers/language-modifiers/language-modifier-count-characters.xml +++ b/docs/en/designers/language-modifiers/language-modifier-count-characters.xml @@ -2,6 +2,9 @@ count_characters + + This is used to count the number of characters in a variable. + @@ -30,9 +33,7 @@ - - This is used to count the number of characters in a variable. - + count_characters diff --git a/docs/en/designers/language-modifiers/language-modifier-date-format.xml b/docs/en/designers/language-modifiers/language-modifier-date-format.xml index 1256e351..5ff23163 100644 --- a/docs/en/designers/language-modifiers/language-modifier-date-format.xml +++ b/docs/en/designers/language-modifiers/language-modifier-date-format.xml @@ -2,6 +2,19 @@ date_format + + This formats a date and time into the given + strftime() format. + Dates can be passed to Smarty as unix + timestamps, mysql timestamps + or any string made up of month day year, parsable by + strtotime(). + Designers can then use date_format to have complete control of the + formatting of the date. If the date passed to + date_format is empty and a second parameter is passed, + that will be used as the date to format. + + @@ -36,17 +49,8 @@ - - This formats a date and time into the given - strftime() format. - Dates can be passed to Smarty as unix - timestamps, mysql timestamps - or any string made up of month day year, parsable by - strtotime(). - Designers can then use date_format to have complete control of the - formatting of the date. If the date passed to - date_format is empty and a second parameter is passed, - that will be used as the date to format. + + Since Smarty-2.6.10 numeric values passed to date_format are diff --git a/docs/en/designers/language-modifiers/language-modifier-default.xml b/docs/en/designers/language-modifiers/language-modifier-default.xml index ced3513e..ebe917e9 100644 --- a/docs/en/designers/language-modifiers/language-modifier-default.xml +++ b/docs/en/designers/language-modifiers/language-modifier-default.xml @@ -2,6 +2,12 @@ default + + This is used to set a default value for a variable. If the variable + is empty or unset, the given default value is printed instead. + Default takes one argument. + + @@ -30,11 +36,7 @@ - - This is used to set a default value for a variable. If the variable - is empty or unset, the given default value is printed instead. - Default takes one argument. - + default diff --git a/docs/en/designers/language-modifiers/language-modifier-escape.xml b/docs/en/designers/language-modifiers/language-modifier-escape.xml index 4dcb4b4f..21fb8432 100644 --- a/docs/en/designers/language-modifiers/language-modifier-escape.xml +++ b/docs/en/designers/language-modifiers/language-modifier-escape.xml @@ -2,6 +2,13 @@ escape + + This is used to html escape, url escape, escape single quotes on a + variable not already escaped, hex escape, hexentity or javascript escape. + By default, the variable is html + escaped. + + @@ -32,12 +39,7 @@ - - This is used to html escape, url escape, escape single quotes on a - variable not already escaped, hex escape, hexentity or javascript escape. - By default, the variable is html - escaped. - + escape diff --git a/docs/en/designers/language-modifiers/language-modifier-indent.xml b/docs/en/designers/language-modifiers/language-modifier-indent.xml index bc3398fb..55f183c5 100644 --- a/docs/en/designers/language-modifiers/language-modifier-indent.xml +++ b/docs/en/designers/language-modifiers/language-modifier-indent.xml @@ -2,6 +2,13 @@ indent + + This indents a string at each line, default is 4. As + an optional parameter, you can specify the number of characters to + indent. As an optional second parameter, you can specify the + character to use to indent with. (Use "\t" for tabs.) + + @@ -37,12 +44,7 @@ - - This indents a string at each line, default is 4. As - an optional parameter, you can specify the number of characters to - indent. As an optional second parameter, you can specify the - character to use to indent with. (Use "\t" for tabs.) - + indent diff --git a/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml index 622dc3e9..06ab122d 100644 --- a/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml +++ b/docs/en/designers/language-modifiers/language-modifier-regex-replace.xml @@ -2,6 +2,12 @@ regex_replace + + A regular expression search and replace on a variable. Use the + syntax for preg_replace() from the PHP manual. + + @@ -36,11 +42,7 @@ - - A regular expression search and replace on a variable. Use the - syntax for preg_replace() from the PHP manual. - + regex_replace diff --git a/docs/en/designers/language-modifiers/language-modifier-replace.xml b/docs/en/designers/language-modifiers/language-modifier-replace.xml index 043b5621..39befcaa 100644 --- a/docs/en/designers/language-modifiers/language-modifier-replace.xml +++ b/docs/en/designers/language-modifiers/language-modifier-replace.xml @@ -2,6 +2,11 @@ replace + + A simple search and replace on a variable. This is equivalent to the PHP + str_replace() function. + + @@ -36,10 +41,7 @@ - - A simple search and replace on a variable. This is equivalent to the PHP - str_replace() function. - + replace diff --git a/docs/en/designers/language-modifiers/language-modifier-spacify.xml b/docs/en/designers/language-modifiers/language-modifier-spacify.xml index 1132159f..112830b6 100644 --- a/docs/en/designers/language-modifiers/language-modifier-spacify.xml +++ b/docs/en/designers/language-modifiers/language-modifier-spacify.xml @@ -2,6 +2,10 @@ spacify + + spacify is a way to insert a space between every character of a variable. + You can optionally pass a different character (or string) to insert. + @@ -30,10 +34,7 @@ - - spacify is a way to insert a space between every character of a variable. - You can optionally pass a different character (or string) to insert. - + spacify diff --git a/docs/en/designers/language-modifiers/language-modifier-string-format.xml b/docs/en/designers/language-modifiers/language-modifier-string-format.xml index d9688bad..d6222a70 100644 --- a/docs/en/designers/language-modifiers/language-modifier-string-format.xml +++ b/docs/en/designers/language-modifiers/language-modifier-string-format.xml @@ -2,6 +2,12 @@ string_format + + This is a way to format strings, such as decimal numbers and such. + Use the syntax for sprintf() + for the formatting. + + @@ -29,11 +35,7 @@ - - This is a way to format strings, such as decimal numbers and such. - Use the syntax for sprintf() - for the formatting. - + string_format diff --git a/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml index ae4b270c..cd05149d 100644 --- a/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml +++ b/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml @@ -2,6 +2,10 @@ strip_tags + + This strips out markup tags, basically anything between < and >. + + @@ -29,9 +33,7 @@ - - This strips out markup tags, basically anything between < and >. - + strip_tags diff --git a/docs/en/designers/language-modifiers/language-modifier-truncate.xml b/docs/en/designers/language-modifiers/language-modifier-truncate.xml index 30d671e5..14e96d07 100644 --- a/docs/en/designers/language-modifiers/language-modifier-truncate.xml +++ b/docs/en/designers/language-modifiers/language-modifier-truncate.xml @@ -2,6 +2,16 @@ truncate + + This truncates a variable to a character length, default is 80. As + an optional second parameter, you can specify a string of text + to display at the end if the variable was truncated. The + characters in the string are included with the original truncation length. + By default, truncate will attempt to cut off at a word boundary. If + you want to cut off at the exact character length, pass the optional + third parameter of true. + + @@ -55,15 +65,7 @@ - - This truncates a variable to a character length, default is 80. As - an optional second parameter, you can specify a string of text - to display at the end if the variable was truncated. The - characters in the string are included with the original truncation length. - By default, truncate will attempt to cut off at a word boundary. If - you want to cut off at the exact character length, pass the optional - third parameter of true. - + truncate diff --git a/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml index d6770a5c..bb310178 100644 --- a/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml +++ b/docs/en/designers/language-modifiers/language-modifier-wordwrap.xml @@ -2,6 +2,16 @@ wordwrap + + wordwrap wraps a string to a column width, default is 80. As + an optional second parameter, you can specify a string of text + to wrap the text to the next line (default is carriage return \n). + By default, {wordwrap} will attempt to wrap at a word boundary. If + you want to cut off at the exact character length, pass the optional + third parameter of true. This is equivalent to the PHP wordwrap() function. + + @@ -45,15 +55,7 @@ - - wordwrap wraps a string to a column width, default is 80. As - an optional second parameter, you can specify a string of text - to wrap the text to the next line (default is carriage return \n). - By default, {wordwrap} will attempt to wrap at a word boundary. If - you want to cut off at the exact character length, pass the optional - third parameter of true. This is equivalent to the PHP wordwrap() function. - + wordwrap