cvs: smarty /docs/en/appendixes tips.xml
[email protected] ("Peter 'Mash' Morgan") Mon, 27 Mar 2006 23:56:45 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1143503805@cvsserver> |
pete_morgan Mon Mar 27 23:56:45 2006 UTC
Modified files:
/smarty/docs/en/appendixes tips.xml
Log:
tweaks
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/appendixes/tips.xml?r1=1.10&r2=1.11&diff_format=u
Index: smarty/docs/en/appendixes/tips.xml
diff -u smarty/docs/en/appendixes/tips.xml:1.10 smarty/docs/en/appendixes/tips.xml:1.11
--- smarty/docs/en/appendixes/tips.xml:1.10 Sat Feb 18 13:17:11 2006
+++ smarty/docs/en/appendixes/tips.xml Mon Mar 27 23:56:45 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<chapter id="tips">
<title>Tips & Tricks</title>
<para>
@@ -110,7 +110,7 @@
</programlisting>
<para>
- <filename>header.tpl</filename> - Notice that "BC News" is
+ <filename>header.tpl</filename> - Notice that "Smarty News" is
printed if the $title variable is not set, using the
<link linkend="language.modifier.default">default</link>
variable modifier.
@@ -119,7 +119,7 @@
<![CDATA[
<html>
<head>
-<title>{$title|default:'BC News'}</title>
+<title>{$title|default:'Smarty News'}</title>
</head>
<body>
]]>
@@ -357,7 +357,7 @@
</para>
<programlisting>
<![CDATA[
-{load_ticker symbol="YHOO" assign="ticker"}
+{load_ticker symbol='SMARTY' assign='ticker'}
Stock Name: {$ticker.name} Stock Price: {$ticker.price}
]]>
@@ -384,10 +384,10 @@
<title>Example of Obfuscating an E-mail Address</title>
<programlisting>
<![CDATA[
-{* in index.tpl *}
-
-Send inquiries to
-{mailto address=$EmailAddress encode="javascript" subject="Hello"}
+{* in the template *}
+<div id="contact">Send inquiries to
+{mailto address=$EmailAddress encode='javascript' subject='Hello'}
+</div>
]]>
</programlisting>
</example>
@@ -395,7 +395,7 @@
<title>Technical Note</title>
<para>
This method isn't 100% foolproof. A spammer could conceivably program his
- e-mail collector to decode these values, but not likely....hopefully.
+ e-mail collector to decode these values, but not likely....hopefully..yet ... wheres that quantum computer :-?.
</para>
</note>
<para>