This commit is contained in:
pete_morgan
2006-03-27 23:56:45 +00:00
parent aceb80eee2
commit c1aa767b90

View File

@@ -110,7 +110,7 @@
</programlisting> </programlisting>
<para> <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 printed if the $title variable is not set, using the
<link linkend="language.modifier.default">default</link> <link linkend="language.modifier.default">default</link>
variable modifier. variable modifier.
@@ -119,7 +119,7 @@
<![CDATA[ <![CDATA[
<html> <html>
<head> <head>
<title>{$title|default:'BC News'}</title> <title>{$title|default:'Smarty News'}</title>
</head> </head>
<body> <body>
]]> ]]>
@@ -357,7 +357,7 @@ function smarty_function_load_ticker($params, &$smarty)
</para> </para>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
{load_ticker symbol="YHOO" assign="ticker"} {load_ticker symbol='SMARTY' assign='ticker'}
Stock Name: {$ticker.name} Stock Price: {$ticker.price} Stock Name: {$ticker.name} Stock Price: {$ticker.price}
]]> ]]>
@@ -384,10 +384,10 @@ Stock Name: {$ticker.name} Stock Price: {$ticker.price}
<title>Example of Obfuscating an E-mail Address</title> <title>Example of Obfuscating an E-mail Address</title>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
{* in index.tpl *} {* in the template *}
<div id="contact">Send inquiries to
Send inquiries to {mailto address=$EmailAddress encode='javascript' subject='Hello'}
{mailto address=$EmailAddress encode="javascript" subject="Hello"} </div>
]]> ]]>
</programlisting> </programlisting>
</example> </example>
@@ -395,7 +395,7 @@ Send inquiries to
<title>Technical Note</title> <title>Technical Note</title>
<para> <para>
This method isn't 100% foolproof. A spammer could conceivably program his 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> </para>
</note> </note>
<para> <para>