7.0
Table Of Contents
5.2 Variables for style files
The PSM Web style files (e.g. Style.php) are regular CSS files. Its a PHP file that renders a CSS file. By
including the skin_customization.php line at the beginning of your Style.php file the values entered in the Edit
Web Design pages can be used in your style. Once included special PHP functions can be used to retrieve style
information that is entered in the Edit Web Design page of the companies in PSM Web.
The edit Web Design page
These values are retrieved from the PSM Web database and or calculated based on these values. You can set
these values per company in the companies Web Design page. The first few lines of the Style.php document
are as follows:
<?php include_once "../../functions/skin_customization.php" ?>
*
{
margin:0;
padding:0;
}
h1,h2,h3,h4,h5,h6,p,blockquote,form,label,ul,ol,dl,fieldset,address
{
margin: 0;
}
li,dd
{
margin-left:1em;
}
5.2.1 generateSkinContrastColor
The generateSkinContrastColor function retrieves the contrast color information set in the Edit Web Design
page of the PSM Web site. In the default skin this color is used for the menu bar items, table subheads and
table footers. Below an example on how this color can be set using this function:
Objectif Lune Inc. © 2010 38