Created
January 23, 2018 09:04
-
-
Save buiquangduc/3577733243117ddc875bb26aef4da95e to your computer and use it in GitHub Desktop.
Sage's Controller hierarchy debug example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('content') | |
@debug('hierarchy') | |
@include('partials.page-header') | |
@if (!have_posts()) | |
<div class="alert alert-warning"> | |
{{ __('Sorry, no results were found.', 'sage') }} | |
</div> | |
{!! get_search_form(false) !!} | |
@endif | |
@while (have_posts()) @php(the_post()) | |
@include('partials.content-'.get_post_type()) | |
@endwhile | |
{!! get_the_posts_navigation() !!} | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment