1
0
cms11/resources/views/article.blade.php

64 lines
2.0 KiB
PHP
Raw Normal View History

@extends('layouts.main')
@section('main')
<article id="article-main">
<header>
@if (empty($bundle->metadata()->get('hide_title')))
<h1>{{ $articleTitle }}</h1>
@endif
2024-04-24 13:55:08 +02:00
@if(!empty($mainLink))
<p><a
href="{!! $mainLink['finalUrl'] !!}"
rel="{!! $mainLink['rel'] !!}"
class="{!! $mainLink['classes'] !!}"
title="{!! $mainLink['title'] !!}">{!! $mainLink['url'] !!}</a></p>
@endif
@if (!empty($date))
<time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time>
@endif
2024-04-25 18:04:59 +02:00
@if (!empty($bundle->metadata()->get('coauthor')))
<p><small>Article coécrit avec {{ $bundle->metadata()->get('coauthor.0.name') }}</small></p>
@endif
@if (!empty($cover))
{!! $cover !!}
@endif
</header>
@if (!empty($body) || (isset($showToc) && $showToc))
<section id="article-body">
@if(isset($showToc) && $showToc)
2024-04-25 00:57:06 +02:00
<details class="drop down">
<summary>Sommaire</summary>
<nav>
@include('components.table-of-contents', ['toc' => $dossier->getDirectChildren()])
</nav>
</details>
@endif
{!! $body !!}
2024-04-25 00:57:06 +02:00
@if(isset($showToc) && $showToc)
2024-04-25 00:57:06 +02:00
<details class="drop up">
<summary>Sommaire</summary>
<nav>
@include('components.table-of-contents', ['toc' => $dossier->getDirectChildren()])
</nav>
</details>
@endif
</section>
@endif
2024-04-25 18:04:59 +02:00
<footer>
@dump($bundle->virtualMetadata()->all())
</footer>
</article>
@if (!empty($pagination['items']))
<x-pagination :data="$pagination" />
@endif
@endsection