<?php if ( defined("PILOT_GLOBAL") != true ) { die(); } ?>
<ul class="card">
<?php
	$sql_feat_query = $Tumdconnect->query("SELECT * FROM `".GAMES."` WHERE `published` = '1' AND `featured`='1' LIMIT ".$Tumd['config']['setting']['featured_game_limit']);
	while($featured_games = mysqli_fetch_array($sql_feat_query)) {
		$pilot_game = gameData($featured_games);
?>
	<li class="card-item">
		<figure class="card-game">
			<span class="card-icon-corner"></span>
			<i class="fa fa-heart icon-18 icon-corner"></i>
			<a class="g-media" data-href="<?=$pilot_game['game_url']?>" href="<?=$pilot_game['game_url']?>">
				<img src="<?=$pilot_game['image_url']?>" width="140px" height="96px">
				<span class="name ellipsis"><?=$pilot_game['name']?></span>
				<figcaption class="caption">
					<div class="rating <?=($featured_games['rating'] <= 3) ? 'emp':''?>" title="<?=$featured_games['rating']?> <?=$lang['of_5_stars']?>" value="<?=$featured_games['rating']?>">
						<span class="fa fa-star"></span>
						<span class="rating-num"><?=$featured_games['rating']?></span>
					</div>
				</figcaption>
			</a>
			<span class="cb-pro"></span>
		</figure>
	</li>
<?php } ?>
</ul>