Changeset 8090 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 03/09/2014 02:38:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r8068 r8090 82 82 83 83 echo apply_filters( 'bp_get_options_title', esc_attr( $bp->bp_options_title ) ); 84 } 85 86 /** 87 * Get the directory title for a component. 88 * 89 * Used for the <title> element and the page header on the component directory 90 * page. 91 * 92 * @since BuddyPress (2.0.0) 93 * 94 * @return string 95 */ 96 function bp_get_directory_title( $component = '' ) { 97 $title = ''; 98 99 // Use the string provided by the component 100 if ( isset( buddypress()->{$component}->directory_title ) ) { 101 $title = buddypress()->{$component}->directory_title; 102 103 // If none is found, concatenate 104 } else if ( isset( buddypress()->{$component}->name ) ) { 105 $title = sprintf( __( '%s Directory', 'buddypress' ), buddypress()->{$component}->name ); 106 } 107 108 return apply_filters( 'bp_get_directory_title', $title, $component ); 84 109 } 85 110
Note: See TracChangeset
for help on using the changeset viewer.