Lees ook... alleen laten zien als het naar loakle artikelen verwijst
This commit is contained in:
@@ -107,13 +107,14 @@
|
|||||||
@elseif($block->type == "podcast" && $block->id == $news->podcast?->id)
|
@elseif($block->type == "podcast" && $block->id == $news->podcast?->id)
|
||||||
@include('widgets/podcastplayer', ['podcast' => $news->podcast])
|
@include('widgets/podcastplayer', ['podcast' => $news->podcast])
|
||||||
<? $news->podcast = null; // Avoid adding the player again ?>
|
<? $news->podcast = null; // Avoid adding the player again ?>
|
||||||
@elseif($block->type == 'article' && count($block->articles))
|
@elseif($block->type == 'article' && count($block->articles) && $block->articles[0]->published)
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4 class="box_header"><span>{{ $block->title }}</span></h4>
|
<h4 class="box_header"><span>{{ $block->title }}</span></h4>
|
||||||
<div class="box full-width">
|
<div class="box full-width">
|
||||||
<ul id="items-more-news" class="blog">
|
<ul id="items-more-news" class="blog">
|
||||||
@foreach($block->articles as $article)
|
@foreach($block->articles as $article)
|
||||||
<? $article->published = new \DateTime($article->published) ?>
|
<? if(!isset($article->published)) continue;
|
||||||
|
$article->published = new \DateTime($article->published); ?>
|
||||||
<li class="post">
|
<li class="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@if($article->image)
|
@if($article->image)
|
||||||
|
|||||||
Reference in New Issue
Block a user