Changeset 3329
- Timestamp:
- 10/28/2010 09:58:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r3305 r3329 864 864 } 865 865 866 function bp_your_or_their( $capitalize = true, $echo = true ) {867 global $bp;868 869 if ( $capitalize )870 $yourtext = bp_core_ucfirst($yourtext);871 872 if ( $bp->displayed_user->id == $bp->loggedin_user->id ) {873 if ( $echo )874 echo apply_filters( 'bp_your_or_their', $yourtext );875 else876 return apply_filters( 'bp_your_or_their', $yourtext );877 } else {878 if ( $echo )879 echo apply_filters( 'bp_your_or_their', $theirtext );880 else881 return apply_filters( 'bp_your_or_their', $theirtext );882 }883 }884 866 885 867 function bp_get_plugin_sidebar() {
Note: See TracChangeset
for help on using the changeset viewer.