# this file must be UTF-8 encoded ####################################################################### # PAGE STYLES ####################################################################### package Style # to use this style system output # _header_ # all your page content, then # _footer_ # use the page parameter 'style' to choose the appropriate style # Current values: "html" and "xhtml" _compliance_ {html} # the style system uses # _pagetitle_ - what gets displayed at the top of the browser window # _pagescriptextra_ - any extra javascript you want included in the header # _pagebannerextra_ - anything extra you want displayed in the page banner # _pagefooterextra_ - anything extra you want displayed in the footer # defaults for the above macros _pagetitle_ {_collectionname_} _pagescriptfileextra_ {} _pagescriptextra_ {} _pagebannerextra_ {} _pagefooterextra_ {} # collection specific style and script may be set in collection's extra.dm # using the following macros _collectionspecificstyle_ {} _collectionspecificscript_ {} # it also relies on lots of Globals, the most important of these are: # _cookie_ - put in the cgi header # _globalscripts_ - javascript stuff # _imagecollection_ # _imagehome_ # _imagehelp_ # _imagepref_ # _imagethispage_ (this is now not an image, but text. should be renamed?) # _linkotherversion_ # _httpiconchalk_ - the image down the left of the page - is now done # by the style sheet. _header_ {_cgihead_ _htmlhead_(class="bgimage")_startspacer__pagebanner_ } _header_[v=1] {_cgihead_ _htmlhead__pagebanner_ } # _cgihead_ {Content-type: text/html # _cookie_ # # } _cgihead_{} # any declarations relating to CSS that should go in the html head part. # declarations containing images are done here so the path is correct # at runtime. _csslink_{ body.bgimage \{ background: url("_httpimages_/chalk.gif") scroll repeat-y left top; \} div.navbar \{ background-image: url("_httpimages_/bg_green.png"); \} div.divbar \{ background-image: url("_httpimages_/bg_green.png"); \} a.navlink \{ background-image: url("_httpimages_/bg_off.png"); \} a.navlink_sel \{ background-image: url("_httpimages_/bg_green.png"); \} a.navlink:hover \{ background-image: url("_httpimages_/bg_on.png"); \} p.bannertitle \{background-image: url("_httpimages_/banner_bg.png"); \} p.collectiontitle \{background-image: url("_httpimages_/banner_bg.png"); \} _collectionspecificstyle_ } # separate macro so it can be easily overridden for customised collections _cssfilelink_ {_httpstyle_/style.css} # Languages that should be displayed right-to-left _htmlextra_ [l=ar] { dir=rtl } _htmlextra_ [l=fa] { dir=rtl } _htmlextra_ [l=he] { dir=rtl } _htmlextra_ [l=ur] { dir=rtl } _htmlextra_ [l=ps] { dir=rtl } _htmlextra_ [l=prs] { dir=rtl } # htmlhead uses: # _1_ - extra parameters for the body tag # _pagetitle_ # _globalscripts_ _htmlhead_ { _pagetitle_ } # Link and meta tags must be closed differently for HTML/XHTML validation _linktagend_ {_If_("_compliance_" eq "xhtml",/>,>)} _metatagend_ {_If_("_compliance_" eq "xhtml",/>,>)} _spacerwidth_ {65} # _startspacer_ is a spacer that gives pages a left-hand margin. # It must eventually be closed by _endspacer_. _startspacer_ {
} # If you want to move the home/help/pref buttons, override this to be empty # and then explicitly include _globallinks_ somewhere else # on the page _optgloballinks_ {_globallinks_} # _bannertitle_ is defined in nav_css/ns4.dm, and is either text or # a banner image _pagebanner_ {
_pagebannerextra_
_If_("_activateweb20_" eq "2", _If_("_activatetalkback_" eq "1",_talkback:uploadForm_) ) } _pagebanner_[v=1] {

_imagecollection_

_optgloballinks_ _pagebannerextra_

_If_("_activateweb20_" eq "2", _If_("_activatetalkback_" eq "1",_talkback:uploadForm_) ) } # note we no longer close off one of the startspacer tables here!! _footer_ { _If_("_cgiargtalkback_" eq "1",_talkback:monitorUpload_) _pagefooterextra__endspacer__htmlfooter_ } # v=1 footer: not using startspacer in the header, so dont put it in the footer _footer_ [v=1]{ _If_("_cgiargtalkback_" eq "1",_talkback:monitorUpload_) _pagefooterextra_ _htmlfooter_ } # close off anything opened by startspacer _endspacer_ {

} _htmlfooter_ { } _loginscript_ { function appendUsernameArgs(id,addOn) \{ var a=document.getElementById(id); var url = a.getAttribute("href"); if (url == "") \{ url = document.location.toString(); \} //alert("url before = " + url); // clear out any earlier user name/authentication values url = url.replace(/(&|\\\\?)uan=\\d\{0,1\}/g,""); url = url.replace(/(&|\\\\?)un=[a-z0-9:\\-]*/g,""); url = url.replace(/(&|\\\\?)pw=[a-z0-9:\\-]*/g,""); //alert("url after = " + url); var gwcgi = "_gwcgi_"; var tailUrl = url.substr(url.length-gwcgi.length); url += (tailUrl == "_gwcgi_") ? "?" : "&"; url += addOn; //alert("url with add on = " + url); a.setAttribute("href",url); \} } # imagescript only used in nav_ns4.dm _globalscripts_{ _If_("_activatejquery_" eq "1",_jqueryScriptAndStyle_) _If_("_activateweb20_" eq "2", _If_("_activateseaweed_" eq "1",_seaweedscript_) _If_("_activatetalkback_" eq "1",_talkbackscript_) ) _If_(_pagescriptfileextra_,_pagescriptfileextra_) } _globalscripts_ [v=1] { _If_("_activatejquery_" eq "1",_jqueryScriptAndStyle_) _If_("_activateweb20_" eq "2", _If_("_activateseaweed_" eq "1",_seaweedscript_) _If_("_activatetalkback_" eq "1",_talkbackscript_) ) _If_(_pagescriptfileextra_,_pagescriptfileextra_) } _scriptdetach_ { function close\_detach() \{ close(); \} } _jqueryScriptAndStyle_ { }