changed $CFG-theme to current_theme() to make the theme working as course or session theme, see Bug #4315

This commit is contained in:
urs_hunkler
2005-11-13 17:05:58 +00:00
parent 2ac8f379c3
commit f54b9b94de
12 changed files with 553 additions and 553 deletions
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>>
<head> <html<?php echo $direction ?>>
<?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <head>
<title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <?php echo $meta ?>
<?php include("$CFG->javascript"); ?>
</head> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<body<?php <title><?php echo $title ?></title>
echo " $bodytags";
if ($focus) { <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
echo " onload=\"setfocus()\"";
} <?php include("$CFG->javascript"); ?>
?>>
</head>
<div id="page">
<?php if ($home) { // This is what gets printed on the home page only
?> <body<?php
<div id="header-home">
<div class="headermain"><img src='<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/logo.jpg' /></div> echo " $bodytags";
<div class="headermenu"><?php echo $menu ?></div>
</div> if ($focus) {
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> echo " onload=\"setfocus()\"";
<div id="header">
<div class="headermain"><img src='<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/logo_small.jpg' /></div> }
<div class="headermenu"><?php echo $menu ?></div>
</div> ?>>
<?php } ?>
<div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<div class="navbar"> <div id="page">
<div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
<div class="navbutton"><?php echo $button; ?></div>
</div>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php if ($home) { // This is what gets printed on the home page only
?>
<hr size="1" noshade="noshade" /> ?>
<?php } ?>
<div class="clearer">&nbsp;</div> <div id="header-home">
<!-- END OF HEADER -->
<div id="content"> <div class="headermain"><img src='<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/logo.jpg' /></div>
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+42 -42
View File
@@ -1,43 +1,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
}; };
?> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<div class="navbar"> <div class="navbar">
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
<!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> --> <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
</div> </div>
<?php } ?> <?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<div class="navbar"> <div class="navbar">
<div class="breadcrumb"><?php print_navigation("$navigation"); ?></div> <div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</div> </div>
<?php } ?> <?php } ?>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+42 -42
View File
@@ -1,43 +1,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
}; };
?> ?>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<div class="navbar"> <div class="navbar">
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
<!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> --> <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
</div> </div>
<?php } ?> <?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<div class="navbar"> <div class="navbar">
<div class="breadcrumb"><?php print_navigation("$navigation"); ?></div> <div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</div> </div>
<?php } ?> <?php } ?>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+64 -64
View File
@@ -1,64 +1,64 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
if (file_exists($CFG->dirroot.'/logo.jpg')) { if (file_exists($CFG->dirroot.'/logo.jpg')) {
$standardlogo = $CFG->wwwroot.'/logo.jpg'; $standardlogo = $CFG->wwwroot.'/logo.jpg';
} else if (file_exists($CFG->dirroot.'/logo.gif')) { } else if (file_exists($CFG->dirroot.'/logo.gif')) {
$standardlogo = $CFG->wwwroot.'/logo.gif'; $standardlogo = $CFG->wwwroot.'/logo.gif';
} else if (file_exists($CFG->dataroot.'/1/logo.jpg')) { } else if (file_exists($CFG->dataroot.'/1/logo.jpg')) {
if (empty($CFG->slasharguments)) { if (empty($CFG->slasharguments)) {
$standardlogo = $CFG->wwwroot.'/file.php?file=/1/logo.jpg'; $standardlogo = $CFG->wwwroot.'/file.php?file=/1/logo.jpg';
} else { } else {
$standardlogo = $CFG->wwwroot.'/file.php/1/logo.jpg'; $standardlogo = $CFG->wwwroot.'/file.php/1/logo.jpg';
} }
} else if (file_exists($CFG->dataroot.'/1/logo.gif')) { } else if (file_exists($CFG->dataroot.'/1/logo.gif')) {
if (empty($CFG->slasharguments)) { if (empty($CFG->slasharguments)) {
$standardlogo = $CFG->wwwroot.'/file.php?file=/1/logo.gif'; $standardlogo = $CFG->wwwroot.'/file.php?file=/1/logo.gif';
} else { } else {
$standardlogo = $CFG->wwwroot.'/file.php/1/logo.gif'; $standardlogo = $CFG->wwwroot.'/file.php/1/logo.gif';
} }
} else { } else {
$standardlogo = $CFG->wwwroot.'/theme/'.$CFG->theme.'/logo.gif'; $standardlogo = $CFG->wwwroot.'/theme/'.current_theme().'/logo.gif';
} }
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><img src="<?php echo $standardlogo ?>" border="0" alt="" /></div> <div class="headermain"><img src="<?php echo $standardlogo ?>" border="0" alt="" /></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">
+45 -45
View File
@@ -1,45 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>> <html<?php echo $direction ?>>
<head> <head>
<?php echo $meta ?> <?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " /> <meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" /> <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?> <?php include("$CFG->javascript"); ?>
</head> </head>
<body<?php <body<?php
echo " $bodytags"; echo " $bodytags";
if ($focus) { if ($focus) {
echo " onload=\"setfocus()\""; echo " onload=\"setfocus()\"";
} }
?>> ?>>
<div id="page"> <div id="page">
<?php if ($home) { // This is what gets printed on the home page only <?php if ($home) { // This is what gets printed on the home page only
?> ?>
<div id="header-home"> <div id="header-home">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading <?php } else if ($heading) { // This is what gets printed on any other page with a heading
?> ?>
<div id="header"> <div id="header">
<div class="headermain"><?php echo $heading ?></div> <div class="headermain"><?php echo $heading ?></div>
<div class="headermenu"><?php echo $menu ?></div> <div class="headermenu"><?php echo $menu ?></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?> <?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table class="navbar"><tr><td> <table class="navbar"><tr><td>
<div class="breadcrumb"><?php print_navigation($navigation); ?></div> <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</td></tr></table> </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line <?php } else if ($heading) { // If no navigation, but a heading, then print a line
?> ?>
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<?php } ?> <?php } ?>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
<!-- END OF HEADER --> <!-- END OF HEADER -->
<div id="content"> <div id="content">