From 501f2694ffc48968abbf75309522af4171805935 Mon Sep 17 00:00:00 2001
From: Benjamin Southall
Date: Tue, 25 Apr 2017 00:04:36 +0900
Subject: [PATCH] Updates to Radio theme / extension in order to have MP3, OGG
playlists and Audio sources as configurable.
---
templates/themes/radio/info.php | 22 +++++++++++++++++++++-
templates/themes/radio/radio.html | 24 +++++++++++-------------
2 files changed, 32 insertions(+), 14 deletions(-)
diff --git a/templates/themes/radio/info.php b/templates/themes/radio/info.php
index 2ae31fbd..06dffd86 100644
--- a/templates/themes/radio/info.php
+++ b/templates/themes/radio/info.php
@@ -22,7 +22,27 @@ $theme = array(
array('title' => 'Radio Status URL',
'name' => 'radiostatus',
'type' => 'text',
- 'default' => '/radio_assets/status.xsl')),
+ 'default' => '/radio_assets/status.xsl'),
+ array('title' => 'Radio MP3 Playlist',
+ 'name' => 'radiomp3playlist',
+ 'type' => 'text',
+ 'default' => ''),
+
+ array('title' => 'Radio OGG Playlist',
+ 'name' => 'radiooggplaylist',
+ 'type' => 'text',
+ 'default' => ''),
+
+ array('title' => 'Radio MP3 Source',
+ 'name' => 'radiomp3source',
+ 'type' => 'text',
+ 'default' => ''),
+
+ array('title' => 'Radio OGG Source',
+ 'name' => 'radiooggsource',
+ 'type' => 'text',
+ 'default' => ''),
+ ),
'build_function' => 'radio_build');
?>
diff --git a/templates/themes/radio/radio.html b/templates/themes/radio/radio.html
index 1ba81104..d753dc29 100644
--- a/templates/themes/radio/radio.html
+++ b/templates/themes/radio/radio.html
@@ -9,7 +9,7 @@
-
+
Welcome to lainchan's radio stream.
-
+
Now playing:
@@ -60,15 +58,15 @@ $(".currentlisteners").text("Current listeners: " + sd[13].textContent); });