<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
?>
<div class="post-header"><h2>Dit bericht is beveiligd met een wachtwoord. Vul het wachtwoord in om de reacties te kunnen bekijken.</h2></div>
<?php
return;
	}
}
?>

<?php if ($comments) : ?>
<div class="post-header"><h2>Reacties</h2></div>
<?php foreach ($comments as $comment) : ?>
<div class="comtext">
	<h3><?php comment_author_link() ?><br /><span class="nobold">Gepost op <?php comment_date('j F Y') ?></span></h3>
	<div class="comtext-inside">
	<?php if ($comment->comment_approved == '0') : ?><strong>Uw reactie wacht op goedkeuring.</strong><br /><br /><?php endif; ?>
	<?php comment_text() ?>
	</div>
</div><!-- .comtext -->
<?php endforeach; else : ?>
	<?php if ('open' == $post->comment_status) : ?>
	<?php else : ?>
	<div class="comtext">
		<p>Mogelijkheid tot reageren is gesloten.</p>
	</div>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>

<div class="comment-form">
<h3>Laat een reactie achter</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>U moet <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">ingelogd</a> zijn om een reactie te kunnen plaatsen.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Ingelogd als <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> <strong>|</strong> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Uitloggen">Uitloggen &raquo;</a></p>
<br />
<?php else : ?>
<p class="comi"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><strong><?php _e('Naam'); ?></strong> <?php if ($req) __('(verplicht)'); ?></small></label></p>

<p class="comi"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small><strong><?php _e('E-Mail'); ?></strong> (<?php _e('wordt niet gepubliceerd'); ?>) <?php if ($req) __('(verplicht)'); ?></small></label></p>

<p class="comi"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small><strong><?php _e('Website'); ?></strong></small></label></p>
				
<?php endif; ?>
<p class="comi"><textarea class="texti" name="comment" id="comment" cols="50%" rows="10" tabindex="4"></textarea></p>
<p class="comi"><input name="submit" type="submit" id="submit" tabindex="5" value="Reactie verzenden" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>