Guest User

r-a-y

a guest
Jun 12th, 2010
279
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ( is_user_logged_in() ) : ?>
  2. <?php if ( !bp_get_activity_is_favorite() ) : ?>
  3. <a href="<?php bp_activity_favorite_link() ?>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
  4. <?php else : ?>
  5. <a href="<?php bp_activity_unfavorite_link() ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
  6. <?php endif; ?>
  7. <?php endif;?>
RAW Paste Data