Making WordPress.org

Changeset 2063


Ignore:
Timestamp:
11/09/2015 01:04:56 PM (9 years ago)
Author:
ocean90
Message:

Forums Theme: Use bbPress' search form template on home page.

The custom search form had actions which aren't supported by default in bbPress.

Props francescolaffi.
Fixes #1134.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php

    r2009 r2063  
    3333        get_template_directory_uri() . '/style.css',
    3434        array( 'bb-base' ),
    35         '20150704'
     35        '20151109'
    3636    );
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/page-homepage.php

    r1535 r2063  
    3232            <h3><?php _e( 'Search the Support Forums', 'wporg-forums' ); ?></h3>
    3333            <p><?php _e( 'Enter a few words that describe the problem you&rsquo;re having.', 'wporg-forums' ); ?></p>
    34             <form id="forumsearch" method="get" action="<?php bbp_search_url(); ?>">
    35                 <input name="search" class="text" id="forumsearchbox" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" type="text">
    36                 <input id="go" name="go" class="button" value="<?php esc_attr_e( 'Search', 'wporg-forums' ); ?>" type="submit">
    37                 <input value="1" name="forums" type="hidden">
    38             </form>
     34            <?php bbp_get_template_part( 'form', 'search' ); ?>
    3935            <h3><?php _e( 'Hot Topics', 'wporg-forums' ); ?></h3>
    4036            <p class="frontpageheatmap">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/style.css

    r1707 r2063  
    199199
    200200/* Search forms */
    201 #bbp_search,
     201#bbp-search-form {
     202    position: relative;
     203    margin-top: 0;
     204}
     205
    202206.sidebar #ts,
    203207.sidebar #rs {
Note: See TracChangeset for help on using the changeset viewer.