Topic undeleted.' ) ); break; case 'deleted': bb_admin_notice( __( 'Topic deleted.' ) ); break; case 'opened': bb_admin_notice( __( 'Topic opened.' ) ); break; case 'closed': bb_admin_notice( __( 'Topic closed.' ) ); break; } } $bb_admin_body_class = ' bb-admin-topics'; bb_get_admin_header(); if ( !bb_current_user_can('browse_deleted') ) die(__("Now how'd you get here? And what did you think you'd being doing?")); //This should never happen. add_filter( 'topic_link', 'bb_make_link_view_all' ); add_filter( 'topic_last_post_link', 'bb_make_link_view_all' ); $topic_query_vars = array( 'topic_status' => 'normal', 'open' => 'open', 'count' => true, 'per_page' => 20 ); if ( isset($_POST['search']) && $_POST['search'] ) { $topic_query_vars['post_status'] = 'all'; } elseif ( isset($_GET['search']) && $_GET['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_search = $h2_search ? ' ' . sprintf( __('containing “%s”'), esc_html( $h2_search ) ) : ''; $h2_forum = $h2_forum ? ' ' . sprintf( __('in “%s”') , get_forum_name( $h2_forum ) ) : ''; $h2_tag = $h2_tag ? ' ' . sprintf( __('with tag “%s”'), esc_html( bb_get_tag_name( $h2_tag ) ) ) : ''; $h2_author = $h2_author ? ' ' . sprintf( __('by %s') , esc_html( get_user_name( $h2_author ) ) ) : ''; if ( $h2_search || $h2_forum || $h2_tag || $h2_author ) { echo ''; printf( __( '%1$s%2$s%3$s%4$s' ), $h2_search, $h2_forum, $h2_tag, $h2_author ); echo ''; } ?>

form( array('tag' => true, 'topic_author' => true, 'topic_status' => true, 'open' => true, 'submit' => __('Filter')) ); ?>
found_rows ) : ?>
get( 'per_page' ) + 1 ), $page * $topic_query->get( 'per_page' ) < $topic_query->found_rows ? bb_number_format_i18n( $page * $topic_query->get( 'per_page' ) ) : '' . bb_number_format_i18n( $topic_query->found_rows ) . '', '' . bb_number_format_i18n( $topic_query->found_rows ) . '' ); ?> $page, 'total' => $topic_query->found_rows, 'per_page' => $topic_query->get( 'per_page' ), 'mod_rewrite' => false, 'prev_text' => __( '«' ), 'next_text' => __( '»' ) ); echo $page_number_links = get_page_number_links( $_page_link_args ); ?>

>
| post_id ); ?> | $topic->topic_id, 'before' => '', 'after' => '', 'close_text' => __( 'Close' ), 'open_text' => _x( 'Open', 'action' ) ) ); ?> | $topic->topic_id, 'before' => '', 'after' => '', 'delete_text' => __( 'Delete' ), 'undelete_text' => __( 'Undelete' ) ) ); ?>  
topic_poster, '16' ); ?> H:i:s' ); } else { printf( __( '%s ago' ), get_topic_start_time( 'since' ) ); } ?> H:i:s' ); } else { printf( __( '%s ago' ), get_topic_time( 'since' ) ); } ?>
found_rows ) : ?>