- Added standard Laravel directory structure and configuration. - Included Svelte and Tailwind configuration for the admin interface. - Added core PHPUnit and testing scripts.
19 lines
544 B
PHP
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>
|