aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2016-12-18 13:34:57 +0100
committerMaZderMind2016-12-18 13:34:57 +0100
commita12d86ec058bc89e6feeda6ec8cfce691269b0a9 (patch)
tree6be1f764a8addd025eb774bcd2039788a4b1873f /template
parent521f0e2e1c94538fdce65a021144180f368364d9 (diff)
parentefd0b59f8ed363e12211894d8892e4d18b198c04 (diff)
Merge branch 'master' into events/33c3
Diffstat (limited to 'template')
-rw-r--r--template/allclosed.phtml37
-rw-r--r--template/allconferences.phtml6
-rw-r--r--template/assemblies/embed-form.phtml4
-rw-r--r--template/assemblies/feedback.phtml4
-rw-r--r--template/assemblies/header.phtml4
-rw-r--r--template/assemblies/schedule.phtml2
-rw-r--r--template/feedback-read.phtml2
-rw-r--r--template/overview.phtml5
-rw-r--r--template/page.phtml2
9 files changed, 22 insertions, 44 deletions
diff --git a/template/allclosed.phtml b/template/allclosed.phtml
index 4d4ff38..e01aa3b 100644
--- a/template/allclosed.phtml
+++ b/template/allclosed.phtml
@@ -1,34 +1,11 @@
-<div class="container about">
- <? include("$assemblies/countdown.phtml") ?>
+<? if($last): ?>
- <? if($last): ?>
+ <? $conference = $last; include('closed.phtml'); ?>
- <div class="well">
- <? // FIXME when $last would be a Conference object, this code could be shared with clodes.phtml ?>
- <h1><?=h($last['title'])?> is over!</h1>
+<? else: ?>
- <? if($last['releases']): ?>
- Recordings will be released at <a href="<?=h($last['releases'])?>"><?=h($last['releases'])?></a>.
- <? endif ?>
+ <p>
+ You can watch most of our Recordings at <a href="https://media.ccc.de/">media.ccc.de</a>.
+ </p>
- <? if($last['relive']): ?>
- <? if($last['releases']): ?>
- Until all recordings are released, <a href="<?=h($last['relive'])?>">ReLive</a> remains available.
- <? else: ?>
- You can still watch stream dumps <a href="<?=h($last['relive'])?>">here</a>.
- <? endif ?>
- <? endif ?>
- </div>
-
- <? else: ?>
-
- <p>
- You can watch most of our Recordings at <a href="<?=h($conference->getReleasesUrl())?>"><?=h($conference->getReleasesUrl())?></a>.
- </p>
-
- <? endif ?>
-
- <br><br><br>
-
- <? include("$assemblies/upcoming.phtml") ?>
-</div>
+<? endif ?>
diff --git a/template/allconferences.phtml b/template/allconferences.phtml
index e1fb5e3..bee21d7 100644
--- a/template/allconferences.phtml
+++ b/template/allconferences.phtml
@@ -6,7 +6,7 @@
<div class="row clearfix">
<? $count = count($conferences) ?>
- <? foreach($conferences as $idx => $info): ?>
+ <? foreach($conferences as $idx => $conference): ?>
<?
// when we have more then 3 conferences, all but the last 3 will be displayed with 1/3 width
if($count - $idx <= ($count % 3))
@@ -24,8 +24,8 @@
">
<div class="panel panel-default">
<div class="panel-body">
- <a href="<?=h($info['link'])?>"><?=h($info['title'])?></a>
- <p><?=h($info['description'])?></p>
+ <a href="<?=h($conference->getLink())?>"><?=h($conference->getTitle())?></a>
+ <p><?=h($conference->getDescription())?></p>
</div>
</div>
</div>
diff --git a/template/assemblies/embed-form.phtml b/template/assemblies/embed-form.phtml
index 424d63a..721d886 100644
--- a/template/assemblies/embed-form.phtml
+++ b/template/assemblies/embed-form.phtml
@@ -10,11 +10,11 @@
<select id="size" class="form-control">
<option value="512,288">512×288</option>
<option value="800,450">800×450</option>
- <option <? if($stream->getSelection() == 'sd'): ?>selected<? endif ?> value="1024,576">1024×576</option>
+ <option selected value="1024,576">1024×576</option>
<? if($stream->getSelection() == 'hd'): ?>
<option value="1280,720">1280×720</option>
- <option selected value="1920,1080">1920×1080</option>
+ <option value="1920,1080">1920×1080</option>
<? endif ?>
</select>
diff --git a/template/assemblies/feedback.phtml b/template/assemblies/feedback.phtml
index a33cc31..6df80cc 100644
--- a/template/assemblies/feedback.phtml
+++ b/template/assemblies/feedback.phtml
@@ -1,4 +1,4 @@
-<form action="feedback/" target="feedback-target" method="post" role="form" class="feedback-form">
+<form action="<?=h($conference->getFeedbackURl())?>" target="feedback-target" method="post" role="form" class="feedback-form">
<div class="col-sm-4 col">
<div class="form-group">
<label for="net">Network Connection</label>
@@ -52,7 +52,7 @@
<label for="stream">Stream</label>
<select class="form-control" name="stream" id="stream">
<option></option>
- <? foreach(Room::rooms() as $roomiter): ?>
+ <? foreach($conference->getRooms() as $roomiter): ?>
<? if(!$roomiter->hasFeedback()) continue ?>
<? foreach($roomiter->getSelections() as $selection): ?>
<option
diff --git a/template/assemblies/header.phtml b/template/assemblies/header.phtml
index c4d92e7..6791bfe 100644
--- a/template/assemblies/header.phtml
+++ b/template/assemblies/header.phtml
@@ -15,8 +15,8 @@
</a>
<? endif ?>
- <? if(!$conference->hasEnded() && isset($feedback) && $feedback->isEnabled()): ?>
- <a class="form-control btn btn-default feedback" title="Feedback" href="<?=h($feedback->getUrl())?>">
+ <? if(!$conference->hasEnded() && $conference->hasFeedback()): ?>
+ <a class="form-control btn btn-default feedback" title="Feedback" href="<?=h($conference->getFeedbackUrl())?>">
<span class="fa fa-bullhorn"></span>
</a>
<? endif ?>
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index b804196..90ec1b9 100644
--- a/template/assemblies/schedule.phtml
+++ b/template/assemblies/schedule.phtml
@@ -13,7 +13,7 @@
data-end="<?=intval($event['end'])?>"
>
<? $fromstart += $event['duration'] ?>
- <? $scheduleRoom = Room::createIfExists($roomname) ?>
+ <? $scheduleRoom = $conference->getRoomIfExists($roomname) ?>
<? if($scheduleRoom): ?>
<a
class="inner"
diff --git a/template/feedback-read.phtml b/template/feedback-read.phtml
index 0c42d37..8dc9cc7 100644
--- a/template/feedback-read.phtml
+++ b/template/feedback-read.phtml
@@ -1,6 +1,6 @@
<div class="container">
<h1><?=h($title)?></h1>
- <form action="feedback/read/" method="POST">
+ <form action="<?=h($conference->getFeedbackReadUrl())?>" method="POST">
<div class="row">
<div class="col-xs-12">
diff --git a/template/overview.phtml b/template/overview.phtml
index c23320e..39cca02 100644
--- a/template/overview.phtml
+++ b/template/overview.phtml
@@ -78,15 +78,16 @@
</a>
<? if($room->hasSchedule()): ?>
+ <? $upcoming = @$upcomingTalksPerRoom[ $room->getScheduleName() ] ?: [] ?>
<div class="program-schedule">
<div class="talk current-talk">
<strong>Now:</strong>
- <span class="t">none</span>
+ <span class="t"><?=h(@$upcoming['current']['title'] ?: 'none') ?></span>
</div>
<div class="talk next-talk">
<strong>Next Talk:</strong>
- <span class="t">none</span>
+ <span class="t"><?=h(@$upcoming['next']['title'] ?: 'none') ?></span>
</div>
</div>
<? endif ?>
diff --git a/template/page.phtml b/template/page.phtml
index b62f372..b3bad81 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -47,7 +47,7 @@
<link href="<?=h($assets)?>img/favicon.png" rel="icon" type="image/png" />
<link type="text/css" rel="stylesheet" href="<?=h($assets)?>mejs/mediaelementplayer.min.css" />
- <link type="text/css" rel="stylesheet" href="gen/main.css" />
+ <link type="text/css" rel="stylesheet" href="<?=h($conference_assets)?>gen/main.css" />
<script type="text/javascript" src="<?=h($assets)?>js/lib/jquery.min.js"></script>
<script type="text/javascript" src="<?=h($assets)?>js/lib/jquery.scrollTo.min.js"></script>