Include config and autoloader when working in future mode
[infodrom.org/infocon.infodrom.org] / Styles / infocon.style
index 2f60704..69cd5b8 100644 (file)
 # Sollte eigentlich in <address></address> eingefaßt sein, kursiv sieht's aber nicht aus.
 #
 <define-tag page-footer>
+<font face="Helvetica,Arial" size="-1">&copy; <a href="<root_prefix>impressum.html">InfoCon</a>
+</font>
+</define-tag>
+
+<define-tag old-page-footer>
 # &copy; = &#169;
 <font face="Helvetica,Arial" size="-1">&copy; <a href="<root_prefix>impressum.html">InfoCon</a>, <:
 @months =
@@ -43,6 +48,10 @@ printf "Letzte 
 
 <if <not <get-var title>>
     <set-var title="InfoCon - Information & Consulting">>
+<if <not <get-var keywords>>
+    <set-var keywords="Linux, Oldenburg, Support, Schulung, Service, Perl, Python, \
+       PHP, JavaScript, Programmierung, Anpassung, Datenbanken, MySQL, PostgreSQL, \
+       Internet-Dienstleistung, Monitoring, Server, Administration, Administrator">>
 
 # Titel im linken Submenü
 <if <not <get-var menu>>
@@ -50,19 +59,26 @@ printf "Letzte 
     <set-var menu="<div align=center><b>Infos</b></div><br>">
 >
 
-<html>
+<html lang="de">
 <head>
-<title><get-var title></title>
+<title>InfoCon - <get-var title></title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <link href="<root_prefix>infocon.css" rel="stylesheet" type="text/css">
+<link rel="icon" href="<root_prefix>favicon.ico" type="image/x-icon">
+<link rel="shortcut icon" href="<root_prefix>favicon.ico" type="image/x-icon">
+<meta name="Language"  content="de">
+
+<meta name="Keywords"  content="<get-var keywords>">
+<meta name="Robots"  content="index,follow">
+
 </head>
 
-<body bgcolor=#ffffff>
+<body>
 
 <table cellspacing=0 cellpadding=0 border=0 width=100%>
 
 <tr>
-  <td width=90><img src="<root_prefix>Pics/infocon-90.png" align=center alt="[InfoCon]" width=90 height=122></td>
+  <td width=90><a href="<:=length($root_prefix)?$root_prefix:'/':>"><img src="<root_prefix>Pics/infocon-90.png" align=center alt="[InfoCon]" border=0></a></td>
   <td width=<page-horiz-space>></td>
   <td width=100%>
        <h1 align=center><font face=Helvetica>Information &amp; Consulting</font></h1>
@@ -75,13 +91,15 @@ printf "Letzte 
 
 <:
     # @menu = ('Infos','Dienstleistungen','Shop');
-    @menu = ('Infos','Dienstleistungen');
+    @menu = ('Infos','Dienstleistungen', 'Logbook');
     %menu_dir = ('Infos'            => 'infos',
                 'Dienstleistungen' => 'service',
+                'Logbook'          => 'logbook',
                 'Shop'             => 'shop',
                 );
     %menu_width = ('Infos'            => 50,
                   'Dienstleistungen' => 120,
+                  'Logbook'          => 62,
                   'Shop'             => 50,
                   );
     $menu_default = 'hspace="4" vspace="7" height="18" align="middle" border="0"';
@@ -124,11 +142,13 @@ printf "Letzte 
   <td width=90 valign=top bgcolor=#5dbbf9>
     <img src="<root_prefix>Pics/corner-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
     <img src="<root_prefix>Pics/corner-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
-  <font face="Helvetica"><get-var menu>
 
+&nbsp;
+<div class=vmenu>
+<ul>
 #include "submenu.inc"
-
-  </font>
+</ul>
+</div>
 
 </td>
   <td width=<page-horiz-space>></td>
@@ -138,8 +158,33 @@ printf "Letzte 
 
 #  <td width=100% valign=top><font face=Helvetica>
 
+<div class="date">
+<script type="text/javascript">
+  var today = new Date;
+  var year = today.getYear();
+  var mon = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
+
+  if (year < 200)
+    year += 1900;    
+
+  if (year > 2006 && year < 2100)
+    document.write("<small>" + today.getDate()
+                   +". " + mon[today.getMonth()]
+                   +" " + year + "</small>");
+</script>
+</div>
+
+<div id=page>
+<div id=border>
+<h3 id=pagetitle><get-var title></h3>
+<div id=content>
+
   %body
 
+</div>
+</div>
+</div>
+
   </font>
   </td></tr></table>
   </td>
@@ -157,3 +202,32 @@ printf "Letzte 
 </html>
 
 </define-tag>
+
+<define-tag menu-item>
+<preserve base text href current>
+<set-var %attributes>
+
+<if <not <get-var href>>
+  <set-var href="<get-var base>.html">>
+
+<ifeq <get-var WML_SRC_BASENAME> "<get-var base>" "<set-var current="id=\"current\"">">
+
+<li><a <get-var current> href="<get-var href>"><get-var text></a></li>
+
+<restore base text href current>
+</define-tag>
+
+<define-tag future>
+<?php
+$dir = getcwd();
+while (strlen($dir) > 1) {
+  if (file_exists($dir.'/config.php')) {
+    require_once($dir.'/config.php');
+    break;
+  }
+  $dir = dirname($dir);
+}
+
+require_once('<root_prefix>/future.php');
+?>
+</define-tag>