<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?><?php
$ozelliksettings = $db->prepare("select * from ozellik_ayar where id='1'");
$ozelliksettings->execute();
$ozellikset = $ozelliksettings->fetch(PDO::FETCH_ASSOC);
$ozelliklimit = $ozellikset["ozellik_limit"];

$num = 1;
$ozellik_listele = $db->prepare("select * from ozellik where durum='1' and dil='$_SESSION[dil]' and anasayfa='1' order by sira asc limit $ozelliklimit");
$ozellik_listele->execute();


?>

<style>
    .ozellik-home-main-div{width:<?php if($ozellikset[width]==1){?> 90%; <?php }else {?> 100% <?php }?> ; height: auto; overflow: hidden; background-color: #<?php echo $ozellikset[back_color] ?>; padding: <?php echo $ozellikset[padding] ?>px 0;margin: auto;text-align: center; }
    .features-main-header{background-color: #<?php echo $ozellikset[head_color] ?>; }
    .features-bottom-arrow{position: absolute; left:50%; margin-top: 0px}
    .features-bottom-arrow i{font-size:90px; color:#<?php echo $ozellikset[head_color] ?>;}
</style>
<div class="process-section ozellik-home-main-div">
    <div class="container">
        <?php if ($ozellik_listele->rowCount() > 0) { ?>
            <div class="row">
                <?php foreach ($ozellik_listele as $oz) { ?>

                    <div class="col-md-4 col-sm-6">
                        <div class="process-card">
                            <i class="fa <?php echo $oz[icon]?>" style="color:#<?php echo $ozellikset[icon_color]?>;" style="background: #<?php echo $ozellikset[icon_back_color]?>; border-radius: <?php echo $ozellikset[icon_border_radius]?>px;"z></i>
                            <h3 style="color:#<?php echo $ozellikset[box_head_color]?>"><?php echo $oz[baslik]?></h3>
                            <p  style="color:#<?php echo $ozellikset[box_spot_color]?>"><?php echo $oz[spot]?></p>
                        </div>
                    </div> 
                <?php } ?>
            </div>
            <?php
            if($ozellikset[ozellik_button] == 1) {
                ?>
                <div class="ozellik-home-button-div">
                    <a class="btn btn-<?php echo $ozellikset[button_bg]?> font-14 font-medium" href="ozellikler" role="button"><?php echo $diller['ozellik-tumu']?></a>
                </div>
            <?php }?>
        <?php } ?>
    </div>
</div>