Location: PHPKode > projects > Informium > engine/tmpl/bright/stylesheet.php
<?

//
// Copyright (c) 2002, Cameron McKay
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions 
// are met:

// * Redistributions of source code must retain the above copyright 
//   notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright 
//   notice, this list of conditions and the following disclaimer in the 
//   documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//

//
// Informium "Bright" Template
//
// Stylesheet Template (stylesheet.php)
//
// Author: Cameron McKay
// Note:   Used to format entire template.
//

$font_family  = 'Verdana, Helvetica, Arial, Sans-serif';
$font[small]  = '8pt';
$font[medium] = '10pt';
$font[large]  = '12pt';

$colour[icon_line_back]  = '#000080'; // Navy.
$colour[icon_line_text]  = '#FFFFFF'; // White.

$colour[title_line_back] = '#FFA500'; // Orange.
$colour[title_line_text] = '#FFFFFF'; // White.

$colour[pane_left_back]  = '#ADD8E6'; // LightBlue.
$colour[pane_left_text]  = '#000000'; // Black.

$colour[pane_right_back] = '#FFFFFF'; // White.
$colour[pane_right_text] = '#000000'; // Black.

$colour[post_title_back] = '#ADD8E6'; // LightBlue.
$colour[post_title_text] = '#000000'; // Black.
$colour[post_body_back]  = '#EEEEEE'; // LightGrey.
$colour[post_body_text]  = '#000000'; // Black.

$colour[comt_title_back] = '#ADD8E6'; // LightBlue.
$colour[comt_title_text] = '#000000'; // Black.
$colour[comt_body_back]  = '#FFFFFF'; // White.
$colour[comt_body_text]  = '#000000'; // Black.

$colour[topic_back] = '#EEEEEE';
$colour[topic_text] = '#EEEEEE';

$colour[href_normal]  = '#000080'; // Navy.
$colour[href_visited] = '#000080'; // Navy.
$colour[href_active]  = '#000080'; // Navy.
$colour[href_hover]   = '#808080'; // DarkGrey.

$tmpl[body_tags] = "link='$colour[href_normal]' alink='$colour[href_active]' vlink='$colour[href_visited]'";

//
// Function: e ( $variable )
//
// Purpose:  A quick and easy way of saying echo().
//
// Returns:  Nothing.
//

function e($variable)
{
	// Echo the variable.
	echo $variable;
}

?>

<style>

body  { font-family: <? e($font_family); ?>; font-size: <? e($font[medium]); ?>; } 
td    { font-family: <? e($font_family); ?>; font-size: <? e($font[medium]); ?>; }
pre   { font-family: monospace;              font-size: <? e($font[medium]); ?>; }        

.small  { font-family: <? e($font_family); ?>; font-size: <? e($font[small]);  ?>; }
.medium { font-family: <? e($font_family); ?>; font-size: <? e($font[medium]); ?>; }
.large  { font-family: <? e($font_family); ?>; font-size: <? e($font[large]);  ?>; }                                 
 
.icon_line {
	background-color: <? e($colour[icon_line_back]); ?>;
	color:            <? e($colour[icon_line_text]); ?>;
}

.title_line {
	background-color: <? e($colour[title_line_back]); ?>;
	color:            <? e($colour[title_line_text]); ?>;
}

.pane_left {
	background-color: <? e($colour[pane_left_back]); ?>;
	color:            <? e($colour[pane_left_text]); ?>;
}

.pane_right {
	background-color: <? e($colour[pane_right_back]); ?>;
	color:            <? e($colour[pane_right_text]); ?>;
}

.topic {
	background-color: <? e($colour[topic_back]); ?>;
	color:            <? e($colour[topic_text]); ?>;
}

.article_title {
	background-color: <? e($colour[post_title_back]); ?>;
	color:            <? e($colour[post_title_text]); ?>;
}

.article_body {
	background-color: <? e($colour[post_body_back]); ?>;
	color:            <? e($colour[post_body_text]); ?>;
}

.comment_title {
	background-color: <? e($colour[comt_title_back]); ?>;
	color:            <? e($colour[comt_title_text]); ?>;
}

.comment_body {
	background-color: <? e($colour[comt_body_back]); ?>;
	color:            <? e($colour[comt_body_text]); ?>;
}

a {
	text-decoration:  none;
	font-style:       none;
	font-weight:      bold;
	color:            <? e($colour[href_normal]); ?>;
}

a:hover {
	text-decoration:  none;
	font-style:       none;
	color:            <? e($colour[href_hover]); ?>;
}

</style>
Return current item: Informium