2018-12-03 13:56:48 +01:00
|
|
|
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class NF_Fields_Phone
|
|
|
|
|
*/
|
|
|
|
|
class NF_Fields_Phone extends NF_Fields_Textbox
|
|
|
|
|
{
|
|
|
|
|
protected $_name = 'phone';
|
|
|
|
|
|
|
|
|
|
protected $_nicename = 'Phone';
|
|
|
|
|
|
|
|
|
|
protected $_section = 'userinfo';
|
|
|
|
|
|
|
|
|
|
protected $_icon = 'phone';
|
|
|
|
|
|
|
|
|
|
protected $_type = 'textbox';
|
|
|
|
|
|
|
|
|
|
protected $_templates = 'tel';
|
|
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
|
2021-08-04 17:09:29 +02:00
|
|
|
$this->_nicename = esc_html__( 'Phone', 'ninja-forms' );
|
2018-12-03 13:56:48 +01:00
|
|
|
|
|
|
|
|
$this->_settings[ 'custom_name_attribute' ][ 'value' ] = 'phone';
|
|
|
|
|
$this->_settings[ 'personally_identifiable' ][ 'value' ] = '1';
|
|
|
|
|
}
|
|
|
|
|
}
|