mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
tweek
This commit is contained in:
@@ -9,15 +9,16 @@
|
||||
function and its
|
||||
<link linkend="language.syntax.attributes">attributes</link>
|
||||
into delimiters like so: {funcname
|
||||
attr1="val" attr2="val"}.
|
||||
attr1='val1' attr2='val2'}.
|
||||
</para>
|
||||
<example>
|
||||
<title>function syntax</title>
|
||||
<programlisting>
|
||||
<![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}
|
||||
Welcome, <font color="{#fontColor#}">{$name}!</font>
|
||||
@@ -25,7 +26,7 @@
|
||||
Welcome, {$name}!
|
||||
{/if}
|
||||
|
||||
{include file="footer.tpl"}
|
||||
{include file='footer.tpl'}
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
@@ -39,11 +40,11 @@
|
||||
<link linkend="language.function.if">{if}</link>,
|
||||
<link linkend="language.function.section">{section}</link> and
|
||||
<link linkend="language.function.strip">{strip}</link>.
|
||||
They cannot be modified.
|
||||
They should not be modified.
|
||||
</para>
|
||||
<para>Custom functions are <emphasis role="bold">additional</emphasis>
|
||||
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.popup">{popup}</link>
|
||||
are examples of custom functions.
|
||||
|
Reference in New Issue
Block a user