Browse Source

initial schedule work

pull/1/head
Ben Harris 1 year ago
parent
commit
c1d42e189b
  1. 4
      footer.php
  2. 54
      header.php
  3. 31
      index.php
  4. 17
      schedule/index.php

4
footer.php

@ -3,8 +3,8 @@
<a href="https://tildegit.org/tilderadio/site">page source</a> | <a href="dmca.php">DMCA</a>
</footer>
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</body>
</html>

54
header.php

@ -1,34 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>tilderadio
<?=isset($title) ? " | $title" : "" ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<meta charset="UTF-8">
<title>tilderadio
<?=isset($title) ? " | $title" : "" ?>
</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>
</head>
<body>
<div class="container">
<nav class="navbar navbar-default navbar-fixed-top">
<body>
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="/">home</a></li>
<li><a href="/schedule/">schedule</a></li>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="/">home</a></li>
<li><a href="/schedule/">schedule</a></li>
<!--/.nav-collapse -->
</div>
</nav>
<br><br>
<!--/.nav-collapse -->
</div>
</nav>
<br><br>

31
index.php

@ -1,20 +1,21 @@
<?php include 'header.php'; ?>
<h1><a href="https://tilderadio.org"><img style="width:75px;" src="./logos/tilderadio-green.png">tilderadio.org</a></h1>
<br>
<br>
<p>
TildeRadio is Internet radio streamed by / for users of the tildeverse.
<a href="https://tildeverse.org/">tildeverse.org</a>
</p>
<br>
<br>
<h1><a href="https://tilderadio.org"><img style="width:75px;" src="./logos/tilderadio-green.png">tilderadio.org</a></h1>
<hr>
<p>
<iframe src="https://radio.tildeverse.org/public/tilderadio/embed" frameborder="0" allowtransparency="true" style="width: 100%; min-height: 160px; border: 0;"></iframe>
</p>
<br>
<br>
<p>
TildeRadio is Internet radio streamed by / for users of the tildeverse.
<a href="https://tildeverse.org/">tildeverse.org</a>
</p>
<br>
<br>
<hr>
<hr>
<p>
<iframe src="https://radio.tildeverse.org/public/tilderadio/embed" frameborder="0" allowtransparency="true" style="width: 100%; min-height: 160px; border: 0;"></iframe>
</p>
<?php include 'footer.php'; ?>
<hr>
<?php include 'footer.php'; ?>

17
schedule/index.php

@ -1,9 +1,14 @@
<?php include '../header.php'; ?>
<h1><a href="https://tilderadio.org"><img style="width:75px;" src="../logos/tilderadio-green.png">tilderadio.org</a></h1>
<br>
<?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>
<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'; ?>
Loading…
Cancel
Save