| @@ -336,15 +336,9 @@ | ||
| 336 | 336 | <div class="frmx-inline-login-prompt"> |
| 337 | 337 | <h3 class="frmx-inline-login-title"><?php echo esc_html__( 'Join the conversation', 'forumax' ); ?></h3> |
| 338 | 338 | <p class="frmx-inline-login-subtitle"><?php echo esc_html__( 'You must be logged in to reply to this topic.', 'forumax' ); ?></p> |
| 339 | 339 | <div class="frmx-subscription-login-form"> |
| 340 | - <?php | |
| 341 | - if ( function_exists( 'forumax_get_opt' ) && forumax_get_opt( 'topic_login_shortcode' ) ) { | |
| 342 | - echo do_shortcode( forumax_get_opt( 'topic_login_shortcode' ) ); | |
| 343 | - } else { | |
| 344 | - bbp_get_template_part( 'form', 'user-login' ); | |
| 345 | - } | |
| 346 | - ?> | |
| 340 | + <?php forumax_render_topic_login_form(); ?> | |
| 347 | 341 | </div> |
| 348 | 342 | </div> |
| 349 | 343 | <?php endif; ?> |
| 350 | 344 | |