From be1b8887f44e40b85d9e3ab226fe0a38d869bb12 Mon Sep 17 00:00:00 2001 From: Charalambos Poulikidis Date: Wed, 28 Mar 2018 01:38:28 +0300 Subject: [PATCH] changed inline @php directive to full form (#2042) closes #2012 --- resources/views/index.blade.php | 2 +- resources/views/layouts/app.blade.php | 10 +++++----- resources/views/page.blade.php | 2 +- resources/views/partials/comments.blade.php | 2 +- resources/views/partials/content-page.blade.php | 2 +- resources/views/partials/content-search.blade.php | 4 ++-- resources/views/partials/content-single.blade.php | 6 +++--- resources/views/partials/content.blade.php | 4 ++-- resources/views/partials/footer.blade.php | 2 +- resources/views/partials/head.blade.php | 2 +- resources/views/search.blade.php | 2 +- resources/views/single.blade.php | 2 +- resources/views/template-custom.blade.php | 2 +- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 36841a5..fd4f820 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -10,7 +10,7 @@ {!! get_search_form(false) !!} @endif - @while (have_posts()) @php(the_post()) + @while (have_posts()) @php the_post() @endphp @include('partials.content-'.get_post_type()) @endwhile diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 12ab253..50bfc50 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -1,8 +1,8 @@ - + @include('partials.head') - - @php(do_action('get_header')) + + @php do_action('get_header') @endphp @include('partials.header')
@@ -16,8 +16,8 @@ @endif
- @php(do_action('get_footer')) + @php do_action('get_footer') @endphp @include('partials.footer') - @php(wp_footer()) + @php wp_footer() @endphp diff --git a/resources/views/page.blade.php b/resources/views/page.blade.php index edae985..cf50c8b 100644 --- a/resources/views/page.blade.php +++ b/resources/views/page.blade.php @@ -1,7 +1,7 @@ @extends('layouts.app') @section('content') - @while(have_posts()) @php(the_post()) + @while(have_posts()) @php the_post() @endphp @include('partials.page-header') @include('partials.content-page') @endwhile diff --git a/resources/views/partials/comments.blade.php b/resources/views/partials/comments.blade.php index b4ad4b3..3614d01 100644 --- a/resources/views/partials/comments.blade.php +++ b/resources/views/partials/comments.blade.php @@ -34,5 +34,5 @@ if (post_password_required()) { @endif - @php(comment_form()) + @php comment_form() @endphp diff --git a/resources/views/partials/content-page.blade.php b/resources/views/partials/content-page.blade.php index 41e050a..347ec37 100644 --- a/resources/views/partials/content-page.blade.php +++ b/resources/views/partials/content-page.blade.php @@ -1,2 +1,2 @@ -@php(the_content()) +@php the_content() @endphp {!! wp_link_pages(['echo' => 0, 'before' => '']) !!} diff --git a/resources/views/partials/content-search.blade.php b/resources/views/partials/content-search.blade.php index c051058..d1a0dd3 100644 --- a/resources/views/partials/content-search.blade.php +++ b/resources/views/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()) + @php the_excerpt() @endphp
diff --git a/resources/views/partials/content-single.blade.php b/resources/views/partials/content-single.blade.php index ff5aea1..43597cf 100644 --- a/resources/views/partials/content-single.blade.php +++ b/resources/views/partials/content-single.blade.php @@ -1,13 +1,13 @@ -
+

{{ get_the_title() }}

@include('partials/entry-meta')
- @php(the_content()) + @php the_content() @endphp
{!! wp_link_pages(['echo' => 0, 'before' => '']) !!}
- @php(comments_template('/partials/comments.blade.php')) + @php comments_template('/partials/comments.blade.php') @endphp
diff --git a/resources/views/partials/content.blade.php b/resources/views/partials/content.blade.php index 0afcffd..5035e81 100644 --- a/resources/views/partials/content.blade.php +++ b/resources/views/partials/content.blade.php @@ -1,9 +1,9 @@ -
+

{{ get_the_title() }}

@include('partials/entry-meta')
- @php(the_excerpt()) + @php the_excerpt() @endphp
diff --git a/resources/views/partials/footer.blade.php b/resources/views/partials/footer.blade.php index 3c1fac1..da9feba 100644 --- a/resources/views/partials/footer.blade.php +++ b/resources/views/partials/footer.blade.php @@ -1,5 +1,5 @@
- @php(dynamic_sidebar('sidebar-footer')) + @php dynamic_sidebar('sidebar-footer') @endphp
diff --git a/resources/views/partials/head.blade.php b/resources/views/partials/head.blade.php index b6adcc5..4f0e833 100644 --- a/resources/views/partials/head.blade.php +++ b/resources/views/partials/head.blade.php @@ -2,5 +2,5 @@ - @php(wp_head()) + @php wp_head() @endphp diff --git a/resources/views/search.blade.php b/resources/views/search.blade.php index f0a021e..2bfb4c6 100644 --- a/resources/views/search.blade.php +++ b/resources/views/search.blade.php @@ -10,7 +10,7 @@ {!! get_search_form(false) !!} @endif - @while(have_posts()) @php(the_post()) + @while(have_posts()) @php the_post() @endphp @include('partials.content-search') @endwhile diff --git a/resources/views/single.blade.php b/resources/views/single.blade.php index cf60c3e..8ca3db8 100644 --- a/resources/views/single.blade.php +++ b/resources/views/single.blade.php @@ -1,7 +1,7 @@ @extends('layouts.app') @section('content') - @while(have_posts()) @php(the_post()) + @while(have_posts()) @php the_post() @endphp @include('partials.content-single-'.get_post_type()) @endwhile @endsection diff --git a/resources/views/template-custom.blade.php b/resources/views/template-custom.blade.php index 762a54a..716b14a 100644 --- a/resources/views/template-custom.blade.php +++ b/resources/views/template-custom.blade.php @@ -5,7 +5,7 @@ @extends('layouts.app') @section('content') - @while(have_posts()) @php(the_post()) + @while(have_posts()) @php the_post() @endphp @include('partials.page-header') @include('partials.content-page') @endwhile