From 7bc78d69715f83597cd5419c786920c26cc3e98d Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 16 Feb 2016 10:12:45 -0800 Subject: [PATCH] Default Modal on frontend when Bootstrap in use. --- e107_core/templates/header_default.php | 40 +++++++++++++++----------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/e107_core/templates/header_default.php b/e107_core/templates/header_default.php index c58a5c954..16a6df2a6 100644 --- a/e107_core/templates/header_default.php +++ b/e107_core/templates/header_default.php @@ -600,7 +600,7 @@ echo "\n"; { foreach($LAYOUT as $key=>$template) { - if($key == '_header_' || $key == '_footer_') + if($key == '_header_' || $key == '_footer_' || $key == '_modal_') { continue; } @@ -680,22 +680,28 @@ else } } -// Bootstrap Modal Window - too important to template. -/* -echo ' -'; -*/ +// Bootstrap Modal Window +if(deftrue('BOOTSTRAP')) +{ +// if(empty($LAYOUT['_modal_'])) // leave it set for now. + { + $LAYOUT['_modal_'] = ' + '; + } + + echo $LAYOUT['_modal_']; +}