In this chapter, we will explore theme engines in general and Drupal's default PHPTemplate theme engine in detail.
Our exploration of the PHPTemplate engine lays an important foundation for understanding how to create themes or how to extensively modify existing themes. In the examples below, we show:
The key files used in the theming process
How these files impact themes
The order of precedence among theme files
The availability of alternatives to the PHPTemplate engine
Though you don't need to be fluent in PHP to understand this chapter fully, a little familiarity with the programming language will certainly make things easier. The code examples in this chapter come from the default themes Bluemarine and Garland, contained in the Drupal distribution.