Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2010 01:08:31 AM (14 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/functions.php

    r3227 r3260  
    334334if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" )
    335335    add_action( 'admin_notices', 'bp_dtheme_show_notice' );
     336
     337
     338// Member Buttons
     339add_action( 'bp_member_header_actions',    'bp_add_friend_button' );
     340add_action( 'bp_member_header_actions',    'bp_send_public_message_button' );
     341add_action( 'bp_member_header_actions',    'bp_send_private_message_button' );
     342
     343// Group Buttons
     344add_action( 'bp_group_header_actions',     'bp_group_join_button' );
     345add_action( 'bp_group_header_actions',     'bp_group_new_topic_button' );
     346add_action( 'bp_directory_groups_actions', 'bp_group_join_button' );
     347
     348// Blog Buttons
     349add_action( 'bp_directory_blogs_actions',  'bp_blogs_visit_blog_button' );
     350
    336351?>
Note: See TracChangeset for help on using the changeset viewer.