| 1 |
<!-- |
|---|
| 2 |
Licensed to Jasig under one or more contributor license |
|---|
| 3 |
agreements. See the NOTICE file distributed with this work |
|---|
| 4 |
for additional information regarding copyright ownership. |
|---|
| 5 |
Jasig licenses this file to you under the Apache License, |
|---|
| 6 |
Version 2.0 (the "License"); you may not use this file |
|---|
| 7 |
except in compliance with the License. You may obtain a |
|---|
| 8 |
copy of the License at: |
|---|
| 9 |
|
|---|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 11 |
|
|---|
| 12 |
Unless required by applicable law or agreed to in writing, |
|---|
| 13 |
software distributed under the License is distributed on |
|---|
| 14 |
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|---|
| 15 |
KIND, either express or implied. See the License for the |
|---|
| 16 |
specific language governing permissions and limitations |
|---|
| 17 |
under the License. |
|---|
| 18 |
--> |
|---|
| 19 |
<xsl:stylesheet |
|---|
| 20 |
version="1.0" |
|---|
| 21 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|---|
| 22 |
xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 23 |
|
|---|
| 24 |
<!-- BEDEWORK THEME SETTINGS --> |
|---|
| 25 |
|
|---|
| 26 |
<!-- URL of html resources (images, css, other html) for the current theme --> |
|---|
| 27 |
<xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/browserResourceRoot" />/themes/bedeworkTheme</xsl:variable> |
|---|
| 28 |
<!-- Root context of uploaded event images --> |
|---|
| 29 |
<xsl:variable name="bwEventImagePrefix">/pubcaldav</xsl:variable> |
|---|
| 30 |
|
|---|
| 31 |
<!-- ============================== --> |
|---|
| 32 |
<!-- Features for the current theme --> |
|---|
| 33 |
<!-- ============================== --> |
|---|
| 34 |
<!-- Note: Set the global calendar suite preferences |
|---|
| 35 |
in the administrative web client (default view, default viewPeriod, etc) --> |
|---|
| 36 |
|
|---|
| 37 |
<!-- To see changes to this file (or any xslt file) reflected on a running system, |
|---|
| 38 |
append "refreshXslt=yes" to the query string in your browser's address bar. |
|---|
| 39 |
For example: "http://localhost:8080/cal/showMain.rdo?refreshXslt=yes |
|---|
| 40 |
For more information about theming, see the Bedework Manual --> |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
<!-- FAVICON --> |
|---|
| 44 |
<!-- address bar icon --> |
|---|
| 45 |
<xsl:variable name="favicon"><xsl:value-of select="$resourcesRoot"/>/images/bedework.ico</xsl:variable> |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
<!-- VIEWS and SUBSCRIPTIONS NAVIGATION TREES --> |
|---|
| 50 |
<!-- In this theme, you can use the calendar suite's views, |
|---|
| 51 |
its underlying calendar subscriptions, or both to construct the left navigation menu. |
|---|
| 52 |
If both are used, you'll see both menus in the left menu bar. |
|---|
| 53 |
Typically, you'll want to use one or the other. --> |
|---|
| 54 |
|
|---|
| 55 |
<!-- VIEWS LISTING --> |
|---|
| 56 |
<!-- "Views" provide an abstraction layer of arbitrary named collections of |
|---|
| 57 |
subscriptions but (currently) has no hierarchy. View are maintained in the |
|---|
| 58 |
"Calendar Suite" tab of the admin web client. --> |
|---|
| 59 |
<xsl:variable name="useViewsNav">true</xsl:variable> |
|---|
| 60 |
|
|---|
| 61 |
<!-- SUBSCRIPTIONS LISTING --> |
|---|
| 62 |
<!-- "Subscriptions" provide the full hierarchy of calendars within a calendar suite. |
|---|
| 63 |
These are presented with an explorer-like navigation paradigm. This listing |
|---|
| 64 |
is managed in the "Calendar Suite" tab of the admin web client. By deafault, |
|---|
| 65 |
the top level subscriptions will be shown with all folders closed. Generating |
|---|
| 66 |
the subscriptions listing requires a second request to the server (an ajax call). --> |
|---|
| 67 |
<xsl:variable name="useSubscriptionsNav">false</xsl:variable> |
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 |
<!-- EVENT ACTION ICONS --> |
|---|
| 75 |
<!-- which services to include for event actions in list and detail view: --> |
|---|
| 76 |
|
|---|
| 77 |
<!-- download ics file --> |
|---|
| 78 |
<xsl:variable name="eventIconDownloadIcs">true</xsl:variable> |
|---|
| 79 |
|
|---|
| 80 |
<!-- download event to my personal Bedework calendar ... use only |
|---|
| 81 |
if you plan on running the Bedework personal client --> |
|---|
| 82 |
<xsl:variable name="eventIconAddToMyCal">true</xsl:variable> |
|---|
| 83 |
|
|---|
| 84 |
<!-- add to Google calendar --> |
|---|
| 85 |
<xsl:variable name="eventIconGoogleCal">true</xsl:variable> |
|---|
| 86 |
|
|---|
| 87 |
<!-- add to Facebook... works once the site is hosted at |
|---|
| 88 |
an accessible web address --> |
|---|
| 89 |
<xsl:variable name="eventIconFacebook">true</xsl:variable> |
|---|
| 90 |
|
|---|
| 91 |
<!-- "Share This" - included here as a suggestion only. |
|---|
| 92 |
To use the Share This service you must configure it |
|---|
| 93 |
explicitly for your site. You will need to update |
|---|
| 94 |
listEvents.xsl and event.xsl to include |
|---|
| 95 |
the javascript code expected. If you use the Share This |
|---|
| 96 |
service, you will likely want to turn off the Facebook |
|---|
| 97 |
icon (above) as it is included already. |
|---|
| 98 |
See https://wiki.jasig.org/pages/viewpage.action?pageId=50860497 --> |
|---|
| 99 |
<xsl:variable name="eventIconShareThis">true</xsl:variable> |
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 |
<!-- FEATURED EVENTS --> |
|---|
| 104 |
<!-- Display the featured event images? --> |
|---|
| 105 |
<xsl:variable name="featuredEventsEnabled">true</xsl:variable> |
|---|
| 106 |
<xsl:variable name="featuredEventsAlwaysOn">false</xsl:variable> |
|---|
| 107 |
<xsl:variable name="featuredEventsForDay">true</xsl:variable> |
|---|
| 108 |
<xsl:variable name="featuredEventsForWeek">true</xsl:variable> |
|---|
| 109 |
<xsl:variable name="featuredEventsForMonth">false</xsl:variable> |
|---|
| 110 |
<xsl:variable name="featuredEventsForYear">false</xsl:variable> |
|---|
| 111 |
<xsl:variable name="featuredEventsForEventDisplay">false</xsl:variable> |
|---|
| 112 |
<xsl:variable name="featuredEventsForEventList">true</xsl:variable> |
|---|
| 113 |
<xsl:variable name="featuredEventsForCalList">false</xsl:variable> |
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 |
|
|---|
| 118 |
<!-- ONGOING EVENTS --> |
|---|
| 119 |
<!-- Use the ongoing events sidebar? --> |
|---|
| 120 |
<!-- If ongoing events sidebar is enabled, |
|---|
| 121 |
you must set UseCategory for ongoing events to appear. --> |
|---|
| 122 |
<xsl:variable name="ongoingEventsEnabled">true</xsl:variable> |
|---|
| 123 |
|
|---|
| 124 |
<!-- Use the specified category to mark an event as ongoing. --> |
|---|
| 125 |
<xsl:variable name="ongoingEventsUseCategory">true</xsl:variable> |
|---|
| 126 |
<!-- The following CatUid represents category "sys/Ongoing" --> |
|---|
| 127 |
<xsl:variable name="ongoingEventsCatUid">402881e7-25b99d14-0125-b9a50c22-00000002</xsl:variable> |
|---|
| 128 |
|
|---|
| 129 |
<!-- Always display sidebar, even if no events are ongoing? --> |
|---|
| 130 |
<xsl:variable name="ongoingEventsAlwaysDisplayed">true</xsl:variable> |
|---|
| 131 |
|
|---|
| 132 |
<!-- Reveal ongoing events in the main event list |
|---|
| 133 |
when a collection (e.g calendar "Exhibits") is directly selected? --> |
|---|
| 134 |
<xsl:variable name="ongoingEventsShowForCollection">true</xsl:variable> |
|---|
| 135 |
|
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
<!-- EVENT REGISTRATION SYSTEM --> |
|---|
| 140 |
<!-- Bedework provides an application that allows users to register for events. --> |
|---|
| 141 |
|
|---|
| 142 |
<!-- Enable the events registration system? If set to true, the theme will |
|---|
| 143 |
look for registration X-Properties and expose the registration system to |
|---|
| 144 |
users for registerable events. --> |
|---|
| 145 |
<xsl:variable name="eventRegEnabled">true</xsl:variable> |
|---|
| 146 |
|
|---|
| 147 |
<!-- Location of the event registration application; this is set to the |
|---|
| 148 |
default quickstart location. If you move it, you must change this |
|---|
| 149 |
value. The value includes the path to initialize the system on page load. --> |
|---|
| 150 |
<xsl:variable name="eventReg">/eventreg/ureg/init.do</xsl:variable> |
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 |
<!-- FEED URL AND WIDGET BUILDER --> |
|---|
| 156 |
<!-- The urlbuilder constructs filtered feeds (e.g. json, rss, xml) |
|---|
| 157 |
and widgets and points to the cached feeder application for delivery. --> |
|---|
| 158 |
|
|---|
| 159 |
<!-- Location of the urlbuilder application; this is set to the |
|---|
| 160 |
default quickstart location. If you move it, you must change this |
|---|
| 161 |
value. --> |
|---|
| 162 |
<xsl:variable name="urlbuilder">/urlbuilder</xsl:variable> |
|---|
| 163 |
|
|---|
| 164 |
<!-- Embed the urlbuilder?? |
|---|
| 165 |
If true, the urlbuilder will be rendered in an iframe. |
|---|
| 166 |
If false, it will be treated as an external link. --> |
|---|
| 167 |
<xsl:variable name="embedUrlBuilder">true</xsl:variable> |
|---|
| 168 |
|
|---|
| 169 |
|
|---|
| 170 |
|
|---|
| 171 |
|
|---|
| 172 |
<!-- EVENT THUMBNAILS --> |
|---|
| 173 |
<!-- Use event thumbnails in the "upcoming" event listings? (see eventListDiscrete.xsl) --> |
|---|
| 174 |
<xsl:variable name="thumbsEnabled">true</xsl:variable> |
|---|
| 175 |
<!-- Thumbnail width (default should be 80px) --> |
|---|
| 176 |
<xsl:variable name="thumbWidth">80</xsl:variable> |
|---|
| 177 |
<!-- Use full-size image scaled to a thumbmail if only full-size image is present? --> |
|---|
| 178 |
<xsl:variable name="useFullImageThumbs">true</xsl:variable> |
|---|
| 179 |
<!-- Use a placeholder thumbnail in listing if no image supplied with event? --> |
|---|
| 180 |
<xsl:variable name="usePlaceholderThumb">false</xsl:variable> |
|---|
| 181 |
<!-- Limit thumbs to a specific views and collections? --> |
|---|
| 182 |
<xsl:variable name="limitThumbs">false</xsl:variable> |
|---|
| 183 |
<!-- Limit the thumbs to these comma separated view names: --> |
|---|
| 184 |
<xsl:variable name="limitThumbsToView"></xsl:variable> |
|---|
| 185 |
<!-- Limit the thumbs to these comma separated collections (full virtual paths): --> |
|---|
| 186 |
<xsl:variable name="limitThumbsToCollections"></xsl:variable> |
|---|
| 187 |
|
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
<!-- JAVASCRIPT CONSTANTS --> |
|---|
| 194 |
<xsl:template name="themeJavascriptVariables"> |
|---|
| 195 |
// URL for the header/logo area |
|---|
| 196 |
var headerBarLink = "/bedework"; |
|---|
| 197 |
</xsl:template> |
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 |
<!-- CUSTOM CONTENT: HEADER, LEFT COLUMN, FOOTER --> |
|---|
| 203 |
<!-- The three templates below are pulled into the theme |
|---|
| 204 |
and use internationalized strings |
|---|
| 205 |
(found in ../default/strings.xsl). |
|---|
| 206 |
|
|---|
| 207 |
If you plan on using only one language, you can safely |
|---|
| 208 |
change the <xsl:copy> blocks to plain text below. |
|---|
| 209 |
|
|---|
| 210 |
If you plan on using more than one language, use the |
|---|
| 211 |
strings.xsl file. See the manual about setting up a |
|---|
| 212 |
strings.xsl for multiple languages. --> |
|---|
| 213 |
|
|---|
| 214 |
<!-- HEADER TEXT/LINKS --> |
|---|
| 215 |
<!-- the text and links found (by default) in the |
|---|
| 216 |
lower right of the header. --> |
|---|
| 217 |
<xsl:template name="headerTextLinks"> |
|---|
| 218 |
<h2> |
|---|
| 219 |
<xsl:copy-of select="$bwStr-HdBr-PublicCalendar" /> |
|---|
| 220 |
</h2> |
|---|
| 221 |
<ul> |
|---|
| 222 |
<li> |
|---|
| 223 |
<a href="{$privateCal}"> |
|---|
| 224 |
<xsl:copy-of select="$bwStr-HdBr-PersonalCalendar" /> |
|---|
| 225 |
</a> |
|---|
| 226 |
</li> |
|---|
| 227 |
<li> |
|---|
| 228 |
<a href="/bedework"> |
|---|
| 229 |
<xsl:copy-of select="$bwStr-HdBr-UniversityHome" /> |
|---|
| 230 |
</a> |
|---|
| 231 |
</li> |
|---|
| 232 |
<li class="last"> |
|---|
| 233 |
<a href="?refreshXslt=yes"> |
|---|
| 234 |
<xsl:copy-of select="$bwStr-HdBr-OtherLink" /> |
|---|
| 235 |
</a> |
|---|
| 236 |
</li> |
|---|
| 237 |
</ul> |
|---|
| 238 |
</xsl:template> |
|---|
| 239 |
|
|---|
| 240 |
<!-- FOOTER TEXT/LINKS --> |
|---|
| 241 |
<!-- Show the skin select box in the footer? |
|---|
| 242 |
You may also opt to remove the form in footer.xsl. --> |
|---|
| 243 |
<xsl:variable name="showFootForm">true</xsl:variable> |
|---|
| 244 |
|
|---|
| 245 |
<!-- text in the footer --> |
|---|
| 246 |
<xsl:template name="footerText"> |
|---|
| 247 |
<xsl:copy-of select="$bwStr-Foot-BasedOnThe" /> |
|---|
| 248 |
<xsl:text> </xsl:text> |
|---|
| 249 |
<a href="http://www.jasig.org/bedework/documentation"> |
|---|
| 250 |
<xsl:copy-of select="$bwStr-Foot-BedeworkCalendarSystem" /> |
|---|
| 251 |
</a> |
|---|
| 252 |
| |
|---|
| 253 |
<a |
|---|
| 254 |
href="http://www.jasig.org/bedework/whosusing"> |
|---|
| 255 |
<xsl:copy-of select="$bwStr-Foot-ProductionExamples" /> |
|---|
| 256 |
</a> |
|---|
| 257 |
| |
|---|
| 258 |
<a href="?noxslt=yes"> |
|---|
| 259 |
<xsl:copy-of select="$bwStr-Foot-ShowXML" /> |
|---|
| 260 |
</a> |
|---|
| 261 |
| |
|---|
| 262 |
<a href="?refreshXslt=yes"> |
|---|
| 263 |
<xsl:copy-of select="$bwStr-Foot-RefreshXSLT" /> |
|---|
| 264 |
</a> |
|---|
| 265 |
<br/> |
|---|
| 266 |
<xsl:copy-of select="$bwStr-Foot-Credits" /> |
|---|
| 267 |
</xsl:template> |
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| 270 |
<!-- LEFT COLUMN TEXT --> |
|---|
| 271 |
<!-- custom text in the left column --> |
|---|
| 272 |
<xsl:template name="leftColumnText"> |
|---|
| 273 |
<h4><xsl:copy-of select="$bwStr-LCol-CalInfo"/></h4> |
|---|
| 274 |
<ul class="sideLinks"> |
|---|
| 275 |
<li> |
|---|
| 276 |
<a href="/caladmin"><xsl:copy-of select="$bwStr-LCol-ManageEvents"/></a> |
|---|
| 277 |
</li> |
|---|
| 278 |
<li> |
|---|
| 279 |
<a href="/eventsubmit"> |
|---|
| 280 |
<xsl:copy-of select="$bwStr-LCol-Submit"/> |
|---|
| 281 |
</a> |
|---|
| 282 |
</li> |
|---|
| 283 |
<li> |
|---|
| 284 |
<a href="http://www.jasig.org/bedework/documentation"><xsl:copy-of select="$bwStr-LCol-Help"/></a> |
|---|
| 285 |
</li> |
|---|
| 286 |
</ul> |
|---|
| 287 |
<ul class="sideLinksExpand"> |
|---|
| 288 |
<li> |
|---|
| 289 |
<h4 class="additionalUnivClicker"><xsl:copy-of select="$bwStr-LCol-OtherCals"/></h4> |
|---|
| 290 |
<span class="additionalUnivClicker">+</span> |
|---|
| 291 |
<ul id="additionalUnivSub"> |
|---|
| 292 |
<li> |
|---|
| 293 |
<a href="http://www.jasig.org/bedework/documentation"> |
|---|
| 294 |
<xsl:copy-of select="$bwStr-LCol-ExampleLink"/> |
|---|
| 295 |
</a> |
|---|
| 296 |
</li> |
|---|
| 297 |
<li> |
|---|
| 298 |
<a href="http://www.jasig.org/bedework/documentation"> |
|---|
| 299 |
<xsl:copy-of select="$bwStr-LCol-ExampleLink"/> |
|---|
| 300 |
</a> |
|---|
| 301 |
</li> |
|---|
| 302 |
<li> |
|---|
| 303 |
<a href="http://www.jasig.org/bedework/documentation"> |
|---|
| 304 |
<xsl:copy-of select="$bwStr-LCol-ExampleLink"/> |
|---|
| 305 |
</a> |
|---|
| 306 |
</li> |
|---|
| 307 |
</ul> |
|---|
| 308 |
</li> |
|---|
| 309 |
<li> |
|---|
| 310 |
<h4 class="additionalOptionsClicker"><xsl:copy-of select="$bwStr-LCol-OtherLinks"/></h4> |
|---|
| 311 |
<span class="additionalOptionsClicker">+</span> |
|---|
| 312 |
<ul id="additionalOptionsSub"> |
|---|
| 313 |
<li> |
|---|
| 314 |
<a href="http://www.jasig.org/bedework/documentation"> |
|---|
| 315 |
<xsl:copy-of select="$bwStr-LCol-ExampleLink"/> |
|---|
| 316 |
</a> |
|---|
| 317 |
</li> |
|---|
| 318 |
<li> |
|---|
| 319 |
<a href="http://www.jasig.org/bedework/documentation"> |
|---|
| 320 |
<xsl:copy-of select="$bwStr-LCol-ExampleLink"/> |
|---|
| 321 |
</a> |
|---|
| 322 |
</li> |
|---|
| 323 |
</ul> |
|---|
| 324 |
</li> |
|---|
| 325 |
</ul> |
|---|
| 326 |
</xsl:template> |
|---|
| 327 |
|
|---|
| 328 |
|
|---|
| 329 |
|
|---|
| 330 |
|
|---|
| 331 |
<!-- NOT YET ENABLED --> |
|---|
| 332 |
<!-- the following features did not make the 3.8 release, and are here |
|---|
| 333 |
for reference --> |
|---|
| 334 |
|
|---|
| 335 |
<!-- DEADLINES/TASKS --> |
|---|
| 336 |
<!-- use the deadlines sidebar? --> |
|---|
| 337 |
<!-- if deadlines sidebar is enabled, deadlines will appear |
|---|
| 338 |
in the sidebar under ongoing events. Deadlines will |
|---|
| 339 |
be presented as tasks and will be treated as such in |
|---|
| 340 |
calendar clients. --> |
|---|
| 341 |
<!-- <xsl:variable name="deadlinesEnabled">false</xsl:variable> --> |
|---|
| 342 |
|
|---|
| 343 |
<!-- always display sidebar, even if no deadlines are present? --> |
|---|
| 344 |
<!-- <xsl:variable name="deadlinesAlwaysDisplayed">true</xsl:variable> --> |
|---|
| 345 |
|
|---|
| 346 |
<!-- FOR ONGOING EVENTS --> |
|---|
| 347 |
<!-- pull normal events that are longer than day range into ongoing list? --> |
|---|
| 348 |
<!-- (this automates the use of ongoing - tagging not needed) --> |
|---|
| 349 |
<!-- <xsl:variable name="ongoingEventsUseDayRange">false</xsl:variable> --> |
|---|
| 350 |
<!-- <xsl:variable name="ongoingEventsDayRange">12</xsl:variable> --> |
|---|
| 351 |
|
|---|
| 352 |
</xsl:stylesheet> |
|---|