link player-page from program

This commit is contained in:
MaZderMind 2014-12-13 13:41:21 +01:00
parent 63ec39cfe0
commit 2aa691a677
5 changed files with 14 additions and 3 deletions

View file

@ -5779,6 +5779,8 @@ a.inverted {
.program .block h4 {
margin: 3px 0;
color: #eeeeee; }
.program .block a {
color: white; }
.program .block.event h3 {
height: 48px;
overflow: hidden; }

File diff suppressed because one or more lines are too long

View file

@ -701,6 +701,10 @@ a.inverted {
color: $gray-lighter;
}
a {
color: white;
}
&.event h3 {
height: 48px;
overflow: hidden;

View file

@ -12,7 +12,7 @@ function link_room($room)
return rawurlencode($room).'/';
}
function link_player($room, $format, $translated = false)
function link_player($room, $format = 'sd', $translated = false)
{
$isDefaultFormat = in_array($format, array('sd', 'video'));

View file

@ -37,7 +37,12 @@ foreach(reset($program) as $event)
 in 
<?=h($GLOBALS['CONFIG']['ROOMS'][$name])?>
</h4>
<h3><?=h($event['title'])?></h3>
<h3>
<a
href="<?=h(link_player($name))?>"
title="Switch to <?=h($GLOBALS['CONFIG']['ROOMS'][$name])?>"
><?=h($event['title'])?></a>
</h3>
<? endif ?>
</div>