1, 'open' => 'all', 'count' => true);
if ( isset($_REQUEST['search']) && $_REQUEST['search'] )
$topic_query_vars['post_status'] = 'all';
$topic_query = new BB_Query_Form( 'topic', $topic_query_vars );
$topics = $topic_query->results;
?>
get( 'search' );
$h2_forum = $topic_query->get( 'forum_id' );
$h2_tag = $topic_query->get( 'tag_id' );
$h2_author = $topic_query->get( 'topic_author_id' );
$h2_status = $topic_query->get( 'topic_status' );
$h2_open = $topic_query->get( 'open' );
$h2_search = $h2_search ? ' ' . sprintf( __('matching “%s”'), wp_specialchars( $h2_search ) ) : '';
$h2_forum = $h2_forum ? ' ' . sprintf( __('in “%s”') , get_forum_name( $h2_forum ) ) : '';
$h2_tag = $h2_tag ? ' ' . sprintf( __('with tag “%s”'), wp_specialchars( bb_get_tag_name( $h2_tag ) ) ) : '';
$h2_author = $h2_author ? ' ' . sprintf( __('by %s') , wp_specialchars( get_user_name( $h2_author ) ) ) : '';
$topic_stati = array( 0 => __('Normal') . ' ', 1 => __('Deleted') . ' ', 'all' => '' );
$topic_open = array( 0 => __('Closed') . ' ', 1 => __('Open') . ' ' , 'all' => '' );
if ( 'all' == $h2_status && 'all' == $h2_open )
$h2_noun = __('Topics');
else
$h2_noun = sprintf( __( '%1$s%2$stopics'), $topic_stati[$h2_status], $topic_open[$h2_open] );
printf( __( '%1$s%2$s%3$s%4$s%5$s' ), $h2_noun, $h2_search, $h2_forum, $h2_tag, $h2_author );
?>
form( array('tag' => true, 'topic_author' => true, 'topic_status' => true, 'open' => true, 'submit' => __('Filter »')) ); ?>
found_rows ); ?>