Skip to content

Commit

Permalink
Bring up to date with latest views directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed Sep 8, 2019
1 parent 619f90f commit 9d550ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Theme/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 9d550ad

Please sign in to comment.