mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-03 22:01:36 +01:00 
			
		
		
		
	- updates for new build system - added missing files - corrections from users - revcheck comments for all files - big up to didou and nuno, brilliant work - make test: ok - make: ok
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="iso-8859-1"?>
 | 
						|
<!-- $Revision$ -->
 | 
						|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
 | 
						|
   <sect1 id="language.syntax.functions">
 | 
						|
    <title>Funktionen</title>
 | 
						|
    <para>
 | 
						|
     Jedes Smarty-Tag gibt entweder eine <link linkend="language.variables">Variable</link> aus
 | 
						|
     oder ruft eine Funktion auf. Funktionen werden aufgerufen indem der Funktionsname
 | 
						|
     und die Parameter mit Trennzeichen umschlossen werden. Beispiel: {funcname attr1="val" attr2="val"}.
 | 
						|
    </para>
 | 
						|
    <example>
 | 
						|
     <title>Funktions-Syntax</title>
 | 
						|
     <programlisting>
 | 
						|
	 <![CDATA[
 | 
						|
{config_load file="colors.conf"}
 | 
						|
 | 
						|
{include file="header.tpl"}
 | 
						|
 | 
						|
{if $highlight_name}
 | 
						|
       Welcome, <font color="{#fontColor#}">{$name}!</font>
 | 
						|
{else}
 | 
						|
       Welcome, {$name}!
 | 
						|
{/if}
 | 
						|
 | 
						|
{include file="footer.tpl"}
 | 
						|
]]>
 | 
						|
</programlisting>
 | 
						|
    </example>
 | 
						|
    <para>
 | 
						|
     Sowohl der Aufruf von eingebauten, als auch der von eigenen Funktionen folgt der
 | 
						|
     gleichen Syntax. Eingebaute Funktionen erlauben einige Basis-Operationen wie <command>if</command>, <command>section</command>
 | 
						|
     und <command>strip</command>. Diese Funktionen können nicht verändert werden.
 | 
						|
     Individuelle Funktionen die die Fähigkeiten von Smarty erweitern werden als Plugins implementiert.
 | 
						|
     Diese Funktionen können von Ihnen angepasst werden, oder Sie können selbst neue Plugins
 | 
						|
     hinzufügen. <command>html_options</command> und <command>html_select_date</command> sind Beispiele solcher Funktionen.
 | 
						|
    </para>
 | 
						|
</sect1>
 | 
						|
<!-- Keep this comment at the end of the file
 | 
						|
Local variables:
 | 
						|
mode: sgml
 | 
						|
sgml-omittag:t
 | 
						|
sgml-shorttag:t
 | 
						|
sgml-minimize-attributes:nil
 | 
						|
sgml-always-quote-attributes:t
 | 
						|
sgml-indent-step:1
 | 
						|
sgml-indent-data:t
 | 
						|
indent-tabs-mode:nil
 | 
						|
sgml-parent-document:nil
 | 
						|
sgml-default-dtd-file:"../../../../manual.ced"
 | 
						|
sgml-exposed-tags:nil
 | 
						|
sgml-local-catalogs:nil
 | 
						|
sgml-local-ecat-files:nil
 | 
						|
End:
 | 
						|
vim600: syn=xml fen fdm=syntax fdl=2 si
 | 
						|
vim: et tw=78 syn=sgml
 | 
						|
vi: ts=1 sw=1
 | 
						|
-->
 |