MP_Addon_Letter_Settings::set_fields()
Fields of Tab “Email Templates”.
Return Return
(array) Email template settings.
- ''send_letters''
(array) Use Send Letters to the Lead - ''lob_key''
(array) API key Lob.com - ''company_name''
(array) Company name - ''address_line1''
(array) Address Line 1 - ''address_line2''
(array) Address Line 2 - ''address_city''
(array) City - ''address_state''
(array) State - ''address_country''
(array) Country - ''address_zip''
(array) Zip - ''email_template1''
(array) HTML Letter Template #1 - ''email_template2''
(array) HTML Letter Template #2
Source Source
File: calculator-letter-add-on/inc/MP_Addon_Letter_Settings.php
public function set_fields() {
$this->email_templates = array(
array(
'id' => 'send_letters',
'title' => __( 'Use Send Letters to the Lead', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'send_letters',
'placeholder' => '',
'default' => '',
'description' => __( 'Use Lob.com', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'lob_key',
'title' => __( 'API key Lob.com', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'lob_key',
'placeholder' => '',
'default' => '',
'description' => __( 'API key Lob.com', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'company_name',
'title' => __( 'Company name', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'company_name',
'placeholder' => '',
'default' => '',
'description' => __( 'Company name', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'address_line1',
'title' => __( 'Address Line 1', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'address_line1',
'placeholder' => '',
'default' => '',
'description' => __( 'Address', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'address_line2',
'title' => __( 'Address Line 2', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'address_line2',
'placeholder' => '',
'default' => '',
'description' => __( 'Address', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'address_city',
'title' => __( 'City', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'address_city',
'placeholder' => '',
'default' => '',
'description' => __( 'Address City', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'address_state',
'title' => __( 'State', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'address_state',
'placeholder' => '',
'default' => '',
'description' => __( 'Address State', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'address_country',
'title' => __( 'Country', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'address_country',
'placeholder' => '',
'default' => '',
'description' => __( 'Address Country', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'address_zip',
'title' => __( 'Zip', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'address_zip',
'placeholder' => '',
'default' => '',
'description' => __( 'Address Zip', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'email_template1',
'title' => __( 'HTML Letter Template #1', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'textarea' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'email_template1',
'placeholder' => '',
'default' => '',
'description' => __( 'HTML Letter Template', 'CalculatorsLetterAddon' ),
),
),
array(
'id' => 'email_template2',
'title' => __( 'HTML Letter Template #2', 'CalculatorsLetterAddon' ),
'callback' => array( $this, 'textarea' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'email_templates',
'label_for' => 'email_template2',
'placeholder' => '',
'default' => '',
'description' => __( 'HTML Letter Template', 'CalculatorsLetterAddon' ),
),
),
);
return $this->email_templates;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |