Themer Pack Working Group

The Drupal Themer Pack is a group effort of people who want to contribute to Drupal and make the lives of themers a little easier by creating a comprehensive set of templates for every themable in Drupal core. The goal is to do the work of separating logic from presentation; however, the themer pack will not change the output. If you drop the themer pack files into your theme and enable it, you should see no difference until the templates are modified.

By making this accessible, themers will have a much easier time of creating precisely the theme they need, and of understanding what Drupal offers.

Some of this work will be very easy; some of it will be very complicated. We will accept help from anyone who wants to contribute.

Please make a post here when you're working on a particular section, so people know you're working on it. Also, make a post here when you STOP working on a section, so people know they can work on it. This will reduce merge conflicts.

The sandbox is located here:

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/themerpack/

designguru-gdo's picture

Module Developer | Design Guru

Employment type: 
Contract
Telecommute: 
Allowed

We need a really simple DRUPAL 5.0 module to be developed ASAP -

Essentially, its function is to allow role(s) on the site to have permission to choose from a list of pre-defined colors - when a color is selected, the module will load a color-specific .css file after style.css; effectually overriding some styles in style.css

Read more
cuxi's picture

Which i can use theme?

I only can layout frontpage. I a newbie drupal. i want a theme like image blow:
http://timbandocthan.com/timbandocthan.jpg
I use drupal 5.x . I try use a few theme framwork.. but i can't modify like theme in images.
Can you help me?

Login to post comments
bensheldon's picture

Best practice for declaring functions within .tpl.php files?

Is there a best practice (or is it just poor practice?) to declare a function within a .tpl.php. It seems like I should avoid declaring functions since these are templating files, but in some circumstances, it allows vastly simplified code---and I'm not sure where else I would declare a function within the concept of the themer pack.

7 comments · Read more
bensheldon's picture

Drop-in override for Upload.module's attachments list

Below is a custom override for Drupal 6.x's Upload.module's attachments table that is displayed at the bottom of a node when you create file attachments. Below is an example of the before and after:

Example of override

5 comments · Read more
Chris Charlton's picture

Theming Drupal 6

Start: 
2008-04-19 09:00 - 2008-04-20 17:00 America/Los_Angeles

This session will teach Drupal users how to theme the latest Drupal 6. Things have changed from last version and this course is here to tell you what's changed. Learn the basics and more to get confident and results from your Drupal theming efforts.

This session will go over how to build a new custom Drupal 6 theme.

Who is this course for?
This course is designed for people who have a basic understanding of Drupal and some coding or web development experience with technologies like HTML, CSS, and at least a little PHP. If you're interested in getting up and running with Drupal 6 themeing principles then this is the course for you. All source will be handed out during or after the session.

Course outline and info available at http://www.richmediainstitute.com/training/drupal6themes/

5 comments
dvessel's picture

Theming in Drupal 6 with devel

A heads up on theme development for Drupal 6.

Thanks to the new theme registry by merlinofchaos, there's a nice side effect of being able to intercept theme functions from devel.

What this provides is the ability to list all themable functions used in a page making it a lot more understandable. There is working code but it still needs work. If anyone has ideas on presenting this information please post it. For now it just dumps it into a table but we can get pretty fancy with this, especially with jQuery.

Here's the issue queue:

2 comments · Read more
Peter Apokotos's picture

Dreamweaver Extension Developer Needed | Peter Apokotos

Employment type: 
Contract
Telecommute: 
Allowed

I am looking for an Adobe Dreamweaver Developer to create an extension that will allow the creation of Drupal themes from novice to advanced designs for any Dreamweaver user on the Macintosh or Windows operating systems. This extension must export drupal themes that are XHTML 1.0 Strict, CSS 2.0, and Section 508 compliant. Please contact me if you think you are the person for the job. And your bid on this project. The main requirement is that this Extension must be always up to date with Drupal's theming methods.

dvessel's picture

Guidelines and instructions on separation.

If you haven't done so, please read this groups home page description for the general idea behind this group and the How to contribute page on contributing code. And please mark the Work in progress wiki for any sections your working on. All sections are grouped by either modules or .inc files and the Work in progress wiki is only a partial list.

This wiki will go into more detail, suggest a few guidelines and hint on how we should go about separating the code.

