Template Customization

From AWBS Wiki
Revision as of 11:48, August 10, 2008 by Samdrams (Talk | contribs)

Jump to: navigation, search

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!

Location: templates/[your_theme]/


header.php

Included on all pages. Contains the meta tags and character set for the site.


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

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