-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
35 lines (35 loc) · 1.49 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php require('head.php'); ?>
<div class="inner cover">
<p class="lead">
<?php if($settings->online) {?>
<a href="/external" class="btn btn-lg btn-play">
<img src="assets/img/swoosh.png" alt="UWave swoosh shape"><br />
<i class="playpause glyphicon glyphicon-play-circle"></i> <span class="playtext">Tune in</span>
</a><br />
<?php } else {
echo "<img src=\"assets/img/swoosh.png\" alt=\"UWave swoosh shape\"><br /><br /><b>";
if(array_key_exists("reason", $settings)) {
echo $settings->reason;
} else {
echo "We are currently offline";
}
echo "</b><br />";
} ?>
<a href="/external" class="navlink externalplayer">External Player</a><br />
<span class="metadata"></span>
</p>
</div>
<?php if(!isset($_GET['contentonly'])) {?>
</span>
</div>
</div>
</div>
<?php require("foot.php"); ?>
<script type="text/javascript">
$(document).ready(function() {
$(".btn-play").on("click", uwave.playpause);
});
</script>
</body>
</html>
<?php } ?>