2.2
PrintShop Web Skinning Guide | 12
The template file
The Template.php file contains HTML code with a few snippets of PHP. These PHP snippets control
the rendering of PSW function blocks on apage by page basis. Examples of functions blocks are: the
menu bar, sub menus, the user info bar, the main content area.
A sample PSW web page showing various function blocks
Function blocks
The design and positions of these blocks can be changed by altering the Style.php file and changing
the code and its position in Template.php. Typically function blocks are placed inside HTML <div>
tags. The following sections describe the main function blocks. Please note that the structure of the
Template.php will probably be different for each skin. The following code snippets are derived from the
default PSW skin.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><? generateSystemName(); ?>: <? generateTitle(); ?></title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<? generateCSSIncludes(); ?>
<? generateJavaScriptIncludes(false); ?>
</head>
<body class="<? generatePageID(); ?>">
<div id="header"><h1>PrintShop Web</h1></div>
<? if(function_exists("generateUserInfo")) { ?>
<div id="userinfo">
<div>
<h3><? generateAdditionalInfo(); ?></h3>
<? generateUserInfo(); ?>
</div>










