1 | # this file must be UTF-8 encoded
|
---|
2 |
|
---|
3 | # This macro file contains the definitions required for making the
|
---|
4 | # navigation bar presentation controlled by the CSS file.
|
---|
5 |
|
---|
6 | #######################################################################
|
---|
7 | # GLOBAL MACROS
|
---|
8 | #######################################################################
|
---|
9 |
|
---|
10 | package Global
|
---|
11 |
|
---|
12 | #######################################################################
|
---|
13 | # global navigation links
|
---|
14 | #######################################################################
|
---|
15 |
|
---|
16 | _globallinks_ {_If_("_cgiargu_" ne "1",_homelink_) _helplink_ _preflink_}
|
---|
17 | _homelink_ {_navtaborig_(_httppagehome_,_linktextHOME_,_textdescrhome_)}
|
---|
18 | _helplink_ {_navtaborig_(_httppagehelp_,_linktextHELP_,_textdescrhelp_)}
|
---|
19 | _preflink_ {_navtaborig_(_httppagepref_,_linktextPREFERENCES_,_textdescrpref_)}
|
---|
20 |
|
---|
21 | # Override this to be empty and then include _globallinks_ somewhere else
|
---|
22 | # on the page
|
---|
23 | _optgloballinks_ {_globallinks_}
|
---|
24 |
|
---|
25 | # The following is useful if collection specific macro. Override
|
---|
26 | # _optnavigationbar_ to be empty if you don't want the navigation bar to
|
---|
27 | # appear in the standard place, and then specify _navigationbar_ elsewhere
|
---|
28 | # in a collection specific macro file(s) to be where you do want it.
|
---|
29 | _optnavigationbar_{
|
---|
30 | <div class="navbar">
|
---|
31 | <p class="navbar">
|
---|
32 | _navigationbar_
|
---|
33 | </p>
|
---|
34 | </div>
|
---|
35 | }
|
---|
36 |
|
---|
37 | _starthighlight_ {<span class="highlight">}
|
---|
38 | _endhighlight_ {</span>}
|
---|
39 |
|
---|
40 | # parameters are:
|
---|
41 | # 1. the url to go to when clicked
|
---|
42 | # 2. the name of the tab
|
---|
43 | # 3. alt/title explanatory text
|
---|
44 | # 4. optional "selected" or not if it is the current tab
|
---|
45 | _navtaborig_ {<a _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink" href="_1_" title="_3_">_2_)</a>}
|
---|
46 |
|
---|
47 | # parameters are
|
---|
48 | # 1. The url to go to when clicked
|
---|
49 | # 2. The metadata name - this gets used to determine the title and alt text
|
---|
50 | # 3. optional "selected" if it is the current tab
|
---|
51 | _navtab_ {<a _If_("_3_" eq "selected",class="navlink_sel">_navlinktitle_(_2_),class="navlink" href="_1_" title="_navlinkalt_(_2_)">_navlinktitle_(_2_))</a>}
|
---|
52 |
|
---|
53 |
|
---|
54 | #######################################################################
|
---|
55 | # navigation bar images
|
---|
56 | #
|
---|
57 | #######################################################################
|
---|
58 |
|
---|
59 | # the spacer image - the width of this is calculated and set from server.
|
---|
60 | #
|
---|
61 | # Its height is now explicity set to 1 to avoid width x height "scaling
|
---|
62 | # problem". Given that spacer.gif's natural dimensions are 40x4 pixels,
|
---|
63 | # left uncontrolled, when the image is stretched through _widthtspace_ to
|
---|
64 | # a width of say 400 (as happens when there are only two items in the
|
---|
65 | # navigation bar) then its height becomes 40 pixels, making the navbar
|
---|
66 | # twice as high as the text in it, and quite ugly looking
|
---|
67 |
|
---|
68 | _navbarspacer_ {<img src="_httpimg_/spacer.gif" height="1" width="_widthtspace_" />}
|
---|
69 |
|
---|
70 | _navbarspacer_[v=1] {<br>
|
---|
71 | }
|
---|
72 |
|
---|
73 | # cgiargu means "static page", so no search link should be shown
|
---|
74 | _navtabsearch_ {_If_("_cgiargu_" ne "1",_navtab_(_httpquery_,Search,_1_))}
|
---|
75 |
|
---|
76 | package about
|
---|
77 |
|
---|
78 | _imagethispage_ {_titleabout_}
|
---|
79 |
|
---|
80 | package query
|
---|
81 |
|
---|
82 | _imagethispage_ {_labelSearch_}
|
---|
83 |
|
---|
84 |
|
---|
85 | package Style
|
---|
86 |
|
---|
87 | _imagescript_ {}
|
---|
88 |
|
---|
89 | #_bannertitle_ {_If_(_imagethispage_,<p class="bannertitle"><span class="bannertitle">_imagethispage_</span></p>)}
|
---|
90 |
|
---|
91 | _bannertitle_ {_If_(_imagethispage_,<p class="bannertitle">_imagethispage_</p>)}
|
---|
92 |
|
---|
93 | #<span class="bannertitlebackground">i</span>
|
---|
94 |
|
---|
95 | package home
|
---|
96 |
|
---|
97 | _preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
|
---|
98 |
|
---|