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
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
+39
-21
@@ -8,27 +8,45 @@
|
||||
<? include("$CFG->javascript"); ?>
|
||||
</HEAD>
|
||||
|
||||
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
|
||||
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
|
||||
|
||||
<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 ($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>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? 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>
|
||||
<? } ?>
|
||||
<!-- END OF HEADER -->
|
||||
|
||||
@@ -8,27 +8,45 @@
|
||||
<? include("$CFG->javascript"); ?>
|
||||
</HEAD>
|
||||
|
||||
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } ?> bgcolor="<?=$THEME->body ?>" link="#000066" vlink="#222288">
|
||||
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
|
||||
|
||||
<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 ($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>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? 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>
|
||||
<? } ?>
|
||||
<!-- END OF HEADER -->
|
||||
|
||||
@@ -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">
|
||||
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
|
||||
|
||||
<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 ($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>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? 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>
|
||||
<? } ?>
|
||||
<!-- END OF HEADER -->
|
||||
|
||||
@@ -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">
|
||||
<BODY <? if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
|
||||
|
||||
<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 ($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>
|
||||
|
||||
<? } ?>
|
||||
|
||||
<? 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>
|
||||
<? } ?>
|
||||
<!-- END OF HEADER -->
|
||||
|
||||
Reference in New Issue
Block a user