Changeset 1719 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 08/27/2009 10:50:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r1718 r1719 1161 1161 function bp_directory_members_search_form() { 1162 1162 global $bp; ?> 1163 <form action=" <?php echo $bp->root_domain . '/' . BP_MEMBERS_SLUG . '/search/' ?>" method="post" id="search-members-form">1164 <label><input type="text" name=" members_search" id="members_search" value="<?php if ( isset( $_GET['s'] ) ) { echo attribute_escape( $_GET['s'] ); } else { _e( 'Search anything...', 'buddypress' ); } ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label>1163 <form action="" method="get" id="search-members-form"> 1164 <label><input type="text" name="s" id="members_search" value="<?php if ( isset( $_GET['s'] ) ) { echo attribute_escape( $_GET['s'] ); } else { _e( 'Search anything...', 'buddypress' ); } ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label> 1165 1165 <input type="submit" id="members_search_submit" name="members_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 1166 1166 <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>
Note: See TracChangeset
for help on using the changeset viewer.