More highlighting
[infodrom.org/infocon.infodrom.org] / Styles / infocon.style
index e4f7639..6a9114b 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>
+&nbsp;&nbsp;<a href="<root_prefix>datenschutz.html">Datenschutz</a>
+</font>
+</define-tag>
+
+<define-tag old-page-footer>
 # &copy; = &#169;
-<font face="Helvetica,Arial">&copy; <a href="http://infocon.infodrom.org/">InfoCon</a>, <:
+<font face="Helvetica,Arial" size="-1">&copy; <a href="<root_prefix>impressum.html">InfoCon</a>, <:
 @months =
 #    ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
     ("Dummy", "Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
@@ -43,21 +49,37 @@ 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>>
     <set-var menu="<div align=center>&nbsp;</div><br>">
     <set-var menu="<div align=center><b>Infos</b></div><br>">
 >
 
-<html>
-<head><title><get-var title></title></head>
+<html lang="de">
+<head>
+<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">
 
-<body bgcolor=#ffffff>
+</head>
+
+<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>
@@ -69,13 +91,16 @@ printf "Letzte 
 <td rowspan=2 align=center>
 
 <:
-    @menu = ('Infos','Dienstleistungen','Shop');
+    # @menu = ('Infos','Dienstleistungen','Shop');
+    @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"';
@@ -89,7 +114,7 @@ printf "Letzte 
                    $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
             } else {
                # We're in but link required
-               printf '<a href="%s%s/"><img src="%sPics/menu-%s.png" width="%d" alt="[%s]" %s></a>',
+               printf '<a href="%s%s/"><img src="%sPics/menu-%s.press.png" width="%d" alt="[%s]" %s></a>',
                    $root_prefix, $dir, $root_prefix, $dir, $menu_width{$rubrik}, $rubrik, $menu_default;
             }
         } else {
@@ -118,22 +143,55 @@ 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>
-  <td width=100% valign=top><font face=Helvetica>
+  <td width=100% valign=top>
+  <table width=100% border=0 cellspacing=2 cellpadding=0><tr><td width=100% align=left valign=top>
+  <font face=Helvetica>
+
+#  <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
 
-  </font></td>
+</div>
+</div>
+</div>
+
+  </font>
+  </td></tr></table>
+  </td>
 </tr>
 <tr>
-  <td width=90 valign=botom bgcolor=#5dbbf9>
+  <td width=90 valign=bottom bgcolor=#5dbbf9>
     <img src="<root_prefix>Pics/corner-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="17" height="16">
     <img src="<root_prefix>Pics/corner-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
   </td>
@@ -145,3 +203,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>