- Timestamp:
- 12/31/2014 01:57:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r9190 r9291 109 109 // Group buttons 110 110 if ( bp_is_active( 'groups' ) ) { 111 add_action( 'bp_group_header_actions', 'bp_group_join_button', 5 ); 112 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 113 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 114 add_filter( 'bp_groups_directory_header', 'bp_legacy_theme_group_create_button' ); 115 add_filter( 'bp_blogs_directory_header', 'bp_legacy_theme_blog_create_button' ); 111 add_action( 'bp_group_header_actions', 'bp_group_join_button', 5 ); 112 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 113 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 114 add_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 ); 116 115 } 117 116 118 117 // Blog button 119 if ( bp_is_active( 'blogs' ) ) 120 add_action( 'bp_directory_blogs_actions', 'bp_blogs_visit_blog_button' ); 118 if ( bp_is_active( 'blogs' ) ) { 119 add_action( 'bp_directory_blogs_actions', 'bp_blogs_visit_blog_button' ); 120 add_action( 'bp_blogs_directory_blog_types', 'bp_legacy_theme_blog_create_nav', 999 ); 121 } 122 121 123 122 124 } … … 450 452 * 451 453 * @since BuddyPress (2.0.0) 454 * @todo Deprecate 452 455 * 453 456 * @param string $title Groups directory title. … … 459 462 460 463 /** 464 * Add the Create a Group nav to the Groups directory navigation. 465 * 466 * bp-legacy puts the Create a Group nav at the last position of 467 * the Groups directory navigation. 468 * 469 * @since BuddyPress (2.2.0) 470 * 471 * @uses bp_group_create_nav_item() to output the create a Group nav item 472 * @return string 473 */ 474 function bp_legacy_theme_group_create_nav() { 475 bp_group_create_nav_item(); 476 } 477 478 /** 461 479 * Add the Create a Site button to the Sites directory title. 462 480 * … … 465 483 * 466 484 * @since BuddyPress (2.0.0) 485 * @todo Deprecate 467 486 * 468 487 * @param string $title Sites directory title. … … 472 491 return $title . ' ' . bp_get_blog_create_button(); 473 492 } 493 494 /** 495 * Add the Create a Site nav to the Sites directory navigation. 496 * 497 * bp-legacy puts the Create a Site nav at the last position of 498 * the Sites directory navigation. 499 * 500 * @since BuddyPress (2.2.0) 501 * 502 * @uses bp_blog_create_nav_item() to output the Create a Site nav item 503 * @return string 504 */ 505 function bp_legacy_theme_blog_create_nav() { 506 bp_blog_create_nav_item(); 507 } 508 474 509 /** 475 510 * This function looks scarier than it actually is. :)
Note: See TracChangeset
for help on using the changeset viewer.