Hi there, On 26 Apr 2003 at 23:48:54 +0000, Mikhael Goikhman wrote:
> Do you mean I am a native English speaker? :) > > Ok, if I should choose, I think the term "web theme" is good. > Or "theme" for short. All the new stuff will be placed at /web-theme/{...} > I didn't mean the class concept is bad. I got that. But the class concept might be not necessary. On my computer at home I had the impression that using classes/objects produces more cpu load at the web servers side. I don't like to overkill the web server at fvwm.org. > I just don't have a time to think about the exact code > design right now. I hope you have more time to think about > this, i.e. how to make creation of new web themes easy. It > may be good (or bad) to have subclassed themes or > subclassed navigations/pagers. I have not made a decision yet. My current concept (in mind) is partinioning the functions as the are now in layout_default.inc in files and add some dependencies to this functions files like: /web-theme/navigation/window_decoration/default.inc: ------------------------------------------------------------ // don't load this files if functions described here do // already exist if(function_exists("window_decoration_start")) return; // declare functions which are needed by the function // declations in this file require("decoration_title_line"); // or maybe just include(theme_description("navigation/window_decoration/window_decoration_title_line.inc")); function window_decoration_start("") {...} ------------------------------------------------------------ This would allow to include the functions needed for a theme in the theme file. I have to think about it more detailed regarding to simplicity, extentability, safety and cpu usage. > I think placing the statement in one/two central .inc > files that are included by all .php is more than enough. I am going to do that. > Having .php files themselves small (only html, no static > text) would be nice. The header in the php files is necessary to get urls like www.fvwm.org/features.php. and use navgen to obtain the navigation structure. If the php-files would contain html (and php-function calls) only the url would look like www.fvwm.org/theme_default.php?file=features This would allow to separate contents and layout as the current concept. But I don't like such urls ;-) Cheers, Uwe -- ,_, Uwe Pross (O,O) mailto:[EMAIL PROTECTED] ( ) http://www.tu-chemnitz.de/~uwp =-"-"-================================ -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]