diff --git a/templates/404.blade.php b/templates/404.blade.php
index a61aebd..384c394 100644
--- a/templates/404.blade.php
+++ b/templates/404.blade.php
@@ -3,9 +3,9 @@
@section('content')
@include('partials.page-header')
- @if(!have_posts())
+ @if (!have_posts())
- {{ __('Sorry, but the page you were trying to view does not exist.', 'sage') }}
+ {{ __('Sorry, but the page you were trying to view does not exist.', 'sage') }}
{!! get_search_form(false) !!}
@endif
diff --git a/templates/index.blade.php b/templates/index.blade.php
index 98e220d..cc334fb 100644
--- a/templates/index.blade.php
+++ b/templates/index.blade.php
@@ -3,17 +3,16 @@
@section('content')
@include('partials.page-header')
- @if(!have_posts())
+ @if (!have_posts())
- {{ __('Sorry, no results were found.', 'sage') }}
+ {{ __('Sorry, no results were found.', 'sage') }}
- {{ get_search_form(false) }}
+ {!! get_search_form(false) !!}
@endif
- @while(have_posts())
- {!! the_post() !!}
- @include('partials.content')
+ @while (have_posts()) @php the_post() @endphp
+ @include ('partials.content')
@endwhile
- {{ get_the_posts_navigation() }}
+ {!! get_the_posts_navigation() !!}
@endsection
diff --git a/templates/layouts/base.blade.php b/templates/layouts/base.blade.php
index 290e63d..dbde60f 100644
--- a/templates/layouts/base.blade.php
+++ b/templates/layouts/base.blade.php
@@ -1,28 +1,28 @@
-
+
@include('partials.head')
-
+
- {!! do_action('get_header') !!}
+ @php do_action('get_header') @endphp
@include('partials.header')
@yield('content')
- @if(App\display_sidebar())
+ @if (App\display_sidebar())
@endif
- {!! do_action('get_footer') !!}
+ @php do_action('get_footer') @endphp
@include('partials.footer')
- {!! wp_footer() !!}
+ @php wp_footer() @endphp
diff --git a/templates/page.blade.php b/templates/page.blade.php
index 0599920..8ab09bc 100644
--- a/templates/page.blade.php
+++ b/templates/page.blade.php
@@ -1,8 +1,7 @@
@extends('layouts.base')
@section('content')
- @while(have_posts())
- {!! the_post() !!}
+ @while(have_posts()) @php the_post() @endphp
@include('partials.page-header')
@include('partials.content-page')
@endwhile
diff --git a/templates/partials/comments.blade.php b/templates/partials/comments.blade.php
index cb5c832..a8c4d2e 100644
--- a/templates/partials/comments.blade.php
+++ b/templates/partials/comments.blade.php
@@ -1,11 +1,11 @@
-
+@endphp
diff --git a/templates/partials/content-page.blade.php b/templates/partials/content-page.blade.php
index 5c590d0..14fb20c 100644
--- a/templates/partials/content-page.blade.php
+++ b/templates/partials/content-page.blade.php
@@ -1,2 +1,2 @@
-{!! the_content() !!}
+@php the_content() @endphp
{!! wp_link_pages(['before' => '' . __('Pages:', 'sage'), 'after' => '
']) !!}
diff --git a/templates/partials/content-search.blade.php b/templates/partials/content-search.blade.php
index c7265ed..d1a0dd3 100644
--- a/templates/partials/content-search.blade.php
+++ b/templates/partials/content-search.blade.php
@@ -1,11 +1,11 @@
-
+
- @if(get_post_type() === 'post')
+ @if (get_post_type() === 'post')
@include('partials/entry-meta')
@endif
- {!! the_excerpt() !!}
+ @php the_excerpt() @endphp
diff --git a/templates/partials/content-single.blade.php b/templates/partials/content-single.blade.php
index b247ff9..f251483 100644
--- a/templates/partials/content-single.blade.php
+++ b/templates/partials/content-single.blade.php
@@ -1,13 +1,13 @@
-
+
{{ get_the_title() }}
@include('partials/entry-meta')
- {!! the_content() !!}
+ @php the_content() @endphp
- {!! comments_template('/templates/partials/comments.blade.php') !!}
+ @php comments_template('/templates/partials/comments.blade.php') @endphp
diff --git a/templates/partials/content.blade.php b/templates/partials/content.blade.php
index caad3cb..5035e81 100644
--- a/templates/partials/content.blade.php
+++ b/templates/partials/content.blade.php
@@ -1,9 +1,9 @@
-
+
@include('partials/entry-meta')
- {!! the_excerpt() !!}
+ @php the_excerpt() @endphp
diff --git a/templates/partials/head.blade.php b/templates/partials/head.blade.php
index 8303e90..4f0e833 100644
--- a/templates/partials/head.blade.php
+++ b/templates/partials/head.blade.php
@@ -2,5 +2,5 @@
- {!! wp_head() !!}
+ @php wp_head() @endphp
diff --git a/templates/partials/header.blade.php b/templates/partials/header.blade.php
index 5f5b2c2..4af67fc 100644
--- a/templates/partials/header.blade.php
+++ b/templates/partials/header.blade.php
@@ -1,8 +1,8 @@
-
{{ get_bloginfo('name', 'display') }}
+
{{ get_bloginfo('name', 'display') }}
- @if(has_nav_menu('primary_navigation'))
+ @if (has_nav_menu('primary_navigation'))
{!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav']) !!}
@endif
diff --git a/templates/search.blade.php b/templates/search.blade.php
index 9e1bf08..bb311ed 100644
--- a/templates/search.blade.php
+++ b/templates/search.blade.php
@@ -3,18 +3,16 @@
@section('content')
@include('partials.page-header')
- @if(!have_posts())
+ @if (!have_posts())
{{ __('Sorry, no results were found.', 'sage') }}
{!! get_search_form(false) !!}
@endif
- @while(have_posts())
- {!! the_post() !!}
+ @while(have_posts()) @php the_post() @endphp
@include('partials.content-search')
@endwhile
- {{ get_the_posts_navigation() }}
-
+ {!! get_the_posts_navigation() !!}
@endsection
diff --git a/templates/single.blade.php b/templates/single.blade.php
index b818a77..bfe1890 100644
--- a/templates/single.blade.php
+++ b/templates/single.blade.php
@@ -1,8 +1,7 @@
@extends('layouts.base')
@section('content')
- @while(have_posts())
- {!! the_post() !!}
+ @while(have_posts()) @php the_post() @endphp
@include('partials/content-single')
@endwhile
@endsection
diff --git a/templates/template-custom.blade.php b/templates/template-custom.blade.php
index bc5f8da..228e2b7 100644
--- a/templates/template-custom.blade.php
+++ b/templates/template-custom.blade.php
@@ -1,14 +1,13 @@
-
+@endphp
@extends('layouts.base')
@section('content')
- @while(have_posts())
- {!! the_post() !!}
+ @while(have_posts()) @php the_post() @endphp
@include('partials.page-header')
@include('partials.content-page')
@endwhile
{!! sprintf(_nx('One response to “%2$s”', '%1$s responses to “%2$s”', get_comments_number(), 'comments title', 'sage'), number_format_i18n(get_comments_number()), '' . get_the_title() . '') !!}
@@ -14,13 +14,13 @@ if (post_password_required()) { {!! wp_list_comments(['style' => 'ol', 'short_ping' => true]) !!} - @if(get_comment_pages_count() > 1 && get_option('page_comments')) + @if (get_comment_pages_count() > 1 && get_option('page_comments'))