- Timestamp:
- 04/01/2011 09:01:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic.php
r2943 r2976 37 37 <?php endif; ?> 38 38 39 <?php do_action( 'bbp_template_notices' ); ?>40 41 39 <div> 42 40 <div class="alignright avatar"> … … 50 48 <p> 51 49 <label for="bbp_topic_title"><?php _e( 'Topic Title:', 'bbpress' ); ?></label><br /> 52 <input type="text" id="bbp_topic_title" value="<?php echo ( bbp_is_topic_edit() && !empty( $post->post_title ) ) ? $post->post_title : ''; ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" />50 <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" /> 53 51 </p> 54 52 55 53 <p> 56 54 <label for="bbp_topic_content"><?php _e( 'Topic Description:', 'bbpress' ); ?></label><br /> 57 <textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="52" rows="6"><?php echo ( bbp_is_topic_edit() && !empty( $post->post_content ) ) ? $post->post_content : ''; ?></textarea>55 <textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="52" rows="6"><?php bbp_form_topic_content(); ?></textarea> 58 56 </p> 59 57 … … 67 65 <p> 68 66 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br /> 69 <input type="text" value=" " tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" />67 <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" /> 70 68 </p> 71 69 … … 76 74 <p> 77 75 <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br /> 78 <?php bbp_dropdown( array( 'selected' => bbp_ is_topic_edit() ? bbp_get_topic_forum_id() : 0) ); ?>76 <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?> 79 77 </p> 80 78 … … 96 94 97 95 <p> 98 < ?php if ( bbp_is_topic_edit() && $post->post_author != bbp_get_current_user_id() ) : ?>96 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" /> 99 97 100 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( $post->post_author ) ); ?> tabindex="<?php bbp_tab_index(); ?>" /> 98 <?php if ( bbp_is_topic_edit() && ( $post->post_author != bbp_get_current_user_id() ) ) : ?> 99 101 100 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label> 102 101 103 102 <?php else : ?> 104 103 105 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php checked( true, bbp_is_user_subscribed( bbp_get_user_id( 0, false, true ) ) ); ?> tabindex="<?php bbp_tab_index(); ?>" />106 104 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label> 107 105 … … 116 114 <legend><?php _e( 'Revision', 'bbpress' ); ?></legend> 117 115 <div> 118 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" checked="checked"tabindex="<?php bbp_tab_index(); ?>" />116 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" /> 119 117 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 120 118 </div> … … 122 120 <div> 123 121 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 124 <input type="text" value=" " tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />122 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 125 123 </div> 126 124 </fieldset>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)