aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-12-09 21:46:46 +0100
committerMaZderMind2015-12-09 21:46:46 +0100
commit50c5c14865b7cbc9b9dc4bd5df01b4d71f77d5ae (patch)
tree87fa89c01c90a023a4ae21ee2b64eafb82b689e4
parent13bcfcd6f0b7c13bdbd60d928099b0d42d4ca6c6 (diff)
Rename 'Music' to 'Radio' on all public places
-rw-r--r--model/RoomSelection.php3
-rw-r--r--model/RoomTab.php10
-rw-r--r--model/Stream.php4
-rw-r--r--template/assemblies/switcher/music.phtml2
4 files changed, 17 insertions, 2 deletions
diff --git a/model/RoomSelection.php b/model/RoomSelection.php
index c163321..9f0b16d 100644
--- a/model/RoomSelection.php
+++ b/model/RoomSelection.php
@@ -40,6 +40,9 @@ class RoomSelection
case 'hd':
return strtoupper($this->getSelection());
+ case 'music':
+ return 'Radio';
+
default:
return ucfirst($this->getSelection());
}
diff --git a/model/RoomTab.php b/model/RoomTab.php
index d4f781b..f0338d2 100644
--- a/model/RoomTab.php
+++ b/model/RoomTab.php
@@ -29,6 +29,14 @@ class RoomTab
public function getDisplay()
{
- return ucfirst($this->getTab());
+ $tab = $this->getTab();
+ switch($tab)
+ {
+ case 'music':
+ return 'Radio';
+
+ default:
+ return ucfirst($tab);
+ }
}
}
diff --git a/model/Stream.php b/model/Stream.php
index f9488a0..d2baa28 100644
--- a/model/Stream.php
+++ b/model/Stream.php
@@ -88,6 +88,10 @@ class Stream
$display .= 'SD Video';
break;
+ case 'music':
+ $display .= 'Radio';
+ break;
+
default:
$display .= ucfirst($this->getSelection());
break;
diff --git a/template/assemblies/switcher/music.phtml b/template/assemblies/switcher/music.phtml
index 2767fe8..9c96f83 100644
--- a/template/assemblies/switcher/music.phtml
+++ b/template/assemblies/switcher/music.phtml
@@ -10,7 +10,7 @@
<a href="<?=h($switcherstream->getMusicUrl($proto))?>" class="btn btn-default">
<span class="fa fa-music"></span>
- live music
+ live radio
</a>
</div>