Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
- <p><?php _e('Enter your password to view comments.'); ?></p>
- <?php return; endif; ?>
- <?php if ( comments_open() ) : ?>
- <h2 id="comments"><a href="#commentform" title="<?php _e('Leave a comment'); ?>"><?php _e('Leave a comment'); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/arrow.png" width="19" height="10" alt="Arrow" style="vertical-align: middle;" /></a></h2>
- <?php endif; ?>
- <?php if($comments) : ?>
- <ol id="commentlist">
- <?php foreach ($comments as $comment) : ?>
- <? $userdata = get_userdata($comment->user_id); ?>
- <li id="comment-<?php comment_ID() ?>" class="comment<?php if($userdata->user_level > 0) echo ' admincomment'; ?>">
- <div class="commenttext">
- <div class="paperclip"></div>
- <?php echo get_avatar($comment, $size='50'); ?>
- <span class="alignright"><?php comment_date('<!--:de-->j. F Y<!--:--><!--:en-->jS F, Y<!--:-->'); ?><?php edit_comment_link(__("Edit This"), ' | '); ?></span>
- <h3><?php comment_author_link() ?></h3>
- <?php comment_text(); ?>
- </div>
- </li>
- <?php endforeach; ?>
- </ol>
- <?php endif; ?>
- <?php if ( comments_open() ) : ?>
- <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
- <p>Du mußt <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">eingeloggt</a> sein, um einen Kommentar abzugeben.</p>
- <?php else : ?>
- <div id="shadow">
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- <div id="commentleft">
- <textarea name="comment" id="comment" rows="20" cols="100" tabindex="1"></textarea>
- <input style="display: none;" name="submit" type="submit" id="submit" />
- <input type="submit" class="alignright" value="<?php _e('<!--:de-->Karte abschicken<!--:--><!--:en-->Send card<!--:-->'); ?>" tabindex="5" style="margin: 10px;" />
- </div>
- <div id="commentright">
- <?php if ( $user_ID ) : ?>
- <p>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('Log out of this account') ?>">Logout »</a></p>
- <?php else : ?>
- <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
- <label for="author"><small><?php if ($req) echo '* '; ?>Name</small></label></p>
- <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
- <label for="email"><small><?php if ($req) echo '* '; ?><?php _e('<!--:de-->E-Mail (wird nicht veröffentlicht)<!--:--><!--:en-->E-mail (will not be published)<!--:-->'); ?></small></label></p>
- <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
- <label for="url"><small>Homepage</small></label></p>
- <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
- <?php endif; ?>
- </div>
- <div id="allowedhtml"><small><strong><?php _e('<!--:de-->Erlaubtes HTML<!--:--><!--:en-->Allowed HTML<!--:-->'); ?>:</strong> <?php echo allowed_tags(); ?> <strong>|</strong> <?php _e('<!--:de-->Codeschnipsel können in `backticks` gepostet werden. <strong>Beispiel</strong><!--:--><!--:en-->Code snippets can be posted in `backticks`. <strong>Example</strong><!--:-->'); ?>: `<?php echo "Hi!"; ?>`</small></div>
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- </div>
- <?php endif; // If registration required and not logged in ?>
- <?php else : // Comments are closed ?>
- <p><?php _e('Die Kommentar-Funktion ist zur Zeit deaktiviert.'); ?></p>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment