mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 14:44:21 +00:00
Merge branch 'staging'
# Conflicts: # configs/conferences/rc3/config.php
This commit is contained in:
commit
9014cc16e2
2 changed files with 30 additions and 16 deletions
|
@ -235,7 +235,7 @@ $CONFIG['ROOMS'] = array(
|
||||||
* in $CONFIG['OVERVIEW'] oder im Feedback verwendet wird.
|
* in $CONFIG['OVERVIEW'] oder im Feedback verwendet wird.
|
||||||
*/
|
*/
|
||||||
'c3lounge' => array(
|
'c3lounge' => array(
|
||||||
'DISPLAY' => 'Lounge',
|
'DISPLAY' => 'rC3 Lounge',
|
||||||
'DISPLAY_SHORT' => 'Lounge',
|
'DISPLAY_SHORT' => 'Lounge',
|
||||||
'WIDE' => true,
|
'WIDE' => true,
|
||||||
|
|
||||||
|
@ -672,8 +672,8 @@ $CONFIG['ROOMS'] = array(
|
||||||
),
|
),
|
||||||
|
|
||||||
'gehacktesfromhell' => array(
|
'gehacktesfromhell' => array(
|
||||||
'DISPLAY' => 'Gehacktes from Hell',
|
'DISPLAY' => 'Gehacktes from Hell / Bierscheune',
|
||||||
'DISPLAY_SHORT' => 'gehacktesfromhell',
|
'DISPLAY_SHORT' => 'Hell',
|
||||||
'STREAM' => 'gehacktes',
|
'STREAM' => 'gehacktes',
|
||||||
'PREVIEW' => true,
|
'PREVIEW' => true,
|
||||||
'TRANSLATION' => [
|
'TRANSLATION' => [
|
||||||
|
@ -708,7 +708,7 @@ $CONFIG['ROOMS'] = array(
|
||||||
),
|
),
|
||||||
|
|
||||||
'xhain' => array(
|
'xhain' => array(
|
||||||
'DISPLAY' => 'xHain',
|
'DISPLAY' => 'xHain Lichtung',
|
||||||
'DISPLAY_SHORT' => 'xHain',
|
'DISPLAY_SHORT' => 'xHain',
|
||||||
'STREAM' => 'xhain',
|
'STREAM' => 'xhain',
|
||||||
'PREVIEW' => true,
|
'PREVIEW' => true,
|
||||||
|
|
|
@ -11,9 +11,19 @@
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
<div class="row room-group room-group-n<?=h($i++)?> room-group-<?=h(slugify($group))?>">
|
<div class="row room-group room-group-n<?=h($i++)?> room-group-<?=h(slugify($group))?>">
|
||||||
|
|
||||||
<? $count = count($rooms); $idx = 0 ?>
|
<?
|
||||||
<? foreach($rooms as $room): ?>
|
$count = count($rooms);
|
||||||
<?
|
$idx = 0;
|
||||||
|
usort($rooms, function ($a, $b) {
|
||||||
|
global $upcomingTalksPerRoom;
|
||||||
|
return (
|
||||||
|
$upcomingTalksPerRoom[ $a->getSlug() ]['next']['start']
|
||||||
|
<=>
|
||||||
|
$upcomingTalksPerRoom[ $b->getSlug() ]['next']['start']
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
foreach($rooms as $room):
|
||||||
$is_wide = 0;
|
$is_wide = 0;
|
||||||
/* when the count is odd and this is the last item - make it full width */
|
/* when the count is odd and this is the last item - make it full width */
|
||||||
if (($count % 2 == 1) && ($idx == $count - 1)) {
|
if (($count % 2 == 1) && ($idx == $count - 1)) {
|
||||||
|
@ -77,18 +87,22 @@
|
||||||
|
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
|
|
||||||
<? if($room->hasSchedule()): ?>
|
<? if($room->hasSchedule()):
|
||||||
<? $upcoming = @$upcomingTalksPerRoom[ $room->getSlug() ] ?: [] ?>
|
$upcoming = @$upcomingTalksPerRoom[ $room->getSlug() ] ?: [];
|
||||||
|
$current = @$upcoming['current'];
|
||||||
|
$next = @$upcoming['next']; ?>
|
||||||
<div class="program-schedule">
|
<div class="program-schedule">
|
||||||
<div class="talk current-talk" title="<?=h(@$upcoming['current']['title'] ?: 'none') ?>">
|
<? if($current['title']): ?>
|
||||||
<strong>Now (since <?=date('G:i', @$upcoming['current']['start']) ?>):</strong><br/>
|
<div class="talk current-talk" title="<?=h(@$current['title'] ?: 'none') ?>">
|
||||||
<span class="t"><?=h(@$upcoming['current']['title'] ?: 'none') ?></span>
|
<strong>Now (since <?=date('G:i', @$upcoming['start']) ?>):</strong><br/>
|
||||||
|
<span class="t"><?=h(@$upcoming['title'] ?: 'none') ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
<? endif; if($next['title']): ?>
|
||||||
<div class="talk next-talk" title="<?=h(@$upcoming['next']['title'] ?: 'none') ?>">
|
<div class="talk next-talk" title="<?=h(@$next['title'] ?: 'none') ?>">
|
||||||
<strong>Next Talk (<?=date('G:i', @$upcoming['next']['start']) ?>):</strong><br/>
|
<strong>Next Talk (<?=date('G:i', @$next['start']) ?>):</strong><br/>
|
||||||
<span class="t"><?=h(@$upcoming['next']['title'] ?: 'none') ?></span>
|
<span class="t"><?=h(@$next['title'] ?: 'none') ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
<? endif ?>
|
||||||
</div>
|
</div>
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue