?> </div> <?php } else { ?> <div id="edit-post"> <?php do_action('bp_group_before_edit_forum_post'); ?> <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?> </textarea> <?php do_action('bp_group_after_edit_forum_post'); ?> <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e('Save Changes', 'buddypress'); ?> " /></p> <?php wp_nonce_field('bp_forums_edit_post'); ?>
<p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p> <?php wp_nonce_field( 'bp_forums_edit_topic' ) ?> </div> <?php else : ?> <div id="edit-post"> <?php do_action( 'bp_group_before_edit_forum_post' ) ?> <p><strong><?php _e( 'Edit Post:', 'buddypress' ) ?></strong></p> <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text() ?></textarea> <?php do_action( 'bp_group_after_edit_forum_post' ) ?> <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p> <?php wp_nonce_field( 'bp_forums_edit_post' ) ?> </div> <?php endif; ?> <?php endif; ?> </form><!-- #forum-topic-form -->