<!doctype html>
<html {!! get_language_attributes() !!}>
  @include('partials.head')
  @include('popup')
  <body @php body_class() @endphp>
    @php
      do_action('in_body');
    @endphp
    <main id="app">
      @php do_action('get_header') @endphp
      
      @include('partials.header')
      <div class="wrap" role="document">
        <div class="content">
          <main class="main">
            @yield('content')
          </main>
          @if (App\display_sidebar())
            <aside class="sidebar">
              @include('partials.sidebar')
            </aside>
          @endif
        </div>
      </div>

      @php do_action('get_footer') @endphp
      @if(!$hide_newsletter)
      <div>
        @include('partials.pre-footer')
      </div>
      @endif
      
      <footer class="main-footer @if($hide_newsletter) with-border @endif">
        @include('partials.footer')
      </footer>

    </main>
    @php wp_footer() @endphp
  </body>
</html>
