mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
link player-page from program
This commit is contained in:
parent
63ec39cfe0
commit
2aa691a677
5 changed files with 14 additions and 3 deletions
|
@ -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
|
@ -701,6 +701,10 @@ a.inverted {
|
|||
color: $gray-lighter;
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
&.event h3 {
|
||||
height: 48px;
|
||||
overflow: hidden;
|
||||
|
|
|
@ -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'));
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue