Changeset 3627 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 12/30/2010 10:13:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r3616 r3627 1872 1872 global $bp; 1873 1873 1874 $search_value = __( 'Search anything...', 'buddypress' ); 1875 if ( !empty( $_REQUEST['s'] ) ) 1876 $search_value = stripslashes( $_REQUEST['s'] ); 1874 $default_search_value = bp_get_search_default_text(); 1875 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; 1877 1876 1878 1877 ?> 1879 1878 <form action="" method="get" id="search-groups-form"> 1880 <label><input type="text" name="s" id="groups_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>1879 <label><input type="text" name="s" id="groups_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> 1881 1880 <input type="submit" id="groups_search_submit" name="groups_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 1882 1881 </form>
Note: See TracChangeset
for help on using the changeset viewer.