Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Newly formatted header.html files in themes ... still works the same

just might be easier to edit now.  index.php uses new set_config function
  • Loading branch information...
commit 83e9a09e3475a8ec9715921ddaf39c0bed596d9b 1 parent 8cea3a3
martin authored
View
2  theme/index.php
@@ -40,7 +40,7 @@
"<A HREF=\"$CFG->wwwroot/admin\">$stradministration</A> -> $strchoosetheme");
if ($choose) {
- if (set_field("config", "value", $choose, "name", "theme")) {
+ if (set_config("theme", $choose)) {
print_heading(get_string("themesaved"));
print_continue("$CFG->wwwroot");
print_footer();
View
64 theme/standard/header.html
@@ -8,27 +8,45 @@
<? include("$CFG->javascript"); ?>
</HEAD>
-<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
-
-<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
-<TR><TD ALIGN=LEFT VALIGN=TOP>
-<? if ($heading) { ?>
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=4><B><?=$heading?></B></FONT>
-<? } ?>
-</TD><TD ALIGN=RIGHT VALIGN=TOP>
-<? if ($button) {
- echo "$button";
- } ?>
-</TD></TR></TABLE>
-
-<? if ($navigation) { ?>
- <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
- <TR><TD BGCOLOR="<?=$THEME->cellheading?>">
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
-<? print_navigation("$navigation"); ?>
- </B></FONT></TD></TR></TABLE>
- <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
-<? } else if ($heading) { ?>
- <HR SIZE=1 NOSHADE>
-<? } ?>
+<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
+
+<? if ($home) { // This is what gets printed on the home page only ?>
+
+ <TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+
+<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
+
+ <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+<? } ?>
+
+
+<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
+
+ <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
+ <TR>
+ <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
+ </TD>
+ </TR>
+ </TABLE>
+ <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+
+<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
+
+ <HR SIZE=1 NOSHADE>
+
+<? } ?>
+
<!-- END OF HEADER -->
View
64 theme/standardblue/header.html
@@ -8,27 +8,45 @@
<? include("$CFG->javascript"); ?>
</HEAD>
-<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
-
-<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
-<TR><TD ALIGN=LEFT VALIGN=TOP>
-<? if ($heading) { ?>
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=4><B><?=$heading?></B></FONT>
-<? } ?>
-</TD><TD ALIGN=RIGHT VALIGN=TOP>
-<? if ($button) {
- echo "$button";
- } ?>
-</TD></TR></TABLE>
-
-<? if ($navigation) { ?>
- <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
- <TR><TD BGCOLOR="<?=$THEME->cellheading?>">
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
-<? print_navigation("$navigation"); ?>
- </B></FONT></TD></TR></TABLE>
- <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
-<? } else if ($heading) { ?>
- <HR SIZE=1 NOSHADE>
-<? } ?>
+<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
+
+<? if ($home) { // This is what gets printed on the home page only ?>
+
+ <TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+
+<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
+
+ <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+<? } ?>
+
+
+<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
+
+ <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
+ <TR>
+ <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
+ </TD>
+ </TR>
+ </TABLE>
+ <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+
+<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
+
+ <HR SIZE=1 NOSHADE>
+
+<? } ?>
+
<!-- END OF HEADER -->
View
66 theme/standardgreen/header.html
@@ -4,31 +4,49 @@
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
<LINK REL="stylesheet" HREF="<?=$styles ?>">
-<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardblue/favicon.ico">
+<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardgreen/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
-<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
-
-<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
-<TR><TD ALIGN=LEFT VALIGN=TOP>
-<? if ($heading) { ?>
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=4><B><?=$heading?></B></FONT>
-<? } ?>
-</TD><TD ALIGN=RIGHT VALIGN=TOP>
-<? if ($button) {
- echo "$button";
- } ?>
-</TD></TR></TABLE>
-
-<? if ($navigation) { ?>
- <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
- <TR><TD BGCOLOR="<?=$THEME->cellheading?>">
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
-<? print_navigation("$navigation"); ?>
- </B></FONT></TD></TR></TABLE>
- <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
-<? } else if ($heading) { ?>
- <HR SIZE=1 NOSHADE>
-<? } ?>
+<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
+
+<? if ($home) { // This is what gets printed on the home page only ?>
+
+ <TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+
+<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
+
+ <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+<? } ?>
+
+
+<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
+
+ <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
+ <TR>
+ <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
+ </TD>
+ </TR>
+ </TABLE>
+ <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+
+<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
+
+ <HR SIZE=1 NOSHADE>
+
+<? } ?>
+
<!-- END OF HEADER -->
View
66 theme/standardred/header.html
@@ -4,31 +4,49 @@
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
<LINK REL="stylesheet" HREF="<?=$styles ?>">
-<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardblue/favicon.ico">
+<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standardred/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
-<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
-
-<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
-<TR><TD ALIGN=LEFT VALIGN=TOP>
-<? if ($heading) { ?>
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=4><B><?=$heading?></B></FONT>
-<? } ?>
-</TD><TD ALIGN=RIGHT VALIGN=TOP>
-<? if ($button) {
- echo "$button";
- } ?>
-</TD></TR></TABLE>
-
-<? if ($navigation) { ?>
- <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
- <TR><TD BGCOLOR="<?=$THEME->cellheading?>">
- <FONT FACE="Trebuchet MS, Verdana, Arial, Helvetica, sans-serif" SIZE=2><B>
-<? print_navigation("$navigation"); ?>
- </B></FONT></TD></TR></TABLE>
- <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
-<? } else if ($heading) { ?>
- <HR SIZE=1 NOSHADE>
-<? } ?>
+<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
+
+<? if ($home) { // This is what gets printed on the home page only ?>
+
+ <TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+
+<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
+
+ <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
+ <TR>
+ <TD ALIGN=LEFT VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
+ <TD ALIGN=RIGHT VALIGN=TOP><?=$button ?></TD>
+ </TR>
+ </TABLE>
+
+<? } ?>
+
+
+<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
+
+ <TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
+ <TR>
+ <TD BGCOLOR="<?=$THEME->cellheading?>">
+ <FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
+ </TD>
+ </TR>
+ </TABLE>
+ <IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
+
+<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
+
+ <HR SIZE=1 NOSHADE>
+
+<? } ?>
+
<!-- END OF HEADER -->
Please sign in to comment.
Something went wrong with that request. Please try again.