diff --git bp-themes/bp-default/groups/single/forum/edit.php bp-themes/bp-default/groups/single/forum/edit.php
index 1db8ca2..a6bfa64 100644
|
|
|
38 | 38 | |
39 | 39 | </div> |
40 | 40 | |
41 | | <?php if ( bp_group_is_member() ) : ?> |
| 41 | <?php if ( bp_is_edit_topic() ) : ?> |
42 | 42 | |
43 | | <?php if ( bp_is_edit_topic() ) : ?> |
| 43 | <div id="edit-topic"> |
44 | 44 | |
45 | | <div id="edit-topic"> |
| 45 | <?php do_action( 'bp_group_before_edit_forum_topic' ); ?> |
46 | 46 | |
47 | | <?php do_action( 'bp_group_before_edit_forum_topic' ); ?> |
| 47 | <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label> |
| 48 | <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" /> |
48 | 49 | |
49 | | <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label> |
50 | | <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" /> |
| 50 | <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label> |
| 51 | <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea> |
51 | 52 | |
52 | | <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label> |
53 | | <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea> |
| 53 | <label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label> |
| 54 | <input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list() ?>" /> |
54 | 55 | |
55 | | <label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label> |
56 | | <input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list() ?>" /> |
| 56 | <?php do_action( 'bp_group_after_edit_forum_topic' ); ?> |
57 | 57 | |
58 | | <?php do_action( 'bp_group_after_edit_forum_topic' ); ?> |
| 58 | <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p> |
59 | 59 | |
60 | | <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p> |
| 60 | <?php wp_nonce_field( 'bp_forums_edit_topic' ); ?> |
61 | 61 | |
62 | | <?php wp_nonce_field( 'bp_forums_edit_topic' ); ?> |
| 62 | </div> |
63 | 63 | |
64 | | </div> |
65 | | |
66 | | <?php else : ?> |
| 64 | <?php else : ?> |
67 | 65 | |
68 | | <div id="edit-post"> |
| 66 | <div id="edit-post"> |
69 | 67 | |
70 | | <?php do_action( 'bp_group_before_edit_forum_post' ); ?> |
| 68 | <?php do_action( 'bp_group_before_edit_forum_post' ); ?> |
71 | 69 | |
72 | | <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea> |
| 70 | <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea> |
73 | 71 | |
74 | | <?php do_action( 'bp_group_after_edit_forum_post' ) ?> |
| 72 | <?php do_action( 'bp_group_after_edit_forum_post' ) ?> |
75 | 73 | |
76 | | <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p> |
| 74 | <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p> |
77 | 75 | |
78 | | <?php wp_nonce_field( 'bp_forums_edit_post' ); ?> |
| 76 | <?php wp_nonce_field( 'bp_forums_edit_post' ); ?> |
79 | 77 | |
80 | | </div> |
81 | | |
82 | | <?php endif; ?> |
| 78 | </div> |
83 | 79 | |
84 | 80 | <?php endif; ?> |
85 | 81 | |