
<?php
include("admin/include/baglan.php");
include("admin/include/fonksiyonlar.php");

$seo = $_GET['seo'];

if($hizmetler=$db->query("select * from hizmetler where seo='$seo' and tur='hizmetler'")->fetch(PDO::FETCH_ASSOC)){
	
	$id = $hizmetler['id'];
	
}else if($sayfalar=$db->query("select * from sayfalar where seo='$seo' and tur='sayfalar'")->fetch(PDO::FETCH_ASSOC)){
	$id = $sayflar['id'];	
}else if($ekibimiz=$db->query("select * from ekibimiz where seo='$seo' and tur='ekibimiz'")->fetch(PDO::FETCH_ASSOC)){
	$id = $ekibimiz['id'];	
}else if($haberler=$db->query("select * from haberler where seo='$seo' and tur='haberler'")->fetch(PDO::FETCH_ASSOC)){
	$id = $haberler['id'];	
}
?>
<!DOCTYPE html>
<html lang="tr">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="<?=$hizmetler['adi']?>">
    <title><?=$haberler['adi']?><?=$ekibimiz['adi']?><?=$sayfalar['adi']?><?=$hizmetler['adi']?> - <?=$ayar['site_title']?></title>
    <link rel="shortcut icon" href="resimler/<?=$ayar['favicon']?>">
    <link rel="stylesheet" href="assets/css/icons.css">
    <link rel="stylesheet" href="assets/css/animate.css">
    <link rel="stylesheet" href="assets/css/magnific-popup.css">
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css">
    <link rel="stylesheet" href="assets/css/metismenu.css">
    <link rel="stylesheet" href="assets/css/owl.theme.css">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
 <?php include("style.php");?>
    
</head>

<body class="body-wrapper">    
   <?php include("inc/header.php");?>

    <section class="page-banner-wrap bg-cover" style="background-image: url('assets/img/page-banner.jpg')">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-12 col-12">
                    <div class="page-heading text-white">
                        <div class="page-title">
                            <h1><?=$hizmetler['adi']?><?=$ekibimiz['adi']?><?=$haberler['adi']?><?=$sayfalar['adi']?></h1>
                        </div>
                    </div>

                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb">
                          <li class="breadcrumb-item"><a href="./">Anasayfa</a></li>
                          <li class="breadcrumb-item active" aria-current="page"><?=$haberler['adi']?><?=$ekibimiz['adi']?><?=$hizmetler['adi']?><?=$sayfalar['adi']?></li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>
    </section>

    <?php
    if($hizmetler['adi']!=''){
		include("inc/hizmetdetay.php");
	}else if($sayfalar['adi']!=''){
		include("inc/sayfadetay.php");
	}else if($ekibimiz['adi']!=''){
		include("inc/ekipdetay.php");
	}else if($haberler['adi']!=''){
		include("inc/blogdetay.php");
	}
	?>

     

 <?php include("inc/footer.php");?>
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/modernizr.min.js"></script>
    <script src="assets/js/jquery.easing.js"></script>
    <script src="assets/js/popper.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/isotope.pkgd.min.js"></script>
    <script src="assets/js/imageload.min.js"></script>
    <script src="assets/js/scrollUp.min.js"></script>
    <script src="assets/js/owl.carousel.min.js"></script>
    <script src="assets/js/magnific-popup.min.js"></script>
    <script src="assets/js/easypiechart.min.js"></script>
    <script src="assets/js/counterup.min.js"></script>
    <script src="assets/js/wow.min.js"></script>
    <script src="assets/js/metismenu.js"></script>
    <script src="assets/js/timeline.min.js"></script>
    <script src="assets/js/ajax-mail.js"></script>
    <script src="assets/js/active.js"></script>
</body>

</html>