Properly implemented the page title and regular title within the page.
[infodrom.org/service.infodrom.org] / Styles / service.style
1 #include <basic.style>
2 #include <tools.style>
3
4 # <page [title=] [func=] [pagetitle=]>
5 #       Define the actual page
6 #
7 #       title=          headline for the page, default: "Infodrom Service"
8 #       func=           Function of the page, left bar
9 #       pagetitle=      title for the page, default <func>: <title>
10
11 <define-tag page endtag=required>
12 <preserve title func pagetitle>
13 <set-var %attributes>
14
15 <if <not <get-var title>>
16     <set-var title="Infodrom Service">>
17
18 <if <not <get-var pagetitle>>
19   <if <not <get-var func>>
20     <set-var pagetitle=<get-var title>>
21     <set-var pagetitle="<get-var func>: <get-var title>">
22   >
23 >
24
25 <html>
26 <head>
27 <title><get-var pagetitle></title>
28 <meta name="author" content="joey@infodrom.org (Martin Schulze)">
29 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
30 </head>
31 <body bgcolor="#<page-bgcolor>" text="#<page-textcolor>" vlink="#<page-vlink>" alink="#<page-alink>" link="#<page-link>">
32
33 <table width=100% border=0 cellpadding=0 cellspacing=0>
34 <tr>
35 <td align=left valign=top width=10% bgcolor=#<submenu-bgcolor>><font face="Helvetica,Arial" size=-1 color="#<submenu-textcolor>">
36
37 <table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<white>>
38 <tr><td align=left valign=top>
39 <img src=<root_prefix>pix/infocon-90.png alt=""><p>
40 </td></tr></table><p>
41
42 #include "submenu.inc"
43
44 <p>
45 </font></td>
46
47 <td valign=top><img src=<root_prefix>pix/imgdot-1x1-transp.gif width=3 height=0 alt=""></td>
48
49 <td valign=top align=left width=90%><font face="Helvetica,Arial">
50
51 <table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor=#<bar-bgcolor>>
52 <tr>
53 <td align=left><font face="Helvetica,Arial" color=#<bar-textcolor>>
54 &nbsp;<strong><get-var func></strong>
55 </font></td>
56 <td align=right><font face="Helvetica,Arial" color=#<bar-textcolor>>
57 <strong>Infodrom Service</strong>&nbsp;
58 </font></td>
59 </tr>
60 </table>
61
62 <h3><get-var title></h3>
63
64 %body
65
66 </font></td>
67 </tr>
68 </table>
69
70 <page-footer>
71 </body>
72 </html>
73
74 <restore title function pagetitle>
75 </define-tag>