Ticket #4974: 4974.4.diff
| File 4974.4.diff, 6.2 KB (added by , 13 years ago) |
|---|
-
bp-members/bp-members-template.php
703 703 function bp_directory_members_search_form() { 704 704 705 705 $default_search_value = bp_get_search_default_text( 'members' ); 706 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>706 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; 707 707 708 <form action="" method="get" id="search-members-form">709 <label><input type="text" name="s" id="members_search" placeholder=" <?php echo esc_attr( $search_value ) ?>" /></label>710 <input type="submit" id="members_search_submit" name="members_search_submit" value=" <?php _e( 'Search', 'buddypress' ) ?>" />711 </form> 712 713 <?php 708 $search_form_html = '<form action="" method="get" id="search-members-form"> 709 <label><input type="text" name="s" id="members_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 710 <input type="submit" id="members_search_submit" name="members_search_submit" value="' . __( 'Search', 'buddypress' ) . '" /> 711 </form>'; 712 713 echo apply_filters( 'bp_directory_members_search_form', $search_form_html ); 714 714 } 715 715 716 716 717 function bp_total_site_member_count() { 717 718 echo bp_get_total_site_member_count(); 718 719 } -
bp-blogs/bp-blogs-template.php
794 794 function bp_directory_blogs_search_form() { 795 795 796 796 $default_search_value = bp_get_search_default_text(); 797 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?> 797 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; 798 799 $search_form_html = '<form action="" method="get" id="search-blogs-form"> 800 <label><input type="text" name="s" id="blogs_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 801 <input type="submit" id="blogs_search_submit" name="blogs_search_submit" value="' . __( 'Search', 'buddypress' ) . '" /> 802 </form>'; 803 804 echo apply_filters( 'bp_directory_blogs_search_form', $search_form_html ); 798 805 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 806 805 807 } 806 808 807 809 /** -
bp-forums/bp-forums-template.php
1321 1321 global $bp; 1322 1322 1323 1323 $default_search_value = bp_get_search_default_text( 'forums' ); 1324 $search_value = !empty( $_REQUEST['fs'] ) ? stripslashes( $_REQUEST['fs'] ) : $default_search_value; ?>1324 $search_value = !empty( $_REQUEST['fs'] ) ? stripslashes( $_REQUEST['fs'] ) : $default_search_value; 1325 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> 1326 $search_form_html = '<form action="" method="get" id="search-forums-form"> 1327 <label><input type="text" name="s" id="forums_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 1328 <input type="submit" id="forums_search_submit" name="forums_search_submit" value="' . __( 'Search', 'buddypress' ) . '" /> 1329 </form>'; 1330 1331 echo apply_filters( 'bp_directory_forums_search_form', $search_form_html ); 1330 1332 1331 <?php 1333 1332 1334 } 1333 1335 1334 1336 function bp_forum_permalink( $forum_id = 0 ) { -
bp-groups/bp-groups-template.php
884 884 $label = __('Filter Groups', 'buddypress'); 885 885 $name = 'group-filter-box'; 886 886 887 ?> 888 <form action="<?php echo $action ?>" id="group-search-form" method="post"> 889 <label for="<?php echo $name ?>" id="<?php echo $name ?>-label"><?php echo $label ?></label> 890 <input type="search" name="<?php echo $name ?>" id="<?php echo $name ?>" value="<?php echo $value ?>"<?php echo $disabled ?> /> 887 $search_form_html = '<form action="' . $action . '" id="group-search-form" method="post"> 888 <label for="'. $name .'" id="'. $name .'-label">'. $label .'</label> 889 <input type="search" name="'. $name . '" id="'. $name .'" value="'. $value .'"'. $disabled .' /> 891 890 892 <?php wp_nonce_field( 'group-filter-box', '_wpnonce_group_filter' ) ?> 893 </form> 894 <?php 891 '. wp_nonce_field( 'group-filter-box', '_wpnonce_group_filter', true, false ) .' 892 </form>'; 893 894 echo apply_filters( 'bp_group_search_form', $search_form_html ); 895 895 } 896 896 897 897 function bp_group_show_no_groups_message() { … … 2496 2496 function bp_directory_groups_search_form() { 2497 2497 2498 2498 $default_search_value = bp_get_search_default_text( 'groups' ); 2499 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>2499 $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; 2500 2500 2501 <form action="" method="get" id="search-groups-form"> 2502 <label><input type="text" name="s" id="groups_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label> 2503 <input type="submit" id="groups_search_submit" name="groups_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 2504 </form> 2505 2506 <?php 2501 $search_form_html = '<form action="" method="get" id="search-groups-form"> 2502 <label><input type="text" name="s" id="groups_search" placeholder="'. esc_attr( $search_value ) .'" /></label> 2503 <input type="submit" id="groups_search_submit" name="groups_search_submit" value="'. __( 'Search', 'buddypress' ) .'" /> 2504 </form>'; 2505 2506 echo apply_filters( 'bp_directory_groups_search_form', $search_form_html ); 2507 2507 2508 } 2508 2509 2509 2510 /**
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)