Difference between revisions of "Template Customization"

From AWBS Wiki
Jump to: navigation, search
(Template Information)
Line 1: Line 1:
 
__TOC__
 
__TOC__
 
== Template Information ==
 
== Template Information ==
Listed below are global templates - they are included on all pages.
 
  
Edit with an html editor or text editor. Do not use FrontPage!
+
The user web interface template files are located in two locations.
  
Location: templates/[your_theme]/
+
All files common to all themes are in;
 +
templates/common_files directory
  
+
All files unique to a theme are in;
 +
templates/[theme_directory]
  
'''header.php'''
+
Theme directory files override common_files files if they exist.
 
+
For example:
Included on all pages. Contains the meta tags and character set for the site.
+
  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.
 
+
'''top.php'''
+
 
+
Included on all pages. Contains the body tag, banner/logo area, and top menu area.
+
Change as desired. (Some themes will require editing of png or psd files.)
+
 
+
+
 
+
'''left.php'''
+
 
+
Included on all pages. Column the height of the page. Edit as desired. Remember it is on all pages. Some themes have a menu included in this file.
+
 
+
+
 
+
'''right.php'''
+
 
+
Same as left, but on the right of all pages.
+
 
+
   
+
 
+
'''bottom.php'''
+
 
+
Included on all pages. Put your copyright info/footer content here.
+
 
+
+
 
+
'''boxtop.php''' and '''boxbottom.php'''
+
 
+
These make up the box used on most pages for lookup boxes, etc. Change to the look you desire.
+
boxtop forms the beginning of the table, first row and begins the column. Boxbottom ends the column,row and table.
+
 
+
   
+
 
+
'''The home page:''' (may not apply to all template themes)
+
 
+
index.php - used when 'default homepage template' is set to 'Hosting 1' in system setup, system options
+
 
+
index2.php - used when 'default homepage template' is set to 'Domain'
+
 
+
index3.php - used when 'default homepage template' is set to 'Hosting 2'
+
 
+
+
 
+
Images:
+
Some images may need changing to customize. Look in the devkit directory in your theme directory for any available psd or png files that can be used to customize your theme. Use Photoshop or a photo editing software to edit or create new images.
+
  
 
== Adding new pages ==
 
== Adding new pages ==

Revision as of 15:51, November 25, 2008

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-->