PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / templates / form-reply-move.php

form-reply-move.php in Forumax – AI Powered Advanced Community Forum Plugin 2.2.0, at templates/form-reply-move.php

100 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Move Reply
5 *
6 * @package bbPress
7 * @subpackage Theme
8 */
9
10 // Exit if accessed directly
11 defined( 'ABSPATH' ) || exit;
12 ?>
13
14 <div id="bbpress-forums" class="bbpress-wrapper">
15
16 <?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
17
18 <div id="move-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-move">
19
20 <form id="move_reply" name="move_reply" method="post">
21
22 <fieldset class="bbp-form">
23
24 <legend><?php printf( esc_html__( 'Move reply "%s"', 'forumax' ), bbp_get_reply_title() ); ?></legend>
25
26 <div>
27
28 <div class="bbp-template-notice info">
29 <ul>
30 <li><?php esc_html_e( 'You can either make this reply a new topic with a new title, or merge it into an existing topic.', 'forumax' ); ?></li>
31 </ul>
32 </div>
33
34 <div class="bbp-template-notice">
35 <ul>
36 <li><?php esc_html_e( 'If you choose an existing topic, replies will be ordered by the time and date they were created.', 'forumax' ); ?></li>
37 </ul>
38 </div>
39
40 <fieldset class="bbp-form">
41 <legend><?php esc_html_e( 'Move Method', 'forumax' ); ?></legend>
42
43 <div>
44 <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" />
45 <label for="bbp_reply_move_option_reply"><?php printf( esc_html__( 'New topic in %s titled:', 'forumax' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label>
46 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( esc_html__( 'Moved: %s', 'forumax' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" />
47 </div>
48
49 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_reply_forum_id( bbp_get_reply_id() ), 'post__not_in' => array( bbp_get_reply_topic_id( bbp_get_reply_id() ) ) ) ) ) : ?>
50
51 <div>
52 <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" />
53 <label for="bbp_reply_move_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'forumax' ); ?></label>
54
55 <?php
56 bbp_dropdown( array(
57 'post_type' => bbp_get_topic_post_type(),
58 'post_parent' => bbp_get_reply_forum_id( bbp_get_reply_id() ),
59 'selected' => -1,
60 'exclude' => bbp_get_reply_topic_id( bbp_get_reply_id() ),
61 'select_id' => 'bbp_destination_topic'
62 ) );
63 ?>
64
65 </div>
66
67 <?php endif; ?>
68
69 </fieldset>
70
71 <div class="bbp-template-notice error" role="alert" tabindex="-1">
72 <ul>
73 <li><?php esc_html_e( 'This process cannot be undone.', 'forumax' ); ?></li>
74 </ul>
75 </div>
76
77 <div class="bbp-submit-wrapper">
78 <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'forumax' ); ?></button>
79 </div>
80 </div>
81
82 <?php bbp_move_reply_form_fields(); ?>
83
84 </fieldset>
85 </form>
86 </div>
87
88 <?php else : ?>
89
90 <div id="no-reply-<?php bbp_reply_id(); ?>" class="bbp-no-reply">
91 <div class="entry-content"><?php is_user_logged_in()
92 ? esc_html_e( 'You do not have permission to edit this reply.', 'forumax' )
93 : esc_html_e( 'You cannot edit this reply.', 'forumax' );
94 ?></div>
95 </div>
96
97 <?php endif; ?>
98
99 </div>
100