Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/17/2011 05:39:42 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Tweak the activity stream styling - remove faux-buttons and replace with links. Fix bp_dtheme_new_activity_comment() so that it uses the activity/comment.php template rather than being hardcoded into the function.

File:
1 edited

Legend:

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

    r4611 r4668  
    2727        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() );
    2828        ?>
     29    </div>
     30
     31    <div class="acomment-content"><?php bp_activity_comment_content(); ?></div>
     32
     33    <div class="acomment-options">
    2934
    3035        <?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?>
    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>
     36
     37            <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( 'Comment', 'buddypress' ); ?></a>
     38
    3239        <?php endif; ?>
    3340
    3441        <?php if ( bp_activity_user_can_delete() ) : ?>
    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>
     42
     43            <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a>
     44
    3845        <?php endif; ?>
     46
    3947    </div>
    4048
    41     <div class="acomment-content">
    42         <?php bp_activity_comment_content(); ?>
    43     </div>
    44    
    4549    <?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?>
    4650</li>
Note: See TracChangeset for help on using the changeset viewer.