source: gsdl/trunk/macros/nav_css.dm@ 14119

Last change on this file since 14119 was 12178, checked in by kjdon, 18 years ago

changed the args for navtab, renamed the old navtab to navtaborig cos home, help, pref uses it, removed tabtextXXX macros which are no longer used

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
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
10package 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# The following is useful if collection specific macro. Override
22# _optnavigationbar_ to be empty if you don't want the navigation bar to
23# appear in the standard place, and then specify _navigationbar_ elsewhere
24# in a collection specific macro file(s) to be where you do want it.
25_optnavigationbar_{
26<div class="navbar">
27<p class="navbar">
28_navigationbar_
29</p>
30</div>
31}
32
33_starthighlight_ {<span class="highlight">}
34_endhighlight_ {</span>}
35
36# parameters are:
37# 1. the url to go to when clicked
38# 2. the name of the tab
39# 3. alt/title explanatory text
40# 4. optional "selected" or not if it is the current tab
41_navtaborig_ {<a _If_("_4_" eq "selected",class="navlink_sel">_2_,class="navlink" href="_1_" title="_3_">_2_)</a>}
42
43# parameters are
44# 1. The url to go to when clicked
45# 2. The metadata name - this gets used to determine the title and alt text
46# 3. optional "selected" if it is the current tab
47_navtab_ {<a _If_("_3_" eq "selected",class="navlink_sel">_navlinktitle_(_2_),class="navlink" href="_1_" title="_navlinkalt_(_2_)">_navlinktitle_(_2_))</a>}
48
49
50#######################################################################
51# navigation bar images
52#
53#######################################################################
54
55# the spacer image - the width of this is calculated and set from server
56_navbarspacer_ {<span style="margin-left: _widthtspace_px;"></span>}
57
58_navbarspacer_[v=1] {<br>
59}
60
61# cgiargu means "static page", so no search link should be shown
62_navtabsearch_ {_If_("_cgiargu_" ne "1",_navtab_(_httpquery_,Search,_1_))}
63
64package about
65
66_imagethispage_ {_titleabout_}
67
68package query
69
70_imagethispage_ {_labelSearch_}
71
72
73package Style
74
75_imagescript_ {}
76
77#_bannertitle_ {_If_(_imagethispage_,<p class="bannertitle"><span class="bannertitle">_imagethispage_</span></p>)}
78
79_bannertitle_ {_If_(_imagethispage_,<p class="bannertitle">_imagethispage_</p>)}
80
81#<span class="bannertitlebackground">i</span>
82
83package home
84
85_preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
86
Note: See TracBrowser for help on using the repository browser.