<?php

require_once 'classes/Rate.php';
$objRate = new Rate();
$posts = $objRate->getPosts();
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>Thumbs up and down with PHP and jQuery</title>
	<meta name="description" content="Thumbs up and down with PHP and jQuery" />
	<meta name="keywords" content="Thumbs up and down with PHP and jQuery" />
	<link href="/css/core.css" rel="stylesheet" type="text/css" />
	<!--[if lt IE 9]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
</head>
<body>

<div id="wrapper">

	<p><a href="#" class="reset">Reset</a></p>
	
	<div id="comments">
		
		<?php 
if (!empty($posts)) {
    ?>
		
			<?php