source: trunk/gsdl/macros/style.dm@ 148

Last change on this file since 148 was 148, checked in by sjboddie, 25 years ago

made a start on getting all the collections using the default macro files

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1#######################################################################
2# PAGE STYLES
3#######################################################################
4
5package Style
6
7# to use this style system output
8# _header_
9# all your page content, then
10# _footer_
11
12# use the page parameter 'style' to choose the appropriate style
13
14# the style system uses
15# _pagetitle_ - what gets displayed at the top of the browser window
16# _pagebannerextra_ - anything extra you want displayed in the page banner
17# _pagefooterextra_ - anything extra you want displayed in the footer
18
19# defaults for the above macros
20_pagetitle_ {_collectionname_}
21_pagebannerextra_ {}
22_pagefooterextra_ {}
23
24# it also relies on lots of Globals, the most important of these are:
25# _cookie_ - put in the cgi header
26# _globalscripts_ - javascript stuff
27# _httpiconchalk_ - the image down the left of the page
28# _imagecollection_
29# _imagehome_
30# _imagehelp_
31# _imagepref_
32# _imagethispage_
33# _linkotherversion_
34
35_header_ {_cgihead_
36_htmlhead_('background="_httpiconchalk_"')_startspacer__pagebanner_
37}
38
39# this declaration ends up being the same as style=restrict, never mind
40_header_[version=text] {_cgihead_
41_htmlhead__pagebanner_
42}
43
44# style=restrict lacks the sidestripe, version links and
45# language links
46_header_[style=restrict] {_cgihead_
47_htmlhead__pagebanner_
48}
49
50
51# _cgihead_ {Content-type: text/html
52# _cookie_
53#
54# }
55_cgihead_{}
56
57
58# htmlhead uses:
59# _1_ - extra parameters for the body tag
60# _pagetitle_
61# _globalscripts_
62_htmlhead_ {
63<html>
64<head>
65<title>_pagetitle_</title>
66_globalscripts_
67
68</head>
69<body bgcolor="\#ffffff" text="\#000000" link="\#006666"
70 alink="\#cc9900" vlink="\#666633" _1_>
71}
72
73
74# _startspacer_ is a spacer to get past the 10010 graphic. It contains an open
75# <table> tag which must eventually be closed by _endspacer_.
76_startspacer_ {
77<table border=0 cellspacing=0 cellpadding=0 width="100%">
78<tr><td valign=top width=65><img src="_httpimg_/spacer.gif" width="65" height="1" alt="" border="0"></td>
79<td><center><table width="80%"><tr><td>
80}
81
82
83# pagebanner uses :
84# _imagecollection_
85# _imagehome_
86# _imagehelp_
87# _imagepref_
88# _imagethispage_
89# _pagebannerextra_
90_pagebanner_ {
91<center>
92<table width="537" cellspacing=0 cellpadding=0>
93 <tr valign=top>
94 <td rowspan=2 _alignleft_>_imagecollection_</td>
95 <td _alignright_>_javalinks_</td>
96 </tr>
97
98 <tr>
99 <td _alignright_>_imagethispage_</td>
100 </tr>
101
102 <tr>
103 <td colspan=2>_pagebannerextra_</td>
104 </tr>
105</table>
106</center>
107}
108
109_pagebanner_[version=text] {
110<center><h2><b><u>_imagecollection_</u></b></h2></center><p>
111_javalinks_
112_pagebannerextra_
113<p>
114}
115
116
117
118# note that _pagefooter_ is for individual pages
119_footer_ {
120<p>
121<_font_>
122_pagefooterextra_
123<center><i>_linkotherversion_</i></center>
124<center><i>_linkotherlanguage_</i></center>
125</font>
126</table>
127_endspacer__htmlfooter_
128}
129
130
131_footer_[style=restrict] {_pagefooterextra_
132_htmlfooter_
133}
134
135_footer_[style=htmlonly] {_pagefooterextra_
136_endspacer__htmlfooter_
137}
138
139_endspacer_ {
140</td></tr></table>
141</center>
142</td></tr>
143</table>
144}
145
146_htmlfooter_ {
147</body>
148</html>
149}
150
151
152# _alignleft_ and _alignright_ are overriden for right-to-left
153# writing systems
154_alignleft_ {align=left}
155_alignright_ {align=right}
156
157#_smallfont_ {font face="Arial,Helvetica,Times" size="-2"}
158#_font_ {font face="Arial,Helvetica,Times" size="-1"}
159_font_ {font}
160_smallfont_ {font size="-1"}
Note: See TracBrowser for help on using the repository browser.