Use the adjusted Infodrom menu
[infodrom.org/lists.infodrom.org] / Styles / infodrom.style
1 #include <basic.style>
2 #include <tools.inc>
3 #use wml::std::box
4 #use wml::std::info
5
6 <define-tag page endtag=required>
7 <preserve title menugbcolor keywords source>
8 <set-var %attributes>
9
10 <if <not <get-var title>>
11     <set-var title="Infodrom Oldenburg">>
12 <if <not <get-var menubgcolor>>
13     <set-var menubgcolor="<submenubgcolor>">>
14
15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
16 <html>
17 <head>
18 <title><get-var title></title>
19 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
20 <meta name="Author"    content="joey@infodrom.org (Martin Schulze)">
21 <if <get-var keywords>
22 <meta name="Keywords"  content="<get-var keywords>">
23 >
24 <info style=meta domainname="infodrom.org" copyright="(c) Martin Schulze, Infodrom Oldenburg, reuse has to be negotiated">
25 <link href="<root_prefix>infodrom.css" rel="stylesheet" type="text/css">
26 <link href="<root_prefix>menu.css" rel="stylesheet" type="text/css">
27 </head>
28 <body>
29
30
31 # Copied from www.infodrom.org with links adjusted
32 #
33 <div class="navigation">
34 <p class="none"><a href="#content"><strong>Skip navigation</strong></a></p>
35 <ul>
36 <li class="Infodrom"><a href="http://www.infodrom.org/Infodrom/" target="_top">Infodrom</a></li>
37 <li class="Linux"><a href="http://www.infodrom.org/Linux/" target="_top">Linux</a></li>
38 <li class="Debian"><a href="http://www.infodrom.org/Debian/" target="_top">Debian</a></li>
39 <li class="linx"><a href="http://www.infodrom.org/linx/" target="_top">Linx</a></li>
40 <li class="text"><a href="http://www.infodrom.org/text/" target="_top">Texte</a></li>
41 <li class="service"><a href="http://www.infodrom.org/service/" target="_top">Service</a></li>
42 <li class="zeitungen"><a href="http://www.infodrom.org/zeitungen/" target="_top">Zeitungen</a></li>
43 <li class="News"><a href="http://www.infodrom.org/News/" target="_top">News</a></li>
44 <li class="projects"><a href="http://www.infodrom.org/projects/" target="_top">Projekte</a></li>
45 </ul>
46 </div>
47
48 <a name="content"></a>
49
50 <table border=0 cellpadding=0 cellspacing=0 width=100%>
51 <tr>
52 #  <td align=left valign=top width=10% bgcolor=#eff0f1><font face="Helvetica,Arial" size=-1 color="#<menu-fgcolor>">
53 <td align=left valign=top width=10% bgcolor=#<get-var menubgcolor>><font color="#<menucolor>">
54
55 #include "submenu.inc"
56
57   <p>
58   </font></td>
59   <td valign=top><img src=<root_prefix>gifs/imgdot-1x1-transp.gif width=3 height=0 alt=""></td>
60   <td valign=top align=left width=90%>
61
62 %body
63
64   </td>
65 </tr>
66 </table>
67
68 <line color=<menu-fgcolor> height=1 align=center>
69 #<hr>
70
71 # &copy; = &#169;
72 <address><small>&copy; <a href="http://www.infodrom.org/Infodrom/impressum.html">Infodrom Oldenburg</a>, <:
73 $cvsurl = "http://cvs.infodrom.org/lists.infodrom.org/%s%s?cvsroot=infodrom.org";
74 @months =
75     ("Dummy", "Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
76
77 "<get-var WML_SRC_ISOTIME>" =~ /^(\d+)-(\d+)-(\d+)\s/;
78 printf "last modified: %s %d, %d", $months[$2], $3, $1;
79
80 if (length ("<get-var source>")) {
81     if ("<get-var source>" ne ".") {
82         $url = "<get-var source>";
83     } else {
84         $url = '';
85     }
86 } else {
87     "<get-var WML_SRC_DIRNAME>/" =~ /.*\/(src\/.*)$/;
88     $url = sprintf ($cvsurl, $1, "<get-var WML_SRC_FILENAME>");
89 }
90
91 printf ", <a href=\"%s\">page source</a>", $url if (length ($url));
92
93 print ".";
94 :></small></address>
95
96 </body>
97 </html>
98 <restore title menubgcolor keywords source>
99 </define-tag>
100
101 <define-tag flaglink whitespace=delete>
102 <preserve url lang>
103 <set-var %attributes>
104 <div align=right>
105 <a href="<get-var url>"><img src="<root_prefix>gifs/flag-<get-var lang>.gif" width=20 height=13 border=0 alt="<get-var lang>"></a>
106 </div>
107 # The events pages need an extra space between flag and red line
108 <:
109   if ("<get-var WML_SRC_DIRNAME>" =~ /src\/Debian\/events\/.*/) {
110     print "<p>";
111   }
112 :>
113 <restore url lang>
114 </define-tag>
115
116 <define-tag frontad>
117 <table width=100% border=0>
118 <tr>
119   <td align=left valign=top>
120      <a href="http://www.linuxtag.org/"><img src="<root_prefix>gifs/lt2kblue.gif" width=100 height=66 alt="LinuxTag 2003 - July 10-13 2003" border=0></a>
121 #     <font face="Helvetica,Arial"><a href="http://oldenburger.linuxtage.de/"><b>Oldenburger LinuxTag</b></a></font>
122   </td>
123   <td align=right valign=top>
124      <a href="<root_prefix>Linux/"><img src="<root_prefix>gifs/powered_by_linux.gif" alt="Powered by Linux" width=180 height=70 border=0></a>
125   </td>
126 </tr>
127 </table>
128 </define-tag>
129
130 # <db>
131 #   Name der Haupt-Datenbank fuer diesen Bereich
132 #
133 #   OBSOLETE!!!!!!!!!!
134 <define-tag db>web</define-tag>