2.1
PrintShop Web Skinning Guide | 10
File organization
Skins are organized under the Templates folder located in the PSW web site folder. Each skin has its
own directory tree. The name of this folder will be visible in the Skin-pull down menu in the Web design
section of a company and in the web design page in the Settings-menu.
Skin folders stores the items required to render a skin and can contain an unlimited number of files and
sub folders. A skin consists of the following elements:
•
Template.php
•
Cascading Style Sheet documents
•
Images
•
Web design parameters stored in the PSW database
The contents of skin folder
Template.php
The Template.php file is the main file for your skin and can be compared with an index.html file of a
regular HTML web site. The file calls the different functions of the skinning engine that assembles
the final HTML output. The Template.php file controls the logical positions of the page elements and
processes the items in the order that they appear in that file.
Style.php
As stated before skins are used in combination with Cascading Style Sheets (CSS). PSW uses a PHP
file that generates a CSS structure. To be able to call special functions that insert special variables like
color information or an image file. The variable information is retrieved from the PSW database and
can be set by the administrator in the Edit Web Design page. This can be done per company (f.e. to
match the companies color scheme) or for the system wide web design settings.
PSW comes with a browser detection mechanism. This allows you to make style exceptions for specific
browsers, browser versions and operation systems.
Images
To enhance your skin even more you might want to add custom images and icons. You can place
these images inside your skins folder and refer to them from within your style documents.










