koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] modif in gettemplate


From: paul POULAIN
Subject: [Koha-devel] modif in gettemplate
Date: Fri Dec 20 00:39:03 2002
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.1) Gecko/20020826

I just commited a little modif in gettemplate.

It now auto-replaces theme and lang template variable.
This is useful if you have images in your template :
<img src="/<TMPL_VAR name="theme">/<TMPL_VAR name="lang">/images/picture.gif>
or
<img src="/<TMPL_VAR name="theme">/images/picture.gif>
in the case of a non-language dependant image.

Before this fix, gettemplate only replaced a variable called themelang, which was useful for language dependant images, but didn't work with theme-only images.
Note the previous behaviour is still activated (ie : themelang still works)

Note also that at the moment, "common" images are not managed (even small background pictures are copied in /en, /fr and /es languages directories.
This will have to be fixed for 2.0.

--
Paul POULAIN
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://fr.koha.org)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]