From 471df03df12d4f0d49fab9e4d4b01bddf7ea04a1 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 31 Dec 2014 17:33:31 -0800 Subject: [PATCH] Added check for sitedown template in theme /templates folder. --- sitedown.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sitedown.php b/sitedown.php index 71d634979..95218b630 100644 --- a/sitedown.php +++ b/sitedown.php @@ -3,17 +3,13 @@ + ----------------------------------------------------------------------------+ | e107 website system | -| Copyright (C) 2008-2009 e107 Inc +| Copyright (C) 2008-2015 e107 Inc | http://e107.org | | | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). | -| $Source: /cvs_backup/e107_0.8/sitedown.php,v $ -| $Revision$ -| $Date$ -| $Author$ +----------------------------------------------------------------------------+ */ require_once('class2.php'); @@ -32,7 +28,11 @@ require_once(e_CORE.'shortcodes/batch/sitedown_shortcodes.php'); if (!$SITEDOWN_TABLE) { - if (file_exists(THEME.'sitedown_template.php')) + if (file_exists(THEME.'templates/sitedown_template.php')) //v2.x location. + { + require_once(THEME.'templates/sitedown_template.php'); + } + elseif (file_exists(THEME.'sitedown_template.php')) //v1.x location { require_once(THEME.'sitedown_template.php'); } @@ -41,4 +41,5 @@ if (!$SITEDOWN_TABLE) require_once(e_CORE.'templates/sitedown_template.php'); } } + echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);