source: main/trunk/greenstone3/web/interfaces/halftone/transform/pages/home.xsl@ 31734

Last change on this file since 31734 was 31734, checked in by ak19, 7 years ago

Updating halftone's home.xsl page's references to displayItems, since these are nowadays nested in a displayItemList.

File size: 4.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 extension-element-prefixes="java util"
8 exclude-result-prefixes="java util">
9
10 <!-- the page content -->
11 <xsl:template match="/page/pageResponse">
12 <!-- SLIDER -->
13 <xsl:if test="collectionList/collection/displayItemList/displayItem[@name='smallicon']">
14 <div class="slider-wrapper theme-halftone">
15 <div id="slider" class="nivoSlider">
16 <xsl:call-template name="collSlider"/>
17 </div>
18 <div class="slider-left"><xsl:text> </xsl:text></div>
19 <div class="slider-right"><xsl:text> </xsl:text></div>
20 </div>
21 <!-- ENDS SLIDER -->
22 </xsl:if>
23 <!-- headline -->
24 <div class="headline">Select a collection</div>
25 <!-- ENDS headline -->
26
27 <!-- featured -->
28 <ul class="feature cf">
29 <xsl:call-template name="collList"/>
30 </ul>
31 <!-- ENDS featured -->
32
33 </xsl:template>
34
35
36
37<xsl:template name="collSlider">
38<xsl:for-each select="./collectionList/collection">
39<xsl:variable name="homeImage" select="displayItemList/displayItem[@name='smallicon']"/>
40
41<xsl:choose>
42<xsl:when test="$homeImage">
43<xsl:variable name="collectionFolder" select="@name"/>
44<xsl:variable name="collectionName" select="displayItemList/displayItem[@name='name']"/>
45
46<a href="{$library_name}/collection/{$collectionFolder}/page/about">
47<img src="sites/{$site_name}/collect/{$collectionFolder}/images/{$homeImage}" title="{$collectionName}" />
48</a>
49</xsl:when>
50<xsl:otherwise/>
51</xsl:choose>
52
53</xsl:for-each>
54</xsl:template>
55
56<xsl:template name="collList">
57<xsl:for-each select="./collectionList/collection">
58<xsl:variable name="collectionFolder" select="@name"/>
59<xsl:variable name="collectionName" select="displayItemList/displayItem[@name='name']"/>
60<xsl:variable name="homeImage" select="displayItemList/displayItem[@name='smallicon']"/>
61
62<li>
63 <a href="{$library_name}/collection/{$collectionFolder}/page/about" class="thumb" >
64 <xsl:choose>
65 <xsl:when test="$homeImage">
66 <img src="sites/{$site_name}/collect/{$collectionFolder}/images/{$homeImage}" title="{$collectionName}" />
67 </xsl:when>
68 <xsl:otherwise>
69 <img src="interfaces/{$interface_name}/images/default.jpg" title="{$collectionName}" />
70 </xsl:otherwise>
71 </xsl:choose>
72 </a>
73 <a href="{$library_name}/collection/{$collectionFolder}/page/about" class="excerpt"><xsl:value-of select="$collectionName"/></a>
74 </li>
75</xsl:for-each>
76</xsl:template>
77
78<!--
79 <li>
80 <a href="single.html" class="thumb" >
81 <img src="interfaces/{$interface_name}/img/dummies/t3.jpg" alt="Thumbnail" />
82 <div class="img-overlay"><i class="icon-plus-sign"><xsl:text> </xsl:text></i></div>
83 <div class="date"><span class="m">JAN</span><span class="d">09</span></div>
84 </a>
85 <a href="single.html" class="excerpt">Pellentesque habitant morbi tristique senectus</a>
86 <div class="categories"><a href="#" >webdesign, </a><a href="#" >print, </a><a href="#" >photo, </a></div>
87 </li>
88-->
89
90
91
92
93 <xsl:template name="extra-script">
94 <!-- scripts concatenated and minified via build script -->
95 <script src="interfaces/{$interface_name}/js/jquery-1.7.1.min.js"><xsl:text> </xsl:text></script>
96 <script src="interfaces/{$interface_name}/js/custom.js"><xsl:text> </xsl:text></script>
97
98 <!-- superfish -->
99 <script src="interfaces/{$interface_name}/js/superfish-1.4.8/js/hoverIntent.js"><xsl:text> </xsl:text></script>
100 <script src="interfaces/{$interface_name}/js/superfish-1.4.8/js/superfish.js"><xsl:text> </xsl:text></script>
101 <script src="interfaces/{$interface_name}/js/superfish-1.4.8/js/supersubs.js"><xsl:text> </xsl:text></script>
102 <!-- ENDS superfish -->
103
104 <script src="interfaces/{$interface_name}/js/jquery.nivo.slider.js" ><xsl:text> </xsl:text></script>
105 <script src="interfaces/{$interface_name}/js/css3-mediaqueries.js"><xsl:text> </xsl:text></script>
106 <script src="interfaces/{$interface_name}/js/tabs.js"><xsl:text> </xsl:text></script>
107 <script src="interfaces/{$interface_name}/js/poshytip-1.1/src/jquery.poshytip.js"><xsl:text> </xsl:text></script>
108 <!-- end scripts -->
109
110 </xsl:template>
111
112
113
114</xsl:stylesheet>
115
116
Note: See TracBrowser for help on using the repository browser.