7.0
Table Of Contents
5.2.5 generateSkinHeaderColorHighLight
The generateSkinHeaderColorHighLight function retrieves the skins header color set in the Edit Web Design
page. A parameter llows the tint of the color to be changed. Fractional values are used, where 0.0 will be
black, 1.0 the original color and higher values will result in a lighter tint of this color.
Below an example on how this color can be set using this function:
#tableOverview td {
padding: 2px;
border-width: 0 0 1px 0;
border-color: background-color: <? generateSkinHeaderColorHighLight(1.1); ?>;
border-style: solid;
}
5.2.6 generateSkinLocation
This functions returns the path to your skin folder. It can be used in both style files and the template file to
insert the path to the folder of the skin. This prevents you from entering the full path making it easier to
duplicate a skin folder.
<img src="<? echo generateSkinLocation() ?>/banner-image1.png"/>
5.2.7 generateSkinLogo
The generateSkinLogo retrieves the path to the header image specified in the Edit Web Design page. If no
image is specified the path of the header image from the system default skin will be returned. Below an
example on how this function can be used in your Style.php file:
#header {
height: 90px;
background-image: url(<? generateSkinLogo(); ?>);
background-position: center left;
background-repeat: no-repeat;
background-color: <? generateSkinHeaderColor();?>;
width: 100%;
}
5.2.8 generateSkinMainColor
The generateSkinMainColor function retrieves the main color set in the Edit Web Design page of the PSM Web
site. The value entered in the Edit Web Design page can be entered manually or selected in the color picker.
Below an example on how this color can be set using this function. In this case the background color is set for
the edit forms header bar class (or title bar).
.formHeader {
display: block;
width: 100%;
background-color: <? generateSkinMainColor(); ?>;
color: #FFFFFF;
padding: 2px;
font-weight: bold;
}
Special variables - Variables for style files
Objectif Lune Inc. © 2010 40