changed inline @php directive to full form (#2042)

closes #2012
This commit is contained in:
Charalambos Poulikidis
2018-03-28 01:38:28 +03:00
committed by QWp6t
parent f2c47cf41b
commit be1b8887f4
13 changed files with 21 additions and 21 deletions

View File

@@ -10,7 +10,7 @@
{!! get_search_form(false) !!} {!! get_search_form(false) !!}
@endif @endif
@while (have_posts()) @php(the_post()) @while (have_posts()) @php the_post() @endphp
@include('partials.content-'.get_post_type()) @include('partials.content-'.get_post_type())
@endwhile @endwhile

View File

@@ -1,8 +1,8 @@
<!doctype html> <!doctype html>
<html @php(language_attributes())> <html @php language_attributes() @endphp>
@include('partials.head') @include('partials.head')
<body @php(body_class())> <body @php body_class() @endphp>
@php(do_action('get_header')) @php do_action('get_header') @endphp
@include('partials.header') @include('partials.header')
<div class="wrap container" role="document"> <div class="wrap container" role="document">
<div class="content"> <div class="content">
@@ -16,8 +16,8 @@
@endif @endif
</div> </div>
</div> </div>
@php(do_action('get_footer')) @php do_action('get_footer') @endphp
@include('partials.footer') @include('partials.footer')
@php(wp_footer()) @php wp_footer() @endphp
</body> </body>
</html> </html>

View File

@@ -1,7 +1,7 @@
@extends('layouts.app') @extends('layouts.app')
@section('content') @section('content')
@while(have_posts()) @php(the_post()) @while(have_posts()) @php the_post() @endphp
@include('partials.page-header') @include('partials.page-header')
@include('partials.content-page') @include('partials.content-page')
@endwhile @endwhile

View File

@@ -34,5 +34,5 @@ if (post_password_required()) {
</div> </div>
@endif @endif
@php(comment_form()) @php comment_form() @endphp
</section> </section>

View File

@@ -1,2 +1,2 @@
@php(the_content()) @php the_content() @endphp
{!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!} {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}

View File

@@ -1,4 +1,4 @@
<article @php(post_class())> <article @php post_class() @endphp>
<header> <header>
<h2 class="entry-title"><a href="{{ get_permalink() }}">{{ get_the_title() }}</a></h2> <h2 class="entry-title"><a href="{{ get_permalink() }}">{{ get_the_title() }}</a></h2>
@if (get_post_type() === 'post') @if (get_post_type() === 'post')
@@ -6,6 +6,6 @@
@endif @endif
</header> </header>
<div class="entry-summary"> <div class="entry-summary">
@php(the_excerpt()) @php the_excerpt() @endphp
</div> </div>
</article> </article>

View File

@@ -1,13 +1,13 @@
<article @php(post_class())> <article @php post_class() @endphp>
<header> <header>
<h1 class="entry-title">{{ get_the_title() }}</h1> <h1 class="entry-title">{{ get_the_title() }}</h1>
@include('partials/entry-meta') @include('partials/entry-meta')
</header> </header>
<div class="entry-content"> <div class="entry-content">
@php(the_content()) @php the_content() @endphp
</div> </div>
<footer> <footer>
{!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!} {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
</footer> </footer>
@php(comments_template('/partials/comments.blade.php')) @php comments_template('/partials/comments.blade.php') @endphp
</article> </article>

View File

@@ -1,9 +1,9 @@
<article @php(post_class())> <article @php post_class() @endphp>
<header> <header>
<h2 class="entry-title"><a href="{{ get_permalink() }}">{{ get_the_title() }}</a></h2> <h2 class="entry-title"><a href="{{ get_permalink() }}">{{ get_the_title() }}</a></h2>
@include('partials/entry-meta') @include('partials/entry-meta')
</header> </header>
<div class="entry-summary"> <div class="entry-summary">
@php(the_excerpt()) @php the_excerpt() @endphp
</div> </div>
</article> </article>

View File

@@ -1,5 +1,5 @@
<footer class="content-info"> <footer class="content-info">
<div class="container"> <div class="container">
@php(dynamic_sidebar('sidebar-footer')) @php dynamic_sidebar('sidebar-footer') @endphp
</div> </div>
</footer> </footer>

View File

@@ -2,5 +2,5 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge"> <meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@php(wp_head()) @php wp_head() @endphp
</head> </head>

View File

@@ -10,7 +10,7 @@
{!! get_search_form(false) !!} {!! get_search_form(false) !!}
@endif @endif
@while(have_posts()) @php(the_post()) @while(have_posts()) @php the_post() @endphp
@include('partials.content-search') @include('partials.content-search')
@endwhile @endwhile

View File

@@ -1,7 +1,7 @@
@extends('layouts.app') @extends('layouts.app')
@section('content') @section('content')
@while(have_posts()) @php(the_post()) @while(have_posts()) @php the_post() @endphp
@include('partials.content-single-'.get_post_type()) @include('partials.content-single-'.get_post_type())
@endwhile @endwhile
@endsection @endsection

View File

@@ -5,7 +5,7 @@
@extends('layouts.app') @extends('layouts.app')
@section('content') @section('content')
@while(have_posts()) @php(the_post()) @while(have_posts()) @php the_post() @endphp
@include('partials.page-header') @include('partials.page-header')
@include('partials.content-page') @include('partials.content-page')
@endwhile @endwhile