Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

comments.php premium news
Sunday, July 8th, 2012 at 8:58:28am MDT 

  1. <?php // Do not delete these lines
  2.         if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  3.                 die ('Please do not load this page directly. Thanks!');
  4.  
  5.         if (!empty($post->post_password)) { // if there's a password
  6.                 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
  7.                         ?>
  8.  
  9.                         <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.',woothemes); ?></p>
  10.  
  11.                         <?php
  12.                         return;
  13.                 }
  14.         }
  15.  
  16.         /* This variable is for alternating comment background */
  17.         $oddcomment = 'alt';
  18. ?>
  19.  
  20. <?php
  21.         global $bm_comments;
  22.         global $bm_trackbacks;
  23.        
  24.         split_comments( $comments );
  25. ?>
  26.  
  27. <!-- You can start editing here. -->
  28.  
  29. <?php if ($comments) : ?>
  30.  
  31.  
  32. <?php /* reactie geven op commentaar */ ?>
  33.  
  34. <div class="reply">
  35.  
  36.  <?php comment_reply_link( array ( 'reply_text' => 'Reply this comment' ) ); ?>
  37.  
  38. </div>
  39.  
  40.        
  41.         <?php
  42.                 $trackbackcounter = count( $bm_trackbacks );
  43.                 $commentcounter = count( $bm_comments );
  44.         ?>
  45.  
  46.         <h2 class="commh2"><?php echo $commentcounter; ?> <?php _e('Comments For This Post',woothemes); ?></h2>
  47.  
  48.         <ol class="commentlist">
  49.  
  50.         <?php foreach ($bm_comments as $comment) : ?>
  51.  
  52.                 <li class="<?php echo $oddcomment; ?> <?php if(function_exists("author_highlight")) author_highlight(); ?>" id="comment-<?php comment_ID() ?>">
  53.  
  54.          <?php
  55.                 // Determine which gravatar to use for the user
  56.                 $email$comment->comment_author_email;
  57.             $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email). "&default=".urlencode($GLOBALS['defaultgravatar'])."&size=48";
  58.             $usegravatar = get_option('woo_gravatar');
  59.          ?>     
  60.          
  61.          <?php  if ( $usegravatar ) { ?><span class="gravatar"><img src="<?php echo $grav_url; ?>" width="48" height="48" alt="" /></span><?php } ?>   
  62.  
  63.                         <cite><?php comment_author_link() ?></cite> Says:
  64.                         <?php if ($comment->comment_approved == '0') : ?>
  65.                         <em><?php _e('Your comment is awaiting moderation',woothemes); ?>.</em>
  66.                         <?php endif; ?>
  67.                         <br />
  68.  
  69.                         <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> <?php _e('at',woothemes); ?> <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
  70.  
  71.  
  72.                         <?php comment_text() ?>
  73.  
  74.  
  75.                 </li>
  76.  
  77.         <?php /* Changes every other comment to a different class */
  78.                 if ('alt' == $oddcomment) $oddcomment = '';
  79.                 else $oddcomment = 'alt';
  80.         ?>
  81.  
  82.         <?php endforeach; /* end for each comment */ ?>
  83.  
  84.         </ol>
  85.  
  86.         <?php if ( count( $bm_trackbacks ) > 0 ) { ?>
  87.  
  88.         <h2 class="commh2"><?php echo $trackbackcounter; ?> <?php _e('Trackbacks For This Post',woothemes); ?></h2>
  89.  
  90.         <ol class="commentlist">
  91.  
  92.         <?php foreach ($bm_trackbacks as $comment) : ?>
  93.  
  94.                 <li class="<?php echo $oddcomment; ?> <?php if(function_exists("author_highlight")) author_highlight(); ?>" id="comment-<?php comment_ID() ?>">
  95.  
  96.                         <cite><?php comment_author_link() ?></cite> <?php _e('Says',woothemes); ?>:
  97.                         <?php if ($comment->comment_approved == '0') : ?>
  98.                         <em><?php _e('Your comment is awaiting moderation',woothemes); ?>.</em>
  99.                         <?php endif; ?>
  100.                         <br />
  101.  
  102.                         <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> <?php _e('at',woothemes); ?> <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
  103.  
  104.                         <?php comment_text() ?>
  105.  
  106.                 </li>
  107.  
  108.         <?php /* Changes every other comment to a different class */
  109.                 if ('alt' == $oddcomment) $oddcomment = '';
  110.                 else $oddcomment = 'alt';
  111.         ?>
  112.  
  113.         <?php endforeach; /* end for each comment */ ?>
  114.  
  115.         </ol>
  116.  
  117.         <?php } ?>
  118.  
  119.  <?php else : // this is displayed if there are no comments so far ?>
  120.  
  121.         <?php if ('open' == $post->comment_status) : ?>
  122.                 <!-- If comments are open, but there are no comments. -->
  123.  
  124.          <?php else : // comments are closed ?>
  125.                 <!-- If comments are closed. -->
  126.                 <p class="nocomments"><?php _e('Comments are closed',woothemes); ?>.</p>
  127.  
  128.         <?php endif; ?>
  129. <?php endif; ?>
  130.  
  131.  
  132. <?php if ('open' == $post->comment_status) : ?>
  133.  
  134. <h2 class="commh2"><?php _e('Leave a Reply',woothemes); ?></h2>
  135.  
  136. <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  137. <p class="alert"><?php _e('You must be',woothemes); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"><?php _e('logged in',woothemes); ?></a> <?php _e('to post a comment.',woothemes); ?></p>
  138. <?php else : ?>
  139.  
  140. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  141.  
  142. <?php if ( $user_ID ) : ?>
  143.  
  144. <p><?php _e('Logged in as',woothemes); ?> <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',woothemes); ?>"><?php _e('Logout &raquo;',woothemes); ?></a></p>
  145.  
  146. <?php else : ?>
  147.  
  148. <p style="padding:10px 0px 10px 0px;"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
  149. <label for="author"><small><?php _e('Name',woothemes); ?> <?php if ($req) echo  __('(required)',woothemes); ?></small></label></p>
  150.  
  151. <p style="padding:10px 0px 10px 0px;"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
  152. <label for="email"><small><?php _e('Mail (will not be published)',woothemes); ?> <?php if ($req) echo  __('(required)',woothemes); ?></small></label></p>
  153.  
  154. <p style="padding:10px 0px 10px 0px;"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
  155. <label for="url"><small><?php _e('Website',woothemes); ?></small></label></p>
  156.  
  157. <?php endif; ?>
  158.  
  159. <!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
  160.  
  161. <p style="padding:10px 0px 10px 0px;"><textarea name="comment" id="comment" style="width:99%;" rows="10" tabindex="4"></textarea></p>
  162.  
  163. <p style="padding:10px 0px 10px 0px;"><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment',woothemes); ?>" />
  164. <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  165. </p>
  166. <?php do_action('comment_form', $post->ID); ?>
  167.  
  168. </form>
  169.  
  170. <?php endif; // If registration required and not logged in ?>
  171.  
  172. <?php endif; // if you delete this the sky will fall on your head ?>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation