Address2.php 657 B

12345678910111213141516171819202122232425262728
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. /**
  3. * Class NF_Fields_Address2
  4. */
  5. class NF_Fields_Address2 extends NF_Fields_Textbox
  6. {
  7. protected $_name = 'address2';
  8. protected $type = 'address2';
  9. protected $_nicename = 'Address 2';
  10. protected $_icon = 'map-marker';
  11. protected $_section = '';
  12. protected $_templates = array( 'address2', 'address' );
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. $this->_nicename = __( 'Address 2', 'ninja-forms' );
  17. $this->_settings[ 'custom_name_attribute' ][ 'value' ] = 'address';
  18. $this->_settings[ 'personally_identifiable' ][ 'value' ] = '1';
  19. }
  20. }