<?php
if ($post) {
foreach ($post as $teams) {
    $featuresData = json_decode($teams['features'], true);
    ?>
    <div class="col-xl-3 col-lg-4 col-md-6 col-sm-8" data-vvveb-disabled-noback>
        <div class="team-item-two">
            <div class="team-thumb-two">
                <a href="#"><img src="<?=image($teams['image'])?>" alt=""></a>
                <div class="team-social-two">
                    <ul class="list-wrap">
                        <?php if($featuresData['facebook']){?><li><a href="<?=$featuresData['facebook']?>"><i class="lab fa-facebook-f"></i></a></li><?php } ?>
                        <?php if($featuresData['twitter']){?><li><a href="<?=$featuresData['twitter']?>"><i class="lab fa-twitter"></i></a></li><?php } ?>
                        <?php if($featuresData['instagram']){?><li><a href="<?=$featuresData['instagram']?>"><i class="lab fa-instagram"></i></a></li><?php } ?>
                        <?php if($featuresData['pinterest']){?><li><a href="<?=$featuresData['pinterest']?>"><i class="lab fa-pinterest-p"></i></a></li><?php } ?>
                    </ul>
                </div>
            </div>
            <div class="team-content-two">
                <h2 class="title"><a href="<?=DOMAIN?>/<?=$teams['sef']?>"><?=$teams['title']?></a></h2>
                <span><?=$featuresData['job']?></span>
            </div>
        </div>
    </div>
<?php }
} else {
    echo data_none;
}
?>

