diff --git a/src/helpers.php b/src/helpers.php index 395744a9b6..4a4f0cbc64 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -15,24 +15,6 @@ function template_unwrap($slug = '', $context = []) { } } -/** - * @param array $context - */ -function template_sidebar($context = []) { - template_part('sidebar', $context); -} - -/** - * @param $template - * @param array $context - */ -function template_part($template, $context = []) { - if ($file = (new Template($template, $context))->locate()) { - /** @noinspection PhpIncludeInspection */ - include $file; - } -} - /** * @param $filename * @return string diff --git a/templates/404.php b/templates/404.php index 23af1ece56..5ef01009db 100644 --- a/templates/404.php +++ b/templates/404.php @@ -1,4 +1,4 @@ - +
diff --git a/templates/index.php b/templates/index.php index 16694b8fda..bb39cccb0e 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,4 +1,4 @@ - +
@@ -8,7 +8,7 @@ - + diff --git a/templates/layouts/base.php b/templates/layouts/base.php index 54b0de6fbc..e0c8bfe854 100644 --- a/templates/layouts/base.php +++ b/templates/layouts/base.php @@ -1,6 +1,6 @@ > - + >
@@ -18,14 +18,14 @@
diff --git a/templates/page.php b/templates/page.php index 7a1d16710d..dc2adff049 100644 --- a/templates/page.php +++ b/templates/page.php @@ -1,4 +1,4 @@ - - + + diff --git a/templates/partials/content-search.php b/templates/partials/content-search.php index 749f11acd7..2eac1e4e2d 100644 --- a/templates/partials/content-search.php +++ b/templates/partials/content-search.php @@ -1,7 +1,7 @@
>

- +
diff --git a/templates/partials/content-single.php b/templates/partials/content-single.php index 60392e9e48..cd5406e6d2 100644 --- a/templates/partials/content-single.php +++ b/templates/partials/content-single.php @@ -2,7 +2,7 @@
>

- +
diff --git a/templates/partials/content.php b/templates/partials/content.php index 3ae0e4abba..2246a63d5c 100644 --- a/templates/partials/content.php +++ b/templates/partials/content.php @@ -1,7 +1,7 @@
>

- +
diff --git a/templates/search.php b/templates/search.php index e150715b22..f769258c02 100644 --- a/templates/search.php +++ b/templates/search.php @@ -1,4 +1,4 @@ - +
@@ -8,7 +8,7 @@ - + diff --git a/templates/single.php b/templates/single.php index 345b962fb3..8e6e717520 100644 --- a/templates/single.php +++ b/templates/single.php @@ -1 +1 @@ - + diff --git a/templates/template-custom.php b/templates/template-custom.php index 82ef512943..d0bcd124e4 100644 --- a/templates/template-custom.php +++ b/templates/template-custom.php @@ -5,6 +5,6 @@ ?> - - + +