NASER add task functions
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<figure class="attachment attachment--content">
|
||||
{!! trim($content->renderTrixContentAttachment($options)) !!}
|
||||
</figure>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="not-prose attachment-gallery attachment-gallery--{{ count($attachables) }}">
|
||||
@foreach ($attachables as $attachable)
|
||||
@include('rich-text-laravel::attachables._remote_image', [
|
||||
'remoteImage' => $attachable,
|
||||
'gallery' => true
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
+1
@@ -0,0 +1 @@
|
||||
<span>⊠</span>
|
||||
@@ -0,0 +1,11 @@
|
||||
<figure class="not-prose attachment attachment--file attachment--{{ $remoteFile->extension() }}">
|
||||
<figcaption class="attachment__caption">
|
||||
@if ($remoteFile->caption)
|
||||
{{ $remoteFile->caption }}
|
||||
@else
|
||||
<span class="attachment__name">{{ $remoteFile->filename }}</span>
|
||||
<span class="attachment__size">{{ $remoteFile->filesizeForHumans() }}</span>
|
||||
<span class="attachment__download"><a class="!underline" href="{{ $remoteFile->url }}">{{ __('Download') }}</a></span>
|
||||
@endif
|
||||
</figcaption>
|
||||
</figure>
|
||||
@@ -0,0 +1,8 @@
|
||||
<figure class="not-prose attachment attachment--preview attachment--{{ $remoteImage->extension() }}" @if ($gallery ?? false) data-trix-attributes='{"presentation":"gallery"}' @endif>
|
||||
<img src="{{ $remoteImage->url }}" width="{{ $remoteImage->width }}" height="{{ $remoteImage->height }}" />
|
||||
@if ($remoteImage->caption)
|
||||
<figcaption class="attachment__caption">
|
||||
{{ $remoteImage->caption }}
|
||||
</figcaption>
|
||||
@endif
|
||||
</figure>
|
||||
Reference in New Issue
Block a user