aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
authorMaZderMind2015-12-02 18:17:18 +0100
committerMaZderMind2015-12-02 18:17:18 +0100
commit9d434af7f2ce972a65043d5fa3c7f476b91c1fda (patch)
tree984d0a33e8b61a3b2b3c2bd847a551c5f8bc3a6e /template/assemblies
parent8a4fc337510ddaeb8ea3f27b7b5e807416c001ae (diff)
generate closed-page countdown on server-side
Diffstat (limited to '')
-rw-r--r--template/assemblies/countdown.phtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/assemblies/countdown.phtml b/template/assemblies/countdown.phtml
new file mode 100644
index 0000000..e72079b
--- /dev/null
+++ b/template/assemblies/countdown.phtml
@@ -0,0 +1,4 @@
+<? if($next): ?>
+ <h2>See you soon at <?=h($next['name'])?></h2>
+ <span class="countdown"><?=h(days_diff_readable($next['start_date']))?></span>
+<? endif ?>