ninja_forms_display_open_cont

The Ninja Forms ninja forms display open cont function.

Description

ninja_forms_display_open_cont( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

  1. if ( !function_exists( 'ninja_forms_display_open_cont' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/form/form-cont.php'; 
  3.  
  4. // The form id. 
  5. $form_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ninja_forms_display_open_cont($form_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/display/form/form-cont.php  
  1. function ninja_forms_display_open_cont($form_id) { 
  2. //Check to see if the form_id has been sent. 
  3. if($form_id == '') { 
  4. if(isset($_REQUEST['form_id'])) { //If it hasn't, set it to our requested form_id. Sometimes this function can be called without an expressly passed form_id. 
  5. $form_id = absint( $_REQUEST['form_id'] ); 
  6.  
  7. $wrap_class = ''; 
  8.  
  9. $wrap_class = apply_filters( 'ninja_forms_cont_class', $wrap_class, $form_id ); 
  10.  
  11. ?> 
  12. <div id="ninja_forms_form_<?php echo $form_id;?>_cont" class="ninja-forms-cont<?php echo $wrap_class; ?>"> 
  13. <?php