
    </main>
    <footer>
        <div class="container">
		<?php if($page!="login" && $page!="register"){ ?>
            <div class="top">
                <div class="row">
                    <div class="col-md-6">
                        <div class="links">
                            <a href="<?php echo settings("fb_link");?>">
                                <i class="ri-facebook-fill"></i>
                            </a>
                            <a href="<?php echo settings("twitter_link");?>">
                                <i class="ri-twitter-fill"></i>
                            </a>
                            <a href="<?php echo settings("insta_link");?>">
                                <i class="ri-instagram-fill"></i>
                            </a>
                            <a href="<?php echo settings("wp_link");?>">
                                <i class="ri-whatsapp-fill"></i>
                            </a>
                        </div>
                    </div>
                    <div class="col-md-6 right">
                        <img src="<?=$site;?>public/assets/img/payment.png" alt="">
                    </div>
                </div>
            </div>
            <div class="middle">
                <div class="row align-items-center">
                    <div class="col-md-8">
                        <div class="item">
                            <div class="logo">
                                <img style="max-height: 45px" src="<?=$site;?>upload/<?=settings("site_logo");?>" alt="">
                            </div>
                            <div class="copyright">
                                <p>
                                <?=settings("footer");?>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4 right">
                        <p>
                        <?php echo settings("site_description");?>
                        </p>
                    </div>
                </div>
		</div><?php } else{ ?>
		<style>
		section#login{
			padding-bottom:0px !important;
		}
		</style>
		<?php } ?>
            <div class="bottom text-center">
                <?php $query = $db->query("SELECT * FROM sayfa ORDER BY id DESC");
                    while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                ?>
                <a href="<?php echo $site;?><?php echo $data->sayfa;?>"><?php echo $data->title;?></a>
                <?php } ?>
                <a href="<?php echo $site;?>blog">Blog</a>
                <a href="<?php echo $site;?>banka-hesaplari">Banka Hesaplarımız</a>
            </div>
        </div>
    </footer>
    <?php $eklenti=eklenti("cerez");
        if($eklenti["durum"]=="1"){
        $json=json_decode($eklenti["deger"],true);
        ?>
        <!-- Cookie Popup -->
        <div class="cookieConsentContainer hidden" id="cookieConsentContainer">
            <div class="cookieTitle">
                <a>
                    Çerez Kullanımı
                </a>
            </div>
            <div class="cookieDesc">
            <p>
                Sizlere daha iyi bir hizmet sunabilmek için sitemizde çerezlerden faydalanıyoruz.
                Sitemizi kullanmaya devam ederek çerezleri kullanmamıza izin vermiş olursunuz.
                Detaylı bilgi için <a href="<?php echo $json["Çerez Politikası Linki"];?>" target="_blank">Çerez Politikamızı</a> inceleyebilirsiniz.
                </p>
            </div>
            <div class="cookieButton">
                <button type="button" id="accept">Tamam</button>
            </div>
        </div>
        <!-- Cookie Popup -->
    <?php } ?>
    <?php $eklenti=eklenti("fake-bildirim");
            if($eklenti["durum"]=="1"){
            $json=json_decode($eklenti["deger"],true);
            $arr=explode(",",$json["Şehirler"]);
            $rand = array_rand($arr, 1);
                                $query = $db->query("SELECT * FROM fakebildirim_icerik ORDER BY rand() LIMIT 1");
                            $data = $query->fetch(PDO::FETCH_OBJ);
            ?>
        <section class="custom-social-proof">
            <div class="custom-notification">
            <div class="custom-notification-container">
                <div class="custom-notification-image-wrapper">
                <img id="image_" src="<?=$site;?>upload/fake/<?php
				echo $data->resim;
					?>">
                </div>
                <div class="custom-notification-content-wrapper">
                <p class="custom-notification-content">
            <span id="urun"><?php echo $data->ad;?></span> <?php if($json["Sehir Durum"]=="1"){ ?><span id="sehir"> <?php echo $arr[$rand];?> </span> şehrinden  <?php } ?> satın alındı.
                    <small>
                    <span id="time">1</span> saat önce &nbsp;
                    <i class="fa fa-check-circle"></i> Onaylandı
                    </small>
                </p>
                </div>
            </div>
        </section>
        <script>
            var urun = new Array ();
                    <?php 		$saya=0;			 $query = $db->query("SELECT * FROM fakebildirim_icerik ORDER BY id DESC");
                            while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                echo 'urun['.$saya.'] = "'.html_entity_decode($data->ad).'";';
                $saya++;
                            }
                            ?>
                var Image = new Array ();
                    <?php 		$saya=0;			 $query = $db->query("SELECT * FROM fakebildirim_icerik ORDER BY id DESC");
                            while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                echo 'Image['.$saya.'] = "'.$site.'upload/fake/'.html_entity_decode($data->resim).'";';
                $saya++;
                            }
                            ?>
            var sehir = new Array ();
            <?php
            $say=0;
            $arr=explode(",",$json["Şehirler"]);
            while(isset($arr[$say])){
                echo 'sehir['.$say.'] = "'.$arr[$say].'";';
                $say++;
            }
            ?>
                setInterval(function(){ $(".custom-social-proof").stop().slideToggle('slow'); }, <?php echo $json["Görüntülenme Süresi"];?>000);
                    setInterval(function(){
                        var myNumber = Math.floor(<?php echo $saya;?>*Math.random());
                        $("#image_").attr("src",Image[myNumber]);
                            $('#urun').text(urun[myNumber]);
                    $('#sehir').text(sehir[Math.floor(<?php echo $say;?>*Math.random())]);
                            var timeVal = Math.floor(<?php echo $say;?>*Math.random());
                        $('#time').text(timeVal);
            }, <?php echo $json["Kaç Saniyede Bir Gözüksün?"];?>000);
        </script>
    <?php } ?>
    <?php $eklenti=eklenti("whatsapp");
        if($eklenti["durum"]=="1"){
        $json=json_decode($eklenti["deger"],true);
        ?>
        <section id="fixed-whatsapp">
            <div class="container p-0 item">
                <a class="item-detail" href="<?php echo $json["Whatsapp Linki"];?>" target="_blank">
                    <div class="icon">
                    <i class="ri-whatsapp-fill"></i>
                    </div>
                    <span>İletişime Geç</span>
                </a>
            </div>
        </section>
    <?php } ?>
    <?php $eklenti=eklenti("yukari-cik");
        if($eklenti["durum"]=="1"){
        $json=json_decode($eklenti["deger"],true);
        ?>
            <div class='back-to-top' id='back-to-top' title='Back to top'><i class="ri-arrow-up-line"></i></div>
    <?php } ?>
					
