/includes/Templates/display-form-container.html.php

  1. <?php do_action( 'ninja_forms_before_form_display', $form_id ); ?> 
  2. <?php do_action( 'ninja_forms_display_pre_init', $form_id ); ?> 
  3. <?php do_action( 'ninja_forms_display_init', $form_id ); ?> 
  4. <?php if( is_user_logged_in() )do_action( 'ninja_forms_display_user_not_logged_in', $form_id ); ?> 
  5. <?php 
  6. /** 
  7. * If we have a form wrapper, output it in the nf-form-cont div. 
  8. */ 
  9. $form_wrap = Ninja_Forms()->form( $form_id )->get()->get_setting( 'wrapper_class' ); 
  10.  
  11. $wrapper_class = ( ! empty( $form_wrap ) ) ? ' ' . Ninja_Forms()->form( $form_id )->get()->get_setting( 'wrapper_class' ) : ''; 
  12. ?> 
  13. <div id="nf-form-<?php echo $form_id; ?>-cont" class="nf-form-cont<?php echo $wrapper_class; ?>"> 
  14.  
  15. <div class="nf-loading-spinner"></div> 
  16.  
  17. </div> 
  18. <?php do_action('ninja_forms_display_after_form', $form_id); ?> 
  19. <?php do_action( 'ninja_forms_after_form_display', $form_id ); ?> 
.