This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 4th, 2010  |  syntax: PHP  |  size: 0.92 KB  |  views: 120  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. function wishlist(){
  3. ?>
  4.  
  5. <?php if ( is_user_logged_in() && is_single() && !has_tag('blog') &&  !has_tag('gallery') : ?>
  6.                                 <?php if ( !bp_get_activity_is_favorite() ) : ?>
  7.                                         <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>
  8.                                 <?php else : ?>
  9.                                         <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>
  10.                                 <?php endif; ?>
  11. <?php endif; ?>
  12.  
  13. <?php
  14. }
  15. add_action( 'bp_adminbar_menus', 'wishlist', 15 );
  16.  
  17. ?>
clone this paste RAW Paste Data