File: /home/retoti4c1e1s/www/izzlongevity.com/wp-content/plugins/noile-addon/includes/Widgets/Service.php
<?php
namespace Layerdrops\Noile\Widgets;
class Service extends \Elementor\Widget_Base
{
public function get_name()
{
return 'noile-service';
}
public function get_title()
{
return __('Service', 'noile-addon');
}
public function get_icon()
{
return 'eicon-cogs';
}
public function get_categories()
{
return ['noile-category'];
}
protected function register_controls()
{
$this->start_controls_section(
'layout_section',
[
'label' => __('Layout', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'layout_type',
[
'label' => __('Select Layout', 'noile-addon'),
'type' => \Elementor\Controls_Manager::SELECT2,
'default' => 'layout_one',
'options' => [
'layout_one' => __('Layout One', 'noile-addon'),
'layout_two' => __('Layout Two', 'noile-addon'),
'layout_three' => __('Layout Three', 'noile-addon'),
'layout_four' => __('Layout Four', 'noile-addon'),
'layout_five' => __('Carousel 1', 'noile-addon'),
'layout_six' => __('Carousel 2', 'noile-addon'),
'layout_seven' => __('Carousel 3', 'noile-addon'),
]
]
);
$this->end_controls_section();
include noile_get_elementor_option('service-one-option.php');
include noile_get_elementor_option('service-two-option.php');
include noile_get_elementor_option('service-three-option.php');
include noile_get_elementor_option('service-four-option.php');
include noile_get_elementor_option('service-five-option.php');
include noile_get_elementor_option('service-six-option.php');
include noile_get_elementor_option('service-seven-option.php');
//General style
$this->start_controls_section(
'general_style',
[
'label' => esc_html__('Content Style', 'noile-addon'),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
noile_elementor_general_style_options($this, 'Section Title', '{{WRAPPER}} .section-title__title', ['layout_three']);
noile_elementor_general_style_options($this, 'Section Sub Title', '{{WRAPPER}} .section-title__tagline', ['layout_three']);
noile_elementor_general_style_options($this, 'Summary', '{{WRAPPER}} .service-three__text', ['layout_three']);
noile_elementor_general_style_options($this, 'Service Title', '{{WRAPPER}} .service-one__item__title a,{{WRAPPER}} .service-two__item__title a,{{WRAPPER}} .service-three__item__title a,{{WRAPPER}} .service-two__title a', ['layout_two', 'layout_three', 'layout_four', 'layout_six', 'layout_seven']);
noile_elementor_general_style_options($this, 'Tag', '{{WRAPPER}} .service-one__category ,{{WRAPPER}} .service-two__item__number', ['layout_one', 'layout_five']);
noile_elementor_general_style_options($this, 'Service Summary', '{{WRAPPER}} .service-one__text,{{WRAPPER}} .service-two__item__text, {{WRAPPER}} .feature-two__hover__text', ['layout_one', 'layout_four', 'layout_five']);
noile_elementor_general_style_options($this, 'Service Icon', '{{WRAPPER}} .service-one__icon-box span,{{WRAPPER}} .service-two__icon-box span', ['layout_two', 'layout_three', 'layout_five', 'layout_six', 'layout_seven']);
noile_elementor_button_style_options($this, 'Button', '{{WRAPPER}} .service-one__btn', '{{WRAPPER}} .service-one__btn::after', ['layout_one', 'layout_five']);
noile_elementor_general_style_options($this, 'Bottom Content', '{{WRAPPER}} .service-one__bottom-desc', ['layout_one']);
noile_elementor_general_style_options($this, 'Circle Content', '{{WRAPPER}} .service-one__curved-circle--item span', ['layout_one', 'layout_five']);
$this->end_controls_section();
noile_elementor_column_count_options($this, ['layout_one', 'layout_two']);
noile_get_elementor_carousel_options($this, ['layout_five', 'layout_six', 'layout_seven']);
}
protected function render()
{
$settings = $this->get_settings_for_display();
include noile_get_template('service-one.php');
include noile_get_template('service-two.php');
include noile_get_template('service-three.php');
include noile_get_template('service-four.php');
include noile_get_template('service-five.php');
include noile_get_template('service-six.php');
include noile_get_template('service-seven.php');
}
}