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

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

custom bbPress styling.', 'bbpress' ); else _e( 'Theme is using default bbPress styling.', 'bbpress' ); ?>

bbPress %s.', 'bbpress' ), bbp_get_version() ); ?>

__( 'Forum', 'bbpress' ), 'category' => __( 'Category', 'bbpress' ) ); $type_output = ''; /** Status ****************************************************************/ $forum['status'] = array( 'open' => __( 'Open', 'bbpress' ), 'closed' => __( 'Closed', 'bbpress' ) ); $status_output = ''; /** Visibility ************************************************************/ $forum['visibility'] = array( bbp_get_public_status_id() => __( 'Public', 'bbpress' ), bbp_get_private_status_id() => __( 'Private', 'bbpress' ), bbp_get_hidden_status_id() => __( 'Hidden', 'bbpress' ) ); $visibility_output = ''; /** Output ****************************************************************/ ?>


$post->ID, 'selected' => $post->post_parent, 'show_none' => __( '(No Parent)', 'bbpress' ), 'select_id' => 'parent_id', 'disable_categories' => false ) ); ?>

ID ); } /** Topics ********************************************************************/ /** * Topic metabox * * The metabox that holds all of the additional topic information * * @since bbPress (r2464) * * @uses bbp_get_topic_forum_id() To get the topic forum id * @uses bbp_dropdown() To show a dropdown of the forums for topic parent * @uses do_action() Calls 'bbp_topic_metabox' */ function bbp_topic_metabox() { global $post; $args = array( 'selected' => bbp_get_topic_forum_id( $post->ID ), 'select_id' => 'parent_id', 'show_none' => is_super_admin() ? __( '(No Forum)', 'bbpress' ) : '', ); ?>

ID ); } /** Replies *******************************************************************/ /** * Reply metabox * * The metabox that holds all of the additional reply information * * @since bbPress (r2464) * * @uses bbp_get_topic_post_type() To get the topic post type * @uses bbp_dropdown() To show a dropdown of the topics for reply parent * @uses do_action() Calls 'bbp_reply_metabox' */ function bbp_reply_metabox() { global $post; // Get some meta $reply_topic_id = bbp_get_reply_topic_id( $post->ID ); $reply_forum_id = bbp_get_reply_forum_id( $post->ID ); $topic_forum_id = bbp_get_topic_forum_id( bbp_get_reply_topic_id( $post->ID ) ); // Allow individual manipulation of reply forum if ( current_user_can( 'edit_others_replies' ) || current_user_can( 'moderate' ) ) : // Forums $args = array( 'selected' => $reply_forum_id, 'select_id' => 'bbp_forum_id', 'show_none' => __( '(Use Forum of Topic)', 'bbpress' ) ); ?>

bbp_get_topic_post_type(), 'selected' => $reply_topic_id, 'select_id' => 'parent_id', 'orderby' => 'post_date', 'numberposts' => '250', 'show_none' => is_super_admin() ? __( '(No Topic)', 'bbpress' ) : '', ); // Allow the dropdown to be filtered, to extend or limit the available // topics to choose as the reply parent. $args = apply_filters( 'bbp_reply_parent_dropdown', $args ); ?>

ID ); } /** Users *********************************************************************/ /** * Anonymous user information metabox * * @since bbPress (r2828) * * @uses bbp_is_reply_anonymous() To check if reply is anonymous * @uses bbp_is_topic_anonymous() To check if topic is anonymous * @uses get_the_ID() To get the global post ID * @uses get_post_meta() To get the author user information */ function bbp_author_metabox() { // Post ID $post_id = get_the_ID(); // Show extra bits if topic/reply is anonymous if ( bbp_is_reply_anonymous( $post_id ) || bbp_is_topic_anonymous( $post_id ) ) : ?>