<?php/** * Split Topic * * @package bbPress * @subpackage Theme */?><?phpbbp_breadcrumb();?><?phpif(is_user_logged_in()&&current_user_can('edit_topic',bbp_get_topic_id())):?><divid="split-topic-<?phpbbp_topic_id();?>"class="bbp-topic-split"><formid="split_topic"name="split_topic"method="post"action=""><fieldsetclass="bbp-form"><legend><?phpprintf(__('Split topic "%s"','bbpress'),bbp_get_topic_title());?></legend><div><divclass="bbp-template-notice info"><p><?php_e('When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.','bbpress');?></p></div><divclass="bbp-template-notice"><p><?php_e('If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.','bbpress');?></p></div><fieldsetclass="bbp-form"><legend><?php_e('Split Method','bbpress');?></legend><div><inputname="bbp_topic_split_option"id="bbp_topic_split_option_reply"type="radio"checked="checked"value="reply"tabindex="<?phpbbp_tab_index();?>"/><labelfor="bbp_topic_split_option_reply"><?phpprintf(__('New topic in <strong>%s</strong> titled:','bbpress'),bbp_get_forum_title(bbp_get_topic_forum_id(bbp_get_topic_id())));?></label><inputtype="text"id="bbp_topic_split_destination_title"value="<?phpprintf(__('Split: %s','bbpress'),bbp_get_topic_title());?>"tabindex="<?phpbbp_tab_index();?>"size="35"name="bbp_topic_split_destination_title"/></div><?phpif(bbp_has_topics(array('show_stickies'=>false,'post_parent'=>bbp_get_topic_forum_id(bbp_get_topic_id()),'post__not_in'=>array(bbp_get_topic_id())))):?><div><inputname="bbp_topic_split_option"id="bbp_topic_split_option_existing"type="radio"value="existing"tabindex="<?phpbbp_tab_index();?>"/><labelfor="bbp_topic_split_option_existing"><?php_e('Use an existing topic in this forum:','bbpress');?></label><?phpbbp_dropdown(array('post_type'=>bbp_get_topic_post_type(),'post_parent'=>bbp_get_topic_forum_id(bbp_get_topic_id()),'selected'=>-1,'exclude'=>bbp_get_topic_id(),'select_id'=>'bbp_destination_topic','none_found'=>__('No other topics found!','bbpress')));?></div><?phpendif;?></fieldset><fieldsetclass="bbp-form"><legend><?php_e('Topic Extras','bbpress');?></legend><div><?phpif(bbp_is_subscriptions_active()):?><inputname="bbp_topic_subscribers"id="bbp_topic_subscribers"type="checkbox"value="1"checked="checked"tabindex="<?phpbbp_tab_index();?>"/><labelfor="bbp_topic_subscribers"><?php_e('Copy subscribers to the new topic','bbpress');?></label><br/><?phpendif;?><inputname="bbp_topic_favoriters"id="bbp_topic_favoriters"type="checkbox"value="1"checked="checked"tabindex="<?phpbbp_tab_index();?>"/><labelfor="bbp_topic_favoriters"><?php_e('Copy favoriters to the new topic','bbpress');?></label><br/><inputname="bbp_topic_tags"id="bbp_topic_tags"type="checkbox"value="1"checked="checked"tabindex="<?phpbbp_tab_index();?>"/><labelfor="bbp_topic_tags"><?php_e('Copy topic tags to the new topic','bbpress');?></label><br/></div></fieldset><divclass="bbp-template-notice error"><p><?php_e('<strong>WARNING:</strong> This process cannot be undone.','bbpress');?></p></div><divclass="bbp-submit-wrapper"><buttontype="submit"tabindex="<?phpbbp_tab_index();?>"id="bbp_merge_topic_submit"name="bbp_merge_topic_submit"class="button submit"><?php_e('Submit','bbpress');?></button></div></div><?phpbbp_split_topic_form_fields();?></fieldset></form></div><?phpelse:?><divid="no-topic-<?phpbbp_topic_id();?>"class="bbp-no-topic"><divclass="entry-content"><?phpis_user_logged_in()?_e('You do not have the permissions to edit this topic!','bbpress'):_e('You cannot edit this topic.','bbpress');?></div></div><?phpendif;?>