From 945e3b76d71ce3ba2d7b64a67ee6229f7b7d554f Mon Sep 17 00:00:00 2001 From: QWp6t Date: Fri, 9 Dec 2016 23:48:31 -0800 Subject: [PATCH] Use @php() instead of @php [...] @endphp --- templates/index.blade.php | 2 +- templates/layouts/base.blade.php | 10 +++++----- templates/page.blade.php | 2 +- templates/partials/comments.blade.php | 6 +++--- templates/partials/content-page.blade.php | 2 +- templates/partials/content-search.blade.php | 4 ++-- templates/partials/content-single.blade.php | 6 +++--- templates/partials/content.blade.php | 4 ++-- templates/partials/footer.blade.php | 2 +- templates/partials/head.blade.php | 2 +- templates/partials/sidebar.blade.php | 2 +- templates/search.blade.php | 2 +- templates/single.blade.php | 2 +- templates/template-custom.blade.php | 10 ++++------ 14 files changed, 27 insertions(+), 29 deletions(-) diff --git a/templates/index.blade.php b/templates/index.blade.php index 869ed6f..bb3ef90 100644 --- a/templates/index.blade.php +++ b/templates/index.blade.php @@ -10,7 +10,7 @@ {!! get_search_form(false) !!} @endif - @while (have_posts()) @php the_post() @endphp + @while (have_posts()) @php(the_post()) @include ('partials.content-'.(get_post_type() !== 'post' ? get_post_type() : get_post_format())) @endwhile diff --git a/templates/layouts/base.blade.php b/templates/layouts/base.blade.php index dbde60f..d4706fb 100644 --- a/templates/layouts/base.blade.php +++ b/templates/layouts/base.blade.php @@ -1,13 +1,13 @@ - + @include('partials.head') - + - @php do_action('get_header') @endphp + @php(do_action('get_header')) @include('partials.header')
@@ -21,8 +21,8 @@ @endif
- @php do_action('get_footer') @endphp + @php(do_action('get_footer')) @include('partials.footer') - @php wp_footer() @endphp + @php(wp_footer()) diff --git a/templates/page.blade.php b/templates/page.blade.php index 8ab09bc..d18f59b 100644 --- a/templates/page.blade.php +++ b/templates/page.blade.php @@ -1,7 +1,7 @@ @extends('layouts.base') @section('content') - @while(have_posts()) @php the_post() @endphp + @while(have_posts()) @php(the_post()) @include('partials.page-header') @include('partials.content-page') @endwhile diff --git a/templates/partials/comments.blade.php b/templates/partials/comments.blade.php index a8c4d2e..b4ad4b3 100644 --- a/templates/partials/comments.blade.php +++ b/templates/partials/comments.blade.php @@ -18,10 +18,10 @@ if (post_password_required()) { @@ -34,5 +34,5 @@ if (post_password_required()) { @endif - @php comment_form() @endphp + @php(comment_form()) diff --git a/templates/partials/content-page.blade.php b/templates/partials/content-page.blade.php index 14fb20c..d360d17 100644 --- a/templates/partials/content-page.blade.php +++ b/templates/partials/content-page.blade.php @@ -1,2 +1,2 @@ -@php the_content() @endphp +@php(the_content()) {!! wp_link_pages(['before' => '']) !!} diff --git a/templates/partials/content-search.blade.php b/templates/partials/content-search.blade.php index d1a0dd3..c051058 100644 --- a/templates/partials/content-search.blade.php +++ b/templates/partials/content-search.blade.php @@ -1,4 +1,4 @@ -
+

{{ get_the_title() }}

@if (get_post_type() === 'post') @@ -6,6 +6,6 @@ @endif
- @php the_excerpt() @endphp + @php(the_excerpt())
diff --git a/templates/partials/content-single.blade.php b/templates/partials/content-single.blade.php index f251483..35bdda5 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')
- @php the_content() @endphp + @php(the_content())
{!! wp_link_pages(['before' => '']) !!}
- @php comments_template('/templates/partials/comments.blade.php') @endphp + @php(comments_template('/templates/partials/comments.blade.php'))
diff --git a/templates/partials/content.blade.php b/templates/partials/content.blade.php index 5035e81..0afcffd 100644 --- a/templates/partials/content.blade.php +++ b/templates/partials/content.blade.php @@ -1,9 +1,9 @@ -
+

{{ get_the_title() }}

@include('partials/entry-meta')
- @php the_excerpt() @endphp + @php(the_excerpt())
diff --git a/templates/partials/footer.blade.php b/templates/partials/footer.blade.php index da9feba..3c1fac1 100644 --- a/templates/partials/footer.blade.php +++ b/templates/partials/footer.blade.php @@ -1,5 +1,5 @@
- @php dynamic_sidebar('sidebar-footer') @endphp + @php(dynamic_sidebar('sidebar-footer'))
diff --git a/templates/partials/head.blade.php b/templates/partials/head.blade.php index 4f0e833..b6adcc5 100644 --- a/templates/partials/head.blade.php +++ b/templates/partials/head.blade.php @@ -2,5 +2,5 @@ - @php wp_head() @endphp + @php(wp_head()) diff --git a/templates/partials/sidebar.blade.php b/templates/partials/sidebar.blade.php index a740998..d20b456 100644 --- a/templates/partials/sidebar.blade.php +++ b/templates/partials/sidebar.blade.php @@ -1 +1 @@ -@php dynamic_sidebar('sidebar-primary') @endphp +@php(dynamic_sidebar('sidebar-primary')) diff --git a/templates/search.blade.php b/templates/search.blade.php index bb311ed..e5897c5 100644 --- a/templates/search.blade.php +++ b/templates/search.blade.php @@ -10,7 +10,7 @@ {!! get_search_form(false) !!} @endif - @while(have_posts()) @php the_post() @endphp + @while(have_posts()) @php(the_post()) @include('partials.content-search') @endwhile diff --git a/templates/single.blade.php b/templates/single.blade.php index a383216..62e9c85 100644 --- a/templates/single.blade.php +++ b/templates/single.blade.php @@ -1,7 +1,7 @@ @extends('layouts.base') @section('content') - @while(have_posts()) @php the_post() @endphp + @while(have_posts()) @php(the_post()) @include('partials/content-single-'.get_post_type()) @endwhile @endsection diff --git a/templates/template-custom.blade.php b/templates/template-custom.blade.php index 228e2b7..460854d 100644 --- a/templates/template-custom.blade.php +++ b/templates/template-custom.blade.php @@ -1,13 +1,11 @@ -@php -/** - * Template Name: Custom Template - */ -@endphp +{{-- + Template Name: Custom Template +--}} @extends('layouts.base') @section('content') - @while(have_posts()) @php the_post() @endphp + @while(have_posts()) @php(the_post()) @include('partials.page-header') @include('partials.content-page') @endwhile