mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
tweek
This commit is contained in:
@@ -9,15 +9,16 @@
|
|||||||
function and its
|
function and its
|
||||||
<link linkend="language.syntax.attributes">attributes</link>
|
<link linkend="language.syntax.attributes">attributes</link>
|
||||||
into delimiters like so: {funcname
|
into delimiters like so: {funcname
|
||||||
attr1="val" attr2="val"}.
|
attr1='val1' attr2='val2'}.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>function syntax</title>
|
<title>function syntax</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{config_load file="colors.conf"}
|
{config_load file='colors.conf'}
|
||||||
|
|
||||||
{include file="header.tpl"}
|
{include file='header.tpl'}
|
||||||
|
{insert file='banner_ads.tpl'}
|
||||||
|
|
||||||
{if $highlight_name}
|
{if $highlight_name}
|
||||||
Welcome, <font color="{#fontColor#}">{$name}!</font>
|
Welcome, <font color="{#fontColor#}">{$name}!</font>
|
||||||
@@ -25,7 +26,7 @@
|
|||||||
Welcome, {$name}!
|
Welcome, {$name}!
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{include file="footer.tpl"}
|
{include file='footer.tpl'}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
@@ -39,11 +40,11 @@
|
|||||||
<link linkend="language.function.if">{if}</link>,
|
<link linkend="language.function.if">{if}</link>,
|
||||||
<link linkend="language.function.section">{section}</link> and
|
<link linkend="language.function.section">{section}</link> and
|
||||||
<link linkend="language.function.strip">{strip}</link>.
|
<link linkend="language.function.strip">{strip}</link>.
|
||||||
They cannot be modified.
|
They should not be modified.
|
||||||
</para>
|
</para>
|
||||||
<para>Custom functions are <emphasis role="bold">additional</emphasis>
|
<para>Custom functions are <emphasis role="bold">additional</emphasis>
|
||||||
functions implemented via <link linkend="plugins">plugins</link>.
|
functions implemented via <link linkend="plugins">plugins</link>.
|
||||||
They can be modified to your liking, or you can add new ones.
|
They can be modified to your liking, or you can create new ones.
|
||||||
<link linkend="language.function.html.options">{html_options}</link> and
|
<link linkend="language.function.html.options">{html_options}</link> and
|
||||||
<link linkend="language.function.popup">{popup}</link>
|
<link linkend="language.function.popup">{popup}</link>
|
||||||
are examples of custom functions.
|
are examples of custom functions.
|
||||||
|
Reference in New Issue
Block a user