# sellkit/1.7.5/includes/elementor/modules/optin/fields/address.php

SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster, version 1.7.5. 49 lines.

- Page: https://pluginprobe.com/plugins/sellkit/1.7.5/code/includes/elementor/modules/optin/fields/address.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.7.5/raw/includes/elementor/modules/optin/fields/address.php
- Modified: 2023-10-19T06:27:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sellkit/1.7.5/code/includes/elementor/modules/optin/fields/address.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || die();

class Sellkit_Elementor_Optin_Field_Address extends Sellkit_Elementor_Optin_Field_Base {

	public static function get_field_type() {
		return 'address';
	}

	public function get_input_type() {
		return 'text';
	}

	public function render_content() {
		$attrs = $this->widget->get_render_attribute_string( 'field-' . $this->get_id() );

		?>
		<input <?php echo $attrs; ?>>
		<?php
	}

	public static function get_additional_controls() {
		$commons = parent::get_common_controls();

		$subtext1    = esc_html__( 'Set your google API key in ', 'sellkit' );
		$subtext2    = esc_html__( 'Sellkit Settings ', 'sellkit' );
		$setting_url = admin_url() . 'admin.php?page=sellkit-settings#/';

		return [
			'address_google_api_key_help' => [
				'type'      => 'raw_html',
				'conditions' => [ 'terms' => [ parent::get_type_condition() ] ],
				'raw'       => sprintf(
					'<small>%1$s<a target="_blank" href="%2$s">%3$s<i class="fa fa-external-link-square"></i></a></small>.',
					$subtext1,
					$setting_url,
					$subtext2
				),
			],
			'label' => $commons['label'],
			'field_value' => $commons['field_value'],
			'placeholder' => $commons['placeholder'],
			'required' => $commons['required'],
			'width_responsive' => $commons['width_responsive'],
		];
	}
}

```
