<?php echo !defined("GUVENLIK") ? die("Erisim Engellendi!.") : null;?>
<?php
if(strip_tags(isset($_GET['id'])))
{
	$Sorgu = $db->prepare("SELECT * FROM ekibimiz WHERE seo = ? AND durum = ? AND dil = ?");
	$Sorgu->execute(array($_GET['id'],1,$_SESSION['k_dil']));
	if($Sorgu->rowCount()){
		$Sonuc 		= $Sorgu->fetch(PDO::FETCH_ASSOC);
	}else{
		header("Location:".$url.(altklasor == "1" ? '/' : '')."404".$html."");
		exit();
	}
}
else
{
	$Sorgu = $db->prepare("SELECT * FROM ekibimiz WHERE durum = ? AND dil = ? ORDER BY id ASC");
	$Sorgu->execute(array(1,$_SESSION['k_dil']));
	if($Sorgu->rowCount()){
		$Sonuc 		= $Sorgu->fetch(PDO::FETCH_ASSOC);
	}else{
		header("Location:".$url.(altklasor == "1" ? '/' : '')."404".$html."");
		exit();
	}
}
$menubul 	= $db->query("SELECT * FROM menu WHERE menu_url = '".$htc['ekiburl']."' OR link = '".$htc['ekiburl']."' AND dil = '{$_SESSION['k_dil']}'")->fetch(PDO::FETCH_ASSOC);
$menubas 	= $db->query("SELECT * FROM menu WHERE id = '{$menubul['menu_ust']}' AND dil = '{$_SESSION['k_dil']}'")->fetch(PDO::FETCH_ASSOC);		
?>
<!-- Start main-content -->
<div class="main-content">

    <!-- Section: inner-header -->
    <section class="inner-header bg-lighter">
		<div class="container pt-10 pb-10">
			<!-- Section Content -->
			<div class="section-content">
				<div class="row d-ortala">
					<div class="col-md-11">
						<h3 class="font-30 mb-0 mt-10"><?php echo $Sonuc['adi'];?></h3>
						<ol class="breadcrumb text-black mt-0 mb-10">
							<li><a href="<?php echo $htc['anaurl'];?><?php echo $html;?>"><?=@$dil['txt56'];?></a></li>
							<?php if($menubas['menu_isim'] != ""){?>
							<li><a href="<?php echo($menubas['menu_url'] == "0" ? $menubas['link'] : $menubas['menu_url'].$html);?>"><?php echo ilkbuyuk($menubas['menu_isim']);?></a></li>
							<?php }?>
							<li class="active text-theme-colored"><?php echo $Sonuc['adi'];?></li>
						</ol>
					</div>
					<div class="col-md-1">
						<a href="javascript:history.back();" class="sayfa-geri"><span class="icon"><i class="fas fa-arrow-left"></i></span><?=@$dil['txt57'];?></a>
					</div>
				</div>
			</div>
		</div>
	</section>

    <!-- Section: Experts Details -->
    <section>
        <div class="container pt-50 pb-50">
            <div class="section-content">
                <div class="row">
                    <div class="col-md-4">
                        <div class="thumb">
                            <img src="<?php echo tema;?>/uploads/ekibimiz/<?php echo $Sonuc['resim'];?>" alt="<?php echo $Sonuc['adi'];?>">
                        </div>
                    </div>
                    <div class="col-md-8">
                        <h4 class="name font-24 mt-0 mb-0"><?php echo $Sonuc['adi'];?></h4>
                        <h5 class="mt-5 text-theme-color-2"><?php echo $Sonuc['gorev']; ?></h5>
                        <?php echo $Sonuc['aciklama']; ?>
                        <h4 class="line-bottom"><a class="text-theme-color-2" href="<?php echo $htc['ekiburl']; ?><?php echo $html;?>"><?=@$dil['txt88'];?></a></h4>
						<ul class="styled-icons icon-dark icon-theme-colored icon-sm mt-15 mb-0">
                            <?php if($Sonuc['facebook']){?><li><a target="_blank" href="<?php echo $Sonuc['facebook']; ?>"><i class="fab fa-facebook-f"></i></a></li><?php }?>
							<?php if($Sonuc['twitter']){?><li><a target="_blank" href="<?php echo $Sonuc['twitter']; ?>" ><i class="fab fa-twitter"></i></a></li><?php }?>
							<?php if($Sonuc['instagram']){?><li><a target="_blank" href="<?php echo $Sonuc['instagram']; ?>"><i class="fab fa-instagram"></i></a></li><?php }?>
							<?php if($Sonuc['linkedin']){?><li><a target="_blank" href="<?php echo $Sonuc['linkedin']; ?>"><i class="fab fa-linkedin-in"></i></a></li><?php }?>
							<?php if($Sonuc['youtube']){?><li><a target="_blank" href="<?php echo $Sonuc['youtube']; ?>" title="youtube"><i class="fab fa-youtube"></i></a></li><?php }?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

</div>
<!-- end main-content -->