<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?>
<?php
$seo_url = $_GET['id'];
$aboutAyarCek = $db->prepare("select * from about_ayar where id=:id");
$aboutAyarCek->execute(array(
    'id' => '1'
));
$aboutset = $aboutAyarCek->fetch(PDO::FETCH_ASSOC);

$aboutliste = $db->prepare("select * from about_page where seo_url=:seo_url and dil=:dil order by id ");
$aboutliste->execute(array(
    'seo_url' => $seo_url,
    'dil' => $_SESSION['dil']
));
$about = $aboutliste->fetch(PDO::FETCH_ASSOC);
?>
<?php
$countersettings = $db->prepare("select * from sayac_ayar where id=:id");
$countersettings->execute(array(
    'id' => '1'
));
$countsett = $countersettings->fetch(PDO::FETCH_ASSOC);
?>
<?php
$counters1 = $db->prepare("select * from sayac where durum=:durum and dil=:dil order by sira asc");
$counters1->execute(array(
    'durum' => '1',
    'dil' => $_SESSION['dil']
));
$sayi = 2;
?>
<?php
$counter_counts = $db->prepare("select * from sayac where durum='1' and dil='$_SESSION[dil]'");
$counter_counts->execute();
?>
<?php
$beceriler = $db->prepare("select * from beceri where durum=:durum and dil=:dil order by sira asc");
$beceriler->execute(array(
    'durum' => '1',
    'dil' => $_SESSION['dil']
));
$beceriSettings = $db->prepare("select * from beceri_ayar where id=:id");
$beceriSettings->execute(array(
    'id' => '1'
));
$skillset = $beceriSettings->fetch(PDO::FETCH_ASSOC);
?>
<?php
$page_header_setting = $db->prepare("select * from page_header where page_id='hakkimizda' order by id");
$page_header_setting->execute();
$pagehead = $page_header_setting->fetch(PDO::FETCH_ASSOC);
?>
<?php if ($about[seo_url] == $_GET['id']) { ?>
    <title><?php echo $about['baslik'] ?> | <?php echo $ayar[site_baslik]?></title>
    <meta name="description" content="<?php echo"$aboutset[meta_desc]" ?>">
    <meta name="keywords" content="<?php echo"$aboutset[tags]" ?>">
    <meta name="news_keywords" content="<?php echo"$aboutset[tags]" ?>">
    <meta name="author" content="<?php echo"$ayar[site_baslik]" ?>" />
    <meta itemprop="author" content="<?php echo"$ayar[site_baslik]" ?>" />
    <meta name="robots" content="index follow">
    <meta name="googlebot" content="index follow">
    <meta property="og:type" content="website" />

    <?php include "includes/config/header_libs.php";?>
    <style>

        .progress-bar{
            background-color: #<?=$skillset['bar_sub_bg']?> !important;
        }
        .progress-bar > span{
            background: #<?=$skillset['bar_bg']?>;
        }

        .about-counter-div{background: #<?php echo $about[counter_bgcolor] ?>}
    </style>
</head>
<body>
    <?php include 'includes/template/pre-loader.php'?>
    <?php include 'includes/template/header.php'?>


    <!-- Page Header ====================== !-->
    <style>
        .page-headers-main{width:<?php if($pagehead[width]==1){?> 90% <?php }else {?> 100% <?php }?> ;  padding:<?php echo $pagehead[padding] ?>px 0 <?php echo $pagehead[padding] ?>px 0 ; border:1px solid #<?php echo $pagehead[border_color] ?>;
        <?php if($pagehead[shadow] == 1 ) {?>
            -webkit-box-shadow: inset 0px 5px 10px -7px rgba(0,0,0,0.1);
            -moz-box-shadow: inset 0px 5px 10px -7px rgba(0,0,0,0.1);
            box-shadow: inset 0px 5px 10px -7px rgba(0,0,0,0.1);
        <?php } ?>
        <?php if($pagehead[tip] == 0 ) {?>
            background:#<?php echo $pagehead[bg_color] ?> ;
        <?php } ?>
        <?php if($pagehead[tip] == 1 ) {?>

            background:url(images/uploads/<?php echo $pagehead[bg_image] ?>) ;

            box-shadow: inset 5000px 0 0 0 rgba(0, 0, 0, 0.7); border-color: rgba(0, 0, 0, 1);
        <?php } ?>
    }

    .swiper-slide img{width: 100%;}


    @media screen and (max-width:410px) and (min-width:321px) {


    }


</style>
<div class="page-headers-main about-title about-title-bg">
    <div class="d-table">
        <div class="d-table-cell">
            <div class="container">
                <div class="about-title-text">
                    <h2 style="color:#<?php echo $pagehead[text_color] ?>"><?php echo $about['baslik'] ?></h2>
                    <span style="color:#<?php echo $pagehead[pasif_text_color] ?>; padding-right: 15px;"><?php echo $diller['buradasiniz'] ?>:</span>
                    <ul>
                        <li>
                            <a href="index.html" style="color:#<?php echo $pagehead[text_color] ?>;"><span style="padding-right: 15px; font-weight: 600"><?php echo $diller['anasayfa'] ?></span></a>
                        </li>
                        <li>
                            <i class="icofont-rounded-double-right" style="color:#<?php echo $pagehead[pasif_text_color] ?>; padding-right: 15px;"></i>
                            <span style="padding-right: 15px; color:#<?php echo $pagehead[text_color] ?>;"><?php echo $about['baslik'] ?></span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<section class="about-style-two about-style-three pt-100 pb-30">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col-lg-12">
                <div class="about-text">   
                    <div class="section-head">
                        <h2><?php echo $about[baslik] ?></h2>
                    </div>
                    <?php
                    $icerik  = $about['icerik'];
                    $eski   = "../images";
                    $yeni   = "images";
                    $icerik = str_replace($eski, $yeni, $icerik);
                    ?>
                    <?=$icerik?>
                </div>
            </div>
        </div>
    </div>
</section>  
 <?php if($about[beceri] == 1) { ?>
    <section class="about-style-two about-style-three pb-70">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col-lg-12">
                <div class="about-text">   
                    <div class="section-head">
                        <h2><?php echo $diller['beceri'] ?></h2>
                        <p><?php echo $diller['beceri-aciklamasi'] ?></p>
                    </div>
                    <ul>
                        <?php foreach ($beceriler as $beceri) { ?>
                        <li style="text-align: center">
                            <i class="icofont-check-circled"></i>
                            <br>
                            <?php echo $beceri[baslik] ?>
                            <br><br>
                            %<?php echo $beceri[oran] ?>
                        </li>
                        <?php } ?>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>  
<?php } ?>
<?php if($about[counter] == 1) { ?>
    <div class="counter-style-two pt-100 pb-70 counter-home-main-div">
        <div class="container">
            <div class="row">
                <?php foreach ($counter_counts as $count1){ ?>
                    <div class="col-md-3 col-5 counter-box" style="color:#<?php echo $countsett[box_text_color] ?>;" data-appear-animation="fadeInUp" data-appear-animation-delay="<?=$sayi++;?>00" >
                        <div class="counter-text">
                            <?php if ($countsett[icon] == 1) {?>
                                <i class="fa <?php echo $count1[icon] ?>"></i><br>
                            <?php } ?>
                            <span class="counter" style="color:#<?php echo $countsett[box_text_color] ?>;"><?php echo $count1[count] ?></span>
                            <p><?php echo $count1[baslik] ?></p>
                        </div>
                    </div>
                <?php }?>
            </div>
        </div>
    </div>
<?php } ?>
<?php if ($about[galeri_id] == 0) {} else {?>
    <div class="about-page-images-slider owl-carousel owl-theme" style="padding: 0 0 80px 0">
        <?php
        $galeri_id_liste = $db ->prepare("select * from galeri_resim where kat_id='$about[galeri_id]' order by sira asc");
        $galeri_id_liste->execute();
        while ($galeri = $galeri_id_liste->fetch(PDO::FETCH_ASSOC)){
            ?>

            <div class="swiper-slide">
                <img src="images/gallery/<?php echo $galeri[gorsel] ?>"  style="height: 300px;object-fit:cover">
            </div>

        <?php } ?>

    </div>

<?php } ?>


<?php include 'includes/template/footer.php'?>
</body>
</html>
<?php include "includes/config/footer_libs.php";?>






<?php  } else { ?>
    <script type='text/javascript'> document.location = 'index.php'; </script>
<?php }  ?>
