Remove template_part, template_sidebar, temp sidebar fix

This commit is contained in:
Ben Word
2015-12-26 17:34:43 -06:00
parent 67c190fc41
commit abeea0f76c
11 changed files with 17 additions and 35 deletions

View File

@@ -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