Address.php 686 B

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