    <main>
        <!-- Home -->
        <section id="home" class="p_60">
            <div class="container">
                <div class="bg">
                    <div class="row align-items-center justify-content-between">
                        <div class="col-md-6">
                            <span><?php echo $sayfa["Header Üst Yazısı"];?></span>
                            <h1><?php echo explode("~",$sayfa["Header Alt Bölüm"])[0];?> <br>
                                <?php echo explode("~",$sayfa["Header Alt Bölüm"])[1];?> </h1>
                            <p><?php echo $sayfa["Header Alt Yazısı"];?></p>
                            <div class="d-flex btns">
                                <a href="#product">
                                    <?php echo $sayfa["Header Buton Yazısı"];?>
                                </a>
                                <a class="contact" href="#contact">
                                    <?php echo $sayfa["Header İletişime Geç Butonu"];?>
                                </a>
                            </div>
                        </div>
                        <div class="col-md-6 imgbox">
                            <div class="image d-flex">
                                <div class="img_left">
                                    <svg width="60" height="227" viewBox="0 0 60 227" fill="none"
                                        xmlns="http://www.w3.org/2000/svg">
                                        <rect x="35" y="27" width="25" height="200" fill="#14A800" />
                                        <circle cx="0.86747" cy="0.86747" r="0.86747" fill="white" />
                                        <circle cx="0.86747" cy="12.4338" r="0.86747" fill="white" />
                                        <circle cx="0.86747" cy="23.9999" r="0.86747" fill="white" />
                                        <circle cx="0.86747" cy="35.5662" r="0.86747" fill="white" />
                                        <circle cx="0.86747" cy="47.1325" r="0.86747" fill="white" />
                                        <circle cx="23.9999" cy="0.86747" r="0.86747" fill="white" />
                                        <circle cx="23.9999" cy="12.4338" r="0.86747" fill="white" />
                                        <circle cx="23.9999" cy="23.9999" r="0.86747" fill="white" />
                                        <circle cx="23.9999" cy="35.5662" r="0.86747" fill="white" />
                                        <circle cx="23.9999" cy="47.1325" r="0.86747" fill="white" />
                                        <circle cx="47.1326" cy="0.86747" r="0.86747" fill="white" />
                                        <circle cx="47.1326" cy="12.4338" r="0.86747" fill="white" />
                                        <circle cx="47.1326" cy="23.9999" r="0.86747" fill="white" />
                                        <circle cx="47.1326" cy="35.5662" r="0.86747" fill="white" />
                                        <circle cx="47.1326" cy="47.1325" r="0.86747" fill="white" />
                                        <circle cx="12.4338" cy="0.86747" r="0.86747" fill="white" />
                                        <circle cx="12.4338" cy="12.4338" r="0.86747" fill="white" />
                                        <circle cx="12.4338" cy="23.9999" r="0.86747" fill="white" />
                                        <circle cx="12.4338" cy="35.5662" r="0.86747" fill="white" />
                                        <circle cx="12.4338" cy="47.1325" r="0.86747" fill="white" />
                                        <circle cx="35.5663" cy="0.86747" r="0.86747" fill="white" />
                                        <circle cx="35.5663" cy="12.4338" r="0.86747" fill="white" />
                                        <circle cx="35.5663" cy="23.9999" r="0.86747" fill="white" />
                                        <circle cx="35.5663" cy="35.5662" r="0.86747" fill="white" />
                                        <circle cx="35.5663" cy="47.1325" r="0.86747" fill="white" />
                                    </svg>
                                </div>
                                <div class="img_mid">
                                    <img class="lazy mainimg" width="450" height="460"
                                        src="<?=$site;?>upload/resim/<?php echo $sayfa["Header Yan Resim"];?>"
                                        data-src="<?=$site;?>upload/resim/<?php echo $sayfa["Header Yan Resim"];?>"
                                        alt="">
                                </div>
                                <div class="img_right">
                                    <svg width="35" height="110" viewBox="0 0 35 110" fill="none"
                                        xmlns="http://www.w3.org/2000/svg">
                                        <rect width="15" height="100" fill="#14A800" />
                                        <circle cx="10.4518" cy="85.4518" r="0.451807" fill="white" />
                                        <circle cx="10.4518" cy="91.4759" r="0.451807" fill="white" />
                                        <circle cx="10.4518" cy="97.4999" r="0.451807" fill="white" />
                                        <circle cx="10.4518" cy="103.524" r="0.451807" fill="white" />
                                        <circle cx="10.4518" cy="109.548" r="0.451807" fill="white" />
                                        <circle cx="22.4999" cy="85.4518" r="0.451807" fill="white" />
                                        <circle cx="22.4999" cy="91.4759" r="0.451807" fill="white" />
                                        <circle cx="22.4999" cy="97.4999" r="0.451807" fill="white" />
                                        <circle cx="22.4999" cy="103.524" r="0.451807" fill="white" />
                                        <circle cx="22.4999" cy="109.548" r="0.451807" fill="white" />
                                        <circle cx="34.5482" cy="85.4518" r="0.451807" fill="white" />
                                        <circle cx="34.5482" cy="91.4759" r="0.451807" fill="white" />
                                        <circle cx="34.5482" cy="97.4999" r="0.451807" fill="white" />
                                        <circle cx="34.5482" cy="103.524" r="0.451807" fill="white" />
                                        <circle cx="34.5482" cy="109.548" r="0.451807" fill="white" />
                                        <circle cx="16.476" cy="85.4518" r="0.451807" fill="white" />
                                        <circle cx="16.476" cy="91.4759" r="0.451807" fill="white" />
                                        <circle cx="16.476" cy="97.4999" r="0.451807" fill="white" />
                                        <circle cx="16.476" cy="103.524" r="0.451807" fill="white" />
                                        <circle cx="16.476" cy="109.548" r="0.451807" fill="white" />
                                        <circle cx="28.5241" cy="85.4518" r="0.451807" fill="white" />
                                        <circle cx="28.5241" cy="91.4759" r="0.451807" fill="white" />
                                        <circle cx="28.5241" cy="97.4999" r="0.451807" fill="white" />
                                        <circle cx="28.5241" cy="103.524" r="0.451807" fill="white" />
                                        <circle cx="28.5241" cy="109.548" r="0.451807" fill="white" />
                                    </svg>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="pulsing-rings d-none">
                    <div class="pulsing-ringlet"></div>
                    <div class="pulsing-ringlet"></div>
                    <div class="pulsing-ringlet"></div>
                </div>
            </div>
        </section>
        <!-- .Home -->
        <!-- Product -->
        <!-- .product -->
        <section id="product" <?php if(json_decode(settings("renk"))->urun=="normal"){ echo ' class="not_slider"'; } ?>>
            <div class="container">
                <div class="title">
                    <h2><img src="img/titlesvg.svg"
                            alt=""><?php echo explode("~",$sayfa["Fiyatlandırma Başlık Bölüm"])[0];?></h2>
                    <p><?php echo explode("~",$sayfa["Fiyatlandırma Başlık Bölüm"])[1];?></p>
                </div>
                <div
                    class="product_box  <?php if(json_decode(settings("renk"))->urun=="slider"){ echo ' owl_slider owl-carousel owl-theme" '; } else{ echo ' row"';} ?>">
                    <?php 				 $query = $db->query("SELECT * FROM urun ORDER BY sira ASC");
