phpgroupware-developers
[Top][All Lists]
Advanced

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

[Phpgroupware-developers] images in phpgw


From: ceb
Subject: [Phpgroupware-developers] images in phpgw
Date: Fri, 15 Mar 2002 23:06:19 +0100 (CET)

i'm working on new png versions of the phpgw navbar icons and all other
images. i noticed alot of applications have images and/or template files
in the verdilak, justweb or idsociety tpl dir, which are identically with
that ones in the default tpl dir.
maintainer of an application should please remove all duplicate files in
the HEAD branch.
the link to an image should be:

--- tpl ---
<img src="{img}">
-----------

--- php ---
$GLOBALS['phpgw']->template->set_var('img',$GLOBALS['phpgw']->common->image($GLOBALS['phpgw_info']['flags']['currentapp'],'_img_name_'));
-----------

replace _img_name_ by the name of the image without the ending
.png/.jpg/.gif.

this function in class.common.inc.php looks for the image in
app_name/templates/default/images if it didnt find the pix in the tpl dir
of the active layout.

basically all app .tpl files are located in the app_name/templates/default/
directory. please do only commit template files to other
app_name/templates/_layout_/directories if they _differ_ from the default
version. The same is valid for images. All application images are located
in the app_name/templates/default/images directory. Please do only commit
images to other than the default directory if they _differ_ from the
default version. Most of the applications currently do not need other
templates directories than default and idsociety. and the idsociety
directory should only contain the images directory with the navbar and
navbar_over icons for the idsociety layout.
please avoid to have files twice in your application directory.

thanks :)
[ceb]
[have a lot of funk]




reply via email to

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