| 1 |
<xsl:stylesheet |
|---|
| 2 |
version="1.0" |
|---|
| 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 4 |
xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 5 |
|
|---|
| 6 |
<!-- Display the Date and Provide Navigation --> |
|---|
| 7 |
<xsl:template name="navigation"> |
|---|
| 8 |
<xsl:if test="/bedework/periodname != 'Year'"> |
|---|
| 9 |
<ul id="calDisplayOptions"> |
|---|
| 10 |
<li> |
|---|
| 11 |
<xsl:choose> |
|---|
| 12 |
<xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> |
|---|
| 13 |
<a href="{$setup}&setappvar=summaryMode(summary)" title="toggle summary/detailed view"> |
|---|
| 14 |
<xsl:copy-of select="$bwStr-SrcB-Summary"/> |
|---|
| 15 |
</a> |
|---|
| 16 |
</xsl:when> |
|---|
| 17 |
<xsl:otherwise> |
|---|
| 18 |
<a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view"> |
|---|
| 19 |
<xsl:copy-of select="$bwStr-SrcB-Details"/> |
|---|
| 20 |
</a> |
|---|
| 21 |
</xsl:otherwise> |
|---|
| 22 |
</xsl:choose> |
|---|
| 23 |
</li> |
|---|
| 24 |
</ul> |
|---|
| 25 |
<xsl:variable name="rssCurrDate" select="/bedework/currentdate/date" /> |
|---|
| 26 |
<xsl:variable name="rssGroups"> |
|---|
| 27 |
<xsl:choose> |
|---|
| 28 |
<xsl:when test="(/bedework/appvar[key = 'group']/value) = 'all' or not(/bedework/appvar[key = 'group']/value)"> |
|---|
| 29 |
<xsl:text>(all)</xsl:text> |
|---|
| 30 |
</xsl:when> |
|---|
| 31 |
<xsl:otherwise> |
|---|
| 32 |
<xsl:variable name="rssCurrGroup" |
|---|
| 33 |
select="/bedework/appvar[key = 'group']/value" /> |
|---|
| 34 |
<xsl:variable name="rssGroupTemplate"> |
|---|
| 35 |
<xsl:text>(</xsl:text> |
|---|
| 36 |
<xsl:value-of select="$rssCurrGroup" /> |
|---|
| 37 |
<xsl:text>)</xsl:text> |
|---|
| 38 |
</xsl:variable> |
|---|
| 39 |
<xsl:value-of select="$rssGroupTemplate" /> |
|---|
| 40 |
</xsl:otherwise> |
|---|
| 41 |
</xsl:choose> |
|---|
| 42 |
</xsl:variable> |
|---|
| 43 |
|
|---|
| 44 |
<xsl:variable name="rssCategory"> |
|---|
| 45 |
<xsl:choose> |
|---|
| 46 |
<xsl:when |
|---|
| 47 |
test="(/bedework/appvar[key = 'category']/value = 'all') or not(/bedework/appvar[key = 'category']/value)"> |
|---|
| 48 |
<xsl:text>all</xsl:text> |
|---|
| 49 |
</xsl:when> |
|---|
| 50 |
<xsl:otherwise> |
|---|
| 51 |
<xsl:variable name="rssCurrCategory" |
|---|
| 52 |
select="/bedework/appvar[key = 'category']/value" /> |
|---|
| 53 |
<xsl:variable name="rssCatTemplate"> |
|---|
| 54 |
<xsl:text /> |
|---|
| 55 |
<xsl:value-of select="$rssCurrCategory" /> |
|---|
| 56 |
<xsl:text /> |
|---|
| 57 |
</xsl:variable> |
|---|
| 58 |
<xsl:value-of select="$rssCatTemplate" /> |
|---|
| 59 |
</xsl:otherwise> |
|---|
| 60 |
</xsl:choose> |
|---|
| 61 |
</xsl:variable> |
|---|
| 62 |
|
|---|
| 63 |
<xsl:variable name="rssViewType"> |
|---|
| 64 |
<xsl:if test="(/bedework/periodname) = 'Day'"> |
|---|
| 65 |
<xsl:text>dayView</xsl:text> |
|---|
| 66 |
</xsl:if> |
|---|
| 67 |
<xsl:if test="(/bedework/periodname) = 'Week'"> |
|---|
| 68 |
<xsl:text>weekView</xsl:text> |
|---|
| 69 |
</xsl:if> |
|---|
| 70 |
<xsl:if test="(/bedework/periodname) = 'Month'"> |
|---|
| 71 |
<xsl:text>monthView</xsl:text> |
|---|
| 72 |
</xsl:if> |
|---|
| 73 |
</xsl:variable> |
|---|
| 74 |
<a id="rssRequest" class="rss" |
|---|
| 75 |
href="/feed/calendar/{$rssViewType}/rss/{$rssGroups}/details/{$rssCategory}" |
|---|
| 76 |
title="RSS feed"> |
|---|
| 77 |
<img src="{$resourcesRoot}/images/feed-icon-14x14.png" |
|---|
| 78 |
alt="RSS Feed Icon" /> |
|---|
| 79 |
</a> |
|---|
| 80 |
<div id="rssPopUp" style="display:none;position:absolute"> |
|---|
| 81 |
<!-- RSS Popup window --> |
|---|
| 82 |
<p id="rssClose" |
|---|
| 83 |
onclick="this.parentNode.style.display = 'none'"> |
|---|
| 84 |
X - Close |
|---|
| 85 |
</p> |
|---|
| 86 |
<h5 style="padding: 6px;">RSS Feed Details</h5> |
|---|
| 87 |
<!-- setappvar=summaryMode(details){$rssGroups}skinName=rss{$rssCategory}viewType={$rssViewType} --> |
|---|
| 88 |
<ul style="padding: 6px;"> |
|---|
| 89 |
<li style="border-bottom: solid 1px #CCC;"> |
|---|
| 90 |
Time Period: Current |
|---|
| 91 |
<xsl:value-of select="/bedework/periodname" /> |
|---|
| 92 |
</li> |
|---|
| 93 |
<li style="border-bottom: solid 1px #CCC;"> |
|---|
| 94 |
Group: |
|---|
| 95 |
<span id="rssDetailGroup">All</span> |
|---|
| 96 |
</li> |
|---|
| 97 |
<li style="border-bottom: solid 1px #CCC;"> |
|---|
| 98 |
Calendar Categories: |
|---|
| 99 |
<span id="rssDetailCategory">All</span> |
|---|
| 100 |
</li> |
|---|
| 101 |
</ul> |
|---|
| 102 |
<p style="padding: 6px;"> |
|---|
| 103 |
To subscribe to an RSS feed of your current calendar |
|---|
| 104 |
view, copy and paste the entire URL below into your |
|---|
| 105 |
preferred RSS reader. |
|---|
| 106 |
</p> |
|---|
| 107 |
<p style="padding: 6px;"> |
|---|
| 108 |
<strong>Your RSS URL:</strong> |
|---|
| 109 |
</p> |
|---|
| 110 |
<input id="rssValue" size="35" type="text" value="" /> |
|---|
| 111 |
<ul style="padding: 6px;"> |
|---|
| 112 |
<li> |
|---|
| 113 |
<a href="/feed/list/30"> |
|---|
| 114 |
Click here for 30-day feed of events |
|---|
| 115 |
</a> |
|---|
| 116 |
</li> |
|---|
| 117 |
<li> |
|---|
| 118 |
<a href="/feed/list/60"> |
|---|
| 119 |
Click here for 60-day feed of events |
|---|
| 120 |
</a> |
|---|
| 121 |
</li> |
|---|
| 122 |
<li> |
|---|
| 123 |
<a href="/feed/list/90"> |
|---|
| 124 |
Click here for 90-day feed of events |
|---|
| 125 |
</a> |
|---|
| 126 |
</li> |
|---|
| 127 |
</ul> |
|---|
| 128 |
</div> |
|---|
| 129 |
</xsl:if> |
|---|
| 130 |
<a id="prevViewPeriod" |
|---|
| 131 |
href="{$setViewPeriod}&date={$prevdate}"> |
|---|
| 132 |
« |
|---|
| 133 |
</a> |
|---|
| 134 |
<h3> |
|---|
| 135 |
<xsl:choose> |
|---|
| 136 |
<xsl:when test="/bedework/periodname='Year'"> |
|---|
| 137 |
<xsl:value-of |
|---|
| 138 |
select="substring(/bedework/firstday/date,1,4)" /> |
|---|
| 139 |
</xsl:when> |
|---|
| 140 |
<xsl:when test="/bedework/periodname='Month'"> |
|---|
| 141 |
<xsl:value-of select="/bedework/firstday/monthname" /> |
|---|
| 142 |
, |
|---|
| 143 |
<xsl:value-of |
|---|
| 144 |
select="substring(/bedework/firstday/date,1,4)" /> |
|---|
| 145 |
</xsl:when> |
|---|
| 146 |
<xsl:when test="/bedework/periodname='Week'"> |
|---|
| 147 |
Week of |
|---|
| 148 |
<xsl:value-of |
|---|
| 149 |
select="substring-after(/bedework/firstday/longdate,', ')" /> |
|---|
| 150 |
</xsl:when> |
|---|
| 151 |
<xsl:otherwise> |
|---|
| 152 |
<xsl:value-of select="/bedework/firstday/longdate" /> |
|---|
| 153 |
</xsl:otherwise> |
|---|
| 154 |
</xsl:choose> |
|---|
| 155 |
</h3> |
|---|
| 156 |
<a id="nextViewPeriod" |
|---|
| 157 |
href="{$setViewPeriod}&date={$nextdate}"> |
|---|
| 158 |
» |
|---|
| 159 |
</a> |
|---|
| 160 |
</xsl:template> |
|---|
| 161 |
|
|---|
| 162 |
</xsl:stylesheet> |
|---|