Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/30/2011 08:33:09 PM (15 years ago)
Author:
djpaul
Message:

First pass at tidying up comment styling. See #3242. Big props Dennissmolek & hnla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r4575 r4577  
    422422        $avatar_size = 20;
    423423    ?>
     424
    424425    <li <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
    425426        <div class="comment-avatar-box">
     
    442443
    443444                    <?php if ( 1 == $depth ) : ?>
    444                         &middot; <a href="#comment-<?php comment_ID() ?>"><?php _e( 'View', 'buddypress' ) ?></a>
     445                        <a href="#comment-<?php comment_ID() ?>"><?php _e( 'View', 'buddypress' ) ?></a>
    445446                    <?php elseif ( comments_open() ) : ?>
    446                         &middot; <?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) ) ?>
     447                        <?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) ) ?>
    447448                    <?php endif; ?>
    448449
    449                     <?php edit_comment_link( __( 'Edit', 'buddypress' ), '&middot; ', '' ); ?>
     450                    <?php edit_comment_link( __( 'Edit', 'buddypress' ) ); ?>
    450451                </p>
     452
     453                <?php if ( 1 == $depth && -1 != $args['max_depth'] && comments_open() ) : ?>
     454                    <p class="comment-reply"><?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ?></p>
     455                <?php endif; ?>
    451456            </div>
    452457
    453             <?php if ( $comment->comment_approved == '0' ) : ?>
    454                 <em class="moderate"><?php _e( 'Your comment is awaiting moderation.', 'buddypress' ) ?></em><br />
    455             <?php endif; ?>
    456 
    457             <?php comment_text() ?>
    458 
    459             <?php if ( 1 == $depth && -1 != $args['max_depth'] && comments_open() ) : ?>
    460                 <div class="comment-options">
    461                     <?php comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ?>
    462                 </div>
    463             <?php endif; ?>
     458            <div class="comment-entry">
     459                <?php if ( $comment->comment_approved == '0' ) : ?>
     460                    <em class="moderate"><?php _e( 'Your comment is awaiting moderation.', 'buddypress' ); ?></em>
     461                <?php endif; ?>
     462
     463                <?php comment_text() ?>
     464            </div>
     465
    464466        </div>
     467
    465468<?php
    466469}
Note: See TracChangeset for help on using the changeset viewer.