Current File : /home/kelaby89/diamondtiptiling.com/wp-content/plugins/floens-addon/includes/Widgets/Tab.php |
<?php
namespace Layerdrops\Floens\Widgets;
class Tab extends \Elementor\Widget_Base
{
public function get_name()
{
return 'floens-tab';
}
public function get_title()
{
return __('Tab', 'floens-addon');
}
public function get_icon()
{
return 'eicon-cogs';
}
public function get_categories()
{
return ['floens-category'];
}
protected function register_controls()
{
$this->start_controls_section(
'layout_section',
[
'label' => __('Layout', 'floens-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'layout_type',
[
'label' => __('Select Layout', 'floens-addon'),
'type' => \Elementor\Controls_Manager::SELECT2,
'default' => 'layout_one',
'options' => [
'layout_one' => __('Layout One', 'floens-addon'),
]
]
);
$this->end_controls_section();
include floens_get_elementor_option('tab-one-option.php');
//General style
$this->start_controls_section(
'general_style',
[
'label' => esc_html__('Content Style', 'floens-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
floens_elementor_general_style_options($this, 'Title', '{{WRAPPER}} .tabs-one__content h3', ['layout_one']);
floens_elementor_general_style_options($this, 'Summary', '{{WRAPPER}} .tabs-one__content p', ['layout_one']);
$this->end_controls_section();
//button style
$this->start_controls_section(
'button_style',
[
'label' => esc_html__('Button Style', 'floens-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
'condition' => [
'layout_type' => 'layout_one'
]
]
);
floens_elementor_button_style_options($this, 'Tab Button', '{{WRAPPER}} .tabs-one__inner .tab-buttons .tab-btn span', '{{WRAPPER}} .tabs-one__inner .tab-buttons .tab-btn span', ['layout_one']);
$this->end_controls_section();
}
protected function render()
{
$settings = $this->get_settings_for_display();
include floens_get_template('tab-one.php');
}
}