Changeset 37882 for gs3-installations/thewillow
- Timestamp:
- 2023-08-03T22:17:19+12:00 (10 months ago)
- Location:
- gs3-installations/thewillow/trunk/interfaces/thewillow/transform/layouts
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/thewillow/trunk/interfaces/thewillow/transform/layouts/header.xsl
r37869 r37882 378 378 <div style="clear:both;"><xsl:text> </xsl:text></div> 379 379 </xsl:if> 380 <gsf:variable name="pageAction"><xsl:value-of select="/page/pageRequest/@action"/></gsf:variable> 381 <gsf:variable name="pageType"><xsl:value-of select="/page/pageRequest/@type"/></gsf:variable> 382 <gsf:variable name="pageSubAction"><xsl:value-of select="/page/pageRequest/@subaction"/></gsf:variable> 383 <gsf:script> 384 $(document).ready(function() { 385 if (gs.variables.pageAction == "q") { 386 $('#gs-nav li').removeClass('ui-tabs-selected'); 387 $('#query-tab').addClass('ui-tabs-selected'); 388 } 389 else if ((gs.variables.pageType == "page") && (gs.variables.pageSubAction == "about")) { 390 $('#gs-nav li').removeClass('ui-tabs-selected'); 391 $('#about-tab').addClass('ui-tabs-selected'); 392 } 393 }); 394 395 </gsf:script> 380 396 </xsl:template> 381 397 … … 415 431 </xsl:if> 416 432 </xsl:if> 433 <xsl:if test="/page/pageRequest/@action = 'q'"> 434 #new-banner { 435 background-image: url(interfaces/<xsl:value-of select="$interface_name"/>/images/banner-images/9-Rainbow-Plaque.png); 436 } 437 </xsl:if> 417 438 418 439 <xsl:if test="/page/pageRequest/@action = 'd'"> … … 451 472 </style> 452 473 <div id="new-banner"> 474 <!-- http://www.davidmacd.com/blog/alternate-text-for-css-background-images.html --> 475 <xsl:if test="/page/pageRequest/@action = 'p'"> 476 <xsl:if test="/page/pageRequest/@subaction = 'about'"> 477 <span role="img" aria-label="The Willow Restaurant York, courtesy of The York Press"><xsl:text> </xsl:text> </span> 478 </xsl:if> 479 </xsl:if> 480 <xsl:if test="/page/pageRequest/@action = 'b'"> 481 <xsl:if test="/page/pageRequest/paramList/param[@name='cl']/@value = 'CL1'"> 482 <span role="img" aria-label="Tommy Fong at the entrance of the Willow York, image courtesy of Ceri Oakes"><xsl:text> </xsl:text> </span> 483 </xsl:if> 484 </xsl:if> 485 <xsl:if test="/page/pageRequest/@action = 'q'"> 486 <span role="img" aria-label="Willow Disco Rainbow Plaque, image courtesy of York Rainbow Plaques"><xsl:text> </xsl:text> </span> 487 </xsl:if> 488 489 490 <xsl:if test="/page/pageRequest/@action = 'd'"> 491 <xsl:if test="/page/pageRequest/paramList/param[@name='d']/@value = 'In-The-Beginning-Video'"> 492 <span role="img" aria-label="Soo and Tommy Fong in the Willow Restaurant, image courtesy of Vicki Fong"><xsl:text> </xsl:text> </span> 493 </xsl:if> 494 <xsl:if test="/page/pageRequest/paramList/param[@name='d']/@value = 'Willow-Girl-Video'"> 495 <span role="img" aria-label="I Love Willow Tshirt, image courtesy of The Tab"><xsl:text> </xsl:text> </span> 496 </xsl:if> 497 <xsl:if test="/page/pageRequest/paramList/param[@name='d']/@value = 'Love-It-Video'"> 498 <span role="img" aria-label="Happy Willow punters, image courtesy of Ceri Oakes Photography"><xsl:text> </xsl:text> </span> 499 </xsl:if> 500 <xsl:if test="/page/pageRequest/paramList/param[@name='d']/@value = 'Cheap-Drinks-Video'"> 501 <span role="img" aria-label="Drinking shots in the Willow, image courtesy of Ceri Oakes Photography"><xsl:text> </xsl:text> </span> 502 </xsl:if> 503 <xsl:if test="/page/pageRequest/paramList/param[@name='d']/@value = 'Cheesy-Music-Video'"> 504 <span role="img" aria-label="Vinyl from the Willow Disco, image courtesy of DJ Max"><xsl:text> </xsl:text> </span> 505 </xsl:if> 506 <xsl:if test="/page/pageRequest/paramList/param[@name='d']/@va;ie = 'The-Last-Night'"> 507 <span role="img" aria-label="The takings from the last night, image courtesy of Vicki Fong"><xsl:text> </xsl:text> </span> 508 </xsl:if> 509 </xsl:if> 510 511 453 512 <div style="float: right"> 454 513 <!-- <br /> --> … … 466 525 Banner image courtesy of Ceri Oakes 467 526 </xsl:if> 527 </xsl:if> 528 <xsl:if test="/page/pageRequest/@action = 'q'"> 529 Banner image courtesy of York Rainbow Plaques 468 530 </xsl:if> 469 531 … … 511 573 512 574 <xsl:template name="additionalNavTabsPre"> 513 <li class="ui-state-default ui-corner-top ui-tabs-selectedui-state-active">575 <li id="about-tab" class="ui-state-default ui-corner-top ui-state-active"> 514 576 <a href="library/collection/{$collName}/page/about" title="About this collection">Willow Archive Project</a> 515 577 </li> 516 517 578 </xsl:template> 518 579 … … 521 582 522 583 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery' and @type='query']"> 523 <li class="ui-state-default ui-corner-top ui-tabs-selectedui-state-active">584 <li id="query-tab" class="ui-state-default ui-corner-top ui-state-active"> 524 585 <a> 525 586 <xsl:attribute name="href">
Note:
See TracChangeset
for help on using the changeset viewer.