Created
January 24, 2018 09:54
-
-
Save buiquangduc/79b282b8de88211ef8f29ba311b63542 to your computer and use it in GitHub Desktop.
Example of master layout file
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
<!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