🎨 Move default theme markup to the app layout
🐛 Fix uncontrollable HTML output (Fixes #3166)
This commit is contained in:
21
index.php
21
index.php
@@ -1,20 +1 @@
|
|||||||
<!doctype html>
|
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
|
||||||
<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>
|
|
||||||
|
|||||||
@@ -1,17 +1,36 @@
|
|||||||
<a class="sr-only focus:not-sr-only" href="#main">
|
<!doctype html>
|
||||||
{{ __('Skip to content') }}
|
<html @php(language_attributes())>
|
||||||
</a>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
@php(wp_head())
|
||||||
|
</head>
|
||||||
|
|
||||||
@include('sections.header')
|
<body @php(body_class())>
|
||||||
|
@php(wp_body_open())
|
||||||
|
@php(do_action('get_header'))
|
||||||
|
|
||||||
<main id="main" class="main">
|
<div id="app">
|
||||||
@yield('content')
|
<a class="sr-only focus:not-sr-only" href="#main">
|
||||||
</main>
|
{{ __('Skip to content') }}
|
||||||
|
</a>
|
||||||
|
|
||||||
@hasSection('sidebar')
|
@include('sections.header')
|
||||||
<aside class="sidebar">
|
|
||||||
@yield('sidebar')
|
|
||||||
</aside>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@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>
|
||||||
|
|||||||
Reference in New Issue
Block a user