diff --git a/docs/ru/appendixes/tips.xml b/docs/ru/appendixes/tips.xml
index bac54697..fb18735d 100644
--- a/docs/ru/appendixes/tips.xml
+++ b/docs/ru/appendixes/tips.xml
@@ -233,13 +233,14 @@ Pretty easy isn't it?
You can embed PHP into your templates with the {php}{/php} tags.
With this, you can setup self contained templates with their own
data structures for assigning their own variables. With the logic
- embedded like this, you can keep the template & logic together. This
+ embedded like this, you can keep the template & logic together. This
way no matter where the template source is coming from, it is always
together as one component.
componentized template
+
+Stock Name: {$ticker_name} Stock Price: {$ticker_price}
+]]>
As of Smarty 1.5.0, there is even a cleaner way. You can include php in
@@ -271,6 +273,7 @@ Stock Name: {$ticker_name} Stock Price: {$ticker_price}
componentized template with include_php
+
+Stock Name: {$ticker_name} Stock Price: {$ticker_price}
+]]>
diff --git a/docs/ru/designers/language-builtin-functions.xml b/docs/ru/designers/language-builtin-functions.xml
index 6a999ed6..2b720c4e 100644
--- a/docs/ru/designers/language-builtin-functions.xml
+++ b/docs/ru/designers/language-builtin-functions.xml
@@ -683,6 +683,7 @@ index.tpl
кострукция if
+
+{/if}
+]]>
+
diff --git a/docs/ru/programmers/advanced-features.xml b/docs/ru/programmers/advanced-features.xml
index bda6f7b2..581961fc 100644
--- a/docs/ru/programmers/advanced-features.xml
+++ b/docs/ru/programmers/advanced-features.xml
@@ -91,7 +91,8 @@ the output was {$output)
using a template prefilter
-<?php
+register_prefilter("remove_dw_comments");
$smarty->display("index.tpl");
-?>
+?>
{* Smarty template index.tpl *}
-<!--# this line will get removed by the prefilter -->
+<!--# this line will get removed by the prefilter -->
+]]>
@@ -125,6 +127,7 @@ $smarty->display("index.tpl");
using a template postfilter
+display("index.tpl");
{* compiled Smarty template index.tpl *}
<!-- Created by Smarty! -->
-{* rest of template content... *}
+{* rest of template content... *}
+]]>
+
@@ -166,6 +171,7 @@ $smarty->display("index.tpl");
using a template outputfilter
+display("index.tpl");
// now any occurrence of an email address in the template output will have
// a simple protection against spambots
-?>
+?>
+]]>
@@ -211,6 +218,7 @@ $smarty->display("index.tpl");
example using MySQL as a cache source
+
+?>
+]]>
@@ -410,6 +419,7 @@ $smarty->display("file:F:/path/to/my/templates/menu.tpl");
using custom resources
+register_resource("db", array("db_get_template",
$smarty->display("db:index.tpl");
{* using resource from within Smarty template *}
-{include file="db:/extras/navigation.tpl"}
+{include file="db:/extras/navigation.tpl"}
+]]>
diff --git a/docs/ru/programmers/plugins.xml b/docs/ru/programmers/plugins.xml
index a36870f9..eef28246 100644
--- a/docs/ru/programmers/plugins.xml
+++ b/docs/ru/programmers/plugins.xml
@@ -324,7 +324,7 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...',
void smarty_block_name
array $params
mixed $content
- object &$smarty
+ object &$smarty
@@ -404,7 +404,7 @@ function smarty_block_translate($params, $content, &$smarty)
mixed smarty_compiler_name
string $tag_arg
- object &$smarty
+ object &$smarty
@@ -421,6 +421,7 @@ function smarty_block_translate($params, $content, &$smarty)
simple compiler function
+
+?>
+]]>
This function can be called from the template as:
@@ -464,7 +466,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
string smarty_prefilter_name
string $source
- object &$smarty
+ object &$smarty
@@ -478,7 +480,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
string smarty_postfilter_name
string $compiled
- object &$smarty
+ object &$smarty
@@ -492,6 +494,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
prefilter plugin
+
+?>
+]]>
+
postfilter plugin
+
+?>
+]]>
+
@@ -540,7 +548,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
string smarty_outputfilter_name
string $template_output
- object &$smarty
+ object &$smarty
@@ -551,7 +559,9 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
output filter plugin
-
+
+
+]]>
@@ -589,24 +601,24 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
bool smarty_resource_name_source
string $rsrc_name
- string &$source
- object &$smarty
+ string &$source
+ object &$smarty
bool smarty_resource_name_timestamp
string $rsrc_name
- int &$timestamp
- object &$smarty
+ int &$timestamp
+ object &$smarty
bool smarty_resource_name_secure
string $rsrc_name
- object &$smarty
+ object &$smarty
bool smarty_resource_name_trusted
string $rsrc_name
- object &$smarty
+ object &$smarty
@@ -716,7 +728,7 @@ function smarty_resource_db_trusted($tpl_name, &$smarty)
string smarty_insert_name
array $params
- object &$smarty
+ object &$smarty