Fixes: Vertical search form

This commit is contained in:
Hoang Huu
2020-06-05 15:07:54 +07:00
parent 47262e47ec
commit 23d42cb6de
7 changed files with 42 additions and 11 deletions

View File

@@ -173,6 +173,18 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_
]
);
$this->add_control(
'info_number_input',
[
'label' => esc_html__( 'Information number fields', 'opalestate-pro' ),
'type' => Controls_Manager::SWITCHER,
'default' => 'yes',
'condition' => [
'style' => $this->get_vertical_form(),
],
]
);
$this->end_controls_section();
$this->start_controls_section(
@@ -294,7 +306,6 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_
$this->end_controls_section();
$this->start_controls_section(
'section_button_style_content',
[
@@ -395,4 +406,12 @@ class Opalestate_Searchbox_Elementor_Widget extends Opalestate_Elementor_Widget_
'collapse-keyword',
];
}
protected function get_vertical_form() {
return [
'search-form-v',
'search-form-v2',
'search-form-v3',
];
}
}