Location: PHPKode > projects > Havalite > havalite/themes/simplepagedesign/comments.php
<div class="article">
<?php

$commForm = hava_comment_form($p);

if($commForm){
?>

<h2 style="display:block; border-bottom:1px solid #ccc;"><?=hava_num_comments($p); ?> Comments</h2>

<?php 
	$commentsResults = hava_comments($p); 
	foreach($commentsResults as $row){
?>
	<div>
		<?=hava_gravatar($row['email']); ?> <a name="<?=$row['id']; ?>"></a>Written by: <a href="<?=correctUrl($row['website']); ?>"><?=$row['name']; ?></a> on <?=hava_date($row['date']); ?>
		<p id="comment_text"><?=$row['comment']; ?></p><span style="display:block; border-bottom:1px dashed #ccc;" /></span>
	</div>

<?php
	}
?>	


<h1 class="post">Write a Comment</h1>
<div id="comment_form">
<?=$commForm; ?>
</div>
<?php
}
?>
</div>
Return current item: Havalite