Guest User

Ginchen

a guest
Jun 24th, 2009
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.82 KB | None | 0 0
  1. <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
  2. <p><?php _e('Enter your password to view comments.'); ?></p>
  3. <?php return; endif; ?>
  4.  
  5. <?php if ( comments_open() ) : ?>
  6.     <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>
  7. <?php endif; ?>
  8.  
  9. <?php if($comments) : ?>
  10. <ol id="commentlist">
  11.  
  12. <?php foreach ($comments as $comment) : ?>
  13.  
  14. <? $userdata = get_userdata($comment->user_id); ?>
  15.  
  16.     <li id="comment-<?php comment_ID() ?>" class="comment<?php if($userdata->user_level > 0) echo ' admincomment'; ?>">
  17.         <div class="commenttext">
  18.             <div class="paperclip"></div>
  19.             <?php echo get_avatar($comment, $size='50'); ?>
  20.             <span class="alignright"><?php comment_date('<!--:de-->j. F Y<!--:--><!--:en-->jS F, Y<!--:-->'); ?><?php edit_comment_link(__("Edit This"), ' | '); ?></span>
  21.             <h3><?php comment_author_link() ?></h3>
  22.             <?php comment_text(); ?>
  23.         </div>
  24.     </li>
  25. <?php endforeach; ?>
  26.  
  27. </ol>
  28.  
  29. <?php endif; ?>
  30.  
  31. <?php if ( comments_open() ) : ?>
  32.  
  33. <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  34. <p>Du mu&szlig;t <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">eingeloggt</a> sein, um einen Kommentar abzugeben.</p>
  35. <?php else : ?>
  36.  
  37. <div id="shadow">
  38.     <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  39.        
  40.         <div id="commentleft">
  41.            
  42.             <textarea name="comment" id="comment" rows="20" cols="100" tabindex="1"></textarea>
  43.             <input style="display: none;" name="submit" type="submit" id="submit" />
  44.             <input type="submit" class="alignright" value="<?php _e('<!--:de-->Karte abschicken<!--:--><!--:en-->Send card<!--:-->'); ?>" tabindex="5" style="margin: 10px;" />
  45.         </div>
  46.        
  47.         <div id="commentright">
  48.            
  49.             <?php if ( $user_ID ) : ?>
  50.            
  51.             <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 &raquo;</a></p>
  52.            
  53.             <?php else : ?>
  54.            
  55.             <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
  56.             <label for="author"><small><?php if ($req) echo '* '; ?>Name</small></label></p>
  57.            
  58.             <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
  59.             <label for="email"><small><?php if ($req) echo '* '; ?><?php _e('<!--:de-->E-Mail (wird nicht ver&ouml;ffentlicht)<!--:--><!--:en-->E-mail (will not be published)<!--:-->'); ?></small></label></p>
  60.            
  61.             <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
  62.             <label for="url"><small>Homepage</small></label></p>
  63.            
  64.             <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  65.            
  66.             <?php endif; ?>
  67.            
  68.         </div>
  69.        
  70.         <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&ouml;nnen in `backticks` gepostet werden. <strong>Beispiel</strong><!--:--><!--:en-->Code snippets can be posted in `backticks`. <strong>Example</strong><!--:-->'); ?>: `&lt;?php echo "Hi!"; ?&gt;`</small></div>
  71.        
  72.         <?php do_action('comment_form', $post->ID); ?>
  73.        
  74.     </form>
  75. </div>
  76.  
  77. <?php endif; // If registration required and not logged in ?>
  78.  
  79. <?php else : // Comments are closed ?>
  80. <p><?php _e('Die Kommentar-Funktion ist zur Zeit deaktiviert.'); ?></p>
  81. <?php endif; ?>
  82.  
Advertisement
Add Comment
Please, Sign In to add comment