sbrajesh

Brajesh Singh

Jul 22nd, 2010
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 KB | None | 0 0
  1. <?php if(bp_is_member()):?>
  2. <div id="item-buttons">
  3.             <?php if ( function_exists( 'bp_add_friend_button' ) ) : ?>
  4.                 <?php bp_add_friend_button() ?>
  5.             <?php endif; ?>
  6.  
  7.             <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_public_message_link' ) ) : ?>
  8.                 <div class="generic-button" id="post-mention">
  9.                     <a href="<?php bp_send_public_message_link() ?>" title="<?php _e( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ) ?>"><?php _e( 'Mention this User', 'buddypress' ) ?></a>
  10.                 </div>
  11.             <?php endif; ?>
  12.  
  13.             <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) ) : ?>
  14.                 <div class="generic-button" id="send-private-message">
  15.                     <a href="<?php bp_send_private_message_link() ?>" title="<?php _e( 'Send a private message to this user.', 'buddypress' ) ?>"><?php _e( 'Send Private Message', 'buddypress' ) ?></a>
  16.                 </div>
  17.             <?php endif; ?>
  18.         </div><!-- #item-buttons -->
  19. <?php endif;?>
Add Comment
Please, Sign In to add comment