initial schedule work

This commit is contained in:
Ben Harris 2020-06-18 02:21:52 -04:00
parent 2e8a4bf2cd
commit c1d42e189b
4 changed files with 56 additions and 50 deletions

View File

@ -8,7 +8,7 @@
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/hacker.css">
<link rel="icon" type="image/png" href="https://tilderadio.org/logos/tilderadio-green.png">
</head>
<body>

View File

@ -1,4 +1,5 @@
<?php include 'header.php'; ?>
<h1><a href="https://tilderadio.org"><img style="width:75px;" src="./logos/tilderadio-green.png">tilderadio.org</a></h1>
<br>

View File

@ -1,9 +1,14 @@
<?php include '../header.php'; ?>
<?php
include '../header.php';
$schedule = json_decode(file_get_contents("https://radio.tildeverse.org/api/station/1/schedule"), true);
?>
<h1><a href="https://tilderadio.org"><img style="width:75px;" src="../logos/tilderadio-green.png">tilderadio.org</a></h1>
<br>
<br>
<p>
New Schedule Announcement Coming Soon!
</p>
<h4>upcoming broadcasts</h4>
<?php foreach ($schedule as $item): ?>
<p><?=$item["name"]?> - <?=$item["start"]?>-<?=$item["end"]?></p>
<?php endforeach; ?>
<?php include '../footer.php'; ?>