/** * Output whether this is the last page in the current topic. */ function bp_the_topic_is_last_page() { echo bp_get_the_topic_is_last_page(); }
<div class="pagination no-ajax"> <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="pagination-links" id="topic-pag-bottom"> <?php bp_the_topic_pagination(); ?> </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');
<div class="pagination no-ajax"> <div id="post-count-bottom" class="pag-count"> <?php bp_the_topic_pagination_count(); ?> </div> <div class="pagination-links" id="topic-pag-bottom"> <?php bp_the_topic_pagination(); ?> </div> </div> <?php if (is_user_logged_in() && 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:', 'buddypress'); ?>