mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Fix for bug 51270: param for bodyhtml to allow sites to customize
background colors/image and link colors.
This commit is contained in:
parent
8b3fdc813d
commit
a8b9e30b12
@ -921,8 +921,7 @@ sub PutHeader {
|
|||||||
|
|
||||||
print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
|
print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
|
||||||
print Param("headerhtml") . "\n$jscript\n</HEAD>\n";
|
print Param("headerhtml") . "\n$jscript\n</HEAD>\n";
|
||||||
print "<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"\n";
|
print "<BODY " . Param("bodyhtml") . " $extra>\n";
|
||||||
print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\" $extra>\n";
|
|
||||||
|
|
||||||
print PerformSubsts(Param("bannerhtml"), undef);
|
print PerformSubsts(Param("bannerhtml"), undef);
|
||||||
|
|
||||||
|
@ -238,6 +238,11 @@ DefParam("headerhtml",
|
|||||||
"l",
|
"l",
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
DefParam("bodyhtml",
|
||||||
|
"Additional parameters to add to the BODY tag at the beginning of documents, eg. background image/colors, link colors, etc",
|
||||||
|
"l",
|
||||||
|
'BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000"');
|
||||||
|
|
||||||
DefParam("footerhtml",
|
DefParam("footerhtml",
|
||||||
"HTML to add to the bottom of every page. By default it displays the blurbhtml, and %commandmenu%, a menu of useful commands. You probably really want either headerhtml or footerhtml to include %commandmenu%.",
|
"HTML to add to the bottom of every page. By default it displays the blurbhtml, and %commandmenu%, a menu of useful commands. You probably really want either headerhtml or footerhtml to include %commandmenu%.",
|
||||||
"l",
|
"l",
|
||||||
|
Loading…
Reference in New Issue
Block a user