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 --> </div> <!-- end div containerContent -->
<!-- START OF FOOTER --> <!-- START OF FOOTER -->
<div id="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 ?> <?php echo $loggedinas ?>
<p class="homelink"><?php echo $homelink ?></p> <p class="homelink"><?php echo $homelink ?></p>
<?php if (isadmin()) { ?> <?php if (isadmin()) { ?>
<br />
<hr size="1" noshade="noshade" /> <hr size="1" noshade="noshade" />
<p align="center"> <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> | <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 } ?> <?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 ?>
<div id="nav-bar"> <div class="navbar">
<div id="breadcrumb"><?php print_navigation("$navigation"); ?></div> <div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
<div id="navbutton"><?php echo $button; ?></div> <div class="navbutton"><?php echo $button; ?></div>
</div> </div>
<?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
?> ?>

View file

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

View file

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