Changeset 2905
- Timestamp:
- 04/09/2010 03:56:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r2863 r2905 986 986 987 987 function bp_search_form_type_select() { 988 global $bp; 989 988 990 // Eventually this won't be needed and a page will be built to integrate all search results. 989 991 $selection_box = '<select name="search-which" id="search-which" style="width: auto">'; 990 992 991 if ( function_exists( 'xprofile_install' ) ) {993 if ( bp_is_active( 'xprofile' ) ) { 992 994 $selection_box .= '<option value="members">' . __( 'Members', 'buddypress' ) . '</option>'; 993 995 } 994 996 995 if ( function_exists( 'groups_install' ) ) {997 if ( bp_is_active( 'groups' ) ) { 996 998 $selection_box .= '<option value="groups">' . __( 'Groups', 'buddypress' ) . '</option>'; 997 999 } 998 1000 999 if ( function_exists( 'bp_forums_ setup') && !(int) $bp->site_options['bp-disable-forum-directory'] ) {1001 if ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() && !(int) $bp->site_options['bp-disable-forum-directory'] ) { 1000 1002 $selection_box .= '<option value="forums">' . __( 'Forums', 'buddypress' ) . '</option>'; 1001 1003 } 1002 1004 1003 if ( function_exists( 'bp_blogs_install' ) && bp_core_is_multisite() ) {1005 if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) { 1004 1006 $selection_box .= '<option value="blogs">' . __( 'Blogs', 'buddypress' ) . '</option>'; 1005 1007 }
Note: See TracChangeset
for help on using the changeset viewer.