Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Themes

You're reading from   Drupal 5 Themes Create a new theme for your Drupal website with a clean layout and powerful CSS styling

Arrow left icon
Product type Paperback
Published in Dec 2007
Publisher Packt
ISBN-13 9781847191823
Length 260 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Getting Started with PHPTemplate


Let's take a look at all the key files involved in a PHPTemplate theme. We will start with the default theme engine files, then look at the key file that unites a specific theme to the PHPTemplate theme engine. To illustrate the principles, we will then look at how two different themes approach their implementation with PHPTemplate.

A Look at the Theme Engine Files

Inside the PHPTemplate directory on the server (themes/engines/phptemplate), you will find the following:

The default template files contained within the PHPTemplate directory provide the most basic level of formatting, necessary for the styling of various page elements. Here's a brief overview of each of the files contained inside the theme engine directory, along with a short summary of their key functionality:

block.tpl.php
	<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>"><?php if ($block->subject...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image