Add (post manage)

Add (post country viewing)
This commit is contained in:
2023-07-28 02:29:11 +08:00
parent e70195f4f7
commit ded1643e5f
49 changed files with 4484 additions and 3844 deletions

View File

@@ -0,0 +1,21 @@
@php
$classes = '';
if ($data['stretched']) {
$classes .= ' image--stretched';
}
if ($data['withBorder']) {
$classes .= ' image--bordered';
}
if ($data['withBackground']) {
$classes .= ' image--backgrounded';
}
@endphp
<figure class="image {{ $classes }}">
<img src="{{ $data['file']['url'] }}" alt="{{ $data['caption'] ?: '' }}">
@if (!empty($data['caption']))
<footer class="image-caption">
{{ $data['caption'] }}
</footer>
@endif
</figure>