<?php if (empty($journal3)) { ?>
<style>body { display: none !important; }</style>
<script>window.location = 'index.php?route=journal3/startup/error_not_installed';</script>
<?php } ?>

<?php echo $journal3_bottom; ?>

<?php echo '</div>'; // .site-wrapper ?>

<?php if ($journal3_footer_menu) { ?>
  <footer class="<?php echo $journal3->get('footer_color_scheme'); ?>"><?php echo $journal3_footer_menu; ?></footer>
<?php } ?>

<?php echo '</div>'; // .global-wrapper ?>

<?php foreach ($scripts as $script) { ?>
<?php if ($journal3->js_defer) { ?>
<script src="<?php echo $script; ?>" defer></script>
<?php } else { ?>
<script src="<?php echo $script; ?>"></script>
<?php } ?>
<?php } ?>

<?php if ($journal3->get('customJS')) { ?>
<script type="text/javascript"><?php echo $journal3->get('customJS'); ?></script>
<?php } ?>

<?php if (!$journal3->is_popup && $journal3->get('customCodeFooter')) { ?>
<?php echo $journal3->get('customCodeFooter'); ?>
<?php } ?>

<?php if (!$journal3->is_popup && $journal3->get('scrollTop')) { ?>
<div class="scroll-top"><em class="fa fa-angle-up"></em></div>
<?php } ?>

<?php if (!$journal3->is_popup && $journal3->get('filterActive')) { ?>
<a class="mobile-filter-trigger btn" data-off-canvas="mobile-filter-container" role="button" title="<?php echo $journal3->get('mobileFilterButtonText'); ?>"><?php echo $journal3->get('mobileFilterButtonText'); ?></a>
<?php } ?>

</body></html>
