Skip to:
Content

BuddyPress.org

Ticket #3242: 3242-reply-as-buttons.patch

File 3242-reply-as-buttons.patch, 2.9 KB (added by Dennissmolek, 14 years ago)

Revision that creates Reply buttons instead of simple link

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

     
    19271927}
    19281928ol.commentlist li {
    19291929        list-style: none;
     1930         margin-bottom: 20px;
    19301931}
    19311932ol.commentlist div.comment-avatar-box {
    19321933        float: left;
    1933         margin: 10px 10px 10px 0;
     1934        margin: 10px 10px 0px 0;
    19341935}
    19351936.commentlist ul.children div.comment-avatar-box {
    19361937        float: left;
    1937         margin: 0px 10px 10px 0;
     1938        margin: 0px 10px 0px 0;
    19381939}
    19391940div.comment-avatar-box img {
    19401941        border: 2px solid #eee;
     
    19521953        font-size: 11px;
    19531954        margin: 10px 0;
    19541955}
     1956div.comment-options {
     1957        float:right;
     1958}
     1959div.comment-meta {
     1960  float: left;
     1961}
     1962li.depth-1 div.comment-content p {
     1963        clear: right;
     1964}
     1965ul.children div.comment-content p {
     1966        clear: both;
     1967}
    19551968div.comment-meta em {
    19561969        font-style: normal;
    19571970}
     
    19811994        font-size: 11px;
    19821995        font-weight: normal;
    19831996}
    1984 #reply-title small a,
    1985 div.comment-options a.comment-reply-link {
     1997#reply-title small a, a.comment-reply-link {
    19861998        background: #FFF9DB;
    19871999        border-bottom: 1px solid #FFE8C4;
    19882000        border-radius: 4px;
     
    19972009#reply-title small a {
    19982010        margin-right: 0;
    19992011}
    2000 #reply-title small a:hover,
    2001 div.comment-options a.comment-reply-link:hover {
     2012#reply-title small a:hover, a.comment-reply-link:hover {
    20022013        background: #f7740a;
    20032014        border-color: #f7740a;
    20042015        color: #fff;
  • bp-default/functions.php

     
    439439
    440440                                        <?php if ( 1 == $depth ) : ?>
    441441                                                &middot; <a href="#comment-<?php comment_ID() ?>"><?php _e( 'View', 'buddypress' ) ?></a>
     442                        <?php edit_comment_link( __( 'Edit', 'buddypress' ), '&middot; ', '' ); ?>
    442443                                        <?php elseif ( comments_open() ) : ?>
     444                    <?php edit_comment_link( __( 'Edit', 'buddypress' ), '&middot; ', '' ); ?>
    443445                                                &middot; <?php echo comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) ) ?>
    444446                                        <?php endif; ?>
    445447
    446                                         <?php edit_comment_link( __( 'Edit', 'buddypress' ), '&middot; ', '' ); ?>
     448                                       
    447449                                </p>
    448450                        </div>
    449 
     451                        <?php if ( 1 == $depth && comments_open() ) : ?>
     452                                <div class="comment-options">
     453                                        <?php echo comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ?>
     454                                </div>
     455                        <?php endif; ?>
    450456                        <?php if ( $comment->comment_approved == '0' ) : ?>
    451457                                <em class="moderate"><?php _e( 'Your comment is awaiting moderation.', 'buddypress' ) ?></em><br />
    452458                        <?php endif; ?>
    453459
    454460                        <?php comment_text() ?>
    455 
    456                         <?php if ( 1 == $depth && comments_open() ) : ?>
    457                                 <div class="comment-options">
    458                                         <?php echo comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ?>
    459                                 </div>
    460                         <?php endif; ?>
    461461                </div>
    462462<?php
    463463}