commit d3260f899a5bb0f9a779e07ecac8130484d02fb2
parent b52072c4396a3776c5927345085264c0a2850798
Author: uriel@engel.se.cat-v.org <unknown>
Date: Thu, 25 Sep 2008 07:02:16 +0200
Add master, footer and header templates to lib.
Diffstat:
3 files changed, 62 insertions(+), 0 deletions(-)
diff --git a/lib/default_master.tpl b/lib/default_master.tpl
@@ -0,0 +1,40 @@
+
+<div id="header">
+ <div class="superHeader">
+% cat `{ get_lib_file top_bar.inc }
+ </div>
+
+ <div class="midHeader">
+% gentitle
+ </div>
+
+ <div class="subHeader">
+ <br />
+ </div>
+</div>
+
+% if (! ~ $#sidebar 0) {
+<div id="side-bar">
+
+<div>
+% if (! ~ $#sideBarNavTitle 0) {
+% echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>'
+% }
+% gensidebar
+</div>
+
+<div>
+</div>
+
+</div>
+% }
+
+<div id="main-copy">
+
+% genbody
+
+</div>
+
+<div id="footer">
+% cat `{ get_lib_file footer.inc }
+</div>
diff --git a/lib/footer.inc b/lib/footer.inc
@@ -0,0 +1,6 @@
+<div class="left"><a href="http://repo.cat-v.org/werc/">Powered by werc</a></div>
+
+<div class="right"><!-- TODO Maybe should add a programatically generated google search box --></div>
+
+<br />
+<br class="doNotDisplay doNotPrint" />
diff --git a/lib/top_bar.inc b/lib/top_bar.inc
@@ -0,0 +1,16 @@
+ <div class="left">
+ <a href="http://gsoc.cat-v.org">gsoc</a> |
+ <a href="http://doc.cat-v.org">doc archive</a> |
+ <a href="http://repo.cat-v.org">software repo</a> |
+ <a href="http://ninetimes.cat-v.org">ninetimes</a> |
+ <a href="http://harmful.cat-v.org">harmful</a> |
+ <a href="http://9p.cat-v.org/">9P</a> |
+ <a href="http://cat-v.org">cat-v.org</a>
+ </div>
+
+ <div class="right">
+ <span class="doNotDisplay">Related sites:</span>
+ | <a href="http://cat-v.org/update_log">site updates</a>
+ | <a href="/sitemap">site map</a>
+ </div>
+