/** * Output whether the current topic in the loop is open. */ function bp_the_topic_is_topic_open() { echo bp_get_the_topic_is_topic_open(); }
</div> <?php } ?> <?php if (is_user_logged_in() && 'public' == bp_get_group_status() || bp_group_is_member()) { ?> <?php if (bp_get_the_topic_is_last_page()) { ?> <?php if (bp_get_the_topic_is_topic_open() && !bp_group_is_user_banned()) { ?> <div id="post-topic-reply"> <p id="post-reply"></p> <?php if (bp_groups_auto_join() && !bp_group_is_member()) { ?> <p><?php _e('You will auto join this group when you reply to this topic.', 'buddypress'); ?> </p> <?php } ?>
?> </div> </div> <?php if (is_user_logged_in()) { ?> <?php if (bp_get_the_topic_is_last_page()) { ?> <?php if (bp_get_the_topic_is_topic_open()) { ?> <div id="post-topic-reply"> <p id="post-reply"></p> <?php do_action('groups_forum_new_reply_before'); ?> <h4><?php _e('Add a reply:', 'product'); ?> </h4> <textarea name="reply_text" id="reply_text"></textarea>
<div id="post-count" class="pag-count"> <?php bp_the_topic_pagination_count() ?> </div> <div class="pagination-links" id="topic-pag"> <?php bp_the_topic_pagination() ?> </div> </div> <?php if ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) : ?> <?php if ( bp_get_the_topic_is_last_page() ) : ?> <?php if ( bp_get_the_topic_is_topic_open() ) : ?> <div id="post-topic-reply"> <p id="post-reply"></p> <?php if ( bp_groups_auto_join() && !bp_group_is_member() ) : ?> <p><?php _e( 'You will auto join this group when you reply to this topic.', 'buddypress' ) ?></p> <?php endif; ?> <?php do_action( 'groups_forum_new_reply_before' ) ?> <h4><?php _e( 'Add a reply:', 'buddypress' ) ?></h4> <textarea name="reply_text" id="reply_text"></textarea> <div class="submit">