@php Theme::layout('full'); $totalComment = get_total_comment($post); MetaBox::getMetaData($post, 'time_to_read', true); $singleLayout = MetaBox::getMetaData($post, 'layout', true); if (empty($singleLayout)) { $singleLayout = theme_option('single_layout', 'default'); } $videoLink = MetaBox::getMetaData($post, 'video_link', true); $videoEmbedCode = MetaBox::getMetaData($post, 'video_embed_code', true); $videoUploadId = MetaBox::getMetaData($post, 'video_upload_id', true); if ($videoLink || $videoUploadId) { $singleLayout = 'default'; } if (is_plugin_active('pro-posts')) { Theme::asset()->container('footer')->usePath(false)->add('favorite-post', 'vendor/core/plugins/pro-posts/js/favorite-posts.js'); Theme::asset()->container('footer')->usePath()->add('post-js', 'js/post.js'); } @endphp
@switch($singleLayout) @case('top-full') {!! Theme::partial('components.single.headers.top-full', compact('post', 'totalComment')) !!} @break; @case('inline') {!! Theme::partial('components.single.headers.inline', compact('post', 'totalComment')) !!} @break; @endswitch
@if($singleLayout == 'default' || empty($singleLayout)) {!! Theme::partial('components.single.headers.default', compact('post', 'totalComment', 'videoLink', 'videoEmbedCode', 'videoUploadId')) !!} @endif

{!! clean($post->description) !!}

@if (defined('GALLERY_MODULE_SCREEN_NAME') && !empty($galleries = gallery_meta_data($post))) {!! render_object_gallery($galleries, ($post->categories()->first() ? $post->categories()->first()->name : __('Uncategorized'))) !!} @endif
{!! BaseHelper::clean($post->content) !!}
@if(is_plugin_active('external-source') && !empty($post->source_link))

{{ __('Source link') }}: {{ $post->source_link }}

@endif
@if (!$post->tags->isEmpty())
@foreach ($post->tags as $tag) @endforeach
@endif
@if (theme_option('enable_show_post_author_detail', 'yes') == 'yes' && $post->author && $post->author->id)

{{ $post->author->name }}

{!! clean($post->author->description) !!}

@endif @switch(theme_option('comment_type_in_post', '')) @case('facebook') {!! apply_filters(BASE_FILTER_PUBLIC_COMMENT_AREA, Theme::partial('comments')) !!} @break @case('member') @if (is_plugin_active('comment') && comment_object_enable($post)) [comment type="{{ addslashes(get_class($post)) }}" type_id="{{ $post->id }}"][/comment] @endif @break @endswitch @php $relatedPosts = get_related_posts($post->id, 3); @endphp @if ($relatedPosts->count() > 0) {!! Theme::partial('components.single.related-posts', ['relatedPosts' => $relatedPosts ]) !!} @endif
@if(theme_option('recently_viewed_posts_enable', 'yes') == 'yes')
[recently-viewed-posts title="{{ __('Recently Viewed Posts') }}" subtitle="{{ __('Your currently viewed posts.') }}"][/recently-viewed-posts]
@endif