phpgroupware-developers
[Top][All Lists]
Advanced

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

RE: [Phpgroupware-developers] themes and templates


From: Chris Weiss
Subject: RE: [Phpgroupware-developers] themes and templates
Date: Mon, 17 Feb 2003 17:27:59 +0000

again, the $GLOBAL array is a special php array containing ALL the variables and
objects,  ALL of them, period.  $GLOBALS is just a way to access a variable of
global scope that is otherwise not available inside a function or class without
first listing it as a global inside the function.  Please read
http://www.php.net/manual/en/language.variables.scope.php for a better
understanding.

The template values are not set using the globals array, but buy using an 
instance
of the templates class, which is sometimes accessed through the globals array.


Robert Pawlowicz (address@hidden) wrote*:
>
>
>OK very helpful so far! - in a lot of cases the separate applications will
>set the variables e.g.  - in the template code - by using the
>$GLOBAL array. I assume for convenience and consistency.  Where are the
>variables within the $GLOBAL array set?  All I have seen in the code so far
>is references to the array.
>
>Gilles Février (address@hidden) wrote*:
>>
>>Sorry if i misunderstand the questions... :-)
>>
>>> I have several questions concerning the templates.  Please forgive me as
>I
>>feel I am back engineering phpgroupware.  It takes some getting used to!
>>
>>I created new templates a few months ago to show phpGroupWare, and it is no
>>so easy. I encountered some problems because sometimes, fonts, colors...
>are
>>defined directly in the application source. :-(
>
>There are apps that do this, and they are wrong to set colors in code,  All
>colors
>should be taken from the theme settings.  However, fonts are not
>standardized
>unless the theme uses CSS correctly.
>
>The codes listed as  in the templates are replaced by some value
>by the
>application using the template, and if not set the template system will
>replace
>them with nothing, or "".  Typically, this will just be a value, but some
>are also
>placeholders for template wigets, like the "list" (not a form list/select,
>an html
>table that contains a list) like the New email list on the "welcome" screen.
>
>>
>>> - Where is the theme for the user and or application set.
>>
>>./phpgroupware/phpgwapi/themes/
>>./phpgroupware/phpgwapi/templates/
>>
>>>i.e. where is it stated that the applications should be set to default
>>rather than verdilak?
>>
>>Preferences -> change your settings -> Interface/Template Selection* ?
>>
>>> - could some one give me a better idea of the structure of the GLOBAL
>>array.
>
>$GLOBALS is a special php array containing every "global" variable in the
>current
>script, more info here
>http://www.php.net/manual/en/language.variables.scope.php.
>So this will change from app to app and version to version, very hard ot
>just lay
>it out.
>
>>
>>> - how does one set the default application once logged on for the normal
>>user
>>
>>Preferences -> change your settings -> Default application ?
>
>Correct.  Also, on that prefs page when logged in as an admin user
>(Administration
>application granted) there are tabs at the top for Default and Forced.
>Default
>applies only to new users and those who have never set that prefs page.
>Forced
>will force the setting for all users on the system.
>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>





reply via email to

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