@if (is_plugin_active('blog')) @php $primarySidebar = $withSidebar ? Theme::partial('primary-sidebar') : null; @endphp
@if (is_plugin_active('ads')) {!! AdsManager::display('before-recent-posts', ['style' => 'margin: 10px 0;']) !!} @endif
@if ($title) {{ $title }} @else {{ __('Recent posts') }} @endif
@if (!$posts->isEmpty()) @foreach($posts as $post)
{!! RvMedia::image($post->image, $post->name, attributes: ['class' => 'attachment-full size-full wp-post-image']) !!}

{{ $post->name }}

@if ($loop->first)
{{ Theme::formatDate($post->created_at) }} @if (class_exists($post->author_type) && $post->author) {{ $post->author->name }} @endif
{{ Str::limit($post->description, 80) }}
@endif
@endforeach @endif
@if (is_plugin_active('ads')) {!! AdsManager::display('after-recent-posts', ['style' => 'margin: 10px 0;']) !!} @endif
@if ($primarySidebar) {!! $primarySidebar !!} @endif @endif