false, 'count_private_topics' => false, 'count_spammed_topics' => false, 'count_trashed_topics' => false, 'count_pending_replies' => false, 'count_private_replies' => false, 'count_spammed_replies' => false, 'count_trashed_replies' => false, 'count_empty_tags' => false ) ); // Users if ( isset( $r['user_count'] ) ) { $link = admin_url( 'users.php' ); $text = sprintf( _n( '%s User', '%s Users', $r['user_count_int'], 'bbpress' ), $r['user_count'] ); $elements[] = current_user_can( 'edit_users' ) ? '' . esc_html( $text ) . '' : esc_html( $text ); } // Forums if ( isset( $r['forum_count'] ) ) { $link = add_query_arg( array( 'post_type' => bbp_get_forum_post_type() ), admin_url( 'edit.php' ) ); $text = sprintf( _n( '%s Forum', '%s Forums', $r['forum_count_int'], 'bbpress' ), $r['forum_count'] ); $elements[] = current_user_can( 'publish_forums' ) ? '' . esc_html( $text ) . '' : esc_html( $text ); } // Topics if ( isset( $r['topic_count'] ) ) { $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit.php' ) ); $text = sprintf( _n( '%s Topic', '%s Topics', $r['topic_count_int'], 'bbpress' ), $r['topic_count'] ); $elements[] = current_user_can( 'publish_topics' ) ? '' . esc_html( $text ) . '' : esc_html( $text ); } // Replies if ( isset( $r['reply_count'] ) ) { $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), admin_url( 'edit.php' ) ); $text = sprintf( _n( '%s Reply', '%s Replies', $r['reply_count_int'], 'bbpress' ), $r['reply_count'] ); $elements[] = current_user_can( 'publish_replies' ) ? '' . esc_html( $text ) . '' : esc_html( $text ); } // Topic Tags if ( bbp_allow_topic_tags() && isset( $r['topic_tag_count'] ) ) { $link = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit-tags.php' ) ); $text = sprintf( _n( '%s Topic Tag', '%s Topic Tags', $r['topic_tag_count_int'], 'bbpress' ), $r['topic_tag_count'] ); $elements[] = current_user_can( 'manage_topic_tags' ) ? '' . esc_html( $text ) . '' : esc_html( $text ); } // Filter & return return apply_filters( 'bbp_dashboard_at_a_glance', $elements, $r ); } /** * bbPress Dashboard Right Now Widget * * Adds a dashboard widget with forum statistics * * @since 2.0.0 bbPress (r2770) * * @deprecated 2.6.0 bbPress (r5268) */ function bbp_dashboard_widget_right_now() { // Get the statistics $r = bbp_get_statistics(); ?>

bbp_get_forum_post_type() ), admin_url( 'edit.php' ) ); $num = '' . $num . ''; $text = '' . $text . ''; } ?> bbp_get_topic_post_type() ), admin_url( 'edit.php' ) ); $num = '' . $num . ''; $text = '' . $text . ''; } ?> bbp_get_reply_post_type() ), admin_url( 'edit.php' ) ); $num = '' . $num . ''; $text = '' . $text . ''; } ?> bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit-tags.php' ) ); $num = '' . $num . ''; $text = '' . $text . ''; } ?>

' . $num . ''; $text = '' . $text . ''; } ?> bbp_get_topic_post_type() ), admin_url( 'edit.php' ) ); if ( '0' !== $num ) { $link = add_query_arg( array( 'post_status' => bbp_get_spam_status_id() ), $link ); } $num = '' . $num . ''; $text = '' . $text . ''; ?> bbp_get_reply_post_type() ), admin_url( 'edit.php' ) ); if ( '0' !== $num ) { $link = add_query_arg( array( 'post_status' => bbp_get_spam_status_id() ), $link ); } $num = '' . $num . ''; $text = '' . $text . ''; ?> bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit-tags.php' ) ); $num = '' . $num . ''; $text = '' . $text . ''; ?>
bbPress %s.', 'bbpress' ), bbp_get_version() ); ?>