You don't have to follow the suggestions provided here but staying within them will flatten out the learning curve a lot faster for themers. Lets make it as easy as possible for theme designers by maintaining some consistency.

There will also be a few changes to the theming system in Drupal 6 (it has been committed!!) and some form of the work done here will eventually get into core. One of the new features is to have modules provide their own .tpl.php template files. Soon, it will be very easy to drop core template files right into your own themes.

Read more · 1 attachment
gusaus's picture

Workshop proposal: Let's help make it easier to theme Drupal!

UPDATE:
While the following post was primarily geared to the Los Angeles Drupal group, it (should) have some relevance to 'some' folks in whatever group you're reading this in. This is an ongoing 'drupal' project and the more folks that can get actively involved would be a very good thing....

7 comments · Read more
merlinofchaos's picture

Experience is the best teacher!

I was just looking through add1sun's latest commits, and I noticed a few things that could stand a little improvement.

I took this function:

<?php
function phptemplate_user_picture($account) {
if (variable_get('user_pictures', 0)) {
if ($account->picture && file_exists($account->picture)) {
$picture = file_create_url($account->picture);
}
else if (variable_get('user_picture_default', '')) {
$picture = variable_get('user_picture_default', '');
}
if (isset($picture)) {

1 comment · Read more
gusaus's picture

Another theming working group

The newly minted 'Zen Task Force' may provide some great project orientated learning opportunities in realm of theming. Seems like it would tie in quite nicely as an extension to the great Dojo theming lesson as well as our work on Merlin's 'Themer Pack Project'?

Login to post comments · Read more
dvessel's picture

custom callback.

I was thinking about a custom callback function to do 3 things:

<

ol>

  • Speed up execution time. Remove any intermediate functions that aren't needed. Go directly to the renderer from the callback. (I know you've been thinking about this one merlin. I'd like to see your solutions to this.)
  • 2 comments · Read more
    dvessel's picture

    Minor discrepancies with the sandbox

    Just a heads up on the sandbox. It was taken from HEAD after Drupal 5 was released, so there could be some discrepancies with the latest release (5.1). Try to work with the latest release version.

    edit: minor corrections based on merlins' comments.

    2 comments
    merlinofchaos's picture

    Code style and other minor requirements

    I just checked out the watchdog section, and there are a few code and code style things I'd like to point out.

    All template.php files must begin with:

    <?php
    // $Id$

    All .tpl.php files must begin with:

    <?php // $Id$ ?>

    All function overrides in template.php should begin with a comment that at the very least provides a URL
    to the api.drupal.org documentation for that function:

    3 comments · Read more
    add1sun's picture

    Working with theme('table')

    We need to think about how to handle instances of theme('table') in our work. There is no straight HTML to simply print in a tpl file for easy theming so what should we do with these guys? Below is an example tpl.php taken from user. Discuss.

    1 comment · Read more
    add1sun's picture

    How to contribute to the project

    Here is the short version of what work we are trying to do. This will be updated and elaborated as we have time. Please feel free to leave comments/questions as we refine it.

    First, check the Work in Progress page to select a group of files that are not currently being worked on. You will need to get the files for your chosen directory from the sandbox, ideally doing a CVS checkout. For each directory listed there, this is the routine:

    6 comments · Read more
    add1sun's picture

    Work in Progress

    This page will be used to keep track of who is working on what and the status of the various pieces. Please update this page whenever you begin or end work on something. Also remember to add any new directories to this list as they are added to the sandbox so none of them go under the radar.

    aggregator/ -> Caleb G currently working
    block/ -> dvessel: committed and updated. 3/31
    book/ -> dvessel: committed
    color/ -> dvessel: committed
    comment/ -> dvessel: committed
    drupal/ -> dvessel: committed

    Read more
    gusaus's picture

    Seems like a great working project for the Dojo

    As there's a lot of discussion/excitement about real-world projects, I think this (and other Drupal essential projects) would be perfect for the Dojo....

    The Drupal Themer Pack is a group effort of people who want to contribute to Drupal and make the lives of themers a little easier by creating a comprehensive set of templates for every themable in Drupal core.

    2 comments
    merlinofchaos's picture

    Directory structure

    The themer pack should provide 1 directory per .module and 1 directory per .inc. Roughly.

    SOme of the .inc .tpl.php files will almost certainly need to be recategorized. Please discuss that categorization here.

    6 comments
    Syndicate content