Fixing double echo's, template cleanup
This commit is contained in:
@@ -7,13 +7,12 @@
|
|||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
{{ __('Sorry, no results were found.', 'sage') }}
|
{{ __('Sorry, no results were found.', 'sage') }}
|
||||||
</div>
|
</div>
|
||||||
{{ get_search_form(false) }}
|
{!! get_search_form(false) !!}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@while(have_posts())
|
@while (have_posts()) @php the_post() @endphp
|
||||||
{!! the_post() !!}
|
|
||||||
@include ('partials.content')
|
@include ('partials.content')
|
||||||
@endwhile
|
@endwhile
|
||||||
|
|
||||||
{{ get_the_posts_navigation() }}
|
{!! get_the_posts_navigation() !!}
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html {!! language_attributes() !!}>
|
<html @php language_attributes() @endphp>
|
||||||
@include('partials.head')
|
@include('partials.head')
|
||||||
<body {!! body_class() !!}>
|
<body @php body_class() @endphp>
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
{!! _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage') !!}
|
{!! __('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage') !!}
|
||||||
</div>
|
</div>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
{!! 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 row">
|
<div class="content row">
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{!! do_action('get_footer') !!}
|
@php do_action('get_footer') @endphp
|
||||||
@include('partials.footer')
|
@include('partials.footer')
|
||||||
{!! wp_footer() !!}
|
@php wp_footer() @endphp
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
@extends('layouts.base')
|
@extends('layouts.base')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@while(have_posts())
|
@while(have_posts()) @php the_post() @endphp
|
||||||
{!! the_post() !!}
|
|
||||||
@include('partials.page-header')
|
@include('partials.page-header')
|
||||||
@include('partials.content-page')
|
@include('partials.content-page')
|
||||||
@endwhile
|
@endwhile
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
@php
|
||||||
if (post_password_required()) {
|
if (post_password_required()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
@endphp
|
||||||
|
|
||||||
<section id="comments" class="comments">
|
<section id="comments" class="comments">
|
||||||
@if (have_comments())
|
@if (have_comments())
|
||||||
@@ -34,5 +34,5 @@ if (post_password_required()) {
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
{!! comment_form() !!}
|
@php comment_form() @endphp
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
{!! the_content() !!}
|
@php the_content() @endphp
|
||||||
{!! wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
|
{!! wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<article {!! 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">
|
||||||
{!! the_excerpt() !!}
|
@php the_excerpt() @endphp
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<article {!! 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">
|
||||||
{!! the_content() !!}
|
@php the_content() @endphp
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
{!! wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
|
{!! wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
|
||||||
</footer>
|
</footer>
|
||||||
{!! comments_template('/templates/partials/comments.blade.php') !!}
|
@php comments_template('/templates/partials/comments.blade.php') @endphp
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<article {!! 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">
|
||||||
{!! the_excerpt() !!}
|
@php the_excerpt() @endphp
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -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">
|
||||||
{!! wp_head() !!}
|
@php wp_head() @endphp
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<header class="banner">
|
<header class="banner">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="brand" href="{{ esc_url(home_url('/')) }}">{{ get_bloginfo('name', 'display') }}</a>
|
<a class="brand" href="{{ home_url('/') }}">{{ get_bloginfo('name', 'display') }}</a>
|
||||||
<nav class="nav-primary">
|
<nav class="nav-primary">
|
||||||
@if (has_nav_menu('primary_navigation'))
|
@if (has_nav_menu('primary_navigation'))
|
||||||
{!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav']) !!}
|
{!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav']) !!}
|
||||||
|
|||||||
@@ -10,11 +10,9 @@
|
|||||||
{!! get_search_form(false) !!}
|
{!! get_search_form(false) !!}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@while(have_posts())
|
@while(have_posts()) @php the_post() @endphp
|
||||||
{!! the_post() !!}
|
|
||||||
@include('partials.content-search')
|
@include('partials.content-search')
|
||||||
@endwhile
|
@endwhile
|
||||||
|
|
||||||
{{ get_the_posts_navigation() }}
|
{!! get_the_posts_navigation() !!}
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
@extends('layouts.base')
|
@extends('layouts.base')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@while(have_posts())
|
@while(have_posts()) @php the_post() @endphp
|
||||||
{!! the_post() !!}
|
|
||||||
@include('partials/content-single')
|
@include('partials/content-single')
|
||||||
@endwhile
|
@endwhile
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
<?php
|
@php
|
||||||
/**
|
/**
|
||||||
* Template Name: Custom Template
|
* Template Name: Custom Template
|
||||||
*/
|
*/
|
||||||
?>
|
@endphp
|
||||||
|
|
||||||
@extends('layouts.base')
|
@extends('layouts.base')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@while(have_posts())
|
@while(have_posts()) @php the_post() @endphp
|
||||||
{!! the_post() !!}
|
|
||||||
@include('partials.page-header')
|
@include('partials.page-header')
|
||||||
@include('partials.content-page')
|
@include('partials.content-page')
|
||||||
@endwhile
|
@endwhile
|
||||||
|
|||||||
Reference in New Issue
Block a user