Fragment gemist bijna af
This commit is contained in:
38
website/resources/views/podcastitems.blade.php
Normal file
38
website/resources/views/podcastitems.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@php($i = 0)
|
||||
@foreach($podcasts as $podcast)
|
||||
@if($i % 2 == 0)
|
||||
@if($i > 0) </ul><!--/.row--> @endif
|
||||
<ul class='blog row grid'>
|
||||
@endif
|
||||
<?php $url = url('radio/gemist/fragment/' . $podcast->url); ?>
|
||||
<li class="post column column_1_2">
|
||||
<div class="post_content">
|
||||
<h2><a href="{{$url}}" title="{{$podcast->title}}">{!!$podcast->title!!}</a></h2>
|
||||
<ul class="post_details">
|
||||
@if($podcast->program)
|
||||
<li class="category">
|
||||
<a href="{{ url('radio/programma' . $podcast->program->url ) }}" title="{{$podcast->program->name}}">{{$podcast->program->name}}</a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="date">
|
||||
{{ Formatter::relativeDate($podcast->created) }}
|
||||
</li>
|
||||
</ul>
|
||||
@if($podcast->image)
|
||||
<p>
|
||||
<a href="{{$url}}" title="{{$podcast->title}}">
|
||||
<img src='//nhgooi.nl/{{$podcast->image->url}}' alt='{{$podcast->image->title}}'>
|
||||
</a>
|
||||
</p>
|
||||
@endif
|
||||
<p>{!! Formatter::excerpt($podcast->content, 200) !!}</p>
|
||||
<a class="read_more" href="{{url('radio/gemist/fragment/' . $podcast->url)}}" title="Luister fragment"><span class="arrow"></span><span>Luister fragment</span></a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@php($i++)
|
||||
@endforeach
|
||||
|
||||
@if($i)
|
||||
</ul><!--/.row-->
|
||||
@endif
|
||||
Reference in New Issue
Block a user