O'Reilly logo

Drupal 7 Themes by Ric Shreves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Key PHPTemplate theme files

Let's take a deeper look at the key files involved in a PHPTemplate theme: The .info file and the page.tpl.php file. To illustrate these files at work, I will then look at how two different themes vary in their approaches.

The role of the .info file

The .info file is one of the required files in a PHPTemplate theme. This file has a configuration function and syntax similar to a .ini file. .info files are discussed in length in Chapter 7, Dynamic Theming, but to give you a sample of what is happening, here is the bartik.info file, which accompanies the Bartik theme (themes/bartik/bartik.info):

; $Id: bartik.info,v 1.5 2010/11/07 00:27:20 dries Exp $ name = Bartik description = A flexible, recolorable theme with many regions. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required