1
0
cms11/resources/views/components/image.blade.php

20 lines
814 B
PHP

<figure>
<a href="{{ $originalUrl }}" title="Voir l'image à taille réelle">
<img src="{{ $variantUrl }}" @if (!empty($class)) class="{{ $class }}" @endif />
</a>
@if (!empty($originalData['title']) || !empty($originalData['prompt']) || !empty($originalData['attribution']))
<figcaption>
@if (!empty($originalData['prompt']))
{!! (new \App\Services\Markdown\Formatter($originalData['prompt']))->render() !!}
@endif
@if (!empty($originalData['title']))
{!! (new \App\Services\Markdown\Formatter($originalData['title']))->render() !!}
@endif
@if (!empty($originalData['attribution']))
{!! (new \App\Services\Markdown\Formatter($originalData['attribution']))->render() !!}
@endif
</figcaption>
@endif
</figure>