$urunlerkategori=moduller("urunlerkategori");
                        while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                            if($data->url==Null){
                                $data->url=$data->id;
                            }
							if($urunlerkategori["durum"]=="1"){ 
								$kat =  $db->query("SELECT * FROM kategori where id='".$data->kate."' ORDER BY id DESC");; 
                                $kat = $kat->fetch(PDO::FETCH_OBJ);
								$data->kate_ad=$kat->ad;
							}
                        ?>
                    <div
                        class="product  <?php if(json_decode(settings("renk"))->urun=="slider"){ echo ' swiper-slide" '; } else{ echo ' col-sm-6 col-lg-3"';} ?>">
                        <div class="product-card">
                            <div class="product-img">
                               <!-- <a href="#" data-toggle="modal" data-target="#product<?php echo $data->id;?>">-->
                               <?php if($data->durum=="0"){
                                echo '
                                
                                <a >
                                    <img class="lazy" width="285" height="200"
                                        src="'.$site.'upload/urun/'.$data->resim.'"
                                        data-src="'.$site.'upload/urun/'.$data->resim.'" alt="">
                                </a>
                                
                                ';
                                }
                                else { ?>  
                              <?php if($urunsayfa["durum"]=="1"){  
?>
                                   <a href="<?=$site.settings("urun_url");?>/<?=$data->url;?>">
<?php } else{ ?>
                                <a href="#" data-toggle="modal" data-target="#product<?php echo $data->id;?>">
<?php } ?>
                                    <img class="lazy" width="285" height="200"
                                        src="<?=$site;?>upload/urun/<?php echo $data->resim;?>"
                                        data-src="<?=$site;?>upload/urun/<?php echo $data->resim;?>" alt="">
                                </a>
                                <?php if($data->indirim!=Null){ ?> <div class="discount">
                                    <?php echo $data->indirim; ?>%
                                </div><?php } ?>
                                <?php } ?>
                            </div>
                            <div class="product_body">
                                <div class="product-caption">
                                    <div class="card-tag">
                                        <?php if($data->durum=="0"){
                                        echo '
                                        <a>'.$data->kate_ad.'</a>';
                                        }
                                        else { ?>    
                                       <?php if($urunsayfa["durum"]=="1"){  
?>
                                   <a href="<?=$site.settings("urun_url");?>/<?=$data->url;?>">
<?php } else{ ?>
                                <a href="#" data-toggle="modal" data-target="#product<?php echo $data->id;?>">
<?php } ?><?php echo $data->kate_ad;?></a>
                                        <?php } ?>
                                        
                                      <!--  <a href="#" data-toggle="modal"
                                            data-target="#product<?php echo $data->id;?>"><?php echo $data->kate_ad;?></a>-->
                                    </div>
                                    <div class="product-title">
                                        <?php if($data->durum=="0"){
                                        echo '
                                        <a>'.$data->ad.'</a>';
                                        }
                                        else { ?>     
                                      <?php if($urunsayfa["durum"]=="1"){  
?>
                                   <a href="<?=$site.settings("urun_url");?>/<?=$data->url;?>">
<?php } else{ ?>
                                <a href="#" data-toggle="modal" data-target="#product<?php echo $data->id;?>">
<?php } ?>
                                            <?php echo $data->ad;?>
                                        </a>
                                        <?php } ?>
                                       <!-- <a href="#" data-toggle="modal" data-target="#product<?php echo $data->id;?>">
                                            <?php echo $data->ad;?>
                                        </a>-->
                                    </div>
                                </div>
                                <div class="price-box">
                                    <div class="price_inner">
                                        <div class="d-flex flex-column price">
                                            <?php if($data->fiyat_indirim!=Null){ ?> <span
                                                class="old-price"><del><?php echo $data->fiyat;?> TL</del></span>
                                            <span class="new-price"><?php echo $data->fiyat_indirim;?> TL</span>
                                            <?php } else{ ?><span class="old-price" style="display: none;">&nbsp;</span>
                                            <span class="new-price"><?php echo $data->fiyat;?> TL</span>
                                            <?php } ?>
                                        </div>
                                        <div class="product-rating d-flex flex-column">
                                            <span>5 YILDIZ</span>
                                            <div class="star">
                                                <i class="star">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                        fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
                                                        <path
                                                            d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                                    </svg>
                                                </i>
                                                <i class="star">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                        fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
                                                        <path
                                                            d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                                    </svg>
                                                </i>
                                                <i class="star">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                        fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
                                                        <path
                                                            d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                                    </svg>
                                                </i>
                                                <i class="star">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                        fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
                                                        <path
                                                            d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                                    </svg>
                                                </i>
                                                <i class="star">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                        fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
                                                        <path
                                                            d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                                    </svg>
                                                </i>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="buying_button">                        <?php if($urunsayfa["durum"]=="1"){  
?>
                                   <a href="<?=$site.settings("urun_url");?>/<?=$data->url;?>"> <button type="button">ŞİMDİ SATIN AL </button></a>
<?php
} else{ if($data->durum=="0"){ 
echo '
<button type="button" style="background: var(--bg_1);">TÜKENDİ </button>';
}
else { ?>
 <button type="button" data-toggle="modal" data-target="#product<?php echo $data->id;?>">ŞİMDİ SATIN AL </button>
<?php } } ?>
                                      
                                        
                                        <!-- <button type="button" data-toggle="modal"
                                                data-target="#product<?php echo $data->id;?>">ŞİMDİ
                                                SATIN AL </button>-->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php
                        } ?>
                </div>
                <?php $query = $db->query("SELECT * FROM urun ORDER BY sira ASC");
                    while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                    ?>
                <div class="modal fade product_view" id="product<?php echo $data->id;?>" role="dialog">
                    <div class="modal-dialog modal-lg">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                    <i aria-hidden="true" class="ri-close-line"></i>
                                </button>
                            </div>
                            <div class="modal-body">
                                <div class="modal-inner d-flex">
                                    <div class="product_inner">
                                        <?php
										$img=json_decode($data->resimler,true);
										$say=0;
										while(isset($img[$say])){
											echo '<img width="395" height="500" src="'.$site.'upload/urunler/'.$img[$say].'">';
											$say++;
										}
										?>
                                    </div>
                                    <div class="product_content">
                                        <h4 class="product_name"><?php echo $data->ad;?></h4>
                                        <div
                                            class="price_box d-flex align-items-center justify-content-between flex-wrap">
                                            <h3 class="price">
                                                <?php if($data->fiyat_indirim!=Null){ ?> <span
                                                    class="old-price"><del><?php echo $data->fiyat;?> TL</del></span>
                                                <span class="new-price"><?php echo $data->fiyat_indirim;?> TL</span>
                                                <?php } else{ ?>
                                                <span class="new-price"><?php echo $data->fiyat;?> TL</span>
                                                <?php } ?>
                                            </h3>
                                            <div class="star">
                                                <i class="ri-star-fill"></i>
                                                <i class="ri-star-fill"></i>
                                                <i class="ri-star-fill"></i>
                                                <i class="ri-star-fill"></i>
                                                <i class="ri-star-fill"></i>
                                            </div>
                                        </div>
                                        <?php if(!strstr(html_entity_decode($data->aciklama), "<p"))
                        {  ?>
                                        <p class="product_info">
                                            <?php } ?>
                                            <?php echo str_replace("<p", '<p class="product_info" ',html_entity_decode($data->aciklama));?>
                                            <?php if(!strstr(html_entity_decode($data->aciklama), "<p"))
                            {  ?> </p><?php } ?>
                                        <form method="post" action="<?php echo $site.settings("sepet_url");?>">
                                            <?php 	$liste=array();				 $opt = opsiyonlar($data->id);
                                                while ($opsiyon = $opt->fetch(PDO::FETCH_OBJ)) {
                                                        if (in_array($opsiyon->id,$liste)){
                                                        continue;
                                                    }
                                                    array_push($liste,$opsiyon->id);
                                                ?>
                                       
                                            <div id="selector" class="body-swatch">
                                                <select name="opsiyon[]" class="selectpicker" data-width="100%">
                                                    <option value=""><?php echo $opsiyon->ad;?>: İstemiyorum</option>
                                                    <option value="<?php echo $opsiyon->id; ?>">
                                                        <?php echo $opsiyon->secenek; ?>
                                                        (<?php echo $opsiyon->fiyat; ?>TL)</option>
                                                    <?php 					 $opta = opsiyonlar($data->id);
                                                                while ($ops = $opta->fetch(PDO::FETCH_OBJ)) {
                                                                    if (in_array($ops->id,$liste)){
                                                                        continue;
                                                                    }
                                                                    if($ops->ad!=$opsiyon->ad){
                                                                        continue;
                                                                    }
                                                                    array_push($liste,$ops->id);
                                                                ?>
                                                    <option value="<?php echo $ops->id; ?>">
                                                        <?php echo $ops->secenek; ?>
                                                        (<?php echo $ops->fiyat; ?>TL)</option>
                                                    <?php } ?>
                                                </select>
                                                <i class="ri-arrow-down-s-line"></i>
                                            </div>
                                            <?php  ?>
                                     
                                            <?php } ?>
                                            <div class="content_bottom d-flex flex-column">
                                                <?php  if($data->urun_stok!=Null && $data->urun_stok<=0){ 
                                echo '<div class="alert alert-danger">Stok bulunamadı</div>';
                                }   elseif($data->durum=="0"){ 
                                                    echo '<div class="alert alert-danger">Stok bulunamadı</div>';
                                                    }  else{?>
                                                <div class="btn-group">
                                                    <div class="quantity-box">
                                                        <span class="input-number-decrement">–</span>
                                                        <input class="input-number" type="number" value="1" name="adet"
                                                            min="1" <?php if($data->urun_stok!=Null){ ?>max="<?=$data->urun_stok;?>"<?php } ?>>
                                                        <span class="input-number-increment">+</span>
                                                    </div>
                                                    <div class="btn-ground">
                                                        <button type="submit" name="product"
                                                            value="<?php echo $data->id;?>">
                                                            <i class="ri-shopping-cart-line"></i>
                                                            Şimdi Satın Al
                                                        </button>
                                                    </div>
                                                </div>
                                                <?php $eklenti=eklenti("whatsappsatinal");
                                                        if($eklenti["durum"]=="1"){
                                                        $json=json_decode($eklenti["deger"],true);
                                                        ?>
                                                <a href="<?php echo $json["Whatsapp Linki"];?>" target="_blank">
                                                    <div class="wpbtn">
                                                        <button type="button">
                                                            <i class="ri-whatsapp-line"></i> WhatsApp ile Satın Al
                                                        </button>
                                                    </div>
                                                </a>
                                                <?php } ?>
                                                <?php } ?>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php } ?>
            </div>
        </section>
        <!-- Site info -->
        <section id="order-info" class="bg_post">
            <div class="container">
                <div class="row align-items-center justify-content-between order_container">
                    <div class="col-xl-4 col-md-12 order_left">
                        <div class="side-img">
                            <div class="side-img1">
                                <img width="351" height="495" class="img-fluid lazy"
                                    src="<?=$site;?>upload/resim/<?php echo $sayfa["Ürün Bilgi Yan Resim"];?>"
                                    data-src="<?=$site;?>upload/resim/<?php echo $sayfa["Ürün Bilgi Yan Resim"];?>"
                                    alt="">
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-8 col-md-12 order_right">
                        <div class="info-container">
                            <span class="info_top"><?php echo $sayfa["Ürün Bilgi Üst Yazısı"];?></span>
                            <h2 class="d-flex flex-column">
                                <?php echo $sayfa["Ürün Bilgi Yazısı"];?>
                            </h2>
                            <p>
                                <?php echo $sayfa["Ürün Bilgi Açıklama"];?>
                            </p>
                            <div class="text-feature">
                                <ul>
                                    <li>
                                        <div class="f_wrapper d-flex align-items-center">
                                            <span class="feature-icon">
                                                <i class="fa <?php echo $sayfa["Ürün Bilgi İcon-1"];?>"></i>
                                            </span>
                                            <div class="d-flex flex-column">
                                                <h2><?php echo $sayfa["Ürün Bilgi Yazı Başlık-1"];?></h2>
                                                <p><?php echo $sayfa["Ürün Bilgi Yazı Açıklama-1"];?></p>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="f_wrapper d-flex align-items-center">
                                            <span class="feature-icon">
                                                <i class="fa <?php echo $sayfa["Ürün Bilgi İcon-2"];?>"></i>
                                            </span>
                                            <div class="d-flex flex-column">
                                                <h2><?php echo $sayfa["Ürün Bilgi Yazı Başlık-2"];?></h2>
                                                <p><?php echo $sayfa["Ürün Bilgi Yazı Açıklama-2"];?></p>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="f_wrapper d-flex align-items-center">
                                            <span class="feature-icon">
                                                <i class="fa <?php echo $sayfa["Ürün Bilgi İcon-3"];?>"></i>
                                            </span>
                                            <div class="d-flex flex-column">
                                                <h2><?php echo $sayfa["Ürün Bilgi Yazı Başlık-3"];?></h2>
                                                <p><?php echo $sayfa["Ürün Bilgi Yazı Açıklama-3"];?></p>
                                            </div>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="f_wrapper d-flex align-items-center">
                                            <span class="feature-icon">
                                                <i class="fa <?php echo $sayfa["Ürün Bilgi İcon-4"];?>"></i>
                                            </span>
                                            <div class="d-flex flex-column">
                                                <h2><?php echo $sayfa["Ürün Bilgi Yazı Başlık-4"];?></h2>
                                                <p><?php echo $sayfa["Ürün Bilgi Yazı Açıklama-4"];?></p>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- Site info -->
        <!-- Accordion/FAQ -->
        <section id="accordion" class="p_60">
            <div class="container">
                <div class="row align-items-center justify-content-between">
                    <div class="col-md-8">
                        <div class="d-flex flex-column top">
                            <h2><?php echo $sayfa["Merak Ettiğiniz Sorular"];?></h2>
                            <p><?php echo $sayfa["Sıkça Sorulan Soruların Cevapları"];?></p>
                        </div>
                        <div class="accordion-wrapper">
                            <div class="accordion">
                                <div class="accordion-title">
                                    <div class="d-flex align-items-center">
                                        <i class="ri-chat-1-line quest"></i>
                                        <p><?php echo $sayfa["FAQ Soru-1"];?></p>
                                    </div>
                                    <span>
                                        <i class="ri-arrow-down-s-line"></i>
                                        <i class="ri-arrow-up-s-line"></i>
                                    </span>
                                </div>
                                <div class="panel">
                                    <p>
                                        <?php echo $sayfa["FAQ Cevap-1"];?>
                                    </p>
                                </div>
                            </div>
                            <div class="accordion">
                                <div class="accordion-title">
                                    <div class="d-flex align-items-center">
                                        <i class="ri-chat-1-line quest"></i>
                                        <p><?php echo $sayfa["FAQ Soru-2"];?></p>
                                    </div>
                                    <span>
                                        <i class="ri-arrow-down-s-line"></i>
                                        <i class="ri-arrow-up-s-line"></i>
                                    </span>
                                </div>
                                <div class="panel">
                                    <p>
                                        <?php echo $sayfa["FAQ Cevap-2"];?>
                                    </p>
                                </div>
                            </div>
                            <div class="accordion">
                                <div class="accordion-title">
                                    <div class="d-flex align-items-center">
                                        <i class="ri-chat-1-line quest"></i>
                                        <p><?php echo $sayfa["FAQ Soru-3"];?></p>
                                    </div>
                                    <span>
                                        <i class="ri-arrow-down-s-line"></i>
                                        <i class="ri-arrow-up-s-line"></i>
                                    </span>
                                </div>
                                <div class="panel">
                                    <p>
                                        <?php echo $sayfa["FAQ Cevap-3"];?>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="image">
                            <img class="lazy" width="351" height="495"
                                src="<?=$site;?>upload/resim/<?php echo $sayfa["FAQ Yan Resim"];?>"
                                data-src="<?=$site;?>upload/resim/<?php echo $sayfa["FAQ Yan Resim"];?>" alt="">
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- Accordion/FAQ -->
        <!-- Blog -->
        <section id="blog" class="bg_post p_60">
            <div class="container">
                <div class="title">
                    <h2>
                    <svg width="15" height="1" viewBox="0 0 15 1" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <line y1="0.5" x2="15" y2="0.5" stroke="#2E4468"/>
                    </svg>
                    <?php echo explode("~",$sayfa["Blog Başlık Bölüm"])[0];?></h2>
                    <p>
                        <?php echo explode("~",$sayfa["Blog Başlık Bölüm"])[1];?>
                    </p>
                </div>
                <div class="blog_area row">
                    <?php 			$say=0;		 $query = bloglar();
                            while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                            if($say>=4){
                                break;
                            }
                            $say++;
                        ?>
                    <div class="col-sm-6 col-lg-3 blog_item">
                        <div class="blog_content">
                            <a class="blog_img" href="<?php echo $site;?>blog/<?php echo $data->url;?>">
                                <img class="img-fluid lazy" src="<?=$site;?>upload/blog/<?php echo $data->gorsel;?>"
                                    data-src="<?=$site;?>upload/blog/<?php echo $data->gorsel;?>" alt="">
                            </a>
                            <div class="blog_body">
                                <div class="blog_name">
                                    <a href="<?php echo $site;?>blog/<?php echo $data->url;?>">
                                        <?php echo kisalt(strip_tags(html_entity_decode($data->baslik)),54);?>
                                    </a>
                                </div>
                                <div class="blog_previewtext">
                                    <h6>
                                        <?php echo kisalt(strip_tags(html_entity_decode($data->aciklama)),96);?>
                                    </h6>
                                </div>
                                <a href="<?php echo $site;?>blog/<?php echo $data->url;?>" class="readmore">
                                    Devamını Oku
                                </a>
                            </div>
                        </div>
                    </div>
                    <?php } ?>
                </div>
            </div>
        </section>
        <!-- .blog -->
        <!-- Comments -->
        <section id="comments" class="p_60">
            <div class="container">
                <div class="title">
                    <h2>
                    <svg width="15" height="1" viewBox="0 0 15 1" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <line y1="0.5" x2="15" y2="0.5" stroke="#2E4468"/>
                    </svg>
                    <?php echo explode("~",$sayfa["Müşteri Yorum Başlık Bölüm"])[0];?></h2>
                    <p><?php echo explode("~",$sayfa["Müşteri Yorum Başlık Bölüm"])[1];?></p>
                </div>
                <div class="comments_area comments_slider owl-carousel ">
                    <?php  $query = yorumlar();
                            while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                            ?>
                    <div class="swiper-slide">
                        <div class="d-flex swiper_item">
                            <div class="image">
                                <img class="lazy" src="<?=$site;?>upload/yorum/<?php echo $data->resim;?>"
                                    data-src="<?=$site;?>upload/yorum/<?php echo $data->resim;?>" alt="">
                            </div>
                            <div class="body">
            <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M20.8862 26.03L27.5 27.5L26.03 20.8862C26.9981 19.0755 27.5031 17.0533 27.5 15C27.5 8.09625 21.9037 2.5 15 2.5C8.09624 2.5 2.49999 8.09625 2.49999 15C2.49999 21.9037 8.09624 27.5 15 27.5C17.0533 27.5031 19.0755 26.9981 20.8862 26.03V26.03ZM20.5237 23.3888L19.7075 23.8263C18.2593 24.6002 16.642 25.0034 15 25C13.0222 25 11.0888 24.4135 9.44428 23.3147C7.79979 22.2159 6.51807 20.6541 5.76119 18.8268C5.00431 16.9996 4.80628 14.9889 5.19213 13.0491C5.57798 11.1093 6.53039 9.32746 7.92892 7.92893C9.32744 6.53041 11.1093 5.578 13.0491 5.19215C14.9889 4.8063 16.9996 5.00433 18.8268 5.7612C20.6541 6.51808 22.2159 7.79981 23.3147 9.4443C24.4135 11.0888 25 13.0222 25 15C25 16.6675 24.5937 18.2725 23.825 19.7075L23.3887 20.5238L24.2075 24.2075L20.5237 23.3888V23.3888ZM21.25 15H18.75C18.75 15.9946 18.3549 16.9484 17.6516 17.6517C16.9484 18.3549 15.9945 18.75 15 18.75C14.0054 18.75 13.0516 18.3549 12.3483 17.6517C11.6451 16.9484 11.25 15.9946 11.25 15H8.74999C8.74999 16.6576 9.40847 18.2473 10.5806 19.4194C11.7527 20.5915 13.3424 21.25 15 21.25C16.6576 21.25 18.2473 20.5915 19.4194 19.4194C20.5915 18.2473 21.25 16.6576 21.25 15V15Z" fill="#E89F04"/>
            </svg>
                                <p><?php echo $data->yorum;?></p>
                                <span><?php echo $data->ad;?></span>
                            </div>
                        </div>
                    </div>
                    <?php } ?>
                </div>
            </div>
        </section>
        <!-- Comments -->
        <!-- Contact -->
        <section id="contact" class="bg_post p_60">
            <div class="container">
                <div class="title">
                    <h2>
                    <svg width="15" height="1" viewBox="0 0 15 1" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <line y1="0.5" x2="15" y2="0.5" stroke="#2E4468"/>
                    </svg>
                    <?php echo explode("~",$sayfa["İletişim Başlık Bölüm"])[0];?></h2>
                    <p><?php echo explode("~",$sayfa["İletişim Başlık Bölüm"])[1];?></p>
                </div>
                <form action="" method="post">
                    <div class="row">
                        <div class="col-md-6">
                           <div class="form-group">
                                <i class="ri-user-line"></i>
                                <input type="text" class="form-control icon i_name" required name="name"
                                    id="ContactFormName" placeholder="İsim Soyisim">
                           </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <i class="ri-phone-line"></i>
                                <input type="tel" class="form-control icon i_tel" required maxlength="13" name="telephone"
                                id="ContactFormTelephone" placeholder="Telefon">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                            <i class="ri-mail-line"></i>
                                <input type="email" class="form-control icon i_email" required name="email"
                                id="ContactFormEmail" placeholder="E-Mail Adresiniz">
                            </div>
                        </div>
                        <div class="form-group col-md-12">
                            <textarea required name="message" id="ContactFormMessage"
                                placeholder="Mesajınızı buraya yazınız..."></textarea>
                        </div>
                        <div class="contact-submit col-12">
                            <button type="submit" class="btn contact-action">Şimdi Gönder</button>
                        </div>
                    </div>
                </form>
            </div>
        </section>
        <!-- Contact -->
        <!-- Social -->
        <section id="social" class="p_60">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-md-4 left">
                        <h2>
                        <svg width="15" height="1" viewBox="0 0 15 1" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <line y1="0.5" x2="15" y2="0.5" stroke="#2E4468"/>
                        </svg>
                        <?php echo $sayfa["İnstagram Üst Yazı"];?></h2>
                        <span><?php echo $sayfa["İnstagram Başlık"];?></span>
                        <p><?php echo $sayfa["İnstagram Açıklama"];?></p>
                    </div>
                    <div class="col-md-8 right">
                        <div class="swiper social_area owl-carousel">
                        <?php 	 $query = $db->query("SELECT * FROM instagram_galeri ORDER BY id desc");
                        while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                            ?>
                            <div class="swiper-slide">
                            <div class="post-item">
                                <a class="post-detail" href="<?php echo $data->link;?>" target="_blank">
                                    <img class="lazy" width="180" height="180"
                                        src="<?=$site;?>upload/instagram/<?php echo $data->resim;?>"
                                        data-src="<?=$site;?>upload/instagram/<?php echo $data->resim;?>"
                                        alt="">
                                    <span class="post-hover">
                                        <i class="fa <?=$data->icon;?>" style="font-size:35px;"></i>
                                    </span>
                                </a>
                            </div>
                            </div>
                            <?php } ?>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- Social -->
        <?php if(@$_GET["i"]=="bas"){
                ?>
            <script>
            Swal.fire({
                icon: 'success',
                title: 'Talebiniz Gönderildi',
                text: 'Talebiniz en kısa sürede incelenip, yetkili yanıtı mailinize gönderilecektir.',
                confirmButtonText: '<i class="fa fa-thumbs-up"></i> Tamam'
            })
            </script>
            <?php
            }
        ?>
        <?php if(@$_GET["banka"]=="bas"){
	?>
        <script>
        Swal.fire({
            icon: 'success',
            title: 'Ödeme Bildirildi',
            text: 'Ödeme bildiriminiz onaylandıktan sonra ürününüz teslim edilecektir.',
            confirmButtonText: '<i class="fa fa-thumbs-up"></i> Tamam'
        })
        </script>
        <?php
}
?>
        <?php if(@$_GET["sip"]=="0"){
	?>
        <script>
        Swal.fire({
            icon: 'error',
            title: 'Ödeme Başarısız',
            text: 'Ödeme işlemi başarısız oldu. Lütfen tekrar deneyiniz.',
            confirmButtonText: '<i class="fa fa-thumbs-up"></i> Tamam'
        })
        </script>
        <?php
}
?>
        <?php if(@$_GET["sip"]=="1"){
	?>
        <script>
        Swal.fire({
            icon: 'success',
            title: 'Ödeme Başarılı',
            text: 'Ödeme başarıyla yapıldı. Sipariş detaylarına mailinizden ulaşabilirsiniz.',
            confirmButtonText: '<i class="fa fa-thumbs-up"></i> Tamam'
        })
        </script>
        <?php
}
?>