Add link to calendar on schedule page

This commit is contained in:
Robert Miles 2020-07-03 02:51:01 -04:00
parent dc59e404b7
commit 86166f3d31
2 changed files with 3 additions and 1 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">
<link rel="icon" type="image/png" href="https://tilderadio.org/logos/tilderadio-green.png"><?=isset($additional_head)?PHP_EOL." ".$additional_head.PHP_EOL:""?>
</head>
<body>

View File

@ -1,4 +1,5 @@
<?php
$additional_head='<link rel="alternate" type="text/calendar" href="https://tilderadio.org/schedule/ics.php">';
include '../header.php';
include 'schedule.php';
?>
@ -6,6 +7,7 @@ include 'schedule.php';
<h1><a href="https://tilderadio.org"><img style="width:75px;" src="../logos/tilderadio-green.png">tilderadio.org</a></h1>
<h4>upcoming broadcasts</h4>
<p>all times in UTC. current time is <span id="utcdate"><?=formatdate("now")?></span>.</p>
<p>this schedule is also available in <a href="https://icalendar.org/validator.html?url=https://tilderadio.org/schedule/ics.php">iCalendar format</a>. point your calendar client at <code>https://tilderadio.org/schedule/ics.php</code>.</p>
<table class="table table-striped">
<thead>