Changeset 3627 for trunk/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 12/30/2010 10:13:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r3616 r3627 1029 1029 global $bp; 1030 1030 1031 $search_value = __( 'Search anything...', 'buddypress' ); 1032 if ( !empty( $_REQUEST['fs'] ) ) 1033 $search_value = stripslashes( $_REQUEST['fs'] ); 1031 $default_search_value = bp_get_search_default_text(); 1032 $search_value = !empty( $_REQUEST['fs'] ) ? stripslashes( $_REQUEST['fs'] ) : $default_search_value; 1034 1033 1035 1034 ?> 1036 1035 <form action="" method="get" id="search-forums-form"> 1037 <label><input type="text" name="s" id="forums_search" value="<?php echo esc_attr( $search_value ) ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' )?>';}" /></label>1036 <label><input type="text" name="s" id="forums_search" value="<?php echo esc_attr( $search_value ) ?>" onfocus="if (this.value == '<?php echo $default_search_value ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $default_search_value ?>';}" /></label> 1038 1037 <input type="submit" id="forums_search_submit" name="forums_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 1039 1038 </form>
Note: See TracChangeset
for help on using the changeset viewer.