Changeset 3511 for trunk/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 12/04/2010 11:41:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r3479 r3511 1031 1031 $search_value = __( 'Search anything...', 'buddypress' ); 1032 1032 if ( !empty( $_REQUEST['fs'] ) ) 1033 $search_value = $_REQUEST['fs'];1033 $search_value = stripslashes( $_REQUEST['fs'] ); 1034 1034 1035 1035 ?> 1036 1036 <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>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> 1038 1038 <input type="submit" id="forums_search_submit" name="forums_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 1039 1039 </form>
Note: See TracChangeset
for help on using the changeset viewer.