-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 Move default theme markup to the
app
layout (#3167)
- Loading branch information
Showing
3 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
<!doctype html> | ||
<html <?php language_attributes(); ?>> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<?php wp_head(); ?> | ||
</head> | ||
|
||
<body <?php body_class(); ?>> | ||
<?php wp_body_open(); ?> | ||
<?php do_action('get_header'); ?> | ||
|
||
<div id="app"> | ||
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?> | ||
</div> | ||
|
||
<?php do_action('get_footer'); ?> | ||
<?php wp_footer(); ?> | ||
</body> | ||
</html> | ||
<?php echo view(app('sage.view'), app('sage.data'))->render(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
<a class="sr-only focus:not-sr-only" href="#main"> | ||
{{ __('Skip to content') }} | ||
</a> | ||
<!doctype html> | ||
<html @php(language_attributes())> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
@php(do_action('get_header')) | ||
@php(wp_head()) | ||
</head> | ||
|
||
@include('sections.header') | ||
<body @php(body_class())> | ||
@php(wp_body_open()) | ||
|
||
<main id="main" class="main"> | ||
@yield('content') | ||
</main> | ||
<div id="app"> | ||
<a class="sr-only focus:not-sr-only" href="#main"> | ||
{{ __('Skip to content') }} | ||
</a> | ||
|
||
@hasSection('sidebar') | ||
<aside class="sidebar"> | ||
@yield('sidebar') | ||
</aside> | ||
@endif | ||
@include('sections.header') | ||
|
||
@include('sections.footer') | ||
<main id="main" class="main"> | ||
@yield('content') | ||
</main> | ||
|
||
@hasSection('sidebar') | ||
<aside class="sidebar"> | ||
@yield('sidebar') | ||
</aside> | ||
@endif | ||
|
||
@include('sections.footer') | ||
</div> | ||
|
||
@php(do_action('get_footer')) | ||
@php(wp_footer()) | ||
</body> | ||
</html> |
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