Skip to content

Commit

Permalink
Add document open/close partials
Browse files Browse the repository at this point in the history
  • Loading branch information
mishterk committed Nov 13, 2019
1 parent eacee51 commit 5471c0c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php wp_footer() ?>
</body>
</html>
<!-- Site footer markup goes here -->

<?php get_template_part( 'templates/partials/document-close' );
15 changes: 3 additions & 12 deletions header.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?= wp_get_document_title() ?></title>
<script>document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, 'js');</script>
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<?php get_template_part( 'templates/partials/document-open' ); ?>

<!-- Site header markup goes here -->
3 changes: 3 additions & 0 deletions templates/partials/document-close.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php wp_footer() ?>
</body>
</html>
12 changes: 12 additions & 0 deletions templates/partials/document-open.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?= wp_get_document_title() ?></title>
<script>document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, 'js');</script>
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>

0 comments on commit 5471c0c

Please sign in to comment.