Include config and autoloader when working in future mode
[infodrom.org/infocon.infodrom.org] / Styles / infocon.style
index 19ddac2..69cd5b8 100644 (file)
@@ -91,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"';
@@ -214,3 +216,18 @@ printf "Letzte 
 
 <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>