Initial commit
This commit is contained in:
33
resources/views/livewire/side-post.blade.php
Normal file
33
resources/views/livewire/side-post.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<div class="leading-loose">
|
||||
<div class="post" id="post-id-{{ $post->id ?? 'no-id' }}">
|
||||
<h3 class="text-lg font-medium text-theme-primary">
|
||||
{{ $post->translations[0]->title ?? '' }}
|
||||
</h3>
|
||||
</div>
|
||||
@if ($post)
|
||||
<div class="{{ $alwaysShowFull ? '' : 'hidden md:block' }} my-2 text-sm font-bold text-theme-secondary">
|
||||
{{ $post->translations[0]->excerpt ?? '' }}
|
||||
</div>
|
||||
<div class="{{ $alwaysShowFull ? '' : 'hidden md:block' }} images my-3">
|
||||
@if($image)
|
||||
<img src="{{ $image }}" alt="{{ $post->getFirstMedia('*')->getCustomProperty('caption') }}" class="w-screen h-auto mb-4">
|
||||
@endif
|
||||
</div>
|
||||
<div class="{{ $alwaysShowFull ? '' : 'hidden md:block' }}">
|
||||
<div class="text-sm text-theme-secondary">
|
||||
{!! \App\Helpers\StringHelper::sanitizeHtml($post->translations[0]->content ?? '') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="hidden md:block">
|
||||
<livewire:posts.manage-actions :post="$post" />
|
||||
</div>
|
||||
@else
|
||||
{{-- If no post is found, use the fallbackTitle and fallbackDescription from the parent component. --}}
|
||||
<h3 class="text-lg font-medium text-theme-primary">
|
||||
{{ $fallbackTitle ?? '' }}
|
||||
</h3>
|
||||
<div class="hidden md:block text-sm text-theme-secondary">
|
||||
{{ $fallbackDescription ?? '' }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
Reference in New Issue
Block a user