# 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_} _pagescriptextra_ {} _pagebannerextra_ {} _pagefooterextra_ {} # 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_{} # may be set in collection's extra.dm _collectionspecificstyle_ {} # 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-image: url("_httpimg_/"); \} div.navbar \{ background-image: url("_httpimg_/bg_green.png"); \} div.divbar \{ background-image: url("_httpimg_/bg_green.png"); \} a.navlink \{ background-image: url("_httpimg_/bg_off.png"); \} a.navlink_sel \{ background-image: url("_httpimg_/bg_green.png"); \} a.navlink:hover \{ background-image: url("_httpimg_/bg_on.png"); \} p.bannertitle \{background-image: url("_httpimg_/banner_bg.png"); \} p.collectiontitle \{background-image: url("_httpimg_/banner_bg.png"); \} _collectionspecificstyle_ } # separate macro so it can be easily overridden for customised collections _cssfilelink_ {_httpimg_/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_ {
} # _bannertitle_ is defined in nav_css/ns4.dm, and is either text or # a banner image _pagebanner_ {
_pagebannerextra_
} _pagebanner_[v=1] {

_imagecollection_

_globallinks_ _pagebannerextra_

} # note we no longer close off one of the startspacer tables here!! _footer_ { _pagefooterextra__endspacer__htmlfooter_ } # v=1 footer: not using startspacer in the header, so dont put it in the footer _footer_ [v=1]{ _pagefooterextra_ _htmlfooter_ } # close off anything opened by startspacer _endspacer_ {

} _htmlfooter_ { } # imagescript only used in nav_ns4.dm _globalscripts_{ } _globalscripts_ [v=1] { } _scriptdetach_ { function close\_detach() \{ close(); \} }