$post->ID ) ); ?>

$post->ID ) ); ?>

$post->ID ) ); ?>


bbp_get_forum_post_type(), 'selected' => $post_parent, 'numberposts' => -1, 'orderby' => 'title', 'order' => 'ASC', 'walker' => '', 'exclude' => $post->ID, // Output-related 'select_id' => 'parent_id', 'options_only' => false, 'show_none' => esc_html__( '— No parent —', 'bbpress' ), 'disable_categories' => false, 'disabled' => '' ) ); ?>

$post->ID ) ); ?>

'post_status', 'topic_id' => $post->ID ) ); ?>


bbp_get_forum_post_type(), 'selected' => bbp_get_topic_forum_id( $post->ID ), 'numberposts' => -1, 'orderby' => 'title', 'order' => 'ASC', 'walker' => '', 'exclude' => '', // Output-related 'select_id' => 'parent_id', 'options_only' => false, 'show_none' => esc_html__( '— No forum —', 'bbpress' ), 'disable_categories' => current_user_can( 'edit_forums' ), 'disabled' => '' ) ); ?>

ID ); $reply_forum_id = bbp_get_reply_forum_id( $post->ID ); $topic_forum_id = bbp_get_topic_forum_id( $reply_topic_id ); /** Status ****************************************************************/ ?>

'post_status', 'reply_id' => $post->ID ) ); ?>


ID ) ) ) : ?>

bbp_get_forum_post_type(), 'selected' => $reply_forum_id, 'numberposts' => -1, 'orderby' => 'title', 'order' => 'ASC', 'walker' => '', 'exclude' => '', // Output-related 'select_id' => 'bbp_forum_id', 'options_only' => false, 'show_none' => esc_html__( '— No reply —', 'bbpress' ), 'disable_categories' => current_user_can( 'edit_forums' ), 'disabled' => '' ) ); ?>

ID ); ?>

admin_dir . '/classes/class-bbp-topic-replies-list-table.php'; } // Look for pagination value $page = isset( $_REQUEST['page'] ) ? (int) $_REQUEST['page'] : 0; // Load up the list table $replies_list_table = new BBP_Topic_Replies_List_Table(); $replies_list_table->prepare_items( $topic->ID ); ?>
display(); ?>
ID ) || bbp_is_topic_anonymous( $post->ID ) ) : ?>

ID ); $user_nicenames = bbp_get_user_nicenames_from_ids( $user_ids ); $moderators = ! empty( $user_nicenames ) ? implode( ', ', array_map( 'esc_attr', $user_nicenames ) ) : ''; ?>

ID ); // Output ?>

$user_ids ); // Users were found if ( ! empty( $user_ids ) && bbp_has_users( $args ) ) : bbp_metabox_user_links(); // No users else : esc_html_e( 'No users have engaged to this topic.', 'bbpress' ); endif; ?>

ID ); // Output ?>

$user_ids ); // Users were found if ( ! empty( $user_ids ) && bbp_has_users( $args ) ) : bbp_metabox_user_links(); // No users else : esc_html_e( 'No users have favorited this topic.', 'bbpress' ); endif; ?>

ID ) ? 'bbp_subscribe' // maintain existing subscription : ''; // do not add or remove subscription // Get user IDs $user_ids = bbp_get_subscribers( $post->ID ); // Output ?>

$user_ids ); // Users were found if ( ! empty( $user_ids ) && bbp_has_users( $args ) ) : bbp_metabox_user_links(); // No users else : esc_html_e( 'No users have subscribed to this topic.', 'bbpress' ); endif; ?>

ID ); // Output ?>

$user_ids ); // Users were found if ( ! empty( $user_ids ) && bbp_has_users( $args ) ) : bbp_metabox_user_links(); // No users else : esc_html_e( 'No users have subscribed to this forum.', 'bbpress' ); endif; ?>

true ) ); // Output a link to the user avatar echo '' . $user_avatar . ''; } }