<script src="public/site/js/jquery-3.2.1.min.js"></script>
<script src="public/site/js/jquery.instagramFeed.min.js"></script>
<script src="public/site/js/materialize.min.js"></script>
<script src="public/site/js/owl.carousel.min.js"></script>
<script src="public/site/js/jquery.mask.min.js"></script>
<script src="public/site/js/script.js"></script>
<script defer src="public/site/js/fontawesome-all.min.js"></script>
<!--sweetalert -->
<script type="text/javascript" src="public/admin/js/plugins/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.4.0/lightgallery.umd.min.js" integrity="sha512-e+39qUKXdaNAHHzMx+zHLald62YcdVqJpJGAqs6iIJ6RRWy5/9PKJr1eDAc3SuM/PTpguz9v2d83j6SFgnbTdg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- lightgallery plugins -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.4.0/plugins/thumbnail/lg-thumbnail.umd.min.js" integrity="sha512-k0frmdLGJwy4TgST+EQdWd/RSG38k7/XZmYHhy0246xTOCJnto6KEZGyh7GnGgiU7CKECV9t7RX/CHWKxM6bzQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.4.0/plugins/zoom/lg-zoom.umd.min.js" integrity="sha512-sUhyULf75y+uI1rJe7qF/rDQLesVkJK6ur2/cE0dD30n4NXSms/RqvtzOkItf9D5Wo7zm0gYRLUp4w5k8zhMKQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<?php    
if(isset($_SESSION['mensagem'])): ?>
<script>
    swal({
            title: "<?= ($_SESSION['tipo'] == 'success') ? 'Tudo Certo!' : 'Ooops tem um erro!'; ?>",
            text: "<?= $_SESSION['mensagem']; ?>",   
            type: "<?= $_SESSION['tipo']; ?>",   
            showCancelButton: false,   
            confirmButtonColor: "#77dd77",   
            confirmButtonText: "Tudo bem!",   
            closeOnConfirm: true
        });
</script>
<?php
    unset($_SESSION['tipo']);
    unset($_SESSION['mensagem']);
endif;
?>