22 lines
659 B
PHP
22 lines
659 B
PHP
<?php
|
|
/**
|
|
* partials/noscript.php
|
|
* ---------------------
|
|
* Shown when JavaScript is disabled: station name and a bare audio player so
|
|
* people can still listen. Artwork, live titles, and lyrics need JS.
|
|
*/
|
|
if (!defined('RADIO_CONFIG_LOADED')) { exit; }
|
|
?>
|
|
<div class="row">
|
|
<div class="column">
|
|
<h1><?= e(cfg('site.name')) ?></h1>
|
|
<p><?= e(cfg('site.tagline')) ?></p>
|
|
<p>Enable JavaScript for track info, album art, and lyrics.</p>
|
|
<?php if (cfg('stream.url') !== ''): ?>
|
|
<audio controls preload="none">
|
|
<source src="<?= e(cfg('stream.url')) ?>" type="<?= e(cfg('stream.type')) ?>"/>
|
|
</audio>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|