diff --git a/src/helpers.php b/src/helpers.php index 395744a..4a4f0cb 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 23af1ec..5ef0100 100644 --- a/templates/404.php +++ b/templates/404.php @@ -1,4 +1,4 @@ - +
diff --git a/templates/index.php b/templates/index.php index 16694b8..bb39ccc 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 54b0de6..e0c8bfe 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 7a1d167..dc2adff 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 749f11a..2eac1e4 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 60392e9..cd5406e 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 3ae0e4a..2246a63 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 e150715..f769258 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 345b962..8e6e717 100644 --- a/templates/single.php +++ b/templates/single.php @@ -1 +1 @@ - + diff --git a/templates/template-custom.php b/templates/template-custom.php index 82ef512..d0bcd12 100644 --- a/templates/template-custom.php +++ b/templates/template-custom.php @@ -5,6 +5,6 @@ ?> - - + +