10.3. Components

Themes are composed of the following components. The only required file is theme.ini — all other files are optional.

Table 10.1. Theme Components

File(s) Description
theme.ini Identifies the theme to Perforce Chronicle and provides its default configuration.
Resources CSS stylesheets, JavaScript, and other assets that help define the theme's presentation.
Layouts A layout is an HTML file that provides the markup for the overall look of a page. A layout is used to implement headers and footers, specify which stylesheets and scripts to use, and define the locations for content and regions. Layouts can include PHP code.
View Scripts HTML files that control the presentation for specific actions in the application. View scripts can contain PHP code.
View Helpers PHP classes that assist in markup generation.

Perforce Chronicle - Release: 2012.2/486814