Resolve style issues

This commit is contained in:
QWp6t
2016-12-04 08:35:13 -08:00
parent 0918597d4a
commit c20f53dee4
2 changed files with 68 additions and 50 deletions

View File

@@ -37,12 +37,13 @@ add_filter('excerpt_more', function () {
/**
* Use Blade template engine
*/
foreach(['index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home', 'front_page', 'page', 'paged', 'search', 'single', 'singular', 'attachment'] as $type) {
add_filter("{$type}_template_hierarchy", function($templates) {
foreach ($templates as $template) {
$templates[] = str_replace('.php', '.blade.php', $template);
}
return $templates;
foreach (['index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home', 'front_page',
'page', 'paged', 'search', 'single', 'singular', 'attachment'] as $type) {
add_filter("{$type}_template_hierarchy", function ($templates) {
foreach ($templates as $template) {
$templates[] = str_replace('.php', '.blade.php', $template);
}
return $templates;
});
}
add_filter('template_include', function ($template) {