| @@ -271,15 +271,9 @@ | ||
| 271 | 271 | <div class="frmx-inline-login-prompt"> |
| 272 | 272 | <h3 class="frmx-inline-login-title text-center"><?php echo esc_html__( 'Start a new topic', 'forumax' ); ?></h3> |
| 273 | 273 | <p class="frmx-inline-login-subtitle text-center"><?php echo esc_html__( 'You must be logged in to create new topics.', 'forumax' ); ?></p> |
| 274 | 274 | <div class="frmx-subscription-login-form"> |
| 275 | - <?php | |
| 276 | - if ( function_exists( 'forumax_get_opt' ) && forumax_get_opt( 'topic_login_shortcode' ) ) { | |
| 277 | - echo do_shortcode( forumax_get_opt( 'topic_login_shortcode' ) ); | |
| 278 | - } else { | |
| 279 | - bbp_get_template_part( 'form', 'user-login' ); | |
| 280 | - } | |
| 281 | - ?> | |
| 275 | + <?php forumax_render_topic_login_form(); ?> | |
| 282 | 276 | </div> |
| 283 | 277 | </div> |
| 284 | 278 | <?php endif; ?> |
| 285 | 279 | |