
</div>

   <!-- jQuery library -->
    <script src="<?php echo base_url();?>files/assets/js/lib/jquery-3.6.0.min.js"></script>

    <!-- Bootstrap 5 js -->
    <script src="<?php echo base_url();?>files/assets/js/lib/bootstrap.min.js"></script>

    <!-- Pluglin Link -->
    <script src="<?php echo base_url();?>files/assets/js/lib/slick.min.js"></script>
    <script src="<?php echo base_url();?>files/assets/js/lib/magnific-popup.min.js"></script>

    <!-- Main js -->
    <script src="<?php echo base_url();?>files/assets/js/mainfile.js"></script>

<?php
if($this->uri->segment(1) == 'sgallery')
{
?>
    <!-- plugin work lightgallery -->
    <script src="<?=base_url()?>assets/lightgallery/js/lightgallery.umd.js"></script>
    <script src="<?=base_url()?>assets/lightgallery/plugins/thumbnail/lg-thumbnail.umd.js"></script>
    <script src="<?=base_url()?>assets/lightgallery/plugins/zoom/lg-zoom.umd.js"></script>
    <script src="<?=base_url()?>assets/lightgallery/plugins/video/lg-video.umd.js"></script>
    <script src="<?=base_url()?>assets/lightgallery/plugins/autoplay/lg-autoplay.umd.js"></script>
    <script src="<?=base_url()?>assets/lightgallery/plugins/fullscreen/lg-fullscreen.umd.js"></script>
    <script src="<?=base_url()?>assets/lightgallery/js/video.min.js"></script>

    <script type="text/javascript">
        lightGallery(document.getElementById('lightgallery'), {
            selector: 'a',
            plugins: [lgThumbnail, lgVideo, lgAutoplay, lgFullscreen],
            videojs: true,
            videojsOptions: {
                muted: true,
            },
            mobileSettings: {
                controls: true,
                showCloseIcon: true,
                download: true,
            },
            speed: 500,
            thumbnail: true,           
        });

        lightGallery(document.getElementById('lightgalleryVideo'), {
            selector: 'a',
            plugins: [lgThumbnail, lgVideo, lgAutoplay, lgFullscreen],
            videojs: true,
            videojsOptions: {
                muted: true,
            },
            mobileSettings: {
                controls: true,
                showCloseIcon: true,
                download: true,
            },
            speed: 500,
            thumbnail: true,           
        });

        

    </script>
    <!-- end plugin work lightgallery -->
<?php 
}
?>


</body>

</html>