Skip to:
Content

BuddyPress.org

Ticket #6609: 6609.patch

File 6609.patch, 3.2 KB (added by imath, 10 years ago)
  • src/bp-activity/admin/css/admin.css

    diff --git src/bp-activity/admin/css/admin.css src/bp-activity/admin/css/admin.css
    index 2d60dd8..9abbc2d 100644
     
    8383        body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
    8484                display: table-cell;
    8585        }
    86 }
    87  No newline at end of file
     86}
     87
     88#bp-activities-form .activity-author-avatar {
     89        font-weight: bold;
     90}
  • src/bp-activity/bp-activity-admin.php

    diff --git src/bp-activity/bp-activity-admin.php src/bp-activity/bp-activity-admin.php
    index 4157d6c..5a6931e 100644
    class BP_Activity_List_Table extends WP_List_Table { 
    13931393
    13941394                <div class="alignleft actions">
    13951395                        <label for="activity-type" class="screen-reader-text"><?php _e( 'Filter by activity type', 'buddypress' ); ?></label>
    1396                         <select name="activity_type" id="activity-type"> 
     1396                        <select name="activity_type" id="activity-type">
    13971397                                <option value="" <?php selected( ! $selected ); ?>><?php _e( 'View all actions', 'buddypress' ); ?></option>
    13981398
    13991399                                <?php foreach ( $activity_actions as $component => $actions ) : ?>
    class BP_Activity_List_Table extends WP_List_Table { 
    16141614         */
    16151615        function column_response( $item ) {
    16161616                // Is $item is a root activity?
     1617                ?>
     1618
     1619                <div class="response-links">
     1620
     1621                <?php
     1622                // Activity permalink
     1623                if ( ! $item['is_spam'] ) {
     1624                        printf( __( '<a href="%1$s" class="comments-view-item-link">View Activity</a>', 'buddypress' ), bp_activity_get_permalink( $item['id'], (object) $item ) );
     1625                }
    16171626
    16181627                /**
    16191628                 * Filters default list of default root activity types.
    class BP_Activity_List_Table extends WP_List_Table { 
    16301639                        // If the activity has comments, display a link to the activity's permalink, with its comment count in a speech bubble
    16311640                        if ( $comment_count ) {
    16321641                                $title_attr = sprintf( _n( '%s related activity', '%s related activities', $comment_count, 'buddypress' ), number_format_i18n( $comment_count ) );
    1633                                 printf( '<a href="%1$s" title="%2$s" class="post-com-count"><span class="comment-count">%3$s</span></a>', esc_url( $root_activity_url ), esc_attr( $title_attr ), number_format_i18n( $comment_count ) );
     1642                                printf( '<div class="activity-comment-count"><a href="%1$s" title="%2$s" class="post-com-count post-com-count-approved"><span class="comment-count comment-count-approved">%3$s</span></a></div>', esc_url( $root_activity_url ), esc_attr( $title_attr ), number_format_i18n( $comment_count ) );
    16341643                        }
    16351644
    16361645                // For non-root activities, display a link to the replied-to activity's author's profile
    16371646                } else {
    1638                         echo '<strong>' . get_avatar( $this->get_activity_user_id( $item['item_id'] ), '32' ) . ' ' . bp_core_get_userlink( $this->get_activity_user_id( $item['item_id'] ) ) . '</strong><br />';
     1647                        echo '<div class="activity-author-avatar">' . get_avatar( $this->get_activity_user_id( $item['item_id'] ), '32' ) . ' ' . bp_core_get_userlink( $this->get_activity_user_id( $item['item_id'] ) ) . '</div>';
    16391648                }
     1649                ?>
    16401650
    1641                 // Activity permalink
    1642                 if ( ! $item['is_spam'] )
    1643                         printf( __( '<a href="%1$s">View Activity</a>', 'buddypress' ), bp_activity_get_permalink( $item['id'], (object) $item ) );
     1651                </div>
     1652
     1653                <?php
    16441654        }
    16451655
    16461656        /**