Making WordPress.org

Changeset 3918


Ignore:
Timestamp:
09/01/2016 08:11:04 PM (10 years ago)
Author:
jmdodd
Message:

Forums Theme: Use the old search for now.

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

    r3883 r3918  
    176176
    177177/** bb Base *******************************************************************/
     178
     179function bb_base_search_form() {
     180?>
     181
     182        <form role="search" method="get" id="searchform" action="https://wordpress.org/search/do-search.php">
     183                <div>
     184                        <h3><?php _e( 'Forum Search', 'wporg-forums' ); ?></h3>
     185                        <label class="screen-reader-text hidden" for="search"><?php _e( 'Search for:', 'wporg-forums' ); ?></label>
     186                        <input name="search" class="text" id="forumsearchbox" value type="text" />
     187                        <input name="go" class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'wporg-forums' ); ?>" />
     188                        <input value="1" name="forums" type="hidden">
     189                </div>
     190        </form>
     191
     192<?php
     193}
    178194
    179195function bb_base_topic_search_form() {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/page-homepage.php

    r3883 r3918  
    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                         <?php bbp_get_template_part( 'form', 'search' ); ?>
     34                        <?php bb_base_search_form(); ?>
    3535                        <h3><?php _e( 'Hot Topics', 'wporg-forums' ); ?></h3>
    3636                        <p class="frontpageheatmap">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/sidebar.php

    r3901 r3918  
    33        <?php if ( function_exists( 'is_bbpress' ) && ( is_bbpress() ) || is_page( 'new-topic' ) ) : ?>
    44
    5                 <?php if ( bbp_is_single_forum() || bb_base_topic_search_query( false ) ) : ?>
     5                <?php if ( bbp_is_single_forum() ) : ?>
    66
    77                        <div>
     
    1313
    1414                        <div>
    15                                 <?php bb_base_topic_search_form(); ?>
     15                                <?php bb_base_search_form(); ?>
    1616                        </div>
    1717
     
    4848
    4949                        <div>
    50                                 <?php bb_base_reply_search_form(); ?>
     50                                <?php bb_base_search_form(); ?>
    5151                        </div>
    5252
Note: See TracChangeset for help on using the changeset viewer.