From 8efaf608e863141d2c1a81840d8b12ee711f3f22 Mon Sep 17 00:00:00 2001 From: John Stray Date: Fri, 13 Feb 2015 17:28:31 +0930 Subject: [PATCH] Fixed layout file loading Placing the layout files in the 'inc' folder caused them to be automatically included at load; this caused a multitude of PHP errors. Layouts have been moved to the root plugin folder to fix this issue and to make them easier to access for modifying. Update to #55. --- gs-blog/inc/frontEndFunctions.php | 4 ++-- gs-blog/{inc => }/layout-list.php | 0 gs-blog/{inc => }/layout-post.php | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename gs-blog/{inc => }/layout-list.php (100%) rename gs-blog/{inc => }/layout-post.php (100%) diff --git a/gs-blog/inc/frontEndFunctions.php b/gs-blog/inc/frontEndFunctions.php index 263735d..40257e0 100644 --- a/gs-blog/inc/frontEndFunctions.php +++ b/gs-blog/inc/frontEndFunctions.php @@ -98,10 +98,10 @@ function show_blog_post($slug, $excerpt=false) { # Lets load the template now and let it put all this together. if(isset($_GET['post'])) { - include(BLOGPLUGINFOLDER.'inc/layout-post.php'); + include(BLOGPLUGINFOLDER.'layout-post.php'); return true; } else { - include(BLOGPLUGINFOLDER.'inc/layout-list.php'); + include(BLOGPLUGINFOLDER.'layout-list.php'); return true; } } diff --git a/gs-blog/inc/layout-list.php b/gs-blog/layout-list.php similarity index 100% rename from gs-blog/inc/layout-list.php rename to gs-blog/layout-list.php diff --git a/gs-blog/inc/layout-post.php b/gs-blog/layout-post.php similarity index 100% rename from gs-blog/inc/layout-post.php rename to gs-blog/layout-post.php