Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/03/2010 01:11:58 AM (16 years ago)
Author:
chrishajer
Message:

Search enhancements. Maybe fixes #1274. Props GautamGupta, mr_pelle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r2435 r2436  
    498498   
    499499    switch ( bb_get_location() ) {
     500        case 'search-page':
     501            if ( !$q = trim( @$_GET['search'] ) )
     502                if ( !$q = trim( @$_GET['q'] ) )
     503                    break;
     504            $title[] = sprintf( __( 'Search for %s' ), esc_html( $q ) );
     505            break;
    500506        case 'front-page':
    501507            if ( !empty( $args['front'] ) )
     
    516522                $title[] = esc_html( bb_get_tag_name() );
    517523           
    518             $title[] = __('Tags');
     524            $title[] = __( 'Tags' );
    519525            break;
    520526       
     
    16351641
    16361642    $query_obj->form( $args );
     1643}
     1644
     1645function bb_search_pages() {
     1646    global $page, $search_count;
     1647    echo apply_filters( 'bb_search_pages', get_page_number_links( array( 'page' => $page, 'total' => $search_count, 'per_page' => 5, 'mod_rewrite' => false ) ) );
    16371648}
    16381649
Note: See TracChangeset for help on using the changeset viewer.