Changeset 2517
- Timestamp:
- 12/19/09 02:19:11
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/strings.xsl (modified) (2 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/bedework.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/calendarList.xsl (modified) (2 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/css/fixed.css (modified) (2 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/eventList.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/leftColumn.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/template.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bwclassicTheme/bwclassic.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/strings.xsl
r2509 r2517 199 199 200 200 <!-- xsl:template match="calendars" --> 201 <xsl:variable name="bwStr-Cals-AllTopicalAreas">All Topical Areas</xsl:variable>202 <xsl:variable name="bwStr-Cals-SelectTopicalArea">Select a topical area from the list belowto see only its events.</xsl:variable>201 <xsl:variable name="bwStr-Cals-AllTopicalAreas">All Calendars</xsl:variable> 202 <xsl:variable name="bwStr-Cals-SelectTopicalArea">Select a calendar to see only its events.</xsl:variable> 203 203 204 204 <!-- xsl:template match="calendar" mode="calTree" --> … … 208 208 <!-- xsl:template match="currentCalendar" mode="export" --> 209 209 <xsl:variable name="bwStr-Cals-ExportCals">Export Calendars as iCal</xsl:variable> 210 <xsl:variable name="bwStr-Cals-CalendarToExport"> Calendar to export:</xsl:variable>210 <xsl:variable name="bwStr-Cals-CalendarToExport">Exporting:</xsl:variable> 211 211 <xsl:variable name="bwStr-Cals-Name">Name:</xsl:variable> 212 212 <xsl:variable name="bwStr-Cals-Path">Path:</xsl:variable> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/bedework.xsl
r2515 r2517 54 54 <!-- DEFINE INCLUDES --> 55 55 <!-- Theme preferences --> 56 <xsl:include href=" themeSettings.xsl" />57 56 <xsl:include href="./themeSettings.xsl" /> 57 s 58 58 <!-- theme utility functions --> 59 <xsl:include href=" themeUtil.xsl" />59 <xsl:include href="./themeUtil.xsl" /> 60 60 61 61 <!-- Page subsections --> 62 <xsl:include href=" head.xsl" />63 <xsl:include href=" header.xsl" />64 <xsl:include href=" leftColumn.xsl" />62 <xsl:include href="./head.xsl" /> 63 <xsl:include href="./header.xsl" /> 64 <xsl:include href="./leftColumn.xsl" /> 65 65 <xsl:include href="views.xsl" /> 66 66 <xsl:include href="featuredEvents.xsl"/> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/calendarList.xsl
r2511 r2517 7 7 <!-- list of available calendars --> 8 8 <xsl:template match="calendars"> 9 <xsl:variable name="topLevelCalCount" 10 select="count(calendar/calendar)" /> 9 <xsl:variable name="topLevelCalCount" select="count(calendar/calendar[calType != 5 and calType != 6 and name != 'calendar'])"/> 11 10 12 11 <div class="secondaryColHeader"> 13 12 <h3><xsl:copy-of select="$bwStr-Cals-AllTopicalAreas"/></h3> 14 13 </div> 14 <p class="info"> 15 <xsl:copy-of select="$bwStr-Cals-SelectTopicalArea"/> 16 </p> 15 17 16 <ul class="calendarTree"> 17 <li> 18 <a class="breadcrumb" href="/cal/"> 19 « Return to Main Calendar 20 </a> 21 </li> 22 <xsl:apply-templates select="calendar/calendar" 23 mode="calTree" /> 24 </ul> 18 <!-- adjust the following calculations to get a balanced layout between the cells --> 19 <div class="calendarList"> 20 <ul class="calendarTree"> 21 <xsl:apply-templates select="calendar/calendar[(calType != 5 and calType != 6 and name != 'calendar') and (position() <= ceiling($topLevelCalCount div 2)+2)]" mode="calTree"/> 22 </ul> 23 </div> 24 <div class="calendarList"> 25 <ul class="calendarTree"> 26 <xsl:apply-templates select="calendar/calendar[(calType != 5 and calType != 6 and name != 'calendar') and (position() > ceiling($topLevelCalCount div 2)+2)]" mode="calTree"/> 27 </ul> 28 </div> 25 29 </xsl:template> 26 30 … … 28 32 <xsl:variable name="itemClass"> 29 33 <xsl:choose> 30 <xsl:when test="calendarCollection='false'"> 31 folder 32 </xsl:when> 33 <xsl:otherwise>calendar</xsl:otherwise> 34 <xsl:when test="calType = '0'"><xsl:copy-of select="$bwStr-Calr-Folder"/></xsl:when> 35 <xsl:otherwise><xsl:copy-of select="$bwStr-Calr-Calendar"/></xsl:otherwise> 34 36 </xsl:choose> 35 37 </xsl:variable> 36 <xsl:variable name=" url" select="encodedPath" />38 <xsl:variable name="virtualPath"><xsl:call-template name="url-encode"><xsl:with-param name="str">/user<xsl:for-each select="ancestor-or-self::calendar/name">/<xsl:value-of select="."/></xsl:for-each></xsl:with-param></xsl:call-template></xsl:variable> 37 39 <li class="{$itemClass}"> 38 <a href="{$setSelection}&calUrl={$url}" 39 title="view calendar"> 40 <xsl:value-of select="name" /> 41 </a> 42 <xsl:if test="calendarCollection='true'"> 43 <xsl:variable name="calPath" select="path" /> 44 <span class="exportCalLink"> 45 <a 46 href="{$calendar-fetchForExport}&calPath={$calPath}" 47 title="export calendar as iCal"> 48 <img 49 src="{$resourcesRoot}/images/calIconExport-sm.gif" 50 alt="export calendar" /> 51 </a> 52 </span> 53 </xsl:if> 40 <xsl:variable name="calPath" select="path"/> 41 <a href="{$setSelection}&virtualPath={$virtualPath}&setappvar=curCollection({$calPath})" title="view calendar"><xsl:value-of select="name"/></a> 42 <xsl:variable name="calPath" select="path"/> 43 <span class="exportCalLink"> 44 <a href="{$calendar-fetchForExport}&calPath={$calPath}&virtualPath={$virtualPath}" title="export calendar as iCal"> 45 <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 46 </a> 47 </span> 54 48 <xsl:if test="calendar"> 55 49 <ul> 56 <xsl:apply-templates select="calendar" 57 mode="calTree" /> 50 <xsl:apply-templates select="calendar" mode="calTree"/> 58 51 </ul> 59 52 </xsl:if> 60 53 </li> 61 54 </xsl:template> 55 62 56 <!-- calendar export page --> 63 57 <xsl:template match="currentCalendar" mode="export"> 64 <h2 class="bwStatusConfirmed">Export Calendar</h2> 58 <div class="secondaryColHeader"> 59 <h3><xsl:copy-of select="$bwStr-Cals-ExportCals"/></h3> 60 </div> 65 61 <div id="export"> 66 62 <p> 67 <strong>Calendar to export:</strong> 63 <xsl:copy-of select="$bwStr-Cals-CalendarToExport"/> 64 <xsl:text> </xsl:text> 65 <em><xsl:value-of select="name"/></em> 68 66 </p> 69 <div class="indent"> 70 Name: 71 <strong> 72 <em> 73 <xsl:value-of select="name" /> 74 </em> 75 </strong> 76 <br /> 77 Path: 78 <xsl:value-of select="path" /> 79 </div> 80 <p> 81 <strong>Event date limits:</strong> 82 </p> 83 <form name="exportCalendarForm" id="exportCalendarForm" 84 action="{$export}" method="post"> 67 68 <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post"> 69 <xsl:copy-of select="$bwStr-Cals-EventDateLimits"/><br/> 85 70 <input type="hidden" name="calPath"> 86 <xsl:attribute name="value"> 87 <xsl:value-of select="path" /> 88 </xsl:attribute> 71 <xsl:attribute name="value"><xsl:value-of select="path"/></xsl:attribute> 89 72 </input> 90 73 <!-- fill these on submit --> 91 <input type="hidden" name="eventStartDate.year" 92 value="" /> 93 <input type="hidden" name="eventStartDate.month" 94 value="" /> 95 <input type="hidden" name="eventStartDate.day" value="" /> 96 <input type="hidden" name="eventEndDate.year" value="" /> 97 <input type="hidden" name="eventEndDate.month" value="" /> 98 <input type="hidden" name="eventEndDate.day" value="" /> 74 <input type="hidden" name="eventStartDate.year" value=""/> 75 <input type="hidden" name="eventStartDate.month" value=""/> 76 <input type="hidden" name="eventStartDate.day" value=""/> 77 <input type="hidden" name="eventEndDate.year" value=""/> 78 <input type="hidden" name="eventEndDate.month" value=""/> 79 <input type="hidden" name="eventEndDate.day" value=""/> 99 80 <!-- static fields --> 100 <input type="hidden" name="nocache" value="no" /> 101 <input type="hidden" name="skinName" value="ical" /> 102 <input type="hidden" name="contentType" 103 value="text/calendar" /> 81 <input type="hidden" name="nocache" value="no"/> 104 82 <input type="hidden" name="contentName"> 105 <xsl:attribute name="value"><xsl:value-of 106 select="name" />.ics</xsl:attribute> 83 <xsl:attribute name="value"><xsl:value-of select="name"/>.ics</xsl:attribute> 107 84 </input> 108 85 <!-- visible fields --> 109 <input type="radio" name="dateLimits" value="active" 110 checked="checked" 111 onclick="changeClass('exportDateRange','invisible')" /> 112 today forward 113 <input type="radio" name="dateLimits" value="none" 114 onclick="changeClass('exportDateRange','invisible')" /> 115 all dates 116 <input type="radio" name="dateLimits" value="limited" 117 onclick="changeClass('exportDateRange','visible')" /> 118 date range 86 <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Cals-TodayForward"/> 87 <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Cals-AllDates"/> 88 <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-Cals-DateRange"/> 119 89 <div id="exportDateRange" class="invisible"> 120 Start: 121 <div dojoType="dropdowndatepicker" 122 formatLength="medium" saveFormat="yyyyMMdd" 123 id="bwExportCalendarWidgetStartDate"> 124 <xsl:text> </xsl:text> 125 </div> 126 Ends 127 <div dojoType="dropdowndatepicker" 128 formatLength="medium" saveFormat="yyyyMMdd" 129 id="bwExportCalendarWidgetEndDate"> 130 <xsl:text> </xsl:text> 131 </div> 90 <xsl:copy-of select="$bwStr-Cals-Start"/><xsl:text> </xsl:text> 91 <input type="text" name="bwExportCalendarWidgetStartDate" id="bwExportCalendarWidgetStartDate" size="10"/> 92 <span id="bwExportEndField"><xsl:copy-of select="$bwStr-Cals-End"/><xsl:text> </xsl:text> 93 <input type="text" name="bwExportCalendarWidgetEndDate" id="bwExportCalendarWidgetEndDate" size="10"/></span> 132 94 </div> 133 <p> 134 <input type="submit" value="export" 135 class="bwWidgetSubmit" onclick="fillExportFields(this.form)" /> 136 </p> 95 <input type="submit" value="{$bwStr-Cals-Export}" class="bwWidgetSubmit" onclick="fillExportFields(this.form)"/> 137 96 </form> 138 97 </div> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/css/fixed.css
r2511 r2517 721 721 font-weight: bold; 722 722 } 723 div.calendarList { 724 float: left; 725 margin: 0 0 0 4em; 726 } 727 .info { 728 font-size: 1.1em; 729 margin: 1em 1em 0 1em; 730 } 723 731 table#searchTable { 724 732 font-size: .9em; … … 797 805 } 798 806 ul.calendarTree li { 807 font-weight: bold; 808 padding-top: 0.25em; 809 padding-bottom: 0.25em; 799 810 } 800 811 ul.calendarTree li a { 801 812 color: #335080; 802 813 } 814 ul.calendarTree li ul { 815 margin: 0 0 .5em 1.5em; 816 } 817 ul.calendarTree li ul li { 818 font-weight: normal; 819 margin: 0; 820 padding: 0; 821 } 803 822 ul.calendarTree li.folder { 804 font-weight: bold; 805 margin: .8em 0 0 0; 823 /*list-style-image: url("../images/catIcon.gif");*/ 806 824 } 807 825 ul.calendarTree li.calendar { 808 font-weight: normal; 809 margin: .2em 0 0 0; 810 } 811 ul.calendarTree li ul { 812 margin: 0 0 .5em 1em; 813 } 814 ul.calendarTree li ul li { 815 margin: 0; 816 padding: 0; 826 /*list-style-image: url("../images/calIcon-sm.gif");*/ 827 } 828 ul.calendarTree .exportCalLink { 829 font-size: 0.6em; 830 padding-left: 1em; 831 color: #aaa; 832 background-color: transparent; 833 } 834 ul.calendarTree .exportCalLink a:link, 835 ul.calendarTree .exportCalLink a:active, 836 ul.calendarTree .exportCalLink a:visited { 837 color: #aaa; 838 background-color: transparent; 839 text-decoration: none; 840 } 841 ul.calendarTree .exportCalLink a:hover { 842 color: #333; 843 background-color: transparent; 844 text-decoration: none; 845 } 846 #export { 847 font-size: 1.1em; 848 margin: 0px; 849 padding: 1em; 850 } 851 #export em { 852 font-size: 1.2em; 853 font-style: italic; 854 } 855 #export p { 856 margin-bottom: 1em; 857 } 858 #exportDateRange { 859 font-size: 1em; 860 } 861 .bwWidgetSubmit { 862 display: block; 863 margin-top: 0.5em; 864 } 865 .invisible { 866 display: none; 817 867 } 818 868 div.right_column { trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/eventList.xsl
r2511 r2517 14 14 <!-- display information about the current selection state if not default --> 15 15 <xsl:choose> 16 <xsl:when test="/bedework/selectionState/selectionType = 'c alendar'">16 <xsl:when test="/bedework/selectionState/selectionType = 'collections'"> 17 17 <tr> 18 18 <td class="eventFilterInfo" colspan="3"> 19 Displaying Events for Topical Area19 Displaying Events for Calendar 20 20 <span class="displayFilterName"> 21 <xsl:value-of select="/bedework/selectionState/subscriptions/subscription/calendar/name"/> 21 <xsl:call-template name="substring-afterLastInstanceOf"> 22 <xsl:with-param name="string" select="/bedework/selectionState/collection/virtualpath"/> 23 <xsl:with-param name="char">/</xsl:with-param> 24 </xsl:call-template> 22 25 </span><xsl:text> </xsl:text> 23 26 <a id="allView" href="{$setSelection}">(show all)</a></td> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/leftColumn.xsl
r2511 r2517 28 28 <xsl:template name="displaySideBar"> 29 29 <div class="sideBarContainer"> 30 <h4>FILTER BY TOPICAL AREA:</h4>30 <h4>FILTER ON CALENDARS:</h4> 31 31 <ul class="sideLinks"> 32 32 <li> 33 33 <a href="{$fetchPublicCalendars}"> 34 All Topical Areas34 View All Calendars 35 35 </a> 36 36 </li> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/template.xsl
r2511 r2517 4 4 xmlns="http://www.w3.org/1999/xhtml"> 5 5 6 <!--==== THEME UTILITIES ====-->7 <xsl:template match="events" mode="ongoingEventsExist">8 <xsl:choose>9 10 ($ongoingEventsUseCategory = 'true' and /bedework/eventscalendar//events[category/name = $ongoingEventsCatName]) or11 ($ongoingEventsUseDayRange = 'true' and $12 </xsl:template>13 6 14 7 trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bwclassicTheme/bwclassic.xsl
r2510 r2517 65 65 66 66 <!-- Page subsections --> 67 <xsl:include href="./ bwclassicTheme/event.xsl" />67 <xsl:include href="./event.xsl" /> 68 68 69 69 <!-- DEFINE GLOBAL CONSTANTS -->
