Changeset 19029 for documented-example-collections/trunk/garish-e/macros
- Timestamp:
- 2009-04-17T11:00:54+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documented-example-collections/trunk/garish-e/macros/extra.dm
r18738 r19029 40 40 ## macros can have optional parameters, that make them more specific. 41 41 ## For example, you could have _macro_ {general case} as well as 42 ## _macro_ [c=garish] {For garish only} for when the "c" argument (which means 43 ## the collection) is set to "garish". Or _macro_ [l=fr] {french case} for 42 ## _macro_ [c=garish-e] {For garish-e collection only} for when the 43 # "c" argument (which means the collection) is set to "garish-e". 44 ## Or _macro_ [l=fr] {french case} for 44 45 ## when the language is set to French. This is how we cope with different 45 46 ## language interfaces. 46 47 47 48 ## Collection specific macros put into the main macro files must have a 48 ## collection parameter ([c=garish ]), otherwise they will apply to all49 ## collection parameter ([c=garish-e]), otherwise they will apply to all 49 50 ## collections. Macros in a collection's extra.dm do not need this parameter. 50 51 … … 56 57 ## help see the effect of changes of these macros. 57 58 58 ## _httpcimg_ is a macro that expands to the images directory of the current 59 ## collection. Any collection images or stylesheets should be put there. 59 ## _httpcimages_ is a macro that expands to the images directory of the 60 ## current collection. Any collection images or stylesheets should be put 61 ## there. 60 62 61 63 ## The macros below modify the appearance of a specific greenstone collection. … … 67 69 ## here as a demonstration. 68 70 ## 69 ## Edit the file images/garish /style.css to change the colours and fonts.71 ## Edit the file images/garish-e/style.css to change the colours and fonts. 70 72 71 73 … … 76 78 ## of these macros are in the file base.dm (and in the language-specific 77 79 ## macro files such as english.dm and french.dm) 78 79 80 80 81 ## These 2 macros are used for highlighting text that matched a query when … … 138 139 #} 139 140 140 #To keep most of the standard greenstone style, and just override a few style declarations, we can define _collectionspecificstyle_, which is included in the default _cssheader_ macro. The title of a stylesheet link must be 'Greenstone Style', in order for it to be used in conjunction with the main stylesheet. 141 142 # Here we include the garish collection's stylesheet, which defines the page color to pink. 143 We also remove the background image for the page to get rid of the green swirly bar, and specify a new (blue) background image for hover (mouse over) on the navigation bar buttons 141 ## To keep most of the standard greenstone style, and just override a few 142 ## style declarations, we can define _collectionspecificstyle_, which is 143 ## included in the default _cssheader_ macro. The title of a stylesheet 144 ## link must be 'Greenstone Style', in order for it to be used in 145 ## conjunction with the main stylesheet. 146 147 ## Here we include the garish-e collection's stylesheet, which defines the 148 ## page color to pink. 149 ## We also remove the background image for the page to get rid of the green 150 ## swirly bar, and specify a new (blue) background image for hover 151 ## (mouse over) on the navigation bar buttons 144 152 145 153 _collectionspecificstyle_ { … … 148 156 <style> 149 157 body.bgimage \{ background-image: none; \} 150 span.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \}158 a.navlink:hover \{ background-image: url("_httpcimages_/bg_blue.gif"); \} 151 159 </style> 152 160 … … 165 173 ## Just leave in the home button 166 174 _pagebanner_ { 175 <div id="banner"> 167 176 <div class="pageinfo"> 168 177 <p class="bannerlinks">_homelink_</p> 178 </div> 169 179 </div> 170 180 } … … 188 198 <!-- start of custom about:content --> 189 199 _navigationbar_ 200 <div class="document"> 190 201 _textabout_ 191 202 203 <div class="section"> 192 204 <h3>_help:textsimplehelpheading_</h3> 193 205 _help:simplehelp_ 194 206 </div> 207 </div> 195 208 <!-- end of custom about:content --> 196 209 } … … 205 218 206 219 ## This is similar to the default, except we don't centre the _navigationbar_ 207 ## and we've removed the green bars and search history220 ## and we've removed one of the green bars 208 221 _content_ { 209 222 <!-- start of custom query:content --> 210 223 _navigationbar_ 211 224 225 <div class="document"> 226 <div class="queryform"> 212 227 <center> 213 228 _If_(_cgiargct_,_selectqueryform_,_queryform_) 214 229 </center> 215 _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br> 230 </div> 231 _If_(_searchhistorylist_,<center>_iconsearchhistorybar_</center><br /> 216 232 <center> 217 233 _searchhistorylist_ 218 234 </center>) 219 _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br >_resultline_,)220 <br >235 _If_(_cgiargq_,<small>_freqmsg_ _textpostprocess_</small><br />_resultline_,) 236 <br /> 221 237 <!-- end of custom query:content --> 222 238 } … … 252 268 <!-- start of custom document:content --> 253 269 _navigationbar_ 254 <p> 255 <center> 270 271 _If_(_phindclassifier__collageclassifier_, 272 <p style="text-align: center;"> 256 273 _phindclassifier_ 257 274 _collageclassifier_ 258 </center> 275 </p> 276 ) 277 278 _If_("_cgiargcl_" eq "search", 279 <ul id="searchresults"> 280 _prevsearchresult_ 281 _nextsearchresult_ 282 </ul>) 283 284 <div class="document"> 259 285 <!-- end of custom document:content --> 260 286 }
Note:
See TracChangeset
for help on using the changeset viewer.