Current version
[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 # <menu-rule>
16 #       Create a horizontal rule within the menu to divide two blocks
17
18 <define-tag line>
19 <preserve width height color>
20 <set-var %attributes>
21
22 <if <not <get-var width>>
23     <set-var width="100%">>
24 <if <not <get-var height>>
25     <set-var height="1">>
26 <if <not <get-var color>>
27     <set-var color="<bar-bgcolor>">>
28
29 <table width=<get-var width> cellpadding=0 cellspacing=0 bgcolor=#<get-var color>>
30 <tr><td><img src=<imgdot-fname> alt="" width=1 height=<get-var height>></td></tr></table>
31
32 <restore width height color>
33 </define-tag>
34
35 <define-tag menu-item whitespace=delete>
36 <preserve base href text>
37 <set-var %attributes>
38
39 <if <not <get-var href>>
40     <set-var href="<get-var base>.html">>
41
42 <ifneq <get-var WML_SRC_BASENAME> "<get-var base>"
43   <a href="<get-var href>"><get-var text></a>
44   <get-var text>
45 >
46
47 <restore base href text>
48 </define-tag>
49
50 <define-tag menu-rule>
51 <p class=menurule></p>
52 </define-tag>