summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/header.html.tmpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 1a8ce33a8..0cc4badcf 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -24,6 +24,8 @@
# title: string. Page title.
# h1: string. Main page header.
# h2: string. Page subheader.
+ # bgcolor: string. the page's background color ("#rrggbb").
+ # onload: string. JavaScript code to run when the page finishes loading.
# extra: string. Any other HTML to go inside the <head> tags.
# jscript: string. Javascript to go in the header.
# style: string. CSS style.
@@ -33,6 +35,8 @@
[% DEFAULT
h1 = title
h2 = ""
+ bgcolor = "#ffccff"
+ onload = ""
%]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -61,9 +65,11 @@
</head>
-[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag %]
+[%# Migration note: contents of the old Param 'bodyhtml' go in the body tag,
+ # but set the bgcolor and onload attributes in the DEFAULT directive above.
+ #%]
- <body [% "bgcolor=\"#FFFFFF\"" UNLESS body_attributes.search('(?:^|\s)bgcolor=') %] [%+ body_attributes %]>
+ <body bgcolor="[% bgcolor %]" onload="[% onload %]">
[%# Migration note: the following file corresponds to the old Param
# 'bannerhtml'