Template Customization
Note: This information refers to AWBS version 2.8.0 and newer.
Contents
Template Information
The user web interface template files are located in two locations.
All files common to all themes are in; templates/common_files directory
All files unique to a theme are in; templates/[theme_directory]
Theme directory files override common_files files if they exist.
For example: If you copy support.php from common_files to your theme directory and edit it, your site will use the support.php file in the theme directory and ignore the support.php file in the common_files directory.
Adding new pages
Use the basicphptemplate.php in the root AWBS directory and the basictemplate.php file in the templates/[your_theme] directory to make new pages for your site.
It works like this:
You use the basicphptemplate.php file in your root AWBS directory and call the basictemplate.php that you add your content to and place in your templates/theme directory.
Example: you want a new page called webdesign.php
- Take the basicphptemplate.php file, copy/rename it to webdesign.php, edit the file to call webdesign.php template.
This line: print $template->parse("basictemplate.php"); replace basictemplate.php with webdesign.php
- Now take the basictemplate.php file in your templates/business directory, copy/rename it to webdesign.php, edit as desired and you have a new page on your site that matches all the rest.
In the template file, enter your page html content after the remark:<!--begin page content-->