- adding missing $bacground/$foreground variables.
parent
7ac1ae2aa6
commit
7c58daf7c3
|
@ -7,17 +7,19 @@
|
||||||
* @package theme system
|
* @package theme system
|
||||||
*/
|
*/
|
||||||
class BaseTheme {
|
class BaseTheme {
|
||||||
|
var $background = "#ffffff";
|
||||||
|
var $foreground = "#000000";
|
||||||
|
|
||||||
function system($field) {
|
function system($field) {
|
||||||
$system["name"] = "I need a name o'wise one!";
|
$system["name"] = "Basic theme";
|
||||||
$system["author"] = "What is your name master?";
|
$system["author"] = "Drupal";
|
||||||
$system["description"] = "What am I mighty one?";
|
$system["description"] = "Basic theme. Lynx friendly";
|
||||||
|
|
||||||
return $system[$field];
|
return $system[$field];
|
||||||
}
|
}
|
||||||
|
|
||||||
function header($title = "") {
|
function header($title = "") {
|
||||||
$output .= "<html><head><title>". variable_get(site_name, "drupal") ."</title></head><body>";
|
$output .= "<html><head><title>". variable_get(site_name, "drupal") ."</title></head><body bgcolor=\"$this->background\" text=\"$this->foreground\">";
|
||||||
$output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td valign=\"top\" width=\"170\">";
|
$output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td valign=\"top\" width=\"170\">";
|
||||||
|
|
||||||
print $output;
|
print $output;
|
||||||
|
@ -27,7 +29,7 @@ class BaseTheme {
|
||||||
}
|
}
|
||||||
|
|
||||||
function links($links, $delimiter = " | ") {
|
function links($links, $delimiter = " | ") {
|
||||||
return @implode($delimiter, $links);
|
return implode($delimiter, $links);
|
||||||
}
|
}
|
||||||
|
|
||||||
function image($name) {
|
function image($name) {
|
||||||
|
|
Loading…
Reference in New Issue