Skip to content

Commit

Permalink
Allow for child themes
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed May 19, 2017
1 parent c5d91cd commit 41ef60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-kind-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public static function get_view_part($slug, $name = null) {
continue;
}
// If the Theme Has a kind_views directory look there first.
if ( file_exists( get_template_directory() . '/kind_views/' . $template_name ) ) {
$located = get_template_directory() . '/kind_views/' . $template_name;
if ( file_exists( get_stylesheet_directory() . '/kind_views/' . $template_name ) ) {
$located = get_stylesheet_directory() . '/kind_views/' . $template_name;
break;
}
// Look in the views subdirectory.
Expand Down

0 comments on commit 41ef60d

Please sign in to comment.