]> git.mjollnir.org Git - moodle.git/commitdiff
Newly formatted header.html files in themes ... still works the same
authormartin <martin>
Mon, 23 Sep 2002 15:42:22 +0000 (15:42 +0000)
committermartin <martin>
Mon, 23 Sep 2002 15:42:22 +0000 (15:42 +0000)
just might be easier to edit now.  index.php uses new set_config function

theme/index.php
theme/standard/header.html
theme/standardblue/header.html
theme/standardgreen/header.html
theme/standardred/header.html

index 9eac7830435131e758a9e796fa12e5ed707daf00..ec0986ca00a49d85c7a1fcd61ff4fa13b08ba210 100644 (file)
@@ -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();
index 6c76df309188ce3bf7e131717ac2e41847d19815..89497488d3a57ab50c66280311cca3f3bc8d6826 100644 (file)
@@ -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 -->
index 58a7c5785858208dcf5f97d514da137212444ce9..39ab1588efc9c3c7d976881b486f4b5002427f6d 100644 (file)
@@ -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 -->
index 58a7c5785858208dcf5f97d514da137212444ce9..d566255c4c0230c960d3ff4689a0f9d12ce90581 100644 (file)
@@ -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 -->
index 58a7c5785858208dcf5f97d514da137212444ce9..e250dcad1ab5fc2fba76716350e65a3b809a9b13 100644 (file)
@@ -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 -->