<?php

require_once 'ayar/Config.php';

include "header.php";

?>
	<!--===== Meta =====-->
	<?php if ($Site->site_ayarlari('hizmetler-title') != ''){ // Meta Title ?>
	<title>
		<?php echo $Site->site_ayarlari('hizmetler-title'); ?>
	</title>
	<?php } else { ?>
	<title>Hizmetler</title>
	<?php } ?>
	<?php if ($Site->site_ayarlari('hizmetler-keywords') != ''){ // Meta Keywords ?>
	<meta name="keywords" content="<?php echo $Site->site_ayarlari('hizmetler-keywords'); ?>">
	<?php } else { ?>

	<?php } ?>
	<?php if ($Site->site_ayarlari('hizmetler-description') != ''){  // Meta Description ?>
	<meta name="description" content="<?php echo $Site->site_ayarlari('hizmetler-description'); ?>">
	<?php } else { ?>
	<?php } ?>

	<section class="padding bg_light">
		<div class="container">
			<div class="row">
				<div class="col-md-12 bottom20"><br>
					<br>
					<br>
					<br>
					<h2 class="text-uppercase"><span class="color_red">Hizmetler</span></h2>
					<br>
					<span style="font-size:12px; color:#000000;"><a href="./">ANA SAYFA</a> / <a href="hizmetlerimiz">HİZMETLER</a></span></div>
			</div>
			<div class="row">
				<?php

			$hizmetler2 = $Site->hizmetler2_listele();

			foreach ($hizmetler2 as $key => $value){
					if ($value['aktifkontrol'] == "aktif") {
		?>
					<a href="hizmet/<?php echo $value['sayfa_seflink']; ?>">
						<div class="col-md-4">
							<div class="team-member top40 text-center">
								<?php 	if(substr($value['hizmeticon'],0,1)=="{"){ ?>
								<div class="team-img"> <i class="fa <?=substr($value['hizmeticon'],1)?>" style="font-size:180px;"></i> </div>
							<?php } else{ ?>
								<div> <img style="border-radius: 25px;" src="upload/images/<?=substr($value['hizmeticon'],1)?>" width="200" height="180" title="<?=substr($value['sayfa_baslik'],1)?>"></div>
							<?php } ?>
								<div class="team-hover">
									<div class="desk">
										<h4 class="bottom10"><br>
        <br>
        <br>
        <br>
        <?php echo substr($value['sayfa_text'],0,140); ?>...</h4>
									</div>
								</div>
							</div>
							<div class="team-title top20 text-center">
								<h3><?php echo $value['sayfa_baslik']; ?></h3>
							</div>
						</div>
					</a>
				<?php } }?>
			</div>
		</div>
	</section>
	<?php include "footer.php"; ?>
