Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 08:54:42 PM (14 years ago)
Author:
djpaul
Message:

Change styling for activity items and comments.
Fix several pre-existing RTL issues.
Fix gravatar size inconsistencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/activity/comment.php

    r4522 r4611  
    1515<?php do_action( 'bp_before_activity_comment' ); ?>
    1616
    17 <li id="acomment-<?php bp_activity_comment_id() ?>">
     17<li id="acomment-<?php bp_activity_comment_id(); ?>">
    1818    <div class="acomment-avatar">
    19         <a href="<?php bp_activity_comment_user_link() ?>">
    20             <?php bp_activity_avatar( 'type=full&width=30&height=30&user_id=' . bp_get_activity_comment_user_id() ); ?>
     19        <a href="<?php bp_activity_comment_user_link(); ?>">
     20            <?php bp_activity_avatar( 'type=full&width=25&height=25&user_id=' . bp_get_activity_comment_user_id() ); ?>
    2121        </a>
    2222    </div>
    2323
    2424    <div class="acomment-meta">
    25         <a href="<?php bp_activity_comment_user_link() ?>"><?php bp_activity_comment_name() ?></a> &middot; <?php bp_activity_comment_date_recorded() ?>
     25        <?php
     26        /* translators: 1: user profile link, 2: user name, 3: activity permalink, 3: activity timestamp */
     27        printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s">%4$s</a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() );
     28        ?>
    2629
    2730        <?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?>
    28             <span class="acomment-replylink"> &middot; <a href="#acomment-<?php bp_activity_comment_id() ?>" class="acomment-reply" id="acomment-reply-<?php bp_activity_id() ?>-from-<?php bp_activity_comment_id() ?>"><?php _e( 'Reply', 'buddypress' ) ?></a></span>
    29         <?php endif ?>
    30    
     31            <a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id() ?>-from-<?php bp_activity_comment_id() ?>"><?php _e( 'Reply', 'buddypress' ); ?></a>
     32        <?php endif; ?>
     33
    3134        <?php if ( bp_activity_user_can_delete() ) : ?>
    32             &middot; <a href="<?php bp_activity_comment_delete_link() ?>" class="delete acomment-delete confirm" rel="nofollow"><?php _e( 'Delete', 'buddypress' ) ?></a>
    33         <?php endif ?>
     35            <div class="acomment-options">
     36                <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a>
     37            </div>
     38        <?php endif; ?>
     39    </div>
    3440
     41    <div class="acomment-content">
     42        <?php bp_activity_comment_content(); ?>
    3543    </div>
    3644   
    37    
    38     <div class="acomment-content">
    39         <?php bp_activity_comment_content() ?>
    40     </div>
    41    
    42     <?php bp_activity_recurse_comments( bp_activity_current_comment() ) ?>
     45    <?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?>
    4346</li>
    4447
Note: See TracChangeset for help on using the changeset viewer.