Podcastpagina

This commit is contained in:
2021-08-18 22:53:10 +02:00
parent 1ccce9e9d2
commit 63eb54f609
5 changed files with 166 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<ul class='blog row grid'>
@foreach($podcasts as $podcast)
<?php
$url = $podcast->url;
$popoutUrl = route('luister.podcast') . $podcast->url . '?auth=' . $podcast->auth;
?>
<li class="post card column column_1_1">
<div class="post_content">
<h2><a href="{{$url}}" title="{{$podcast->title}}">{!!$podcast->titleWithoutProgram()!!}</a></h2>
<ul class="post_details">
<li class="date">
{{ Formatter::relativeDate($podcast->created) }}
</li>
</ul>
<div class="clearfix"></div>
@if($podcast->image)
<a href="{{$url}}" title="{{$podcast->title}}" class="fixed-height">
<img src='{{$imgBase . $podcast->image->url}}' alt='{{$podcast->image->title}}'>
</a>
@endif
<p>{!! $podcast->content !!}</p>
<a class="action_button player" href="{{$popoutUrl}}">
<span class="fa fa-external-link-alt"></span>
<span>Luister in nieuw venster</span>
</a>
<span class="clearfix"></span>
</div>
</li>
@endforeach
</ul><!--/.row-->