Skip to:
Content

BuddyPress.org

Changeset 3039


Ignore:
Timestamp:
06/11/2010 12:29:49 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2364 props boonebgorges

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-templatetags.php

    r3030 r3039  
    10021002
    10031003function bp_search_form_type_select() {
     1004        global $bp;
     1005
    10041006        // Eventually this won't be needed and a page will be built to integrate all search results.
    10051007        $selection_box = '<select name="search-which" id="search-which" style="width: auto">';
    10061008
    1007         if ( function_exists( 'xprofile_install' ) ) {
     1009        if ( function_exists( 'xprofile_install' ) )
    10081010                $selection_box .= '<option value="members">' . __( 'Members', 'buddypress' ) . '</option>';
    1009         }
    1010 
    1011         if ( function_exists( 'groups_install' ) ) {
     1011
     1012        if ( function_exists( 'groups_install' ) )
    10121013                $selection_box .= '<option value="groups">' . __( 'Groups', 'buddypress' ) . '</option>';
    1013         }
    1014 
    1015         if ( function_exists( 'bp_forums_setup' ) && !(int) $bp->site_options['bp-disable-forum-directory'] ) {
     1014
     1015        if ( function_exists( 'bp_forums_setup' ) && !(int)$bp->site_options['bp-disable-forum-directory'] )
    10161016                $selection_box .= '<option value="forums">' . __( 'Forums', 'buddypress' ) . '</option>';
    1017         }
    1018 
    1019         if ( function_exists( 'bp_blogs_install' ) && bp_core_is_multisite() ) {
     1017
     1018        if ( function_exists( 'bp_blogs_install' ) && bp_core_is_multisite() )
    10201019                $selection_box .= '<option value="blogs">' . __( 'Blogs', 'buddypress' ) . '</option>';
    1021         }
    10221020
    10231021        $selection_box .= '</select>';
Note: See TracChangeset for help on using the changeset viewer.