Updates with future schedule
[infodrom.org/infocon.infodrom.org] / Styles / infocon.style
index 082c2fc..69cd5b8 100644 (file)
@@ -48,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>>
@@ -64,14 +68,7 @@ printf "Letzte 
 <link rel="shortcut icon" href="<root_prefix>favicon.ico" type="image/x-icon">
 <meta name="Language"  content="de">
 
-<meta name="Keywords"  content="GNU/Linux, Linux, Freie Software, Free Software, Oldenburg, \
-   Dienstleistung, Support, Schulung, Service, Perl, Python, PHP, Web, JavaScript, \
-   Programmierung, Anpassung, Consulting, Customising, Norddeutschland, Weser-Ems, \
-   RRD, Datenbanken, SQL, kommerz, Kommerziell, Business, Joey, IT-Consulting, \
-   Entwicklung, Planung, Wartung, Administration, Niedersachsen, Firma, Company, \
-   commercial, Überwachung, Monitoring, Visualisierung, Statistik, Statistikauswertung, \
-   Datenauswertung, Open Source Oldenburg, Linux Oldenburg, professional Linux-Support Oldenburg,
-   Kompetenz, Internet-Dienstleistung, <get-var keywords>">
+<meta name="Keywords"  content="<get-var keywords>">
 <meta name="Robots"  content="index,follow">
 
 </head>
@@ -81,7 +78,7 @@ printf "Letzte 
 <table cellspacing=0 cellpadding=0 border=0 width=100%>
 
 <tr>
-  <td width=90><a href="<root_prefix>"><img src="<root_prefix>Pics/infocon-90.png" align=center alt="[InfoCon]" border=0></a></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>
@@ -94,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"';
@@ -143,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 size="-1" face="Helvetica"><get-var menu>
 
+&nbsp;
+<div class=vmenu>
+<ul>
 #include "submenu.inc"
-
-  </font>
+</ul>
+</div>
 
 </td>
   <td width=<page-horiz-space>></td>
@@ -167,9 +168,9 @@ printf "Letzte 
     year += 1900;    
 
   if (year > 2006 && year < 2100)
-    document.write(today.getDate()
+    document.write("<small>" + today.getDate()
                    +". " + mon[today.getMonth()]
-                   +" " + year);
+                   +" " + year + "</small>");
 </script>
 </div>
 
@@ -201,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>