summaryrefslogtreecommitdiff
path: root/app/php/controls
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-06 13:23:00 +0200
committeremkael <emkael@tlen.pl>2016-05-06 13:23:00 +0200
commitfcc64b0d41bc9a96f7aeb6f81bc1b887a515ccb6 (patch)
treecac2ab7f1ebb39d5d474947d2dd20095e83d2bc6 /app/php/controls
parent3cfbd9cdc5b3afdb63a5d775a86b14ecfdc5b6db (diff)
* basic calendar info on calendar page
Diffstat (limited to 'app/php/controls')
-rw-r--r--app/php/controls/CalendarDetails.php7
-rw-r--r--app/php/controls/CalendarDetails.tpl12
2 files changed, 19 insertions, 0 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>