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) !!}
@endif
@while (have_posts()) @php(the_post())
@while (have_posts()) @php the_post() @endphp
@include('partials.content-'.get_post_type())
@endwhile

View File

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

View File

@@ -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

View File

@@ -34,5 +34,5 @@ if (post_password_required()) {
</div>
@endif
@php(comment_form())
@php comment_form() @endphp
</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>']) !!}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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

View File

@@ -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

View File

@@ -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