@layout('parts.layout') @php /** * Template Name:详情 || 学习 * Template Post Type: post */ @endphp @php # 页面数据 $pageid = get_the_ID(); $pageField = get_fields($pageid); $navHeight = true; @endphp @php $modelBanner = true; @endphp @section('banner') @endsection @section('main')
{{-- 面包屑 --}}
@include('parts.crumbs')

{{ get_the_title() }}

@php $author_id = $pageField['author']; $author_data = get_fields($author_id); @endphp @if($author_id)
@if($author_data['title'])

Written by

{{ $author_data['title'] }}

@endif
@endif

Updated on

@php $modified_timestamp = get_the_modified_time('U'); $new_date = date('F d, Y', $modified_timestamp); @endphp

{{ $new_date }}

{{ the_content() }} {{ $pageField['content'] }}
@php $author_id = $pageField['author']; $author_data = @get_fields($author_id); @endphp @if($author_id)
@if($author_data['title'])

Written by:

{{ nl2br($author_data['title']) }}

{{ nl2br($author_data['text']) }}

@endif
@endif @php $nextData = get_next_post(); $nextArray = array( 'title' => get_the_title($nextData)?:"", 'link' => get_permalink($nextData)?:"", ); $prevData = get_previous_post(); $prevArray = array( 'title' => get_the_title($prevData)?:"", 'link' => get_permalink($prevData)?:"", ); @endphp @php $model = $pageField['related']; @endphp @if($model['status']) @php $related = $model['related']; @endphp @if($related && count($related)>0) @endif @endif
@endsection @section('scripts') @endsection