Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 08:54:42 PM (13 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/entry.php

    r4493 r4611  
    4545
    4646        <div class="activity-meta">
     47            <?php
     48                // Add the delete link if the user has permission on this item
     49                if ( bp_activity_user_can_delete() )
     50                    bp_activity_delete_link();
     51            ?>
    4752
    48             <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
    49 
    50                 <a href="<?php bp_activity_comment_link(); ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?> (<span><?php bp_activity_comment_count(); ?></span>)</a>
    51 
     53            <?php if ( is_user_logged_in() && bp_activity_can_favorite() ) : ?>
     54                <?php if ( !bp_get_activity_is_favorite() ) : ?>
     55                    <a href="<?php bp_activity_favorite_link(); ?>" class="fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
     56                <?php else : ?>
     57                    <a href="<?php bp_activity_unfavorite_link(); ?>" class="unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
     58                <?php endif; ?>
    5259            <?php endif; ?>
    53 
    54             <?php if ( is_user_logged_in() && bp_activity_can_favorite() ) :
    55                 if ( !bp_get_activity_is_favorite() ) : ?>
    56 
    57                     <a href="<?php bp_activity_favorite_link() ?>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
    58 
    59                 <?php else : ?>
    60 
    61                     <a href="<?php bp_activity_unfavorite_link() ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
    62 
    63                 <?php endif;
    64             endif; ?>
    6560
    6661            <?php do_action( 'bp_activity_entry_meta' ); ?>
Note: See TracChangeset for help on using the changeset viewer.