mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Default Modal on frontend when Bootstrap in use.
This commit is contained in:
parent
27d2ed718d
commit
7bc78d6971
@ -600,7 +600,7 @@ echo "</head>\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 '<div id="uiModal" style="display:none" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-caption"> </h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Loading…</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" data-dismiss="modal" class="btn btn-primary">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
*/
|
||||
// Bootstrap Modal Window
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
// 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">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-caption"> </h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Loading…</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" data-dismiss="modal" class="btn btn-primary">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
echo $LAYOUT['_modal_'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user