Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2010 01:08:31 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Committing patch from #2566 for easier review and testing. Adds BP_Button class and associated template tags. Also includes code formatting fixes, phpdoc, widget fixes when friends component is disabled, and possibly the kitchen sink.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-themes/bp-default/members/single/member-header.php

    r3006 r3260  
    2222
    2323        <div id="item-buttons">
    24             <?php if ( function_exists( 'bp_add_friend_button' ) ) : ?>
    25                 <?php bp_add_friend_button() ?>
    26             <?php endif; ?>
    2724
    28             <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_public_message_link' ) ) : ?>
    29                 <div class="generic-button" id="post-mention">
    30                     <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>
    31                 </div>
    32             <?php endif; ?>
     25            <?php do_action( 'bp_member_header_actions' ); ?>
    3326
    34             <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) ) : ?>
    35                 <div class="generic-button" id="send-private-message">
    36                     <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>
    37                 </div>
    38             <?php endif; ?>
    3927        </div><!-- #item-buttons -->
    4028
Note: See TracChangeset for help on using the changeset viewer.