Changeset 7345
- Timestamp:
- 08/11/2013 08:11:43 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-template.php
r7235 r7345 792 792 } 793 793 794 /** 795 * Echoes the blog directory search form 796 */ 794 797 function bp_directory_blogs_search_form() { 795 796 798 $default_search_value = bp_get_search_default_text(); 797 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>798 799 <form action="" method="get" id="search-blogs-form">800 <label><input type="text" name="s" id="blogs_search" placeholder=" <?php echo esc_attr( $search_value ) ?>" /></label>801 <input type="submit" id="blogs_search_submit" name="blogs_search_submit" value=" <?php _e( 'Search', 'buddypress' ) ?>" />802 </form> 803 804 <?php 799 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; 800 801 $search_form_html = '<form action="" method="get" id="search-blogs-form"> 802 <label><input type="text" name="s" id="blogs_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 803 <input type="submit" id="blogs_search_submit" name="blogs_search_submit" value="' . __( 'Search', 'buddypress' ) . '" /> 804 </form>'; 805 806 echo apply_filters( 'bp_directory_blogs_search_form', $search_form_html ); 805 807 } 806 808 -
trunk/bp-forums/bp-forums-template.php
r7298 r7345 1318 1318 } 1319 1319 1320 /** 1321 * Echoes the forums directory search form 1322 */ 1320 1323 function bp_directory_forums_search_form() { 1321 global $bp;1322 1323 1324 $default_search_value = bp_get_search_default_text( 'forums' ); 1324 $search_value = !empty( $_REQUEST['fs'] ) ? stripslashes( $_REQUEST['fs'] ) : $default_search_value; ?>1325 1326 <form action="" method="get" id="search-forums-form">1327 <label><input type="text" name="s" id="forums_search" placeholder=" <?php echo esc_attr( $search_value ); ?>" /></label>1328 <input type="submit" id="forums_search_submit" name="forums_search_submit" value=" <?php _e( 'Search', 'buddypress' ); ?>" />1329 </form> 1330 1331 <?php 1325 $search_value = !empty( $_REQUEST['fs'] ) ? stripslashes( $_REQUEST['fs'] ) : $default_search_value; 1326 1327 $search_form_html = '<form action="" method="get" id="search-forums-form"> 1328 <label><input type="text" name="s" id="forums_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 1329 <input type="submit" id="forums_search_submit" name="forums_search_submit" value="' . __( 'Search', 'buddypress' ) . '" /> 1330 </form>'; 1331 1332 echo apply_filters( 'bp_directory_forums_search_form', $search_form_html ); 1332 1333 } 1333 1334
Note: See TracChangeset
for help on using the changeset viewer.