<?php include "includes/header.php"; ?>
<?php include "includes/head_ic.php"; ?>
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?><?php
$urun_modul_settings = $db->prepare("select * from urunmodul_ayar where id='1'");
$urun_modul_settings->execute();
$urunset = $urun_modul_settings->fetch(PDO::FETCH_ASSOC);

$urunkat_listele = $db->prepare("select * from urun_cat where dil='$_SESSION[dil]' and durum='1' and ust_id='0' order by sira asc");
$urunkat_listele->execute();

$urunkat_listeleMobile = $db->prepare("select * from urun_cat where dil='$_SESSION[dil]' and durum='1' and ust_id='0' order by sira asc");
$urunkat_listeleMobile->execute();

$urun_populer_list = $db->prepare("select * from urun where dil='$_SESSION[dil]' and durum='1' order by hit desc limit 5");
$urun_populer_list->execute();
?>
<?php $hashOlusturrandom = rand(0,(int) 9999999999999);?>

    <title>Ürün Kategorileri | <?php echo $ayar['site_baslik']?></title>
    <meta name="description" content="<?php echo"$serv[meta_desc]" ?>">
    <meta name="keywords" content="<?php echo"$serv[tags]" ?>">
    <meta name="news_keywords" content="<?php echo"$serv[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" />

    <main class="main-content">
        <!--== Start Page Header Area Wrapper ==-->
        <div class="page-header-area" data-bg-img="tema/img/photos/bg1.webp">
            <div class="container pt--0 pb--0">
                <div class="row">
                    <div class="col-12">
                        <div class="page-header-content">
                            <h2 class="title"><?php echo $diller['urunkategori'] ?></h2>
                            <nav class="breadcrumb-area">
                                <ul class="breadcrumb">
                                    <li><a href="index.html"><?php echo $diller['anasayfa'] ?></a></li>
                                    <li class="breadcrumb-sep">//</li>
                                    <li><?php echo $diller['urunkategori'] ?></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--== End Page Header Area Wrapper ==-->

        <!--== Start Product Category Area Wrapper ==-->
        <section class="product-area product-category-area bg-color-f2">
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="section-title shape-center text-center">
                            <h5 class="sub-title"><?php echo $diller['kategoriliste'] ?></h5>
                            <h2 class="title"><?php echo $diller['tumkategori'] ?></h2>
                        </div>
                    </div>
                </div>
                <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5 row-gutter-43">
                    <?php foreach ($urunkat_listele as $urunkat) {
                    $urun_alt_kat=$db->prepare("select * from urun_cat where ust_id='$urunkat[id]' and dil='$_SESSION[dil]' and durum='1' order by sira asc");
                    $urun_alt_kat->execute();
                    ?>
                    <div class="col">
                        <!--== Start Product Category Item ==-->
                        <div class="product-category-item">
                            <div class="thumb">
                                <a href="kategori-icerik/<?=$urunkat['id']?>/<?=seo($urunkat['baslik'])?>"><img src="images/product-category/<?=$urunkat['gorsel']?>" width="200" height="200" alt="Image-HasTech"></a>
                            </div>
                            <div class="content">
                                <h3 class="title"><a href="kategori-icerik/<?=$urunkat['id']?>/<?=seo($urunkat['baslik'])?>"><?=$urunkat['baslik']?></a></h3>
                            </div>
                        </div>
                        <!--== End Product Category Item ==-->
                    </div>
                    <?php }?>
                </div>
            </div>
        </section>
        <!--== End Product Category Area Wrapper ==-->
        
        
    </main>

<?php include "includes/footer.php"; ?>