cvs: smarty /docs/ru/designers/language-variables language-config-variables.xml
"George Miroshnikov" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsfreespace1103916431@cvsserver> |
freespace Fri Dec 24 14:27:11 2004 EDT
Modified files:
/smarty/docs/ru/designers/language-variables
language-config-variables.xml
Log:
Small fixes that were left out of attention.
http://cvs.php.net/diff.php/smarty/docs/ru/designers/language-variables/language-config-variables.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/ru/designers/language-variables/language-config-variables.xml
diff -u smarty/docs/ru/designers/language-variables/language-config-variables.xml:1.5 smarty/docs/ru/designers/language-variables/language-config-variables.xml:1.6
--- smarty/docs/ru/designers/language-variables/language-config-variables.xml:1.5 Thu Nov 25 18:26:13 2004
+++ smarty/docs/ru/designers/language-variables/language-config-variables.xml Fri Dec 24 14:27:11 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1251"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.1 Maintainer: tony2001 Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.1 Maintainer: freespace Status: ready -->
<sect1 id="language.config.variables">
<title>Ïåðåìåííûå ôàéëîâ êîíôèãóðàöèè</title>
<para>
@@ -12,52 +12,63 @@
</para>
<example>
<title>Ïåðåìåííûå èç ôàéëîâ êîíôèãóðàöèè</title>
- <programlisting>
+ <para>
+ foo.conf:
+ </para>
+ <programlisting>
<![CDATA[
-
-foo.conf:
-
pageTitle = "This is mine"
bodyBgColor = "#eeeeee"
tableBorderSize = "3"
tableBgColor = "#bbbbbb"
rowBgColor = "#cccccc"
-
-index.tpl:
-
+]]>
+ </programlisting>
+ <para>
+ index.tpl:
+ </para>
+ <programlisting>
+<![CDATA[
{config_load file="foo.conf"}
<html>
<title>{#pageTitle#}</title>
<body bgcolor="{#bodyBgColor#}">
<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
<tr bgcolor="{#rowBgColor#}">
-<td>First</td>
-<td>Last</td>
-<td>Address</td>
+ <td>First</td>
+ <td>Last</td>
+ <td>Address</td>
</tr>
</table>
</body>
</html>
-
-index.tpl: (alternate syntax)
-
+]]>
+ </programlisting>
+ <para>
+ index.tpl: (àëüòåðíàòèâíûé ñèíòàêñèñ)
+ </para>
+ <programlisting>
+<![CDATA[
{config_load file="foo.conf"}
<html>
<title>{$smarty.config.pageTitle}</title>
<body bgcolor="{$smarty.config.bodyBgColor}">
<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}">
<tr bgcolor="{$smarty.config.rowBgColor}">
-<td>First</td>
-<td>Last</td>
-<td>Address</td>
+ <td>First</td>
+ <td>Last</td>
+ <td>Address</td>
</tr>
</table>
</body>
</html>
-
-
-OUTPUT: (same for both examples)
-
+]]>
+ </programlisting>
+ <para>
+ ðåçóëüòàò âûïîëíåíèÿ îáîèõ ïðèìåðîâ:
+ </para>
+ <screen>
+<![CDATA[
<html>
<title>This is mine</title>
<body bgcolor="#eeeeee">
@@ -71,7 +82,7 @@
</body>
</html>
]]>
- </programlisting>
+ </screen>
</example>
<para>
Ïåðåìåííûå èç ôàéëîâ êîíôèãóðàöèè íå ìîãóò áûòü èñïîëüçîâàíû,
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php