The menubar from hell is back again

This commit is contained in:
David Bartley 2007-09-20 21:06:22 -04:00
parent 94316ca95e
commit cc1386c435
28 changed files with 92 additions and 1 deletions

BIN
buttons/calendar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
buttons/calendar.xcf Normal file

Binary file not shown.

BIN
buttons/clubs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
buttons/csc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
buttons/csc.xcf Normal file

Binary file not shown.

BIN
buttons/docs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
buttons/docs.xcf Normal file

Binary file not shown.

BIN
buttons/gallery.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
buttons/gerbil.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
buttons/gitweb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

BIN
buttons/gopher.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
buttons/home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

BIN
buttons/homepage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
buttons/horde.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
buttons/library.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
buttons/mm-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
buttons/office.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
buttons/office.xcf Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
buttons/services.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
buttons/stats.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
buttons/stats.xcf Normal file

Binary file not shown.

BIN
buttons/sunflower.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -36,6 +36,7 @@
<xsl:include href="./xsl/functions.xsl" />
<xsl:include href="./xsl/common.xsl" />
<xsl:include href="./xsl/directory.xsl" />
<xsl:include href="./xsl/menu.xsl" />
<xsl:include href="./xsl/exec.xsl" />
<xsl:include href="./xsl/members.xsl" />
<xsl:include href="./xsl/events.xsl" />

View File

@ -143,6 +143,46 @@ div.template-header {
padding-top: 5px;
}
div.menubar {
background-color: white;
padding-top: 12px;
margin: 0 auto;
text-align: center;
height: 75px;
vertical-align: middle;
font-size: 11px;
text-transform: uppercase;
}
div.menuitem {
margin: 0;
padding: 0;
text-align: center;
float: left;
}
div.menuitem a {
display: block;
text-align: center;
padding: 5px;
margin: 0;
text-decoration: none;
font-weight: 400;
font-family: 'Lucida Grande', Sans, Sans-serif;
}
div.menuitem a:hover {
font-weight: 700;
color: black;
background-color: #eee;
border: 1px solid #ccc;
}
div.menuitem p {
margin: 0;
padding: 0;
}
div.webtitle {
height: 46px;
width: 750px;

14
menu.xml Normal file
View File

@ -0,0 +1,14 @@
<menudefs>
<menuitem title="Home" icon="homepage" href="index.html"/>
<menuitem title="About" icon="csc" href="about/"/>
<menuitem title="Services" icon="services" href="services/"/>
<menuitem title="Office" icon="office" href="office/"/>
<menuitem title="Events" icon="calendar" href="events/"/>
<menuitem title="Media" icon="package_multimedia" href="media/"/>
<menuitem title="Library" icon="library" absolute="true" href="http://library.csclub.uwaterloo.ca/"/>
<menuitem title="Wiki" icon="sunflower" absolute="true" href="http://wiki.csclub.uwaterloo.ca/"/>
<menuitem title="Webmail" icon="horde" absolute="true" href="https://mail.csclub.uwaterloo.ca/"/>
<menuitem title="Mailman" icon="mm-icon" absolute="true" href="/mailman/"/>
<menuitem title="gopher" icon="gopher" absolute="true" href="gopher://csclub.uwaterloo.ca/"/>
<menuitem title="gitweb" icon="gitweb" absolute="true" href="http://gitweb.csclub.uwaterloo.ca/"/>
</menudefs>

View File

@ -18,7 +18,7 @@
<a id="pagetop" />
<xsl:apply-templates select="biglogo" />
<xsl:apply-templates select="header" />
<xsl:apply-templates select="section" />
<xsl:apply-templates select="section|menu" />
<xsl:apply-templates select="footer" />
</div></body>
</html>
@ -85,6 +85,7 @@
<xsl:template match="footer" name="footer">
<div class="footer">
<xsl:call-template name="menu" />
<a href="#pagetop" class="pagetop">Go to top</a>
<div class="infobox">
<p>

35
xsl/menu.xsl Normal file
View File

@ -0,0 +1,35 @@
<?xml version='1.0'?>
<xsl:stylesheet version="2.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:csc="http://csclub.uwaterloo.ca/xslt">
<xsl:template match="menuitem">
<xsl:variable name="preabs">
<xsl:choose>
<xsl:when test="@absolute = 'true'" />
<xsl:otherwise>
<xsl:value-of select="$pre" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="menuitem">
<a href="{$preabs}{@href}"><p><img src="{$pre}buttons/{@icon}.png" width="40"
height="40" alt="{@title}" /></p><p><xsl:value-of select="@title" /></p></a>
</div>
</xsl:template>
<xsl:template match="menudefs">
<div class="menubar">
<xsl:apply-templates select="menuitem" />
</div>
</xsl:template>
<xsl:template match="menu" name="menu">
<xsl:apply-templates select="document(concat($g_root, '/menu.xml'))/menudefs" />
</xsl:template>
</xsl:stylesheet>