Skip to:
Content

BuddyPress.org

Changeset 4255


Ignore:
Timestamp:
04/23/2011 04:24:55 PM (13 years ago)
Author:
djpaul
Message:

When posting to activity stream, make the AJAX-returned markup identical to the rest of the activity stream items. See #2016

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r4239 r4255  
    822822                        $comment_child->user_login ) . '">' .
    823823                    bp_core_fetch_avatar( array(
     824                        'alt'    => __( 'Profile picture of %s', 'buddypress' ),
    824825                        'item_id' => $comment_child->user_id,
    825826                        'width'   => 30,
     
    845846                if ( $bp->loggedin_user->is_super_admin || $bp->loggedin_user->id == $comment->user_id ) {
    846847                    $delete_url = wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/?cid=' . $comment_child->id, 'bp_activity_delete_link' );
    847                     $content .= apply_filters( 'bp_activity_comment_delete_link', ' &middot; <a href="' . $delete_url . '" class="delete acomment-delete" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>', $comment_child, $delete_url );
     848                    $content .= apply_filters( 'bp_activity_comment_delete_link', ' &middot; <a href="' . $delete_url . '" class="delete acomment-delete confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>', $comment_child, $delete_url );
    848849                }
    849850
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r4239 r4255  
    214214            <li id="acomment-<?php bp_activity_id() ?>">
    215215                <div class="acomment-avatar">
    216                     <?php bp_activity_avatar( array( 'height' => 30, 'width' => 30 ) ); ?>
     216                    <a href="<?php echo bp_core_get_userlink( bp_get_activity_user_id(), false, true ); ?>"><?php bp_activity_avatar( array( 'height' => 30, 'width' => 30 ) ); ?></a>
    217217                </div>
    218218
    219219                <div class="acomment-meta">
    220                     <?php echo bp_core_get_userlink( bp_get_activity_user_id() ) ?> &middot; <?php printf( __( '%s ago', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ) ?> &middot;
    221                     <a class="acomment-reply" href="#acomment-<?php bp_activity_id() ?>" id="acomment-reply-<?php echo esc_attr( $_POST['form_id'] ) ?>"><?php _e( 'Reply', 'buddypress' ) ?></a>
     220                    <?php echo bp_core_get_userlink( bp_get_activity_user_id() ) ?> &middot; <?php printf( __( '%s ago', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ) ?>
     221                    <span class="acomment-replylink"> &middot; <a class="acomment-reply" href="#acomment-<?php bp_activity_id() ?>" id="acomment-reply-<?php echo esc_attr( $_POST['form_id'] ) ?>"><?php _e( 'Reply', 'buddypress' ) ?></a></span>
    222222                     &middot; <a href="<?php echo wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/' . bp_get_activity_id() . '?cid=' . $comment_id, 'bp_activity_delete_link' ) ?>" class="delete acomment-delete confirm" rel="nofollow"><?php _e( 'Delete', 'buddypress' ) ?></a>
    223223                </div>
Note: See TracChangeset for help on using the changeset viewer.