Re: My stab at the templates



On 14 Jun 2001 02:00:24 -0500, Steve Fox wrote:

> I made a stab at the PHP templates for the site. Granted I basically
> just took Joakim's HTML verbatim, but at least it's a starting point.

> So what do these templates do? The nice thing is that you can define a
> new theme (e.g. for developer.gnome.org) just by inherting the base
> theme class and switching some variables.

> Have a look at 

> http://foxhut.org/gnomeweb/

> for the base theme, and then

> http://foxhut.org/gnomeweb/test.php

> shows how easy it is to change the appearance just by changing the vars.
> Now if I had the rest of Joakim's art work the header image would change
> too.

> Anyways, you can grab the code at
> 
> http://foxhut.org/gnomeweb.tar.gz

> It ain't much, and I'm hadn't even considering translation stuff yet,
> but I just want to get the ball rolling...my fingers are getting itchy
> :)

> Constructive criticism welcome.

Looks good, Steve. 

As I wrote in a mail I think I sent just to someone on the list, not to
the list itself, I've been turning the design into an HTML4/CSS2 layout
this week, and it's just about completely done (it'd been a while since
I did CSS, so there might be some strangeness still left in the
stylesheet). It also uses all PNG files, validates completely, and is
extremely lightweight (with an externalized stylesheet, the template
information is not more than a kilobyte).

I haven't turned it into a PHP template yet, so I'll look at using your
code to do that this weekend. At that point, I'll also implement some
simple browser detection that'll send the HTML3.2 version to 4.x
browsers and older, and the HTML4 version to newer browsers.

-- 
   Joakim Ziegler - Ximian Web Monkey - joakim ximian com - Radagast IRC
 FIX sysop - Free Software Coder - Writer - FIDEL & Conglomerate developer
http://www.avmaria.com/ - http://www.ximian.com/ - http://www.sinthetic.org/





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