Skip to:
Content

BuddyPress.org

Ticket #3242: 3242-04.patch

File 3242-04.patch, 4.4 KB (added by hnla, 14 years ago)

addresses missing reply button

  • bp-themes/bp-default/_inc/css/default.css

     
    700700        list-style: none;
    701701        margin-bottom: 15px;
    702702}
     703ol.commentlist ul.children li {
     704        margin-bottom: 0;
     705}
    703706ol.commentlist div.comment-avatar-box {
    704707        float: left;
    705         margin: 15px 10px 15px 0;
     708        margin: 15px 15px 0 0;
    706709}
    707710.commentlist ul.children div.comment-avatar-box {
    708711        float: left;
    709         margin: 0px 10px 10px 0;
     712        margin: 0px 10px 0 0;
    710713}
    711714div.comment-avatar-box img {
    712715        border: 2px solid #eee;
    713716}
    714717div.comment-content {
    715718        border-top: 1px solid #e4e4e4;
    716         padding-left: 75px;
     719        overflow: hidden;
    717720}
    718 .commentlist .children .comment {
    719         margin-bottom: 5px;
     721.comment-entry {
     722        float: left;
    720723}
    721 div.comment-meta,
    722 div.comment-options {
     724ul.children .comment-entry {
     725        margin-bottom: 10px;
     726}
     727div.comment-meta {
    723728        color: #888;
     729        float: left;
    724730        font-size: 11px;
    725731        margin: 15px 0;
     732        width: 100%;
    726733}
     734div.comment-meta p {
     735        float: left;
     736        margin-bottom: 0;
     737}
     738div.comment-meta p.comment-reply {
     739        float: right;
     740}
    727741div.comment-meta em {
    728742        font-style: normal;
    729743}
     
    780794        -moz-border-radius: 4px;
    781795        -webkit-border-radius: 4px;
    782796        border-radius: 4px;
    783         margin-bottom: 10px;
    784         margin-left: 75px;
    785         padding: 1px 10px;
    786 
     797        float: left;
     798        margin: 15px 0 15px 70px;
     799        padding: 0 10px;
    787800}
    788801.commentlist ul.children ul {
    789         margin-left: 20px;
    790         margin-bottom: 0;
    791         padding: 5px 0 0 0;
     802        margin: 0 0 0 25px;
    792803}
    793804.commentlist ul.children img.avatar {
    794805        border-style: none;
     
    802813}
    803814.commentlist ul.children div.comment-meta {
    804815        font-size: 11px;
    805         margin-top: 0;
     816        margin: 0 0 10px 0;
    806817}
    807818.commentlist ul.children div.comment-options {
    808819        margin-bottom: 5px;
     
    843854        margin-bottom: 0;
    844855}
    845856ol.commentlist #respond {
    846         margin-left: 75px;
     857 clear: left;
     858        margin-left: 70px;
    847859}
    848860.commentlist ul.children #respond {
    849861        margin-bottom: 10px;
     
    22662278}
    22672279div#message-thread div.message-options {
    22682280        text-align: right;
    2269 }
    2270  No newline at end of file
     2281}
  • bp-themes/bp-default/functions.php

     
    421421        else
    422422                $avatar_size = 20;
    423423        ?>
     424
    424425        <li <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
    425426                <div class="comment-avatar-box">
    426427                        <div class="avb">
     
    441442                                        <span class="time-since">&nbsp; <?php comment_date() ?></span>
    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; ?>
     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; ?>
    456462
    457                         <?php comment_text() ?>
     463                                <?php comment_text() ?>
     464                        </div>
    458465
    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; ?>
    464466                </div>
     467
    465468<?php
    466469}
    467470endif;
     
    694697                </div><!-- #<?php echo $nav_id; ?> -->
    695698        <?php endif;
    696699}
    697 ?>
    698  No newline at end of file
     700?>