summaryrefslogtreecommitdiff
path: root/app/php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php')
-rw-r--r--app/php/controls/CalendarDetails.php7
-rw-r--r--app/php/controls/CalendarDetails.tpl12
-rw-r--r--app/php/pages/Calendar.page7
3 files changed, 25 insertions, 1 deletions
diff --git a/app/php/controls/CalendarDetails.php b/app/php/controls/CalendarDetails.php
new file mode 100644
index 0000000..95ee563
--- /dev/null
+++ b/app/php/controls/CalendarDetails.php
@@ -0,0 +1,7 @@
+<?php
+
+class CalendarDetails extends UrlBasedCalendarControl {
+
+}
+
+?>
diff --git a/app/php/controls/CalendarDetails.tpl b/app/php/controls/CalendarDetails.tpl
new file mode 100644
index 0000000..058a00f
--- /dev/null
+++ b/app/php/controls/CalendarDetails.tpl
@@ -0,0 +1,12 @@
+<com:THeader2>
+ <%= $this->getCalendar()->Name %>
+</com:THeader2>
+<com:TImage>
+ <prop:ImageUrl><%= $this->getCalendar()->Image %></prop:ImageUrl>
+</com:TImage>
+<com:THyperLink Text="Source website" Target="_blank">
+ <prop:NavigateUrl><%= $this->getCalendar()->Website %></prop:NavigateUrl>
+</com:THyperLink>
+<p>
+ Last updated: <%= $this->getCalendar()->LastUpdated %>
+</p>
diff --git a/app/php/pages/Calendar.page b/app/php/pages/Calendar.page
index 8b13789..e2d4dae 100644
--- a/app/php/pages/Calendar.page
+++ b/app/php/pages/Calendar.page
@@ -1 +1,6 @@
-
+<com:TContent ID="Content">
+ <com:CalendarDetails>
+ <prop:Facade><%= CalendarFacade::getInstance() %></prop:Facade>
+ <prop:CalendarUrl><%= $this->Request->itemAt('calendar') %></prop:CalendarUrl>
+ </com:CalendarDetails>
+</com:TContent>