1
0
cms11/resources/views/article-card.blade.php
2024-04-26 17:32:59 +02:00

27 lines
758 B
PHP

<a class="article-card-link" href="{{ $bundle->getPath() }}">
<article class="article-card">
@if (!empty($cover))
{!! $cover !!}
@endif
@if(!empty($mainLink) && $mainLink['isDead'])
<div class="ribbon dead" title="{{ $mainLink['reason'] }}">
Lien mort depuis le {{ Carbon\Carbon::parse($mainLink['checked'])->format('d/m/Y') }}
</div>
@endif
<h2>{!! $bundle->getArticleTitle() !!}
@if (!empty($bundle->metadata()->get('subTitle')))
<small>{{ $bundle->metadata()->get('subTitle') }}</small>
@endif</h2>
<section class="article-card-body">
@if (!empty($date))
<p><time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time></p>
@endif
@if (!empty($section))
<p>{!! $section->getArticleTitle() !!}</p>
@endif
</section>
</article>
</a>