2004-04-13 15:43:47 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready -->
|
2005-12-04 17:56:06 +00:00
|
|
|
|
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<sect1 id="language.function.html.image">
|
2005-12-04 17:56:06 +00:00
|
|
|
|
<title>{html_image}</title>
|
|
|
|
|
|
<para>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<varname>{html_image}</varname> est une
|
|
|
|
|
|
<link linkend="language.custom.functions">fonction utilisateur</link> qui g<>n<EFBFBD>re la balise
|
2005-12-04 17:56:06 +00:00
|
|
|
|
HTML pour une image. La hauteur et la longueur de l'image sont calcul<75>s
|
|
|
|
|
|
automatiquement depuis le fichier image si aucune n'est sp<73>cifi<66>e.
|
|
|
|
|
|
</para>
|
2004-05-23 15:50:53 +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>Nom attribut</entry>
|
|
|
|
|
|
<entry>Type</entry>
|
|
|
|
|
|
<entry>Requis</entry>
|
2005-05-11 09:47:36 +00:00
|
|
|
|
<entry>D<EFBFBD>faut</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>Description</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>file</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Oui</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
|
|
|
|
<entry>nom/chemin des images</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>height</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry><emphasis>Hauteur de l'image actuelle</emphasis></entry>
|
|
|
|
|
|
<entry>Hauteur de l'image <20> afficher</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>width</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry><emphasis>Longueur de l'image actuelle</emphasis></entry>
|
|
|
|
|
|
<entry>Longueur de l'image <20> afficher</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>basedir</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>non</entry>
|
|
|
|
|
|
<entry><emphasis>racine du serveur web</emphasis></entry>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<entry>R<EFBFBD>pertoire depuis lequel baser le calcul des
|
2004-05-23 15:50:53 +00:00
|
|
|
|
chemins relatifs</entry>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>alt</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>non</entry>
|
|
|
|
|
|
<entry><emphasis><quote></quote></emphasis></entry>
|
|
|
|
|
|
<entry>Description alternative de l'image</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>href</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>non</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
|
|
|
|
<entry>valeur de l'attribut href, indiquant le lien vers l'image</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<entry>path_prefix</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>non</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<entry>Pr<EFBFBD>fixe pour le chemin de la sortie</entry>
|
2005-12-04 17:56:06 +00:00
|
|
|
|
</row>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</tbody>
|
|
|
|
|
|
</tgroup>
|
|
|
|
|
|
</informaltable>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
|
<listitem><para>
|
|
|
|
|
|
<parameter>basedir</parameter> est le dossier de base dans lequel
|
|
|
|
|
|
les images sont bas<61>es. S'il n'est pas fourni, la variable d'environnement
|
|
|
|
|
|
<varname>$_ENV['DOCUMENT_ROOT']</varname> sera utilis<69>e.
|
|
|
|
|
|
Si <link linkend="variable.security"><parameter>$security</parameter></link>
|
|
|
|
|
|
est activ<69>, le chemin vers l'image doit <20>tre pr<70>sent dans le
|
|
|
|
|
|
<link linkend="variable.secure.dir">dossier de s<>curit<69></link>.
|
|
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
|
|
|
|
<listitem><para>
|
|
|
|
|
|
<parameter>href</parameter> est la valeur de l'attribut href de l'image.
|
|
|
|
|
|
Si le lien est fourni, une balise <literal><a href="LINKVALUE"><a></literal>
|
|
|
|
|
|
sera plac<61>e autour de la balise de l'image.
|
|
|
|
|
|
</para> </listitem>
|
|
|
|
|
|
|
|
|
|
|
|
<listitem><para>
|
|
|
|
|
|
<parameter>path_prefix</parameter> est un pr<70>fixe optionnel que vous pouvez fournir.
|
|
|
|
|
|
Il est utile si vous voulez fournir un nom de serveur diff<66>rent pour l'image.
|
|
|
|
|
|
</para></listitem>
|
|
|
|
|
|
|
|
|
|
|
|
<listitem><para>
|
|
|
|
|
|
Tous les param<61>tres qui ne sont pas dans la liste ci-dessus sont affich<63>s
|
|
|
|
|
|
sous la forme d'une paire nom/valeur dans la balise
|
|
|
|
|
|
<literal><img></literal> cr<63><72>e.
|
|
|
|
|
|
</para></listitem>
|
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<note>
|
|
|
|
|
|
<title>Note technique</title>
|
|
|
|
|
|
<para>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<varname>{html_image}</varname> requiert un acc<63>s au disque dur pour lire l'image et
|
2005-12-04 17:56:06 +00:00
|
|
|
|
calculer ses dimensions. Si vous n'utilisez pas un <link linkend="caching">cache</link>,
|
2006-10-01 20:03:00 +00:00
|
|
|
|
il est g<>n<EFBFBD>ralement pr<70>f<EFBFBD>rable d'<27>viter d'utiliser <varname>{html_image}</varname>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
et de laisser les balises images statiques pour de meilleures
|
|
|
|
|
|
performances.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</note>
|
|
|
|
|
|
<example>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
<title>Exemple avec {html_image}</title>
|
2005-05-11 09:47:36 +00:00
|
|
|
|
<programlisting>
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<![CDATA[
|
2006-03-22 17:30:04 +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-02 21:39:32 +00:00
|
|
|
|
]]>
|
2005-05-11 09:47:36 +00:00
|
|
|
|
</programlisting>
|
|
|
|
|
|
<para>
|
2006-10-01 20:03:00 +00:00
|
|
|
|
L'affichage possible du template ci-dessus pourrait <20>tre :
|
2005-05-11 09:47:36 +00:00
|
|
|
|
</para>
|
|
|
|
|
|
<screen>
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<![CDATA[
|
2005-02-13 09:18:58 +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-02 21:39:32 +00:00
|
|
|
|
]]>
|
2005-05-11 09:47:36 +00:00
|
|
|
|
</screen>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</example>
|
2004-04-13 15:43:47 +00:00
|
|
|
|
</sect1>
|
2005-12-04 17:56:06 +00:00
|
|
|
|
|
2004-04-13 15:43:47 +00:00
|
|
|
|
<!-- 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
|
2005-12-04 17:56:06 +00:00
|
|
|
|
-->
|