forked from leftypol/leftypol
Make slack report notifier, donate page, irc page and radio page use configuration variables instead of hard coding values.
This commit is contained in:
parent
c58e37ce39
commit
03075e7a8c
10 changed files with 242 additions and 228 deletions
|
@ -17,7 +17,12 @@ $theme = array(
|
|||
array('title' => 'File',
|
||||
'name' => 'file',
|
||||
'type' => 'text',
|
||||
'default' => 'radio.html')),
|
||||
'default' => 'radio.html'),
|
||||
|
||||
array('title' => 'Radio Status URL',
|
||||
'name' => 'radiostatus',
|
||||
'type' => 'text',
|
||||
'default' => '/radio_assets/status.xsl')),
|
||||
|
||||
'build_function' => 'radio_build');
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -16,7 +16,7 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
function check_status(){
|
||||
$.get("/radio_assets/status.xsl", function(data){
|
||||
$.get("{{ settings.radiostatus }}", function(data){
|
||||
var el = $( '<div></div>' );
|
||||
el.html(data);
|
||||
var sd = el.find(".streamdata");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue