Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of master layout file
<!doctype html>
<html @php(language_attributes())>
{{-- Meta include --}}
@include('partials.head')
<body @php(body_class())>
{{-- Header include --}}
@php(do_action('get_header'))
@include('partials.header')
<div class="wrap container" role="document">
<div class="content">
{{-- Content include --}}
<main class="main">
@yield('content')
</main>
{{-- Sidebar include --}}
@if (App\display_sidebar())
<aside class="sidebar">
@include('partials.sidebar')
</aside>
@endif
</div>
</div>
{{-- Footer include --}}
@php(do_action('get_footer'))
@include('partials.footer')
@php(wp_footer())
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment