|HomeLearn moreFeaturesScreenshotsPrivacy / SecurityDownloads|
Creating a Weezo themeWeezo look'n feel can be completely modified by adding new themes.
All it takes is some CSS knowledge. HTML and PHP skills are required for in-depth modifications.
ArchitectureA redistribuable theme is a zip file (whose extension is changed to .weezoTheme for Windows association with Weezo), that contains all required files.
On installation, this file is unziped into /www/themes/zip_filename_without_extension directory.
A theme is composed of:
It is recommended to modify an existing theme, rather than starting from zero.
theme.cssThis stylesheet is the core of your theme.
It defines the apparence of windows, resources, tooltips, help frames, context menus...
This file is included in every pages, just after /www/themes/common.css stylesheet. common.css defines default appearance, and can be overridden by theme.css.
menu.phpThis script is actually quite useless, but is kept for compatibility reasons.
It mainly defines position, width and height of the menu area of desktop ($theme['menuFrame']), and default content displayed when a new window is opened and content is not yet loaded ($theme['winEmptyHTML']).
Other data shouldn't be modified.
background.phpThis script displays desktop, menu and icons (if any).
It is included by mainFrame.php script, which has already output <head></head>, <body> and some script and elements required for background display.
To generate your background you will need cfResourcesGetUser() function.
cfResourcesGetUser() returns an array containing data on resources user may access.
Each resource has those properties:
You may also get information on logged user with cfUGetVar(dataName) function.
Call cfUGetVar() to get an array with all properties.
loginForm.phpThis script display login page. It's architecture is quite messy ;(. It's therefore really recommended to use/modify an existing script (and associated CSS in theme.css).
No more information is provided here as this should be improved in a later version...