Changeset 7328 for trunk/bp-members/bp-members-template.php
- Timestamp:
- 07/31/2013 01:09:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-template.php
r7228 r7328 704 704 705 705 $default_search_value = bp_get_search_default_text( 'members' ); 706 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>707 708 <form action="" method="get" id="search-members-form">709 <label><input type="text" name="s" id="members_search" placeholder=" <?php echo esc_attr( $search_value ) ?>" /></label>710 <input type="submit" id="members_search_submit" name="members_search_submit" value=" <?php _e( 'Search', 'buddypress' ) ?>" />711 </form> 712 713 <?php 706 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; 707 708 $search_form_html = '<form action="" method="get" id="search-members-form"> 709 <label><input type="text" name="s" id="members_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 710 <input type="submit" id="members_search_submit" name="members_search_submit" value="' . _e( 'Search', 'buddypress' ) . '" /> 711 </form>'; 712 713 echo apply_filters( 'bp_directory_members_search_form', $search_form_html ); 714 714 } 715 715
Note: See TracChangeset
for help on using the changeset viewer.