Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed inline @php directive to full form #2042

Merged
merged 1 commit into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
@@ -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">
Expand All @@ -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>
2 changes: 1 addition & 1 deletion resources/views/page.blade.php
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/comments.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
</div>
@endif

@php(comment_form())
@php comment_form() @endphp
</section>
2 changes: 1 addition & 1 deletion resources/views/partials/content-page.blade.php
Original file line number Diff line number Diff line change
@@ -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>']) !!}
4 changes: 2 additions & 2 deletions resources/views/partials/content-search.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<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')
@include('partials/entry-meta')
@endif
</header>
<div class="entry-summary">
@php(the_excerpt())
@php the_excerpt() @endphp
</div>
</article>
6 changes: 3 additions & 3 deletions resources/views/partials/content-single.blade.php
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 2 additions & 2 deletions resources/views/partials/content.blade.php
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion resources/views/partials/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="content-info">
<div class="container">
@php(dynamic_sidebar('sidebar-footer'))
@php dynamic_sidebar('sidebar-footer') @endphp
</div>
</footer>
2 changes: 1 addition & 1 deletion resources/views/partials/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion resources/views/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion resources/views/single.blade.php
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion resources/views/template-custom.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down