phpgroupware-developers
[Top][All Lists]
Advanced

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

[Phpgroupware-developers] templates class now autoloads theme settings


From: Dan Kuykendall (Seek3r)
Subject: [Phpgroupware-developers] templates class now autoloads theme settings
Date: Fri, 24 May 2002 12:08:32 -0700

The templates class now auto loads up the theme settings in its list of
vars. Any that are set again by an app or template set will override the
autoloaded value, so this should not have any negative effects. Just use
the vars as you would any others.

I did this because it seemed silly for each area to set the values
themselves. This should cut down on much duplicate code.

Also there is a new function in the templates class called update_css()
If your app does the nonavbar and noheader trick and then later executes
$GLOBALS['phpgw']->common->phpgw_header();
it has the ability to add some additional css values into the 
$GLOBALS['phpgw_info']['theme']['css'] array and before executing the
phpgw_header() it can set the additional, or updated values and then
execute 

$GLOBALS['phpgw']->template->update_css();

This will cause the css values to be reprocessed.

Seek3r



reply via email to

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