Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function wishlist(){
- ?>
- <?php if ( is_user_logged_in() && is_single() && !has_tag('blog') && !has_tag('gallery') : ?>
- <?php if ( !bp_get_activity_is_favorite() ) : ?>
- <a href="<?php bp_activity_favorite_link() ?>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( '<img src="http://www.clothunderground.com/wp-content/uploads/2010/07/heart.png">', 'buddypress' ) ?></a>
- <?php else : ?>
- <a href="<?php bp_activity_unfavorite_link() ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( '<img src="http://www.clothunderground.com/wp-content/uploads/2010/07/cross.png">', 'buddypress' ) ?></a>
- <?php endif; ?>
- <?php endif; ?>
- <?php
- }
- add_action( 'bp_adminbar_menus', 'wishlist', 15 );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement