File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ function __roundDate ($ ts ) {
4+ return date ("jS F Y H:i " , $ ts );
5+ }
6+
37 class mainTemplate {
48
59 public function __construct () {
@@ -26,6 +30,7 @@ public function __construct() {
2630 <link rel="stylesheet" href="themes/{_theme}/css/bootstrap.min.css">
2731 <link rel="stylesheet" href="themes/{_theme}/css/style.css">
2832 <link rel="shortcut icon" href="themes/{_theme}/images/icon.png" />
33+ <meta name="timestamp" content="{timestamp}">
2934 <meta name="viewport" content="width=device-width, initial-scale=1">
3035 </head>
3136
@@ -57,6 +62,17 @@ public function __construct() {
5762 {/each}
5863 </ul>
5964 <{alerts}>
65+
66+ {#unless round}
67+ <div class="alert alert-danger text-center">
68+ {#if nextRound}
69+ {nextRound.name} starts in <span data-timer-type="inline" data-timer="{nextRound.start}"></span> <br />
70+ <small>{__roundDate nextRound.start}</small>
71+ {else}
72+ {game_name} is currently closed!
73+ {/if}
74+ </div>
75+ {/unless}
6076 <{game}>
6177 </div>
6278 </div>
You can’t perform that action at this time.
0 commit comments