NF_Admin_Metaboxes_Calculations

The Ninja Forms NF Admin Metaboxes Calculations class.

Defined (1)

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

/includes/Admin/Metaboxes/Calculations.php  
  1. final class NF_Admin_Metaboxes_Calculations extends NF_Abstracts_SubmissionMetabox 
  2. public function __construct() 
  3. parent::__construct(); 
  4.  
  5. $this->_title = __( 'Calculations', 'ninja-forms' ); 
  6.  
  7. if( $this->sub && ! $this->sub->get_extra_value( 'calculations' ) ) { 
  8. remove_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) ); 
  9.  
  10. public function render_metabox( $post, $metabox ) 
  11. $data = $this->sub->get_extra_values( array( 'calculations' ) ); 
  12.  
  13.  
  14. Ninja_Forms::template( 'admin-metaboxes-calcs.html.php', $data[ 'calculations' ] );