<?php $forum_options=gf_forum_prepare_fields(gf_get_current_forum_id()); ?> <form class="standard-form" method="post" id="edit-forum" action=""> <fieldset> <legend><?php echo $legend; ?></legend> <?php foreach ($forum_options as $option => $args ) { bb_option_form_element( $option, $args ); } ?> </fieldset> <fieldset class="submit"> <?php if ( $forum_id ) : ?> <input type="hidden" name="forum_id" value="<?php echo $forum_id; ?>" /> <?php endif; ?> <?php wp_nonce_field( 'gf_edit_forum' ); ?> <input type="hidden" name="action" value="<?php echo $action; ?>" /> <input class="submit" type="submit" name="save-forum" value="<?php _e('Save Forum','gf');?>" /> </fieldset> </form>
<?php $forum_options=gf_forum_prepare_fields(gf_get_current_forum_id()); $deleted_forum = bb_get_forum( gf_get_current_forum_id() ); ?> <form class="delete-forum standard-form" method="post" id="delete-forums" action=""> <fieldset> <legend><?php _e('Delete Forum','gf'); ?></legend> <p><?php _e('This forum contains:','gf'); ?></p> <ul> <li><?php printf(__('%d topic','gf'), $deleted_forum->topics); ?></li> <li><?php printf(__('%d post','gf'), $deleted_forum->posts); ?></li> </ul> <div id="option-forum-delete-contents"> <div class="label"><?php _e( 'Action','gf' ); ?></div> <div class="inputs"> <label class="radios"> <input type="radio" name="move_topics" id="move-topics-delete" value="delete" /> <?php _e('Delete all topics and posts in this forum. <em>This can never be undone.</em>','gf'); ?> </label> <label class="radios"> <input type="radio" name="move_topics" id="move-topics-move" value="move" checked="checked" /> <?php _e('Move topics from this forum into the replacement forum below.','gf'); ?> </label> </div> </div> <div id="option-forum-delete-contents"> <label for="move-topics-forum"><?php _e( 'Replacement forum','gf' ); ?></label> <div class="inputs"> <?php echo gf_get_forum_dropdown( array('id' => 'move_topics_forum', 'callback' => 'strcmp', 'callback_args' => array($deleted_forum->forum_id), 'selected' => $deleted_forum->forum_parent) ); ?> </div> </div> </fieldset>