Add master, footer and header templates to lib.

This commit is contained in:
uriel 2008-09-25 07:02:16 +02:00
parent a3b35d668a
commit 39a13f7dfa
3 changed files with 62 additions and 0 deletions

40
lib/default_master.tpl Normal file
View File

@ -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>

6
lib/footer.inc Normal file
View File

@ -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" />

16
lib/top_bar.inc Normal file
View File

@ -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>