shithub: werc

Download patch

ref: 0e76391d3e59de238582c12d249972bda34797b6
parent: ce636e84cecba0b45c7625c805fb6a576bb37863
author: uriel <uriel@engel.se.cat-v.org>
date: Thu Sep 25 03:02:16 EDT 2008

Add master, footer and header templates to lib.

--- /dev/null
+++ b/lib/default_master.tpl
@@ -1,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>
--- /dev/null
+++ b/lib/footer.inc
@@ -1,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" />
--- /dev/null
+++ b/lib/top_bar.inc
@@ -1,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>
+