From 9d550ad08435318dd65aecf6c64a14abc9e1d020 Mon Sep 17 00:00:00 2001 From: Atanas Angelov Date: Sun, 8 Sep 2019 21:07:21 +0300 Subject: [PATCH] Bring up to date with latest views directory structure --- src/Theme/Theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Theme/Theme.php b/src/Theme/Theme.php index 9f1931a..2fadb0b 100644 --- a/src/Theme/Theme.php +++ b/src/Theme/Theme.php @@ -140,10 +140,10 @@ public function partial( $partial, $child = '', $context = [] ) { $templates = []; if ( $child ) { - $templates[] = "view-partials/${partial}-${child}.php"; + $templates[] = "views/partials/${partial}-${child}.php"; } - $templates[] = "view-partials/${partial}.php"; + $templates[] = "views/partials/${partial}.php"; \WPEmerge\render( $templates, $context ); }