Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/24/2010 09:22:29 PM (16 years ago)
Author:
djpaul
Message:

Fixed #2676

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/header.php

    r2863 r3300  
    5757                                <div class="padder">
    5858
    59                                 <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    60                                         <input type="text" id="search-terms" name="search-terms" value="" />
    61                                         <?php echo bp_search_form_type_select() ?>
     59                                <?php if ( bp_search_form_enabled() ) : ?>
    6260
    63                                         <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    64                                         <?php wp_nonce_field( 'bp_search_form' ) ?>
    65                                 </form><!-- #search-form -->
     61                                        <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
     62                                                <input type="text" id="search-terms" name="search-terms" value="" />
     63                                                <?php echo bp_search_form_type_select() ?>
     64
     65                                                <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
     66                                                <?php wp_nonce_field( 'bp_search_form' ) ?>
     67                                        </form><!-- #search-form -->
     68
     69                                <?php endif; ?>
    6670
    6771                                <?php do_action( 'bp_search_login_bar' ) ?>
Note: See TracChangeset for help on using the changeset viewer.