Phone.php 617 B

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