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

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