TEMPLATE SYSTEM

The template system is pretty easy to use. It's basically just a way to easily edit
the appearance of your portal. Each file has variables in them, that, when the 
page is drawn up each time, are replaced by what they stand for. Example:

	%W_TITLE% is replaced with the page title, as defined by $title in 
	config.php.

There are five template files.

foot.tpl - This is the main page footer. It contains no variables.
head.tpl - This is the main page header. It has one variable:
	
	%TITLE% - the page title, as defined as defined by $title in config.php.

w_head.tpl - This is the main bar above the portal. It contains the links for the
sorting, pages, etc. This has a many variables:
	
	%W_TITLE% - the page title, as defined as defined by $title in config.php.
	%W_NUMOFCAMS% - the number of total cams.
	%START% - the starting cam number for this page.
	%END% - the ending cam number for this page.
	%W_SORTBAR% - the links for sorting the page.
	%W_PAGELINKS% - the links to go to each page.
	%W_BORDERCOLOR_1% - $bordercolor1 in config.php.
	%W_BORDERCOLOR_2% - $bordercolor2 in config.php.
	%W_BGCOLOR_1% - $bgcolor1 in config.php.
	%W_BGCOLOR_2% - $bgcolor2 in config.php.

w_cell.tpl - This is the formatting for each little cam cell on the portal. This 
also has many variables:
	
	%W_NAME% - the person's name.
	%W_CAMURL% - the URL of their cam image.
	%W_WIDTH% - the THUMBNAIL width of the image.
	%W_HEIGHT% - the THUMBNAIL height of the image.
	%W_BORDERCOLOR_1% - $bordercolor1 in config.php.
	%W_BORDERCOLOR_2% - $bordercolor2 in config.php.
	%W_BGCOLOR_1% - $bgcolor1 in config.php.
	%W_BGCOLOR_2% - $bgcolor2 in config.php.
	%W_URL_LINK% - the URL link. it is a pre-formatted <a href> tag.
	%W_EMAIL_LINK% - the EMAIL link. it is a pre-formatted <a href="mailto"> tag.
	%W_UPDATED% - the last updated date, if dating is turned on in config. it 
	outputs a <br> to fit it on the next line.

w_submit.tpl - This is the submit form. This, like all the others, has many
variables:

	%W_TITLE% - the page title, as defined as defined by $title in config.php.
	%W_NUMOFCAMS% - the number of total cams.
	%W_BORDERCOLOR_1% - $bordercolor1 in config.php.
	%W_BORDERCOLOR_2% - $bordercolor2 in config.php.
	%W_BGCOLOR_1% - $bgcolor1 in config.php.
	%W_BGCOLOR_2% - $bgcolor2 in config.php.

That's about it..
