@php $pageSettings = $options->theme->pages; $header = $options->theme->header; $breadcrumb_background = $header->breadcrumb_background; if (isset($parent) && $parent) { if ($dynamicSettings = get_page_settings($parent->id)) { $pageSettings = $dynamicSettings; $pageSettings->merge($dynamicSettings->all()); } if ($parent != $article && ($ps = get_page_settings($article->id))) { $pageSettings->merge($ps->all()); } } elseif ($ps = get_page_settings($article->id)) { $pageSettings->merge($ps->all()); } if ($pageSettings->breadcrumb_background) { $breadcrumb_background = $pageSettings->breadcrumb_background; } $pageOptions = $pageSettings->makeByPrefix('detail_'); if ($pageOptions->breadcrumb_background) { $breadcrumb_background = $pageOptions->breadcrumb_background; } if ($pageOptions->use_feature_image && $article->featured_image && ($image = $article->getImage())) { $breadcrumb_background = $image; } $sub_title = isset($parent) && $parent != $article ? $parent->title : ''; $_title = $article->title; $description = $article->description; $layout = $pageOptions->layout('no-sidebar'); $u = $article->getViewUrl(); $header_style = $pageSettings->header_style(1); $dateFormat = config('app.locale') == 'vi' ? 'd/m/Y' : 'M d, Y'; $u = $article->getViewUrl(); @endphp @extends($_layout . 'master') @section('title', $page_title) @include($_lib . 'register-meta') @if ($pageOptions->show_breadcrumb) @section('breadcrumb.show', true) @section('breadcrumb.title', $page_title) @if ($breadcrumb_background) @section('breadcrumb.background', $breadcrumb_background) @endif @endif @section('content') @if ($pageOptions->content_type != 'children') {!! get_page_component($article->id) !!}
{!! $article->content !!}
@else {!! get_page_component($article->id) !!} @endif @endsection