cms/resources/views/blocks/media.blade.php
Funky Waddle 37ed997989 feat(cms): initialize Laravel project structure and core CMS files
- Added standard Laravel directory structure and configuration.

- Included Svelte and Tailwind configuration for the admin interface.

- Added core PHPUnit and testing scripts.
2026-04-13 12:48:06 -05:00

19 lines
544 B
PHP

<div class="block-media">
@if(isset($media_id))
<figure>
{!! sw_media($media_id, [
'w' => $w ?? 1200,
'h' => $h ?? null,
'fit' => $fit ?? 'contain',
'q' => $q ?? 85,
'fp-x' => $fp_x ?? 0.5,
'fp-y' => $fp_y ?? 0.5,
'alt' => $alt ?? ''
]) !!}
@if(isset($text) && !empty($text))
<figcaption>{{ $text }}</figcaption>
@endif
</figure>
@endif
</div>