mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
tweaks
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user