<?php // Do not delete these lines
	if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Diese Seite nicht direkt aufrufen!');

        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
				?>

				<p><?php _e("Dieser Beitrag ist durch ein Passwort gech&uuml;tzt. Geben sie es bitte ein, um ihn zu sehen."); ?><p>

				<?php
				return;
            }
        }

		/* This variable is for alternating comment background, thanks Kubrick */
		$oddcomment = 'alt';
?>

<!-- You can start editing here. -->

<?php if ($comments) : ?>

	<?php foreach ($comments as $comment) : ?>

		<?php

			$isByAuthor = false;
			if($comment->comment_author_email == 'hatehweo@gmail.com') {
					$isByAuthor = true;
			}
		?>
		<div class="comentarios<?php if($isByAuthor ) { echo "-autor"; } ?>">
		<?php if(function_exists('gravatar')): ?> <div class="gravatar">
			<img src="<?php gravatar("R", 40, "http://www.domain/bild.jpg"); ?>" alt="Gravatar" />
		</div><?php else : ?><?php endif; ?>


		<div class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">

		<h3 class="comentariostitulo"><?php comment_author_link() ?> <?php _e('said'); ?>,</h3>

		<p class="comentariosmeta">
			<?php comment_date('F j, Y') ?>
			@ <a href="#comment-<?php comment_ID() ?>" title="<?php _e('Permanent Link zu diesem Kommentar'); ?>"><?php comment_time() ?></a>
			<?php edit_comment_link(__("Edit"), ' &#183; ', ''); ?>
		</p>

		<?php comment_text() ?>

		</div>
		</div>
		<?php
			if ('alt' == $oddcomment) $oddcomment = '';
			else $oddcomment = 'alt';
		?>

	<?php endforeach; /* end for each comment */ ?>



	<p class="small">
	<?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> Feed f&uuml;r Kommentare zu diesem Eintrag')); ?>
	<?php if ( pings_open() ) : ?>
	&#183; <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a>
	<?php endif; ?>
	</p>

<?php else : // this is displayed if there are no comments so far ?>

	<?php if ('open' == $post-> comment_status) : ?>
		<?php /* No comments yet */ ?>

	<?php else : // comments are closed ?>
		<?php /* Comments are closed */ ?>
		<p><?php _e('Der Kommentarbereich ist geschlossen.'); ?></p>

	<?php endif; ?>

<?php endif; ?>

<?php if ('open' == $post-> comment_status) : ?>

	<h2 id="postcomment"><?php _e('Ein Kommentar hinterlassen'); ?></h2>

	<?php if ( get_option('comment_registration') && !$user_ID ) : ?>

		<p><?php _e('Du musst'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"><?php _e('eingeloggt sein,'); ?></a> <?php _e('um ein Kommentar zu hinterlasen.'); ?></p>

	<?php else : ?>

		<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

		<?php if ( $user_ID ) : ?>

			<p><?php _e('Eingeloggt als'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Diesen Account ausloggen') ?>"><?php _e('Logout'); ?> &raquo;</a></p>

		<?php else : ?>

			<p>
			<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" />
			<label for="author"><?php _e('Name'); ?> <?php if ($req) _e('(ben&ouml;tigt)'); ?></label>
			</p>

			<p>
			<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />
			<label for="email"><abbr title="<?php _e('Dient auch für das Gravatar.'); ?>"><?php _e('E-mail'); ?> <?php if ($req) _e('(ben&ouml;tigt, wird nicht ver&ouml;ffentlicht)'); ?></abbr></label>
			</p>

			<p>
			<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />
			<label for="url"><?php _e('Website'); ?></label>
			</p>
<?php
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') ) {
	$mcsp_info = math_comment_spam_protection();
?> 	<p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="30" tabindex="4" />
	<label for="mcspvalue">Summe aus <?php echo $mcsp_info['operand1'] . ' und ' . $mcsp_info['operand2'] . ' ?' ?></label>
	<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
</p>
<?php } // if function_exists... ?>

		<?php endif; ?>

		<p>
		<textarea name="comment" id="comment" cols="70" rows="10" tabindex="4"></textarea>
		</p>

		<p>
		<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Kommentar abschicken'); ?>" />
		<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 ?>