%PDF- %PDF-
| Direktori : /home/opti/public_html/stlc/wp-content/plugins/insur-addon/includes/Widgets/ |
| Current File : /home/opti/public_html/stlc/wp-content/plugins/insur-addon/includes/Widgets/About.php |
<?php
namespace Layerdrops\Insur\Widgets;
class About extends \Elementor\Widget_Base
{
public function get_name()
{
return 'insur-about';
}
public function get_title()
{
return __('About', 'insur-addon');
}
public function get_icon()
{
return 'eicon-cogs';
}
public function get_categories()
{
return ['insur-category'];
}
protected function register_controls()
{
$this->start_controls_section(
'layout_section',
[
'label' => __('Layout', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'layout_type',
[
'label' => __('Select Layout', 'insur-addon'),
'type' => \Elementor\Controls_Manager::SELECT2,
'default' => 'layout_one',
'options' => [
'layout_one' => __('Layout One', 'insur-addon'),
'layout_two' => __('Layout Two', 'insur-addon'),
'layout_three' => __('Layout Three', 'insur-addon'),
'layout_four' => __('Layout Four', 'insur-addon'),
'layout_five' => __('Layout Five', 'insur-addon'),
'layout_six' => __('Layout Six', 'insur-addon'),
'layout_seven' => __('Layout Seven', 'insur-addon'),
]
]
);
$this->end_controls_section();
//layout_one
$this->start_controls_section(
'layout_one_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_one'
]
]
]
]
);
$this->add_control(
'layout_one_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon'),
]
);
$this->add_control(
'layout_one_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Default Sub Title', 'insur-addon'),
]
);
$this->add_control(
'layout_one_sub_title_left_shape',
[
'label' => __('Sub Title Left Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_one_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_one_highlighted_text',
[
'label' => __('Highlighted Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Highlighted Text', 'insur-addon'),
'default' => __('Default Highlighted Text', 'insur-addon'),
]
);
$this->add_control(
'layout_one_summary',
[
'label' => __('Summary', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon'),
]
);
$layout_one_check_list = new \Elementor\Repeater();
$layout_one_check_list->add_control(
'text',
[
'label' => __('Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Check List Text', 'insur-addon'),
'default' => __('Awesome Check List', 'insur-addon')
]
);
$layout_one_check_list->add_control(
'icon',
[
'label' => __('Check Icon', 'insur-addon'),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'fa fa-check',
'library' => 'font-awesome',
],
]
);
$this->add_control(
'layout_one_check_list',
[
'label' => __('Check Lists', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'prevent_empty' => false,
'fields' => $layout_one_check_list->get_controls(),
'title_field' => '{{{ text }}}',
]
);
$this->add_control(
'layout_one_call_text',
[
'label' => __('Call Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Call Text', 'insur-addon'),
'default' => __('Call to Our Experts', 'insur-addon'),
'label_block' => true
]
);
$this->add_control(
'layout_one_call_number',
[
'label' => __('Call Number', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Call Text', 'insur-addon'),
'default' => __('+92 (003) 68-090', 'insur-addon'),
'label_block' => true
]
);
$this->add_control(
'layout_one_call_url',
[
'label' => __('Call Url', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Call Url', 'insur-addon'),
'default' => '#',
'label_block' => true
]
);
$this->add_control(
'layout_one_call_icon',
[
'label' => __('Call Icon', 'insur-addon'),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'fas fa-phone',
'library' => 'font-awesome',
],
]
);
$this->add_control(
'layout_one_button_label',
[
'label' => __('Button Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __('Contact us ', 'insur-addon'),
'label_block' => true,
]
);
$this->add_control(
'layout_one_button_url',
[
'label' => __('Button Url', 'insur-addon'),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => __('#', 'insur-addon'),
'show_external' => true,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => true,
],
'show_label' => false,
]
);
$this->end_controls_section();
//layout_one_image
$this->start_controls_section(
'section_image_one',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_one'
]
]
]
]
);
$this->add_control(
'layout_one_image',
[
'label' => __('Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'layout_one_small_image',
[
'label' => __('Small Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_one_bg_image',
[
'label' => __('Background Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_one_shape',
[
'label' => __('Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_one_experience_year',
[
'label' => __('Experience Year', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Experience Year', 'insur-addon'),
'default' => __('30', 'insur-addon')
]
);
$this->add_control(
'layout_one_experience_text',
[
'label' => __('Experience Year Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => wp_kses(__('Years of <br> Experience', 'insur-addon'), 'insur_allowed_tags'),
]
);
$this->end_controls_section();
$this->start_controls_section(
'layout_two_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_two'
]
]
]
]
);
$this->add_control(
'layout_two_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('We’re Cleaning for you Since 1987', 'insur-addon')
]
);
$this->add_control(
'layout_two_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Best Experts in Cleaning', 'insur-addon')
]
);
$this->add_control(
'layout_two_sub_title_left_shape',
[
'label' => __('Sub Title Left Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_two_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_two_summary',
[
'label' => __('Summary', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon')
]
);
$layout_two_feature_list = new \Elementor\Repeater();
$layout_two_feature_list->add_control(
'icon',
[
'label' => __('Icon', 'insur-addon'),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'icon-easy-to-use',
'library' => 'custom-icon',
],
]
);
$layout_two_feature_list->add_control(
'title',
[
'label' => __('Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Features Title', 'insur-addon'),
'default' => __('Fast & easy process', 'insur-addon')
]
);
$layout_two_feature_list->add_control(
'content',
[
'label' => __('Content', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Features Content', 'insur-addon'),
'default' => __('Lorem ipsum dolor sit amet, sectetur adipiscing elit.', 'insur-addon')
]
);
$this->add_control(
'layout_two_feature_list',
[
'label' => __('Features', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $layout_two_feature_list->get_controls(),
'prevent_empty' => false,
'title_field' => '{{{ title }}}',
]
);
$this->end_controls_section();
$this->start_controls_section(
'section_image_two',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_two'
]
]
]
]
);
$this->add_control(
'layout_two_image_one',
[
'label' => __('Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'layout_two_shape',
[
'label' => __('Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::GALLERY,
'default' => [],
]
);
$this->end_controls_section();
$this->start_controls_section(
'layout_three_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_three'
]
]
]
]
);
$this->add_control(
'layout_three_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon')
]
);
$this->add_control(
'layout_three_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Default Sub Title', 'insur-addon')
]
);
$this->add_control(
'layout_three_sub_title_left_shape',
[
'label' => __('Sub Title Left Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_three_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_three_summary',
[
'label' => __('Summary', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary Text', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon')
]
);
$this->add_control(
'layout_three_button_label',
[
'label' => __('Button Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __('Discover More', 'insur-addon'),
'label_block' => true,
]
);
$this->add_control(
'layout_three_button_url',
[
'label' => __('Button Url', 'insur-addon'),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => __('#', 'insur-addon'),
'show_external' => true,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => true,
],
'show_label' => false,
]
);
$layout_three_check_list = new \Elementor\Repeater();
$layout_three_check_list->add_control(
'title',
[
'label' => __('Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Feature Title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon')
]
);
$layout_three_check_list->add_control(
'icon',
[
'label' => __('Icon', 'insur-addon'),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'fa fa-check',
'library' => 'font-awesome',
],
]
);
$this->add_control(
'layout_three_check_list',
[
'label' => __('Check List', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'prevent_empty' => false,
'fields' => $layout_three_check_list->get_controls(),
'title_field' => '{{{ title }}}',
]
);
$layout_three_feature_list = new \Elementor\Repeater();
$layout_three_feature_list->add_control(
'title',
[
'label' => __('Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Feature Title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon')
]
);
$layout_three_feature_list->add_control(
'content',
[
'label' => __('Content', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Check List Text', 'insur-addon'),
'default' => __('Default Content', 'insur-addon')
]
);
$layout_three_feature_list->add_control(
'count',
[
'label' => __('Count Number', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Feature Title', 'insur-addon'),
'default' => __('1234', 'insur-addon')
]
);
$layout_three_feature_list->add_control(
'sign',
[
'label' => __('Count Sign', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Count Sign', 'insur-addon'),
'default' => __('%', 'insur-addon')
]
);
$this->add_control(
'layout_three_feature_list',
[
'label' => __('Features', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'prevent_empty' => false,
'fields' => $layout_three_feature_list->get_controls(),
'title_field' => '{{{ title }}}',
]
);
$this->end_controls_section(); //end layout_three_content
//layout_three_image
$this->start_controls_section(
'section_image_three',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_three'
]
]
]
]
);
$this->add_control(
'layout_three_image',
[
'label' => __(' Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'layout_three_image_shape',
[
'label' => __('Image Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_three_image_caption_count',
[
'label' => __('Image Caption Count Number', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Count Number', 'insur-addon'),
'default' => __('28', 'insur-addon'),
'label_block' => true
]
);
$this->add_control(
'layout_three_image_caption_text',
[
'label' => __('Image Caption Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Caption Text', 'insur-addon'),
'default' => __('National Awards Won', 'insur-addon'),
'label_block' => true
]
);
$this->add_control(
'layout_three_image_caption_shape',
[
'label' => __('Caption Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->end_controls_section(); //end layout_three_image
//layout_four
$this->start_controls_section(
'layout_four_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_four'
]
]
]
]
);
$this->add_control(
'layout_four_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('See Why You Should Choose Insur', 'insur-addon')
]
);
$this->add_control(
'layout_four_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Company Benefits', 'insur-addon')
]
);
$this->add_control(
'layout_four_sub_title_left_shape',
[
'label' => __('Sub Title Left Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_four_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_four_summary',
[
'label' => __('Summary Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary Text', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon')
]
);
$layout_four_progress_bar = new \Elementor\Repeater();
$layout_four_progress_bar->add_control(
'title',
[
'label' => __('Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Progress Bar Title', 'insur-addon'),
'default' => __('Consultation', 'insur-addon'),
'label_block' => true
]
);
$layout_four_progress_bar->add_control(
'count_number',
[
'label' => __('Count Number', 'insur-addon'),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => ['count'],
'range' => [
'count' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'default' => [
'unit' => 'count',
'size' => 85,
],
]
);
$this->add_control(
'layout_four_progress_bar',
[
'label' => __('Progress Bar', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $layout_four_progress_bar->get_controls(),
'prevent_empty' => false,
'title_field' => '{{{ title }}}',
]
);
$layout_four_faq = new \Elementor\Repeater();
$layout_four_faq->add_control(
'question',
[
'label' => __('Question', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Question', 'insur-addon'),
'label_block' => true,
'Default' => __('Default Question', 'insur-addon')
]
);
$layout_four_faq->add_control(
'answer',
[
'label' => __('Answer', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Answer', 'insur-addon'),
'label_block' => true,
'Default' => __('Default Answer', 'insur-addon')
]
);
$layout_four_faq->add_control(
'active_status',
[
'label' => __('Is active?', 'insur-addon'),
'type' => \Elementor\Controls_Manager::SWITCHER,
'label_on' => __('Yes', 'insur-addon'),
'label_off' => __('No', 'insur-addon'),
'return_value' => 'yes',
'default' => 'no',
]
);
$this->add_control(
'layout_four_faq_lists',
[
'label' => __('FAQ', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'prevent_empty' => false,
'fields' => $layout_four_faq->get_controls(),
'title_field' => '{{{ question }}}',
]
);
$this->end_controls_section(); //end layout_four_content
//layout_four_image
$this->start_controls_section(
'section_image_four',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_four'
]
]
]
]
);
$this->add_control(
'layout_four_image',
[
'label' => __('Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->end_controls_section(); //end layout_three_image
//layout_five
$this->start_controls_section(
'layout_five_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_five'
]
]
]
]
);
$this->add_control(
'layout_five_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('See Why You Should Choose Insur', 'insur-addon')
]
);
$this->add_control(
'layout_five_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Company Benefits', 'insur-addon')
]
);
$this->add_control(
'layout_five_sub_title_left_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_five_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_five_highlighted_text',
[
'label' => __('Highlighted Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Highlighted Text', 'insur-addon'),
'default' => __('Default Highlighted Text', 'insur-addon'),
]
);
$this->add_control(
'layout_five_highlighted_icon',
[
'label' => __('Highlighted Text Icon', 'insur-addon'),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'icon-employees',
'library' => 'custom-icon',
],
]
);
$this->add_control(
'layout_five_summary',
[
'label' => __('Summary Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary Text', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon')
]
);
$this->add_control(
'layout_five_author_image',
[
'label' => __('Author Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_five_author_signature',
[
'label' => __('Author Signature', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __('David Hardson', 'insur-addon'),
'label_block' => true,
]
);
$this->add_control(
'layout_five_author_designation',
[
'label' => __('Author Designation', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __('Founder of insur', 'insur-addon'),
'label_block' => true,
]
);
$this->add_control(
'layout_five_button_label',
[
'label' => __('Button Label', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __('Discover more', 'insur-addon'),
'label_block' => true,
]
);
$this->add_control(
'layout_five_button_url',
[
'label' => __('Button Url', 'insur-addon'),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => __('#', 'insur-addon'),
'show_external' => true,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => true,
],
'show_label' => false,
]
);
$this->end_controls_section(); //end layout_five_content
//layout_five_image
$this->start_controls_section(
'section_image_five',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_five'
]
]
]
]
);
$this->add_control(
'layout_five_image',
[
'label' => __('Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'layout_five_image_caption',
[
'label' => __('Image Caption', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => wp_kses(__('Over 60 <br> Locations <br> Worldwide', 'insur-addon'), 'insur_allowed_tags'),
]
);
$this->add_control(
'layout_five_shape_one',
[
'label' => __('Image Bottom Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_five_shape_two',
[
'label' => __('Caption Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->end_controls_section(); //end layout_five_image
//layout_six
$this->start_controls_section(
'layout_six_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_six'
]
]
]
]
);
$this->add_control(
'layout_six_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon')
]
);
$this->add_control(
'layout_six_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Default Sub Title', 'insur-addon')
]
);
$this->add_control(
'layout_six_sub_title_left_shape',
[
'label' => __('Sub Title Left Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_six_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_six_summary',
[
'label' => __('Summary', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary Text', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon')
]
);
$this->add_control(
'layout_six_button_label',
[
'label' => __('Button Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __('Discover More', 'insur-addon'),
'label_block' => true,
]
);
$this->add_control(
'layout_six_button_url',
[
'label' => __('Button Url', 'insur-addon'),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => __('#', 'insur-addon'),
'show_external' => true,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => true,
],
'show_label' => false,
]
);
$layout_six_check_list = new \Elementor\Repeater();
$layout_six_check_list->add_control(
'title',
[
'label' => __('Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Feature Title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon')
]
);
$layout_six_check_list->add_control(
'icon',
[
'label' => __('Icon', 'insur-addon'),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'fa fa-check',
'library' => 'font-awesome',
],
]
);
$this->add_control(
'layout_six_check_list',
[
'label' => __('Check List', 'insur-addon'),
'type' => \Elementor\Controls_Manager::REPEATER,
'prevent_empty' => false,
'fields' => $layout_six_check_list->get_controls(),
'title_field' => '{{{ title }}}',
]
);
$this->end_controls_section(); //end layout_five_image
//layout_six_image
$this->start_controls_section(
'section_image_six',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_six'
]
]
]
]
);
$this->add_control(
'layout_six_image',
[
'label' => __('Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'layout_six_shape_one',
[
'label' => __('Image Bottom Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->end_controls_section(); //end layout_six_image
//layout_seven
$this->start_controls_section(
'layout_seven_content',
[
'label' => __('Content', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_seven'
]
]
]
]
);
$this->add_control(
'layout_seven_sec_title',
[
'label' => __('Section Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add title', 'insur-addon'),
'default' => __('Default Title', 'insur-addon')
]
);
$this->add_control(
'layout_seven_sec_sub_title',
[
'label' => __('Section Sub Title', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Sub title', 'insur-addon'),
'default' => __('Default Sub Title', 'insur-addon')
]
);
$this->add_control(
'layout_seven_sub_title_left_shape',
[
'label' => __('Sub Title Left Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_seven_sub_title_right_shape',
[
'label' => __('Sub Title Right Shape', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_seven_highlighted_text',
[
'label' => __('Highlighted Text', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Highlighted Text', 'insur-addon'),
'default' => __('Default Highlighted Text', 'insur-addon')
]
);
$this->add_control(
'layout_seven_summary',
[
'label' => __('Summary', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => __('Add Summary Text', 'insur-addon'),
'default' => __('Default Summary Text', 'insur-addon')
]
);
$this->add_control(
'layout_seven_author_image',
[
'label' => __('Author Image', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [],
]
);
$this->add_control(
'layout_author_name',
[
'label' => __('Author Name', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Author Name', 'insur-addon'),
'default' => __('David Hardson', 'insur-addon'),
'label_block' => true
]
);
$this->add_control(
'layout_author_designation',
[
'label' => __('Author Designation', 'insur-addon'),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => __('Add Author Designation', 'insur-addon'),
'default' => __('Founder of insur', 'insur-addon'),
'label_block' => true
]
);
$this->end_controls_section(); //end layout_seven
//layout_seven_image
$this->start_controls_section(
'section_image_seven',
[
'label' => __('Image', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'conditions' => [
'terms' => [
[
'name' => 'layout_type',
'operator' => '==',
'value' => 'layout_seven'
]
]
]
]
);
$this->add_control(
'layout_seven_image_one',
[
'label' => __('Image One', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'layout_seven_image_two',
[
'label' => __('Image Two', 'insur-addon'),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$this->end_controls_section(); //end layout_seven_image
//General style
$this->start_controls_section(
'general_style',
[
'label' => esc_html__('Style Options', 'insur-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
insur_typo_and_color_options($this, 'Section Title', '{{WRAPPER}} .section-title__title', ['layout_one', 'layout_two', 'layout_three', 'layout_four', 'layout_five', 'layout_six', 'layout_seven']);
insur_typo_and_color_options($this, 'Section Sub Title', '{{WRAPPER}} .section-sub-title', ['layout_one', 'layout_two', 'layout_three', 'layout_four', 'layout_five', 'layout_six', 'layout_seven']);
insur_typo_and_color_options($this, 'Highlighted Text', '{{WRAPPER}} .about-one__text-1, {{WRAPPER}} .about-three__business-start-text, {{WRAPPER}} .about-four__text-1', ['layout_one', 'layout_five', 'layout_seven']);
insur_typo_and_color_options($this, 'Summary Text', '{{WRAPPER}} .about-one__text-2,{{WRAPPER}} .benefits__text, {{WRAPPER}} .about-four__text-2,
{{WRAPPER}} .why-choose-one__text, {{WRAPPER}} .about-two__text, {{WRAPPER}} .work-together__text, {{WRAPPER}} .about-three__text', ['layout_one', 'layout_two', 'layout_three', 'layout_four', 'layout_five', 'layout_six', 'layout_seven']);
insur_typo_and_color_options($this, 'Progressbar Title', '{{WRAPPER}} .work-together__progress-title', ['layout_four']);
insur_typo_and_color_options($this, 'Features Title', '{{WRAPPER}} .why-choose-one__list-title, {{WRAPPER}} .about-two__counter-text-1', ['layout_two', 'layout_three']);
insur_typo_and_color_options($this, 'Features Content', '{{WRAPPER}} .why-choose-one__list-text, {{WRAPPER}} .about-two__counter-text-2', ['layout_two', 'layout_three']);
insur_typo_and_color_options($this, 'Features Count Number', '{{WRAPPER}} .count-text', ['layout_three']);
insur_typo_and_color_options($this, 'Check List Title', '{{WRAPPER}} .about-two__points li .text p,{{WRAPPER}} .benefits__point li .text p', ['layout_three', 'layout_six']);
insur_typo_and_color_options($this, 'Faq Question', '{{WRAPPER}} .faq-one-accrodion .accrodion-title h4', ['layout_four']);
insur_typo_and_color_options($this, 'Faq Answer', '{{WRAPPER}} .accrodion-content p', ['layout_four']);
insur_typo_and_color_options($this, 'Author Name', '{{WRAPPER}} .about-three__founder-name,{{WRAPPER}} .about-four__founder-name', ['layout_five', 'layout_seven']);
insur_typo_and_color_options($this, 'Author Designation', '{{WRAPPER}} .about-three__founder-sub-title, {{WRAPPER}} .about-four__founder-sub-title', ['layout_five', 'layout_seven']);
insur_typo_and_color_options($this, 'Image Caption', '{{WRAPPER}} .about-three__location-text', ['layout_five']);
insur_typo_and_color_options($this, 'Button', '{{WRAPPER}} .thm-btn', ['layout_one', 'layout_three', 'layout_five']);
insur_typo_and_color_options($this, 'Button Background', '{{WRAPPER}} .thm-btn', ['layout_one', 'layout_three', 'layout_five'], 'background-color', false);
$this->end_controls_section();
}
protected function render()
{
$settings = $this->get_settings_for_display();
include insur_get_template('about-one.php');
include insur_get_template('about-two.php');
include insur_get_template('about-three.php');
include insur_get_template('about-four.php');
include insur_get_template('about-five.php');
include insur_get_template('about-six.php');
include insur_get_template('about-seven.php');
}
}