Initial files
[infodrom.org/service.infodrom.org] / Styles / tools.style
1 # <line [width=] [height=] [color=]>
2 #       Insert a horizontal line
3 #
4 #       width   width of the line, either percent or absolute, default: 100%
5 #       height  height of the line, in pixels, default: 1
6 #       color   color of the line, default: <bar-bgcolor>
7 #
8 # <menu-item base= text= [href=]>
9 #       Create a menu item for the submenu on the left side
10 #
11 #       base=   basename of the file, i.e. foo if it is foo.wml actually
12 #       text=   text for the menu item
13 #       href=   optional link, required for .php3, default: base.html
14
15 <define-tag line>
16 <preserve width height color>
17 <set-var %attributes>
18
19 <if <not <get-var width>>
20     <set-var width="100%">>
21 <if <not <get-var height>>
22     <set-var height="1">>
23 <if <not <get-var color>>
24     <set-var color="<bar-bgcolor>">>
25
26 <table width=<get-var width> cellpadding=0 cellspacing=0 bgcolor=#<get-var color>>
27 <tr><td><img src=<imgdot-fname> alt="" width=1 height=<get-var height>></td></tr></table>
28
29 <restore width height color>
30 </define-tag>
31
32 <define-tag menu-item whitespace=delete>
33 <preserve base href text>
34 <set-var %attributes>
35
36 <if <not <get-var href>>
37     <set-var href="<get-var base>.html">>
38
39 <ifneq <get-var WML_SRC_BASENAME> "<get-var base>"
40   <a href="<get-var href>"><get-var text></a>
41   <get-var text>
42 >
43
44 <restore base href text>
45 </define-tag>
46