Changeset 2548
- Timestamp:
- 12/23/09 15:18:13
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/PDA/default.xsl (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/PDA/globals.xsl (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/globals.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/event.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/footer.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphone/default.xsl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/globals.xsl
r2509 r2548 45 45 <!-- Other generally useful global variables --> 46 46 <xsl:variable name="privateCal">/ucal</xsl:variable> 47 <xsl:variable name="feeder Prefix">/feeder</xsl:variable>47 <xsl:variable name="feeder">/feeder</xsl:variable> 48 48 <xsl:variable name="prevdate" select="/bedework/previousdate" /> 49 49 <xsl:variable name="nextdate" select="/bedework/nextdate" /> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/event.xsl
r2511 r2548 38 38 <xsl:choose> 39 39 <xsl:when test="string-length($recurrenceId)"> 40 <a class="eventIcons" href="http://www.facebook.com/share.php?u={$feeder Prefix}/event/cal/html/Public/{$recurrenceId}/{$guidEsc}" title="{$bwStr-SgEv-AddToFacebook}">40 <a class="eventIcons" href="http://www.facebook.com/share.php?u={$feeder}/event/cal/html/Public/{$recurrenceId}/{$guidEsc}" title="{$bwStr-SgEv-AddToFacebook}"> 41 41 <img title="{$bwStr-SgEv-AddToFacebook}" src="{$resourcesRoot}/images/Facebook_Badge.gif" alt="{$bwStr-SgEv-AddToFacebook}" /> 42 42 </a> 43 43 </xsl:when> 44 44 <xsl:otherwise> 45 <a class="eventIcons" href="http://www.facebook.com/share.php?u={$feeder Prefix}/event/cal/html/Public/0/{$guidEsc}" title="{$bwStr-SgEv-AddToFacebook}">45 <a class="eventIcons" href="http://www.facebook.com/share.php?u={$feeder}/event/cal/html/Public/0/{$guidEsc}" title="{$bwStr-SgEv-AddToFacebook}"> 46 46 <img title="{$bwStr-SgEv-AddToFacebook}" src="{$resourcesRoot}/images/Facebook_Badge.gif" alt="{$bwStr-SgEv-AddToFacebook}" /> 47 47 </a> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/footer.xsl
r2534 r2548 24 24 </option> 25 25 <option 26 value="{$listEvents}&setappvar=summaryMode(details)&skinName=rss-list&days=3"> 27 <xsl:copy-of 28 select="$bwStr-Foot-RSSNext3Days" /> 26 value="{$feeder}/main/listEvents.do?skinName=list-rss&days=3"> 27 <xsl:copy-of select="$bwStr-Foot-RSSNext3Days" /> 29 28 </option> 30 29 <option 31 value="{$listEvents}&setappvar=summaryMode(details)&skinName=js-list&days=3&contentType=text/javascript&contentName=bedework.js"> 32 <xsl:copy-of 33 select="$bwStr-Foot-JavascriptNext3Days" /> 34 </option> 35 <option 36 value="{$setViewPeriod}&viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedeworkToday.js"> 37 <xsl:copy-of 38 select="$bwStr-Foot-JavascriptTodaysEvents" /> 30 value="{$feeder}/main/listEvents.do?skinName=list-json&days=3&contentType=text/javascript&contentName=bedework.js"> 31 <xsl:copy-of select="$bwStr-Foot-JavascriptNext3Days" /> 39 32 </option> 40 33 <option 41 34 value="{$setup}&browserTypeSticky=PDA"> 42 <xsl:copy-of 43 select="$bwStr-Foot-ForMobileBrowsers" /> 35 <xsl:copy-of select="$bwStr-Foot-ForMobileBrowsers" /> 44 36 </option> 45 37 <option 46 value="{$setViewPeriod}&viewType=todayView&skinName=videocal"> 47 <xsl:copy-of 48 select="$bwStr-Foot-VideoFeed" /> 38 value="{$setViewPeriod}&viewType=todayView&skinNameSticky=videocal"> 39 <xsl:copy-of select="$bwStr-Foot-VideoFeed" /> 49 40 </option> 50 41 <option 51 42 value="{$setup}&skinNameSticky=default"> 52 <xsl:copy-of 53 select="$bwStr-Foot-ResetToCalendarDefault" /> 43 <xsl:copy-of select="$bwStr-Foot-ResetToCalendarDefault" /> 54 44 </option> 55 45 </select> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphone/default.xsl
r2520 r2548 15 15 BEDEWORK MOBILE STYLESHEET 16 16 17 THIS WILL SHORTLY BE REPLACED WITH AN IPHONE FRIENDLY SKIN 18 17 19 Renders Bedework public client for mobile 18 20 devices. Call this stylesheet using: … … 24 26 ============================================== --> 25 27 26 <!-- URL of resources common to all bedework apps (javascript, images) -->27 <xsl:variable name="resourceCommons">../../../bedework-common</xsl:variable>28 29 <!-- DEFINE INCLUDES -->30 <!-- cannot use the resourceCommons variable in xsl:include paths -->31 <xsl:include href="../../../bedework-common/default/default/errors.xsl"/>32 <xsl:include href="../../../bedework-common/default/default/messages.xsl"/>33 34 <!-- DEFINE GLOBAL CONSTANTS -->35 36 <!-- URL of the XSL template directory -->37 <!-- The approot is an appropriate place to put38 included stylesheets and xml fragments. These are generally39 referenced relatively (like errors.xsl and messages.xsl above);40 this variable is here for your convenience if you choose to41 reference it explicitly. It is not used in this stylesheet, however,42 and can be safely removed if you so choose. -->43 <xsl:variable name="appRoot" select="/bedework/approot"/>44 45 28 <!-- URL of html resources (images, css, other html); by default this is 46 29 set to the application root --> 47 <xsl:variable name="resourcesRoot" select="/bedework/approot"/> 48 49 <!-- Properly encoded prefixes to the application actions; use these to build 50 urls; allows the application to be used without cookies or within a portal. 51 These urls are rewritten in header.jsp and simply passed through for use 52 here. Every url includes a query string (either ?b=de or a real query 53 string) so that all links constructed in this stylesheet may begin the 54 query string with an ampersand. --> 55 <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/> 56 <xsl:variable name="setSelection" select="/bedework/urlPrefixes/main/setSelection"/> 57 <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/calendar/fetchPublicCalendars"/> 58 <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/main/setViewPeriod"/> 59 <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 60 <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/event/addEventRef"/> 61 <xsl:variable name="export" select="/bedework/urlPrefixes/misc/export/a/@href"/> 62 <xsl:variable name="search" select="/bedework/urlPrefixes/search/search"/> 63 <xsl:variable name="search-next" select="/bedework/urlPrefixes/search/next"/> 64 <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mail/mailEvent"/> 65 <xsl:variable name="showPage" select="/bedework/urlPrefixes/main/showPage"/> 66 <xsl:variable name="stats" select="/bedework/urlPrefixes/stats/stats"/> 67 68 <!-- URL of the web application - includes web context --> 69 <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/> 70 71 <!-- Other generally useful global variables --> 72 <xsl:variable name="privateCal">/ucal</xsl:variable> 73 <xsl:variable name="prevdate" select="/bedework/previousdate"/> 74 <xsl:variable name="nextdate" select="/bedework/nextdate"/> 75 <xsl:variable name="curdate" select="/bedework/currentdate/date"/> 76 30 <xsl:variable name="resourcesRoot"><xsl:value-of select="$appRoot"/>/themes/iphone</xsl:variable> 77 31 78 32 <!-- MAIN TEMPLATE --> … … 84 38 <meta http-equiv="Pragma" content="no-cache"/> 85 39 <meta http-equiv="Expires" content="-1"/> 86 <link rel="stylesheet" href="{$resourcesRoot}/ default/PDA/pda.css"/>40 <link rel="stylesheet" href="{$resourcesRoot}/pda.css"/> 87 41 </head> 88 42 <body> … … 475 429 <!--==== LIST VIEW (for day, week, and month) ====--> 476 430 <xsl:template name="listView"> 431 <p> 432 <em> 433 This theme will shortly be replaced by an iphone/smartphone friendly theme. 434 </em> 435 </p> 477 436 <xsl:choose> 478 437 <xsl:when test="not(/bedework/eventscalendar/year/month/week/day/event)"> … … 679 638 </xsl:template> 680 639 681 <!--==== UTILITY TEMPLATES ====-->682 683 <!-- search and replace template taken from684 http://www.biglist.com/lists/xsl-list/archives/200211/msg00337.html -->685 <xsl:template name="replace">686 <xsl:param name="string" select="''"/>687 <xsl:param name="pattern" select="''"/>688 <xsl:param name="replacement" select="''"/>689 <xsl:choose>690 <xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">691 <xsl:value-of select="substring-before($string, $pattern)"/>692 <xsl:copy-of select="$replacement"/>693 <xsl:call-template name="replace">694 <xsl:with-param name="string" select="substring-after($string, $pattern)"/>695 <xsl:with-param name="pattern" select="$pattern"/>696 <xsl:with-param name="replacement" select="$replacement"/>697 </xsl:call-template>698 </xsl:when>699 <xsl:otherwise>700 <xsl:value-of select="$string"/>701 </xsl:otherwise>702 </xsl:choose>703 </xsl:template>704 705 640 </xsl:stylesheet>
