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...