Skip to content

Commit 9c827b8

Browse files
added round alerts to login template
1 parent 08ed677 commit 9c827b8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

themes/default/login.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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>

0 commit comments

Comments
 (0)