root/trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphone/iphone.xsl

Revision 2578 (checked in by johnsa, 3 years ago)

public client: cleaning up themes, finishing off iphone/mobile theme

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet
3   version="1.0"
4   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5   xmlns="http://www.w3.org/1999/xhtml">
6 <xsl:output method="xml"
7     indent="yes"
8     media-type="text/html"
9     doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
10     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
11     standalone="yes"
12     omit-xml-declaration="yes"/>
13
14   <!-- ===============================================
15              BEDEWORK iPHONE/MOBILE STYLESHEET
16
17         Renders Bedework public client for mobile
18         devices, particularly those with javascript and
19         touchscreens.  Call this stylesheet using:
20
21         http://localhost:8080/cal/setup.do?browserTypeSticky=PDA
22         to revert to the default browserType, use
23         http://localhost:8080/cal/setup.do?browserTypeSticky=default
24
25        ==============================================  -->
26
27   <!-- DEFINE INCLUDES -->
28   <!-- Theme preferences -->
29   <xsl:include href="themeSettings.xsl" />
30
31   <!-- Page subsections -->
32   <xsl:include href="navigation.xsl" />
33   <xsl:include href="listEvents.xsl" />
34   <xsl:include href="event.xsl" />
35   <xsl:include href="calendarList.xsl" />
36   <xsl:include href="dateSelect.xsl" />
37
38   <!-- MAIN TEMPLATE -->
39   <xsl:template match="/">
40     <html xml:lang="en">
41       <head>
42         <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title>
43         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
44         <meta http-equiv="Pragma" content="no-cache"/>
45         <meta http-equiv="Expires" content="-1"/>
46         <link rel="stylesheet" href="{$resourcesRoot}/css/jsphone.css"/>
47         <script type="text/javascript" src="{$resourcesRoot}/javascript/jsphone.js"><xsl:text> </xsl:text></script>
48       </head>
49       <body>
50         <h2 id="title" class="title">
51           <xsl:if test="/bedework/page!='eventscalendar'">
52             <xsl:attribute name="onclick">gotourl(this, '<xsl:value-of select="$setup"/>')</xsl:attribute>
53           </xsl:if>
54           <xsl:copy-of select="$bwStr-HdBr-PageTitle"/>
55         </h2>
56         <xsl:choose>
57           <xsl:when test="/bedework/page='event'">
58             <!-- show an event -->
59             <xsl:apply-templates select="/bedework/event" mode="singleEvent"/>
60           </xsl:when>
61           <xsl:when test="/bedework/page='calendarList'">
62             <!-- show a list of all calendars -->
63             <xsl:apply-templates select="/bedework/calendars"/>
64           </xsl:when>
65           <xsl:otherwise>
66             <!-- otherwise, show the eventsCalendar -->
67             <!-- main eventCalendar content -->
68             <xsl:call-template name="navigation"/>
69             <xsl:call-template name="listView"/>
70             <xsl:call-template name="dateSelect"/>
71           </xsl:otherwise>
72         </xsl:choose>
73         <!-- footer -->
74         <p class="footer">
75           <a href="{$fetchPublicCalendars}"><xsl:copy-of select="$bwStr-Cals-AllCalendars"/></a> |
76           <a href="{$setup}&amp;browserTypeSticky=default"><xsl:copy-of select="$bwStr-Foot-ResetSkin"/></a><br/>
77         </p>
78       </body>
79     </html>
80   </xsl:template>
81
82 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.