Current File : /home/kelaby89/diamondtiptiling.com/wp-content/plugins/floens-addon/includes/Widgets/Service.php |
<?php
namespace Layerdrops\Floens\Widgets;
class Service extends \Elementor\Widget_Base
{
public function get_name()
{
return 'floens-service';
}
public function get_title()
{
return __('Service', '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'),
'layout_two' => __('Layout Two', 'floens-addon'),
'layout_three' => __('Layout Three', 'floens-addon'),
'layout_four' => __('Layout Four', 'floens-addon'),
'layout_five' => __('Layout Five', 'floens-addon'),
'layout_six' => __('Layout Six', 'floens-addon'),
'layout_seven' => __('Layout Seven', 'floens-addon'),
]
]
);
$this->end_controls_section();
include floens_get_elementor_option('service-one-option.php');
include floens_get_elementor_option('service-two-option.php');
include floens_get_elementor_option('service-three-option.php');
include floens_get_elementor_option('service-four-option.php');
include floens_get_elementor_option('service-five-option.php');
include floens_get_elementor_option('service-seven-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, 'Section Title', '{{WRAPPER}} .sec-title__title,{{WRAPPER}} .services-one__info__title', ['layout_one', 'layout_two', 'layout_three', 'layout_four']);
floens_elementor_general_style_options($this, 'Section Sub Title', '{{WRAPPER}} .sec-title__tagline,{{WRAPPER}} .services-one__info__text', ['layout_one', 'layout_two', 'layout_three', 'layout_four']);
floens_elementor_general_style_options($this, 'Service Title', '{{WRAPPER}} .service-card__title a,{{WRAPPER}} .service-one__item__title a,{{WRAPPER}} .service-card-two__title a,{{WRAPPER} .service-card-two__title a', ['layout_one', 'layout_three', 'layout_four', 'layout_five', 'layout_six', 'layout_seven']);
floens_elementor_general_style_options($this, 'Service Sub Title', '{{WRAPPER}} .service-card__text', ['layout_one', 'layout_seven']);
floens_elementor_general_style_options($this, 'Service Contact Info', '{{WRAPPER}} .services-one__info__number', ['layout_two']);
floens_elementor_general_style_options($this, 'Counter Number', '{{WRAPPER}} .services-three__counter__text', ['layout_four']);
floens_elementor_general_style_options($this, 'Counter Title', '{{WRAPPER}} .services-three__counter__title', ['layout_four']);
$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', 'layout_four', 'layout_five', 'layout_six', 'layout_seven']
]
]
);
floens_elementor_button_style_options($this, 'Button', '{{WRAPPER}} .floens-btn', '{{WRAPPER}} .floens-btn::before,{{WRAPPER}} .floens-btn::after', ['layout_one', 'layout_four', 'layout_five', 'layout_six', 'layout_seven']);
$this->end_controls_section();
floens_get_elementor_carousel_options($this, ['layout_one', 'layout_three', 'layout_four', 'layout_six', 'layout_seven']);
floens_elementor_column_count_options($this, ['layout_two', 'layout_five']);
}
protected function render()
{
$settings = $this->get_settings_for_display();
include floens_get_template('service-one.php');
include floens_get_template('service-two.php');
include floens_get_template('service-three.php');
include floens_get_template('service-four.php');
include floens_get_template('service-five.php');
include floens_get_template('service-six.php');
include floens_get_template('service-seven.php');
}
}