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

Advertising

theme-comments.php premium news
Sunday, July 8th, 2012 at 9:01:31am MDT 

  1. <?php
  2. // Fist full of comments
  3. function custom_comment($comment, $args, $depth) {
  4.    $GLOBALS['comment'] = $comment; ?>
  5.                  
  6. <?php // if (get_comment_type() == "comment"){ // If you wanted to separate comments from pingbacks ?>
  7.    <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
  8.       <a name="comment-<?php comment_ID() ?>"></a>
  9.       <div class="comment-head cl">
  10.      
  11.       <?php if(get_comment_type() == "comment"){ ?>
  12.           <div class="avatar"><?php the_commenter_avatar() ?></div>
  13.           <?php } ?>
  14.           <div class="user-meta">
  15.                   <strong class="name"><?php the_commenter_link() ?></strong> <?php if(get_comment_type() == "comment"){ echo get_comment_date("j F Y") ?> at <?php echo get_comment_time(); edit_comment_link(__('Edit',woothemes), ' <span class="edit-link">(', ')</span>'); ?> <a class="comment-permalink" href="<?php echo get_comment_link(); ?>" title="<?php _e('Direct link to this comment',woothemes); ?>">#</a><?php }?>
  16.           </div>
  17.       </div>
  18.       <div class="comment-entry"  id="comment-<?php comment_ID(); ?>">
  19.                                 <?php comment_text() ?>
  20.                                 <?php if ($comment->comment_approved == '0') echo "<p class='unapproved'>'".__('Your comment is awaiting moderation.',woothemes)."</p>\n"; ?>
  21.                                 <div class="reply">
  22.                               <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
  23.             </div>
  24.  
  25.       </div>
  26. <?php  /*  The following are the pingback template. Will cause styling issues with odd and even styling due to threading.
  27.         }  else {
  28.                ?>
  29.                <li <?php comment_class(); ?>>
  30.                        
  31.                     <div class="comment_head cl">
  32.                        
  33.                         <div class="user_meta" style="margin:0">
  34.                             <p class="name"><strong><?php the_commenter_link() ?></strong></p>
  35.                         </div>
  36.                     </div>
  37.                     <div class="comment_entry">
  38.                         <?php comment_text() ?><?php edit_comment_link('Edit', ' <span class="edit-link">(', ')</span>');?>
  39.                     </div>
  40.  
  41.                     <?php }*/
  42. }
  43.  
  44. function the_commenter_link() {
  45.     $commenter = get_comment_author_link();
  46.     if ( ereg( ']* class=[^>]+>', $commenter ) ) {$commenter = ereg_replace( '(]* class=[\'"]?)', '\\1url ' , $commenter );
  47.     } else { $commenter = ereg_replace( '(<a )/', '\\1class="url "' , $commenter );}
  48.     echo $commenter ;
  49. }
  50.  
  51. function the_commenter_avatar() {
  52.     $email = get_comment_author_email();
  53.     $avatar = str_replace( "class='avatar", "class='photo avatar", get_avatar( "$email", "32" ) );
  54.     echo $avatar;
  55. }
  56.  
  57. ?>

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