1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Default Modal on frontend when Bootstrap in use.

This commit is contained in:
Cameron
2016-02-16 10:12:45 -08:00
parent 27d2ed718d
commit 7bc78d6971

View File

@@ -600,7 +600,7 @@ echo "</head>\n";
{ {
foreach($LAYOUT as $key=>$template) foreach($LAYOUT as $key=>$template)
{ {
if($key == '_header_' || $key == '_footer_') if($key == '_header_' || $key == '_footer_' || $key == '_modal_')
{ {
continue; continue;
} }
@@ -680,9 +680,12 @@ else
} }
} }
// Bootstrap Modal Window - too important to template. // Bootstrap Modal Window
/* if(deftrue('BOOTSTRAP'))
echo '<div id="uiModal" style="display:none" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true"> {
// if(empty($LAYOUT['_modal_'])) // leave it set for now.
{
$LAYOUT['_modal_'] = '<div id="uiModal" style="display:none" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-caption">&nbsp;</h4> <h4 class="modal-caption">&nbsp;</h4>
@@ -694,8 +697,11 @@ echo '<div id="uiModal" style="display:none" class="modal hide fade" tabindex="-
<a href="#" data-dismiss="modal" class="btn btn-primary">Close</a> <a href="#" data-dismiss="modal" class="btn btn-primary">Close</a>
</div> </div>
</div> </div>
'; ';
*/ }
echo $LAYOUT['_modal_'];
}