at path:
ROOT
/
wp-content
/
plugins
/
kadu-plugin
/
elementor
/
widgets
/
slider.php
run:
R
W
Run
view
DIR
2025-12-13 10:16:30
R
W
Run
accordion.php
6.25 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
animate-bg.php
2.24 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
animated-border.php
2.27 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
blog.php
10.89 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
brand.php
3.5 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
button.php
6.99 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
category.php
5.64 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
contact-form.php
2.47 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
contact-info.php
5.52 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
content-tab.php
13.9 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
counters.php
5.46 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
course-tab.php
8.88 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
course.php
6.09 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
cta.php
12.13 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
event-info.php
4.59 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
event.php
11.78 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
feature.php
10.45 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
gallery.php
4.76 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
header.php
20.13 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
heading.php
10.11 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
hero-banner.php
10.07 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
image-box.php
8.14 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
info-box.php
6.63 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
list.php
6.01 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
pricing-plan.php
8 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
pricing-tab.php
11.37 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
rating-box.php
5.02 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
service-carousel.php
9.05 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
service.php
6.76 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
slider.php
14.69 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
team-carousel.php
9.95 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
team.php
6.25 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
testimonial.php
11.65 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
video-popup.php
3.4 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
video-slider.php
6.3 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
video-tab.php
6.89 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
error_log
up
📄
slider.php
Save
<?php /** * Elementor Single Widget * @package kadu Tools * @since 1.0.0 */ namespace Elementor; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. class Kadu_Slider extends Widget_Base { /** * Get widget name. * * Retrieve Elementor widget name. * * @since 1.0.0 * @access public * * @return string Widget name. */ public function get_name() { return 'go-islider'; } /** * Get widget title. * * Retrieve Elementor widget title. * * @since 1.0.0 * @access public * * @return string Widget title. */ public function get_title() { return esc_html__( 'Slider', 'kadu-plugin' ); } /** * Get widget icon. * * Retrieve Elementor widget icon. * * @since 1.0.0 * @access public * * @return string Widget icon. */ public function get_icon() { return 'kadu-custom-icon'; } /** * Get widget categories. * * Retrieve the list of categories the Elementor widget belongs to. * * @since 1.0.0 * @access public * * @return array Widget categories. */ public function get_categories() { return [ 'kadu_widgets' ]; } protected function register_controls() { $this->start_controls_section( 'int_widget_opt', [ 'label' => esc_html__( 'Style Select', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'style', [ 'label' => esc_html__( 'Style', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '1', 'options' => [ '1' => esc_html__( 'Style 1', 'kadu-plugin' ), '2' => esc_html__( 'Style 2', 'kadu-plugin' ), ] ] ); $this->end_controls_section(); $this->start_controls_section( '--slider-shape-option', [ 'label' => esc_html__( 'Slider Image', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'slider_bg', [ 'label' => esc_html__( 'Slider BG Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $this->add_control( 'shape_1', [ 'label' => esc_html__( 'Shape 1', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $this->add_control( 'shape_2', [ 'label' => esc_html__( 'Shape 2', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $this->end_controls_section(); $this->start_controls_section( '--slider-option', [ 'label' => esc_html__( 'Slider Option', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'title_shape', [ 'label' => esc_html__( 'Title Shape Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'sub_title', [ 'label' => esc_html__( 'Sub Title', 'kadu-plugin' ), 'default' => esc_html__( 'Guaranteed & certified', 'kadu-plugin' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ] ); $repeater->add_control( 'title', [ 'label' => esc_html__( 'Title', 'kadu-plugin' ), 'default' => esc_html__( 'Online Platform For Education.', 'kadu-plugin' ), 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, ] ); $repeater->add_control( 'title_tag', [ 'label' => __( 'Title HTML Tag', 'kadu-plugin' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'h1' => [ 'title' => __( 'H1', 'kadu-plugin' ), 'icon' => 'eicon-editor-h1', ], 'h2' => [ 'title' => __( 'H2', 'kadu-plugin' ), 'icon' => 'eicon-editor-h2', ], 'h3' => [ 'title' => __( 'H3', 'kadu-plugin' ), 'icon' => 'eicon-editor-h3', ], 'h4' => [ 'title' => __( 'H4', 'kadu-plugin' ), 'icon' => 'eicon-editor-h4', ], 'h5' => [ 'title' => __( 'H5', 'kadu-plugin' ), 'icon' => 'eicon-editor-h5', ], 'h6' => [ 'title' => __( 'H6', 'kadu-plugin' ), 'icon' => 'eicon-editor-h6', ], ], 'default' => 'h1', 'toggle' => false, ] ); $repeater->add_control( 'description', [ 'label' => esc_html__( 'Description', 'kadu-plugin' ), 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, ] ); $repeater->add_control( 'btn_label', [ 'label' => esc_html__( 'Button Label', 'kadu-plugin' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ] ); $repeater->add_control( 'btn_link', [ 'label' => esc_html__( 'Button Link', 'kadu-plugin' ), 'type' => Controls_Manager::URL, 'label_block' => true, ] ); $repeater->add_control( 'slider_img', [ 'label' => esc_html__( 'Slider Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'shape', [ 'label' => esc_html__( 'Shape 1 Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'shape2', [ 'label' => esc_html__( 'Shape 2 Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'shape3', [ 'label' => esc_html__( 'Shape 3 Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'shape4', [ 'label' => esc_html__( 'Shape 4 Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'shape5', [ 'label' => esc_html__( 'Shape 5 Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $repeater->add_control( 'shape6', [ 'label' => esc_html__( 'Shape 6 Image', 'gesto-plugin' ), 'type' => Controls_Manager::MEDIA, 'label_block' => true, ] ); $this->add_control( 'sliders', [ 'label' => esc_html__( 'Add Slider Item', 'goyto-plugin' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => '{{{ title }}}', ] ); $this->end_controls_section(); $this->start_controls_section( '--social-option', [ 'label' => esc_html__( 'Social Option', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'title', [ 'label' => esc_html__( 'Title', 'kadu-plugin' ), 'default' => esc_html__( 'Facebook', 'kadu-plugin' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ] ); $repeater->add_control( 'link', [ 'label' => esc_html__( 'Link', 'kadu-plugin' ), 'type' => Controls_Manager::URL, 'label_block' => true, ] ); $this->add_control( 'socials', [ 'label' => esc_html__( 'Add Social Item', 'goyto-plugin' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => '{{{ title }}}', ] ); $this->end_controls_section(); // Sub title style $this->start_controls_section( 'slider_sub_title_style', [ 'label' => esc_html__( 'Sub Title Style', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'margin', [ 'label' => esc_html__( 'Sub Title Margin', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .elementor-kadu-sub' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'sub_title_color', [ 'label' => esc_html__( 'Sub Title Color', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-kadu-sub' => 'color: {{VALUE}}' ], ] ); // typography $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'm_s_typography', 'selector' => '{{WRAPPER}} .elementor-kadu-sub', ] ); $this->end_controls_section(); // title style $this->start_controls_section( 'slider_title_style', [ 'label' => esc_html__( 'Title Style', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'title_margin', [ 'label' => esc_html__( 'Sub Title Margin', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .elementor-gt-heading' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'm_t_typography', 'selector' => '{{WRAPPER}} .elementor-gt-heading', ] ); $this->add_control( 'title_color', [ 'label' => esc_html__( 'Title Color', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-gt-heading' => 'color: {{VALUE}}', ], ] ); $this->end_controls_section(); // description style $this->start_controls_section( 'slider_description_style', [ 'label' => esc_html__( 'Description Style', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'desc_margin', [ 'label' => esc_html__( 'Desc Margin', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .elementor-gt-desc' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); // typography $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'm_d_typography', 'selector' => '{{WRAPPER}} .elementor-gt-desc', ] ); // description color $this->add_control( 'description_color', [ 'label' => esc_html__( 'Description Color', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-gt-desc' => 'color: {{VALUE}}', ], ] ); // end $this->end_controls_section(); // feature style $this->start_controls_section( 'slider_button_one', [ 'label' => esc_html__( 'Button Style', 'Kadu-plugin' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'm_b_typography', 'selector' => '{{WRAPPER}} .kd-pr-btn-1', ] ); $this->add_control( 'padding', [ 'label' => esc_html__( 'Padding', 'Kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .kd-pr-btn-1' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'b_round', [ 'label' => esc_html__( 'Border Radius', 'Kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .kd-pr-btn-1' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'style_tabs' ); $this->start_controls_tab( 'style_normal_tab', [ 'label' => esc_html__( 'Normal', 'Kadu-plugin' ), ] ); $this->add_control( 'btn_text', [ 'label' => esc_html__( 'Text Color', 'Kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .kd-pr-btn-1:is(.has-pr-clr) .text::before' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'button_bg_color', 'types' => [ 'gradient' ], 'exclude' => [ 'image' ], 'selector' => '{{WRAPPER}} .kd-pr-btn-1', 'fields_options' => [ 'background' => [ 'label' => esc_html__( 'Button BG Color ', 'Kadu-plugin' ), 'description' => esc_html__( 'Choose background type and style.', 'Kadu-plugin' ), 'separator' => 'before', ] ] ] ); $this->end_controls_tab(); $this->start_controls_tab( 'style_hover_tab', [ 'label' => esc_html__( 'Hover', 'Kadu-plugin' ), ] ); $this->add_control( 'btn-hover_text', [ 'label' => esc_html__( 'Hover Color', 'Kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .kd-pr-btn-1:is(.has-pr-clr) .text::after' => 'color: {{VALUE}}' ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'button_bg_hover_color', 'types' => [ 'gradient' ], 'exclude' => [ 'image' ], 'selector' => '{{WRAPPER}} .kd-pr-btn-1:is(.has-pr-clr):hover', 'fields_options' => [ 'background' => [ 'label' => esc_html__( 'Button Hover BG Color ', 'Kadu-plugin' ), 'description' => esc_html__( 'Choose background type and style.', 'Kadu-plugin' ), 'separator' => 'before', ] ] ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); require __DIR__ . '/view/slider/slider-' . $settings['style'] . '.php'; } } Plugin::instance()->widgets_manager->register( new Kadu_Slider() );