Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Created January 24, 2018 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/79b282b8de88211ef8f29ba311b63542 to your computer and use it in GitHub Desktop.
Save buiquangduc/79b282b8de88211ef8f29ba311b63542 to your computer and use it in GitHub Desktop.
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