MP_ContactSettings::set_fields_contact()
Fields of Tab “Contact Widget”.
Return Return
(array) Contact settings fields.
- 'allow_contact_widget'
(array) enable Contact Widget - 'email_widget'
(array) enable Send Email widget - 'admin_email'
(array) Email - 'email_tooltip'
(array) Email tooltip - 'orientation_widget'
(array) orientation widget - 'style_widget'
(array) style widget - 'position_widget'
(array) position widget
Source Source
File: mortgage-platform/Inc/Base/Settings/MP_ContactSettings.php
public function set_fields_contact() {
$fields_contact = array(
array(
'id' => 'allow_contact_widget',
'title' => __( 'Enable Contact Widget', 'mortgage_platform' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'allow_contact_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Contact Widget', 'mortgage_platform' ),
),
),
array(
'id' => 'email_widget',
'title' => __( 'Enable Send Email widget', 'mortgage_platform' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'email_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Send Email widget', 'mortgage_platform' ),
),
),
array(
'id' => 'admin_email',
'title' => __( 'Email', 'mortgage_platform' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'admin_email',
'placeholder' => '',
'default' => '',
'description' => __( 'Email ', 'mortgage_platform' ),
),
),
array(
'id' => 'email_tooltip',
'title' => __( 'Email tooltip', 'mortgage_platform' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'email_tooltip',
'placeholder' => '',
'default' => '',
'description' => __( 'Email tooltip', 'mortgage_platform' ),
),
),
array(
'id' => 'orientation_widget',
'title' => __( 'Orientation widget', 'mortgage_platform' ),
'callback' => array( $this, 'select' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'orientation_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Choose orientation for the contact widget', 'mortgage_platform' ),
'options' => array(
'inline' => 'Horizontal',
'vertical' => 'Vertical',
),
),
),
array(
'id' => 'style_widget',
'title' => __( 'Style widget', 'mortgage_platform' ),
'callback' => array( $this, 'select' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'style_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Choose style for the contact widget', 'mortgage_platform' ),
'options' => array(
'style_1' => 'Style 1',
'style_2' => 'Style 2',
'style_3' => 'Style 3',
'style_4' => 'Style 4',
'style_5' => 'Style 5',
'style_6' => 'Style 6',
),
),
),
array(
'id' => 'position_widget',
'title' => __( 'Position widget', 'mortgage_platform' ),
'callback' => array( $this, 'select' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'position_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Choose position for the contact widget', 'mortgage_platform' ),
'options' => array(
'bottomright' => 'Bottom right',
'bottomleft' => 'Bottom left',
'right' => 'Right',
'left' => 'Left',
),
),
),
);
return $fields_contact;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |