so hier noch der rest die passte nicht ganz:
PHP
<?php if ($comments) { ?>
<ol class="pinglist">
<?php $count_pings = 1; foreach ($comments as $comment) {
if (k2_comment_type_detection() != "Comment") { ?>
<li class="item" id="comment-<?php comment_ID() ?>">
<?php if (function_exists('comment_favicon')) { ?><span class="favatar"><?php comment_favicon(); ?></span><?php } ?>
<a href="#comment-<?php comment_ID() ?>" title="<?php _e('Permanent Link to this Comment','k2'); ?>" class="counter"><?php echo $count_pings; $count_pings++; ?></a>
<span class="commentauthor"><?php comment_author_link() ?></span>
<small class="commentmetadata"><span class="pingtype"><?php comment_type(); ?></span> <?php _e('on','k2'); ?> <a href="#comment-<?php comment_ID() ?>" title="<?php if (function_exists('time_since')) { $comment_datetime = strtotime($comment->comment_date); echo time_since($comment_datetime) ?> <?php _e('ago','k2'); ?><?php } else { ?><?php _e('Permalink to Comment','k2'); ?><?php } ?>"><?php comment_date('M jS, Y') ?> <?php _e('at','k2'); ?> <?php comment_time() ?></a> <?php edit_comment_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />','<span class="commentseditlink">','</span>'); ?></small>
</li>
<?php } } /* end for each comment */ ?>
</ol>
<?php } ?>
<?php } else { // this is displayed if there are no comments so far ?>
<?php if ('open' == $post-> comment_status) { ?>
<!-- If comments are open, but there are no comments. -->
<li id="leavecomment"><?php _e('No Comments','k2'); ?></li>
<?php } else { // comments are closed ?>
<!-- If comments are closed. -->
<?php if (is_single) { // To hide comments entirely on Pages without comments ?>
<li><?php _e('Comments are currently closed.','k2'); ?></li>
<?php } ?>
<?php } ?>
</ol>
<?php } ?>
<?php if ($comments) { ?>
<?php include (TEMPLATEPATH . '/navigation.php'); ?>
<?php } ?>
<!-- Reply Form -->
<?php if ('open' == $post-> comment_status) : ?>
<div id="loading" style="display: none;">
<?php _e('Posting Your Comment','k2'); ?><br />
<?php _e('Please Wait','k2'); ?>
</div>
<h4><?php _e('Leave a Reply','k2'); ?></h4>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('You must','k2'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"><?php _e('log in','k2'); ?></a> <?php _e('to post a comment.','k2'); ?></p>
<?php else : ?>
<?php /* Load Live Commenting if enabled in the K2 Options Panel */
$k2lc = get_option('k2livecommenting'); if ($k2lc == 0) { ?>
<form id="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" onsubmit="new Ajax.Updater({success: 'commentlist'}, '<?php bloginfo('stylesheet_directory') ?>/comments-ajax.php', {asynchronous: true, evalScripts: true, insertion: Insertion.Bottom, onComplete: function(request){complete(request)}, onFailure: function(request){failure(request)}, onLoading: function(request){loading()}, parameters: Form.serialize(this)}); return false;">
<?php } else { ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php } ?>
<div id="errors" style="display:none">
<?php _e('There was an error with your comment, please try again.','k2'); ?>
</div>
<?php if ( $user_ID ) { ?>
<p><?php _e('Logged in as','k2'); ?> <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('Log out of this account','k2'); ?>"><?php _e('Logout','k2'); ?> »</a></p>
<?php } elseif ($comment_author != "") { ?>
<p><small><?php _e('Welcome back','k2'); ?> <strong><?php echo $comment_author; ?></strong>
<span id="showinfo">(<a href="javascript:ShowUtils();"><?php _e('Change','k2'); ?></a>)</span>
<span id="hideinfo">(<a href="javascript:HideUtils();"><?php _e('Close','k2'); ?></a>)</span></small></p>
<?php } ?>
<?php if ( !$user_ID ) { ?>
<div id="authorinfo">
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><strong><?php _e('Name','k2'); ?></strong> <?php if ($req) __('(required)','k2'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small><strong><?php _e('Mail','k2'); ?></strong> (<?php _e('will not be published','k2'); ?>) <?php if ($req) __('(required)','k2'); ?></small></label></p>
<p><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','k2'); ?></strong></small></label></p>
</div>
<?php } ?>
<!--<p><small><strong>XHTML:</strong> <?php _e('You can use these tags','k2'); ?>: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<?php if (function_exists('show_subscription_checkbox')) { show_subscription_checkbox(); } ?>
<p>
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit','k2'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<br class="clear" />
</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> <!-- Close .comments container -->
<?php } ?>
Alles anzeigen
schon mal dank im vorraus