上QQ阅读APP看书,第一时间看更新
Chapter 3. The Theme System
In this chapter, we will look at the Drupal theme system. Strictly speaking, the theme system is not a module. However, modules interact with the theme system, which is made up of tools, templates, and libraries for configuring the look and feel of just about all aspects of Drupal.
By the end of this chapter, you should be able to create a theme based on the PHPTemplate engine. In later chapters, we will draw upon topics covered in this chapter to make our modules more theme-aware.
In this chapter, we will cover the following:
- Understanding the basic architecture of the theme system
- Using theme inheritance to create derivative themes
- Customizing the site's appearance with CSS (Cascading Style Sheets)
- Creating custom PHPTemplate files
- Overriding theme hooks to create custom theming