Changes before go-live
This commit is contained in:
@@ -78,11 +78,13 @@ class RadioController extends Controller
|
|||||||
public function terugluisteren(Request $request)
|
public function terugluisteren(Request $request)
|
||||||
{
|
{
|
||||||
$programs = [];
|
$programs = [];
|
||||||
|
$now = new \DateTimeImmutable('2 minutes ago');
|
||||||
$apiResult = $this->API('programma/schema/recent');
|
$apiResult = $this->API('programma/schema/recent');
|
||||||
foreach($apiResult->schedule as $item) {
|
foreach($apiResult->schedule as $item) {
|
||||||
if(!$item->program->nonstop && !$item->program->rerun) {
|
if(!$item->program->nonstop && !$item->program->rerun) {
|
||||||
$item->start = self::JsonToDateTime($item->start);
|
$item->start = self::JsonToDateTime($item->start);
|
||||||
$item->end = self::JsonToDateTime($item->end);
|
$item->end = self::JsonToDateTime($item->end);
|
||||||
|
$item->current = $item->end >= $now;
|
||||||
$item->program = new \Model\Program($item->program);
|
$item->program = new \Model\Program($item->program);
|
||||||
$programs[] = $item;
|
$programs[] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
4
website/public/css/nhgooi.css
vendored
4
website/public/css/nhgooi.css
vendored
@@ -351,6 +351,10 @@ button[disabled]:hover
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mega_menu a.fixed-height {
|
||||||
|
height: 135px;
|
||||||
|
}
|
||||||
|
|
||||||
a.fixed-height {
|
a.fixed-height {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -50,6 +50,9 @@
|
|||||||
<li class="post card column column_1_2">
|
<li class="post card column column_1_2">
|
||||||
<div class="post_content">
|
<div class="post_content">
|
||||||
<h2><a href="{{$url}}" title="{{$program->program->name}}">{!!$program->program->name!!}</a></h2>
|
<h2><a href="{{$url}}" title="{{$program->program->name}}">{!!$program->program->name!!}</a></h2>
|
||||||
|
@if($program->current)
|
||||||
|
<a href="{{route('luister.live')}}" class="onair action_button player"><span class="fa"></span> <span>Nu live!</span></a>
|
||||||
|
@else
|
||||||
<ul class="post_details" style="margin-top: 0;">
|
<ul class="post_details" style="margin-top: 0;">
|
||||||
<li class="date">
|
<li class="date">
|
||||||
{{ Formatter::relativeDate($program->start) }}
|
{{ Formatter::relativeDate($program->start) }}
|
||||||
@@ -57,6 +60,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a href="{{route('luister.programma') . '/' . $program->start->format('Y/m/d/H') . '/' . $duration}}" class="action_button player"><span class="fa fa-play"></span> <span>Luister terug</span></a>
|
<a href="{{route('luister.programma') . '/' . $program->start->format('Y/m/d/H') . '/' . $duration}}" class="action_button player"><span class="fa fa-play"></span> <span>Luister terug</span></a>
|
||||||
|
@endif
|
||||||
<a href="{{route('programma') . $program->program->url}}" class="action_button"><span class="fa fa-question"></span> <span>Meer informatie</span></a>
|
<a href="{{route('programma') . $program->program->url}}" class="action_button"><span class="fa fa-question"></span> <span>Meer informatie</span></a>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<p>{!! Formatter::excerpt($program->program->description, 200) !!}</p>
|
<p>{!! Formatter::excerpt($program->program->description, 200) !!}</p>
|
||||||
@@ -75,10 +79,23 @@
|
|||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script type="text/javascript">
|
||||||
|
var $onAirIcon = $('#items .onair span.fa');
|
||||||
|
setInterval(function() {
|
||||||
|
$onAirIcon.removeClass('fa-play');
|
||||||
|
setTimeout(function() {
|
||||||
|
$onAirIcon.addClass('fa-play');
|
||||||
|
}, 500);
|
||||||
|
}, 1000);
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
||||||
@push('styles')
|
@push('styles')
|
||||||
<style>
|
<style>
|
||||||
#gemist_tabs li {
|
#gemist_tabs li {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@endpush
|
@endpush
|
||||||
|
|||||||
@@ -1,20 +1,27 @@
|
|||||||
@push('scripts')
|
<?php
|
||||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/mediaelement-and-player.min.js"></script>
|
if(!isset($MEDIAPLAYER_INCLUDED)):
|
||||||
<script type="text/javascript">
|
// Make sure mediaplayer JS is not applied more than once on a page.
|
||||||
var pluginPath = 'https://cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/';
|
View::share('MEDIAPLAYER_INCLUDED', true);
|
||||||
$("audio").mediaelementplayer({
|
?>
|
||||||
pluginPath: pluginPath,
|
@push('scripts')
|
||||||
stretching: 'responsive',
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/mediaelement-and-player.min.js"></script>
|
||||||
});
|
<script type="text/javascript">
|
||||||
$("video").mediaelementplayer({
|
var pluginPath = 'https://cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/';
|
||||||
pluginPath: pluginPath,
|
$("audio").mediaelementplayer({
|
||||||
videoWidth: '100%',
|
pluginPath: pluginPath,
|
||||||
videoHeight: '100%',
|
stretching: 'responsive',
|
||||||
enableAutosize: true,
|
});
|
||||||
});
|
$("video").mediaelementplayer({
|
||||||
</script>
|
pluginPath: pluginPath,
|
||||||
@endpush
|
videoWidth: '100%',
|
||||||
|
videoHeight: '100%',
|
||||||
|
enableAutosize: true,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
||||||
@push('styles')
|
@push('styles')
|
||||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/mediaelementplayer.css" />
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.7/mediaelementplayer.css" />
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ function buildMenu($menu, $ismobile) {
|
|||||||
@if($loop->index >= 3) @break @endif
|
@if($loop->index >= 3) @break @endif
|
||||||
<li class="post">
|
<li class="post">
|
||||||
@if($item->image)
|
@if($item->image)
|
||||||
<a href="{{route('gemist.fragment') . $item->url}}" title="{{$item->title}}">
|
<a href="{{route('gemist.fragment') . $item->url}}" title="{{$item->title}}" class="fixed-height">
|
||||||
<img src='{{$imgBase . $item->image->url}}' alt='{{$item->title}}'>
|
<img src='{{$imgBase . $item->image->url}}' alt='{{$item->title}}'>
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user