Stream gemeenteraad, kanalen, footers, bug fix zoeken

This commit is contained in:
2020-02-20 15:42:51 +01:00
parent 9baa4a8556
commit 0582de5bb0
9 changed files with 28 additions and 8 deletions

View File

@@ -52,8 +52,10 @@ class Controller extends BaseController
$program->end = new \DateTimeImmutable($item_data->end->date, new \DateTimeZone($item_data->end->timezone)); $program->end = new \DateTimeImmutable($item_data->end->date, new \DateTimeZone($item_data->end->timezone));
} }
$now = new \DateTimeImmutable(); // Need a bit of slack here, otherwise the current program may show up
$now = new \DateTimeImmutable('2 minutes ago');
$data = json_decode(Storage::disk('local')->get('zojuist.json'))->schedule; $data = json_decode(Storage::disk('local')->get('zojuist.json'))->schedule;
$i = 0;
foreach(array_reverse($data) as $item_data) foreach(array_reverse($data) as $item_data)
{ {
$recent = $program = new \Model\Program($item_data->program); $recent = $program = new \Model\Program($item_data->program);

View File

@@ -297,6 +297,12 @@ button[disabled]:hover
background-color: #03A6E0; background-color: #03A6E0;
} }
.row.grid .card .post_content {
padding: 4px;
border: solid 1px #03A6E022;
border-radius: 8px;
}
.row.grid .column { .row.grid .column {
margin: 0px; margin: 0px;
margin-top: 10px; margin-top: 10px;

View File

@@ -7,12 +7,17 @@
@section('content') @section('content')
<h2 class="page_margin_top">NH Gooi Radio</h2> <h2 class="page_margin_top">NH Gooi Radio</h2>
<p>NH Gooi Radio hoor je in heel Gooi en Eemland op FM:</p> <p>NH Gooi Radio hoor je in heel Gooi en Eemland op FM:
<ul class="list no_border spacing"> <ul class="list no_border spacing">
<li class="bullet style_2">Huizen, BEL-gemeenten: <b>92.0 FM</b> of <b>105.1 FM</b></li> <li class="bullet style_2">Huizen, BEL-gemeenten: <b>92.0 FM</b> of <b>105.1 FM</b></li>
<li class="bullet style_2">Hilversum: <b>106.2 FM</b></li> <li class="bullet style_2">Hilversum: <b>106.2 FM</b></li>
</ul> </ul></p>
<p>Of luister via je digitale ontvanger:
<ul class="list no_border spacing">
<li class="bullet style_2">Bij KPN op <b>kanaal 1079</b>.</li>
</ul></p>
<h2 class="page_margin_top">NH Gooi TV</h2> <h2 class="page_margin_top">NH Gooi TV</h2>
<p>NH Gooi TV zie je op de kabel:</p> <p>NH Gooi TV zie je op de kabel:</p>

View File

@@ -274,8 +274,8 @@
<h4 class="box_header">NH Gooi</h4> <h4 class="box_header">NH Gooi</h4>
<p class="padding_top_bottom_25"> <p class="padding_top_bottom_25">
<b>NH Gooi</b> is de streekomroep voor het Gooi in samenwerking met NH Media. <b>NH Gooi</b> is de streekomroep voor het Gooi in samenwerking met NH Media.
<b>NH Gooi Radio</b> hoor je in heel Gooi en Eemland op 92.0 FM, 105.1 FM en 106.2 FM. NH Gooi Radio hoor je in heel Gooi en Eemland, bijvoorbeeld op 92.0 FM.
<b>NH Gooi TV</b> kijk je op KPN kanaal 1379 of Ziggo kanaal 40. <a href="{{url('frequenties')}}">Meer frequenties?</a> <a href="{{url('frequenties')}}">Alle frequenties / kanalen.</a>
</p> </p>
<div class="row"> <div class="row">
<div class="column column_1_2"> <div class="column column_1_2">

View File

@@ -34,13 +34,17 @@
</a> </a>
<h2><a href="{{url($item->url)}}" title="{{strip_tags($item->title)}}">{!!$item->title!!}</a></h2> <h2><a href="{{url($item->url)}}" title="{{strip_tags($item->title)}}">{!!$item->title!!}</a></h2>
<ul class="post_details"> <ul class="post_details">
@if($item->region)
<li class="category"> <li class="category">
<a title="Regio: {{$item->region->title}}" href="{{route('nieuws.regio', ['id' => $item->region->slug])}}">{{$item->region->title}}</a> <a title="Regio: {{$item->region->title}}" href="{{route('nieuws.regio', ['id' => $item->region->slug])}}">{{$item->region->title}}</a>
</li> </li>
@endif
@if($item->theme)
<li class="category"> <li class="category">
<a title="Thema: {{$item->theme->title}}" href="{{route('nieuws.thema', ['id' => $item->theme->slug])}}">{{$item->theme->title}}</a> <a title="Thema: {{$item->theme->title}}" href="{{route('nieuws.thema', ['id' => $item->theme->slug])}}">{{$item->theme->title}}</a>
</li> </li>
36 @if($item->edited && ($item->edited != $item->published)) @endif
36 @if($item->edited && ($item->edited != $item->published))
<li class="date edited"> <li class="date edited">
Bijgewerkt Bijgewerkt
@if($item->edited->format('d m') != $item->published->format('d m')) @if($item->edited->format('d m') != $item->published->format('d m'))

View File

@@ -5,7 +5,7 @@
<ul class='blog row grid'> <ul class='blog row grid'>
@endif @endif
<?php $url = route('gemist.fragment') . $podcast->url; ?> <?php $url = route('gemist.fragment') . $podcast->url; ?>
<li class="post 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="{{$podcast->title}}">{!!$podcast->titleWithoutProgram()!!}</a></h2> <h2><a href="{{$url}}" title="{{$podcast->title}}">{!!$podcast->titleWithoutProgram()!!}</a></h2>
<ul class="post_details"> <ul class="post_details">
@@ -28,6 +28,7 @@
@endif @endif
<p>{!! Formatter::excerpt($podcast->content, 200) !!}</p> <p>{!! Formatter::excerpt($podcast->content, 200) !!}</p>
<a class="read_more" href="{{route('gemist.fragment') . $podcast->url}}" title="Luister fragment"><span class="arrow"></span><span>Luister fragment</span></a> <a class="read_more" href="{{route('gemist.fragment') . $podcast->url}}" title="Luister fragment"><span class="arrow"></span><span>Luister fragment</span></a>
<span class="clearfix"></span>
</div> </div>
</li> </li>

View File

@@ -47,7 +47,7 @@
@endif @endif
<?php $url = route('programma') . $program->program->url; ?> <?php $url = route('programma') . $program->program->url; ?>
<?php $duration = $program->end->diff($program->start)->h; ?> <?php $duration = $program->end->diff($program->start)->h; ?>
<li class="post 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>
<ul class="post_details" style="margin-top: 0;"> <ul class="post_details" style="margin-top: 0;">

View File

@@ -120,6 +120,7 @@ function buildMenu($menu, $ismobile) {
</a> </a>
<ul class="mega_menu blog"> <ul class="mega_menu blog">
@foreach($podcasts as $item) @foreach($podcasts as $item)
@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}}">

View File

@@ -65,6 +65,7 @@ Route::get('/kerkdienst/luister', 'StreamController@kerkdienst')->name('luister.
Route::get('/contact', 'Controller@view_contact')->name('contact'); Route::get('/contact', 'Controller@view_contact')->name('contact');
Route::get('/frequenties', 'Controller@view_frequenties')->name('frequenties'); Route::get('/frequenties', 'Controller@view_frequenties')->name('frequenties');
Route::get('/adverteren', 'Controller@view_adverteren')->name('adverteren'); Route::get('/adverteren', 'Controller@view_adverteren')->name('adverteren');
Route::get('/test', 'Controller@view_test')->name('test');
//Route::get('/special/stmaarten', function() { return file_get_contents('http://api-dev.6fm.nl/special/stmaarten'); }); //Route::get('/special/stmaarten', function() { return file_get_contents('http://api-dev.6fm.nl/special/stmaarten'); });
//Route::get('/kabelkrant', function() { return view('kabelkrant'); }); //Route::get('/kabelkrant', function() { return view('kabelkrant'); });