source: trunk/greenorg/macros/style.dm@ 14007

Last change on this file since 14007 was 13704, checked in by nzdl, 17 years ago

Added Google Analytics stuff into greenstone.org pages.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 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# _pagescriptextra_ - any extra javascript you want included in the header
17# _pagebannerextra_ - anything extra you want displayed in the page banner
18# _pagefooterextra_ - anything extra you want displayed in the footer
19
20# defaults for the above macros
21_pagetitle_ {_collectionname_}
22_pagescriptextra_ {}
23_pagebannerextra_ {}
24_pagefooterextra_ {}
25
26# it also relies on lots of Globals, the most important of these are:
27# _cookie_ - put in the cgi header
28# _globalscripts_ - javascript stuff
29# _httpiconchalk_ - the image down the left of the page
30# _imagecollection_
31# _imagehome_
32# _imagehelp_
33# _imagepref_
34# _imagethispage_
35# _linkotherversion_
36
37
38_header_ {
39<html>
40<head>
41<title>Greenstone Digital Library Software</title>
42<link rel="stylesheet" type="text/css" href="_httpimg_/style.css">
43<script src="_httpimg_/scripts.js">
44</script>
45<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
46</script>
47<script type="text/javascript">
48_uacct = "UA-1209851-1";
49urchinTracker();
50</script>
51<script>
52<!--
53_pagescriptextra_
54// -->
55</script>
56</head>
57
58<body background="_httpimg_/chalk.gif" class="default" bgcolor="#ffffff">
59
60<table border="0" cellspacing="0" cellpadding="0" width="_pagewidth_" class="default">
61<tr><td><img src="_httpimg_/spacer.gif" width="80"></td><td>
62
63<table width="_pagewidth_">
64<tr valign=top>
65<td><a href="_httppagex_(home)"><img src="_httpimg_/gsdlhead.gif" border="0"></a></td>
66<td align=right>_javalinks_</td>
67</tr>
68</table>
69
70<p>
71<nobr>
72_imagedownload_<img src="_httpimg_/tspace.gif" width="25" height="17">_imageexamples_<img src="_httpimg_/tspace.gif" width="25" height="17">_imagedocs_<img src="_httpimg_/tspace.gif" width="25" height="17">_imagefaq_<img src="_httpimg_/tspace.gif" width="25" height="17">_imagesupport_
73</nobr>
74</p>
75}
76
77_footer_ {
78</td></tr></table>
79<p>&nbsp;</p>
80</body>
81</html>
82}
Note: See TracBrowser for help on using the repository browser.