Pi Engine default theme
Folder and file skeleton
- Templates REQUIRED for front:
- tmplate/layout-front.phtml - complete layout template: header, footer, body, blocks, navigation
- tmplate/layout-simple.phtml - error page layout: header, footer, body
- tmplate/layout-style.phtml - content with stylesheets
- tmplate/layout-content.phtml - raw content without stylesheets
- template/error.phtml - defined in var/config/config.application.php: view_manager.error_template
- Templates REQUIRED for admin:
- tmplate/layout-admin.phtml - backoffice layout
- Templates OPTIONAL for front:
- template/page-zone.phtml - for block manipulation on a page
- template/block.phtml - called by layout-front.phtml
- template/error-404.phtml - defined in var/config/config.application.php: view_manager.not_found_template
- template/error-denied.phtml - defined in var/config/config.application.php: view_manager.denied_template
- template/error-exception.phtml - defined in var/config/config.application.php: view_manager.exception_template
- Stylesheet file REQUIRED:
- asset/css/style.css - main css file
Best practices
- It is highly recommended to use 'pi-' as prefix for all global id and class names used in theme to avoid conflicts.
- It is highly recommended to use module identity as prefix for module id and class names used in templates to avoid conflicts, for instance 'demo-'.