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:
@@ -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">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
<h4 class="modal-caption"> </h4>
|
<h4 class="modal-caption"> </h4>
|
||||||
@@ -695,7 +698,10 @@ echo '<div id="uiModal" style="display:none" class="modal hide fade" tabindex="-
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
echo $LAYOUT['_modal_'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user