NF_Fields_Hr

Class NF_Fields_Hr.

Defined (1)

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

/includes/Fields/hr.php  
  1. class NF_Fields_Hr extends NF_Abstracts_Input 
  2. protected $_name = 'hr'; 
  3.  
  4. protected $_section = 'layout'; 
  5.  
  6. protected $_icon = 'arrows-h'; 
  7.  
  8. protected $_aliases = array( 'html' ); 
  9.  
  10. protected $_type = 'hr'; 
  11.  
  12. protected $_templates = 'hr'; 
  13.  
  14. protected $_settings_only = array( 'classes' ); 
  15.  
  16. public function __construct() 
  17. parent::__construct(); 
  18.  
  19. $this->_settings[ 'classes' ][ 'group' ] = 'primary'; 
  20.  
  21. $this->_nicename = __( 'Divider', 'ninja-forms' ); 
  22. add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) ); 
  23.  
  24. unset( $this->_settings[ 'classes' ][ 'settings' ][ 'wrapper '] ); 
  25.  
  26. function hide_field_type( $field_types ) 
  27. $field_types[] = $this->_name; 
  28.  
  29. return $field_types; 
  30.