2004-04-13 08:46:28 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2005-10-10 15:41:31 +00:00
|
|
|
|
<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready -->
|
|
|
|
|
|
<sect1 id="language.function.html.image">
|
|
|
|
|
|
<title>html_image (Ausgabe von HTML-IMG Tag)</title>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
{html_image} ist eine <link
|
|
|
|
|
|
linkend="language.custom.functions">eigene Funktion</link> die ein
|
|
|
|
|
|
HTML Tag f<>r ein Bild erzeugt. Die H<>he und Breite der Ausgabe wird
|
|
|
|
|
|
automatisch aus der Bilddatei berechnet wenn die Werte nicht
|
|
|
|
|
|
<20>bergeben werden.
|
|
|
|
|
|
</para>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
|
2005-10-10 15:41:31 +00:00
|
|
|
|
<informaltable frame="all">
|
|
|
|
|
|
<tgroup cols="5">
|
|
|
|
|
|
<colspec colname="param" align="center" />
|
|
|
|
|
|
<colspec colname="type" align="center" />
|
|
|
|
|
|
<colspec colname="required" align="center" />
|
|
|
|
|
|
<colspec colname="default" align="center" />
|
|
|
|
|
|
<colspec colname="desc" />
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>Attribut Name</entry>
|
|
|
|
|
|
<entry>Typ</entry>
|
|
|
|
|
|
<entry>Erforderlich</entry>
|
|
|
|
|
|
<entry>Standardwert</entry>
|
|
|
|
|
|
<entry>Beschreibung</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>file</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Ja</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
|
|
|
|
<entry>Name/Pfad zum Bild</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>height</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Nein</entry>
|
|
|
|
|
|
<entry><emphasis>Normale H<>he des Bildes</emphasis></entry>
|
|
|
|
|
|
<entry>H<EFBFBD>he des Bildes</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>width</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Nein</entry>
|
|
|
|
|
|
<entry><emphasis>Normale Breite des Bildes</emphasis></entry>
|
|
|
|
|
|
<entry>Breite des Bildes</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>basedir</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Nein</entry>
|
|
|
|
|
|
<entry><emphasis>DOCUMENT_ROOT</emphasis></entry>
|
|
|
|
|
|
<entry>Basisverzeichnis f<>r relative Pfadangaben</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>alt</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Nein</entry>
|
|
|
|
|
|
<entry><emphasis>""</emphasis></entry>
|
|
|
|
|
|
<entry>Alternative Beschreibung des Bildes</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>href</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Nein</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
|
|
|
|
<entry>Link f<>r das Bild</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>path_prefix</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Nein</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
|
|
|
|
<entry>Pr<EFBFBD>fix f<>r den Pfad zum Bild</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</tgroup>
|
|
|
|
|
|
</informaltable>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
|
2005-10-10 15:41:31 +00:00
|
|
|
|
<para>
|
|
|
|
|
|
basedir ist der Basispfad der f<>r die Verlinkung verwendet werden
|
|
|
|
|
|
soll. Wenn kein Wert <20>bergeben wird, wird die <link
|
|
|
|
|
|
linkend="language.variables.smarty">Umgebungsvariable</link>
|
|
|
|
|
|
DOCUMENT_ROOT verwendet. Wenn <link
|
|
|
|
|
|
linkend="variable.security">Sicherheit</link> eingeschaltet ist,
|
|
|
|
|
|
muss das Bild in einem sicheren Verzeichnis liegen.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
<parameter>href</parameter> ist das href Attribut f<>r das
|
|
|
|
|
|
Image-Tag. Wenn dieser Wert <20>bergeben wird, wird um das Bild ein
|
|
|
|
|
|
<a href="LINKVALUE"><a> Tag erzeugt.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
<parameter>path_prefix</parameter> ist ein optionaler Pr<50>fix der dem
|
|
|
|
|
|
Bildpfad vorangestellt wird. Die ist n<>tzlich wenn zum Beispiel f<>r
|
|
|
|
|
|
den Bildpfad ein anderer Servername verwendet werden soll.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Alle weiteren Parameter werden als Name/Wert Paare (Attribute) im
|
|
|
|
|
|
<img>-Tag ausgegeben.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<note>
|
|
|
|
|
|
<title>Technische Bemerkung</title>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
{html_image} greift auf das Dateisystem zu um H<>he und Breite zu
|
|
|
|
|
|
errechnen. Wenn Sie <link linkend="caching">caching</link> nicht
|
|
|
|
|
|
verwenden sollten Sie normalerweise auf diese Funktion aus
|
|
|
|
|
|
performance Gr<47>nden verzichten.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</note>
|
|
|
|
|
|
<example>
|
|
|
|
|
|
<title>html_image</title>
|
|
|
|
|
|
<programlisting>
|
2004-07-16 14:32:31 +00:00
|
|
|
|
<![CDATA[
|
2005-10-10 15:41:31 +00:00
|
|
|
|
Wobei index.tpl wie folgt aussieht:
|
|
|
|
|
|
-----------------------------------
|
2004-04-13 08:46:28 +00:00
|
|
|
|
{html_image file="pumpkin.jpg"}
|
|
|
|
|
|
{html_image file="/path/from/docroot/pumpkin.jpg"}
|
|
|
|
|
|
{html_image file="../path/relative/to/currdir/pumpkin.jpg"}
|
2004-07-16 14:32:31 +00:00
|
|
|
|
]]>
|
2005-10-10 15:41:31 +00:00
|
|
|
|
</programlisting>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
M<>gliche Ausgabe:
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<screen>
|
2004-07-16 14:32:31 +00:00
|
|
|
|
<![CDATA[
|
2005-02-03 05:18:43 +00:00
|
|
|
|
<img src="pumpkin.jpg" alt="" width="44" height="68" />
|
|
|
|
|
|
<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" />
|
|
|
|
|
|
<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" />
|
2004-07-16 14:32:31 +00:00
|
|
|
|
]]>
|
2005-10-10 15:41:31 +00:00
|
|
|
|
</screen>
|
|
|
|
|
|
</example>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
</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
|
2004-07-16 14:32:31 +00:00
|
|
|
|
-->
|