I've found a very intersting XHTML/CSS Template here: webproducer.at.
The template is able to generate 1 (left or right),2 or 3 column pure css fluid layouts.
One can change the layout either in code like this:
<div id="main" class="show-all">
<!--<div id="main" class="hide-left">-->
<!--<div id="main" class="hide-right">-->
<!--<div id="main" class="hide-all">-->
All you has to do is to comment out one line of code.
Or we can change the layout with some serverside programming.
Thats why I think this i a very good starting point for the development of a more generic theme for Drupal.
You can take a look at a first version and the code I've wrote this morning at learn-php.de.
At this time there are no design styles. I've implement only the 3 col version at this time.
In the next few days (weeks?) i try to develop a complete Drupal Theme.
If you like you can discuss my work with me. You're welcome.
You can see the first version online, if you get an account at my site and change your prefered theme.
The code is here: Generic Template
Comments
Download available
I've made some corrections and some other stuff and now the
Generic Theme works with 1,2 or 3-Cols. It has no really design yet, but it's fully functional. You can download it at learn-php.de.
Any ideas and suggestions are welcome.
Meinolf Droste
learn-php.de
--
mdwp*
Catch up
There is a much better mechanism for this: dynamic CSS classes. PHPTemplate offers the $layout variable to do this easily. For example, you give a class of layout-left, layout-right, layout-both or layout-none depending on which sidebars are used. This means the theme adapts completely to the set up, and no hand-editing of HTML/CSS is required.
There are more uses for this, for example to adjust your layout to the various configurable options for themes in Drupal or to display titles differently depending on whether there are tabs below it or not.
The FriendsElectric theme uses this to implement a tableless 1-2-3 column layout which supports all theme toggles. Even Drupal.org's theme does this (compare this page with the handbook for example).
--
If you have a problem, please search before posting a question.
Generic Theme 2
That's right and a few hours after my first post you could find this version
on my site (www.learn-php.de):
I'll compare my page.tpl.php (which is very clean and easy to understand) with the FriendsElectric theme.
The original template I use (please look at webproducer.at
works with:
* Mozilla [1, 1.4]
* Firebird [0.7] - now Firefox
* IE/Win [5, 5.5, 6]
* IE/Mac [5.2]
* Safari [1]
* Opera/Win [6, 7.11]
* Netscape/Win [4]
Is this also true for the themes you mentioned?
Another point is: my theme is a work in progress on my site to learn theme development with drupal. A chance for me and my users to build a theme from the ground up.
Meinolf Droste
learn-php.de
--
mdwp*
Contribute it
Hi Meinolf.
Good idea.
Best thing to do is to contribute your them.
Get a CVS account, and commit it to the Drupal contrib repository, and create a project page for it.
This way you get bug tracking, and it is available under the Drupal themes.
--
Consulting: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
Contribute generic theme
Thank's a lot.
I have to do some code cleaning and optimization.
Then I try to contribute it to the Drupal repository.
May be in the next few days
meinolf
Meinolf Droste
learn-php.de
--
mdwp*
New version
I've made some changes and bugfixes to the generic theme.
Now it works properly in IE and Firefox in all col modes.
The layout does'nt break when the user changes the font-size in his browser.
You can download it at learn-php.de.
meinolf
--
mdwp*