Making WordPress.org

Ticket #1134: 1134.diff

File 1134.diff, 1.5 KB (added by francescolaffi, 8 years ago)

search form patch

  • wp-content/themes/pub/wporg-forums/page-homepage.php

     
    3131                        </ul>
    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">
    4137                                <?php wp_tag_cloud( array( 'smallest' => 14, 'largest' => 24, 'number' => 22, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?>
  • wp-content/themes/pub/wporg-forums/style.css

     
    198198}
    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 {
    204208        width: 90%;