Skip to:
Content

BuddyPress.org

Ticket #3242: 3242-03.patch

File 3242-03.patch, 4.2 KB (added by DJPaul, 14 years ago)
  • 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; ?>
     466                        <div class="clear"></div>
    464467                </div>
     468
     469        <div class="clear"></div>
    465470<?php
    466471}
    467472endif;
  • 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        padding-left: 70px;
     720        width: 100%;
    717721}
    718 .commentlist .children .comment {
    719         margin-bottom: 5px;
     722.comment-entry {
     723        float: left;
    720724}
    721 div.comment-meta,
    722 div.comment-options {
     725ul.children .comment-entry {
     726        margin-bottom: 10px;
     727}
     728div.comment-meta {
    723729        color: #888;
     730        float: left;
    724731        font-size: 11px;
    725732        margin: 15px 0;
     733        width: 100%;
    726734}
     735div.comment-meta p {
     736        float: left;
     737        margin-bottom: 0;
     738}
     739div.comment-meta p.comment-reply {
     740        float: right;
     741}
    727742div.comment-meta em {
    728743        font-style: normal;
    729744}
     
    780795        -moz-border-radius: 4px;
    781796        -webkit-border-radius: 4px;
    782797        border-radius: 4px;
    783         margin-bottom: 10px;
    784         margin-left: 75px;
    785         padding: 1px 10px;
    786 
     798        float: left;
     799        margin: 15px 0 15px 70px;
     800        padding: 0 10px;
    787801}
    788802.commentlist ul.children ul {
    789         margin-left: 20px;
    790         margin-bottom: 0;
    791         padding: 5px 0 0 0;
     803        margin: 0 0 0 25px;
    792804}
    793805.commentlist ul.children img.avatar {
    794806        border-style: none;
     
    802814}
    803815.commentlist ul.children div.comment-meta {
    804816        font-size: 11px;
    805         margin-top: 0;
     817        margin: 0 0 10px 0;
    806818}
    807819.commentlist ul.children div.comment-options {
    808820        margin-bottom: 5px;
     
    843855        margin-bottom: 0;
    844856}
    845857ol.commentlist #respond {
    846         margin-left: 75px;
     858        margin-left: 70px;
    847859}
    848860.commentlist ul.children #respond {
    849861        margin-bottom: 10px;