Changes to styles used in nav-bar (no longer id, now a class) including

renaming - please check other themes!!!

Also the footer can now use all the same PHP variables as the headero

$heading  - the heading of the page
$menu   - the menu if any (sometimes it's the "logged in as" string)
$title - the title of the page
$navigation - the navigation string
$button - a button, if any
$home - true if on home page, otherwise false
This commit is contained in:
moodler 2005-03-26 06:50:28 +00:00
parent 47819c85d2
commit d2c6555d40
4 changed files with 18 additions and 9 deletions

View File

@ -2,12 +2,20 @@
</div> <!-- end div containerContent -->
<!-- START OF FOOTER -->
<div id="footer">
<hr size="1" noshade="noshade" />
<?php if (!$home and $heading) { // Most pages with heading, except home page ?>
<div class="navbar">
<div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
<div class="menu"><?php echo $menu; ?></div>
</div>
<div class="clearer">&nbsp;</div>
<?php } ?>
<?php echo $loggedinas ?>
<p class="homelink"><?php echo $homelink ?></p>
<?php if (isadmin()) { ?>
<br />
<hr size="1" noshade="noshade" />
<p align="center">
<a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=<?php echo urlencode(qualified_me()) ?>">Validate HTML</a> |

View File

@ -32,9 +32,9 @@
<?php } ?>
<div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<div id="nav-bar">
<div id="breadcrumb"><?php print_navigation("$navigation"); ?></div>
<div id="navbutton"><?php echo $button; ?></div>
<div class="navbar">
<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
?>

View File

@ -142,7 +142,7 @@ h4 {
font-size:1.3em;
}
#breadcrumb {
.breadcrumb {
font-size:0.9em;
font-weight:bold;
}

View File

@ -205,17 +205,18 @@ table.formtable tbody th
text-align:right;
}
#nav-bar {
.navbar {
padding:3px 0.5em;
height:1.3em;
}
#breadcrumb {
.navbar .breadcrumb {
float:left;
margin:0.2em 0em;
}
#navbutton {
.navbar .navbutton,
.navbar .menu {
float:right;
}