PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.0
Forumax – AI Powered Advanced Community Forum Plugin v2.5.0
2.5.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 All 30 releases
← All changes | templates/form-reply.php +1 -68 2.4.2 → 2.5.0 View file →
@@ -89,69 +89,8 @@
89 89 <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
90 90
91 91 <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
92 92
93 - <script>
94 - /* Style TinyMCE iframe body + toolbar to match the reference design */
95 - document.addEventListener('DOMContentLoaded', function() {
96 - if (typeof tinymce !== 'undefined') {
97 - tinymce.on('AddEditor', function(e) {
98 - e.editor.on('init', function() {
99 - /* Style the iframe body */
100 - var body = this.getBody();
101 - if (body) {
102 - body.style.backgroundColor = '#fff';
103 - body.style.fontFamily = "'Inter', 'Roboto', -apple-system, sans-serif";
104 - body.style.fontSize = '14px';
105 - body.style.lineHeight = '1.6';
106 - body.style.color = '#1a1a2e';
107 - body.style.padding = '14px 18px';
108 - }
109 -
110 - /* Style the toolbar container background */
111 - var container = this.getContainer();
112 - if (container) {
113 - /* Remove TinyMCE skin border */
114 - container.style.border = 'none';
115 - container.style.boxShadow = 'none';
116 -
117 - /* Toolbar group background */
118 - var toolbarGrp = container.querySelector('.mce-toolbar-grp');
119 - if (toolbarGrp) {
120 - toolbarGrp.style.backgroundColor = '#f6f7f9';
121 - toolbarGrp.style.borderBottom = '1px solid #e5e7eb';
122 - toolbarGrp.style.borderTop = 'none';
123 - toolbarGrp.style.padding = '6px 10px';
124 - }
125 -
126 - /* Remove edit area border */
127 - var editArea = container.querySelector('.mce-edit-area');
128 - if (editArea) {
129 - editArea.style.border = 'none';
130 - }
131 -
132 - /* Style individual toolbar buttons */
133 - var btns = container.querySelectorAll('.mce-btn');
134 - btns.forEach(function(btn) {
135 - btn.style.background = 'transparent';
136 - btn.style.border = 'none';
137 - btn.style.boxShadow = 'none';
138 - });
139 -
140 - /* Style button groups and add dividers */
141 - var groups = container.querySelectorAll('.mce-btn-group');
142 - groups.forEach(function(group) {
143 - group.style.border = 'none';
144 - group.style.background = 'transparent';
145 - group.style.boxShadow = 'none';
146 - });
147 - }
148 - });
149 - });
150 - }
151 - });
152 - </script>
153 -
154 93 <?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
155 94
156 95 <p class="form-allowed-tags">
157 96 <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','forumax' ); ?></label><br />
@@ -397,15 +336,9 @@
397 336 <div class="frmx-inline-login-prompt">
398 337 <h3 class="frmx-inline-login-title"><?php echo esc_html__( 'Join the conversation', 'forumax' ); ?></h3>
399 338 <p class="frmx-inline-login-subtitle"><?php echo esc_html__( 'You must be logged in to reply to this topic.', 'forumax' ); ?></p>
400 339 <div class="frmx-subscription-login-form">
401 - <?php
402 - if ( function_exists( 'forumax_get_opt' ) && forumax_get_opt( 'topic_login_shortcode' ) ) {
403 - echo do_shortcode( forumax_get_opt( 'topic_login_shortcode' ) );
404 - } else {
405 - bbp_get_template_part( 'form', 'user-login' );
406 - }
407 - ?>
340 + <?php forumax_render_topic_login_form(); ?>
408 341 </div>
409 342 </div>
410 343 <?php endif; ?>
411 344