31 lines
694 B
PHP
31 lines
694 B
PHP
|
|
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Class NF_Fields_Address
|
||
|
|
*/
|
||
|
|
class NF_Fields_Address extends NF_Fields_Textbox
|
||
|
|
{
|
||
|
|
protected $_name = 'address';
|
||
|
|
protected $_type = 'address';
|
||
|
|
|
||
|
|
protected $_nicename = 'Address';
|
||
|
|
|
||
|
|
protected $_section = 'userinfo';
|
||
|
|
|
||
|
|
protected $_icon = 'map-marker';
|
||
|
|
|
||
|
|
protected $_templates = 'address';
|
||
|
|
|
||
|
|
protected $_test_value = '123 Main Street';
|
||
|
|
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
parent::__construct();
|
||
|
|
|
||
|
|
$this->_nicename = esc_html__( 'Address', 'ninja-forms' );
|
||
|
|
|
||
|
|
$this->_settings[ 'custom_name_attribute' ][ 'value' ] = 'address';
|
||
|
|
$this->_settings[ 'personally_identifiable' ][ 'value' ] = '1';
|
||
|
|
}
|
||
|
|
}
|