<script src="<?=$site;?>public/assets/js/jquery.min.js"></script>
<script src="<?=$site;?>public/assets/js/bootstrap.bundle.min.js"></script>
<script src="<?=$site;?>public/assets/js/owl.carousel.min.js"></script>
<script src="<?=$site;?>public/assets/js/aos.js"></script>
<script src="<?=$site;?>public/assets/js/jquery.easy-ticker.min.js"></script>
<script src="<?=$site;?>public/assets/js/bootstrap-select.min.js"></script>
<script src="<?=$site;?>public/assets/js/popper.min.js"></script>
<script src="<?=$site;?>public/assets/js/jquery.sticky.js"></script>
<script src="<?=$site;?>public/assets/js/customslide.js"></script>
<script src="<?=$site;?>public/assets/js/scripts.js"></script>
<script type="text/javascript">
        $(document).ready(function() {
            $('.owl_slider').owlCarousel({
            loop: true,
            rewind: true,
            margin: 30,
            nav: false,
            dots: false,
            autoplay: false,
            lazyLoad: true,
            sautoplayTimeout: 5000,
            autoplayHoverPause: true,
            responsive:{
            0:{
                items: 1,
            },
            625:{
                items: 2
            },
            880:{
                items: 3
            },
            1199:{
                items: 4
            }
            }
        });
         });
        $('.comments_slider').owlCarousel({
                loop: true,
           
                rewind: true,
                margin: 30,
                nav: false,
                autoplay: true,
                lazyLoad: true,
                sautoplayTimeout: 5000,
                autoplayHoverPause: true,
                dots: true,
                responsive:{
            0:{
                items: 1
            },
            660:{
                items: 2
            },
            1010:{
                items: 3
            }
                }
            });
        $('.social_area').owlCarousel({
                loop: true,
           
                rewind: true,
                margin: 30,
                nav: false,
                autoplay: true,
                lazyLoad: true,
                sautoplayTimeout: 5000,
                autoplayHoverPause: true,
                dots: false,
                responsive:{
                    0:{
                items: 1,
                },
                506:{
                    items: 2
                },
                979:{
                    items: 3
                },
                1199: {
                    items: 4
                }
                }
            });
    </script>
<?php echo html_entity_decode(settings("ek_footer"));?>
   <script type="text/javascript">
        $(document).ready(function() {
            $(".detail-mobile").on("click", function() {
                var $this = $(this);
                $this.next().slideToggle();
            })
        });
    </script>
</body>
</html>