Пример #1
0
echo $categories['category'];
?>
</h4>
			<p><?php 
echo $appInfo['description'];
?>
</p>
		</div>
	</form>
	<div class="mainContent clear">
		<div class="clear">
			<div class="column">
				<h4>Average User Rating</h4>
				<div class="userRating">
					<?php 
$rating = getAppRating($appInfo['id']);
if ($rating == 0) {
    echo "No ratings yet";
} else {
    echo "<div class='inner' data-rating='" . substr($rating, 0, 3) . "'></div>";
}
?>
				</div> 
			</div>
			<div class="column">
				<?php 
require_once 'core/includes/ratings.inc.php';
?>
			</div>
		</div>
		<?php 
Пример #2
0
<figure class="jumbotron">
	<span>Newest Application</span>
	<a href="apps.php?fullApp=<?php 
    echo $data['id'];
    ?>
">
		<img src="<?php 
    echo $jumboImage;
    ?>
" alt="Image for <?php 
    echo $data['name'];
    ?>
">
	</a>
	<figcaption>
		<h2><i class="fa fa-gamepad"></i><?php 
    echo $data['name'];
    ?>
</h2>
		<?php 
    $jumboRating = getAppRating($data['id']);
    if ($jumboRating != 0) {
        echo "<h2 class='right'>Rating - " . substr($jumboRating, 0, 3) . " / 5</h2>";
    } else {
        echo "<h2 class='right'>No ratings yet</h2>";
    }
    ?>
	</figcaption>
</figure>
<?php 
}