at path:
ROOT
/
wp-content
/
plugins
/
kadu-plugin
/
elementor
/
widgets
/
course.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
📄
course.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_Course 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-course-item'; } /** * Get widget title. * * Retrieve Elementor widget title. * * @since 1.0.0 * @access public * * @return string Widget title. */ public function get_title() { return esc_html__( 'Course', '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( '--course-option', [ 'label' => esc_html__( 'Course Option', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'post_order', [ 'label' => esc_html__( 'Post Order', 'Kadu-plugin' ), 'type' => Controls_Manager::SELECT, 'default' => 'ASC', 'options' => [ 'ASC' => esc_html__( 'Ascending', 'Kadu-plugin' ), 'DESC' => esc_html__( 'Descending', 'Kadu-plugin' ), ], ] ); $this->add_control( 'post_per_page', [ 'label' => __( 'Posts Per Page', 'Kadu-plugin' ), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'default' => 5, ] ); $this->add_control( 'post_categories', [ 'type' => Controls_Manager::SELECT2, 'label' => esc_html__( 'Select Categories', 'Kadu-plugin' ), 'options' => kadu_blog_category(), 'label_block' => true, 'multiple' => true, ] ); $this->add_control( 'title_length', [ 'label' => __( 'Title Length', 'Kadu-tools' ), 'type' => Controls_Manager::NUMBER, 'step' => 1, 'default' => 20, ] ); $this->add_control( 'excerpt_length', [ 'label' => __( 'Excerpt Length', 'Kadu-tools' ), 'type' => Controls_Manager::NUMBER, 'step' => 1, 'default' => 20, ] ); $this->add_control( 'description', [ 'label' => esc_html__( 'Description', 'Kadu-tools' ), 'type' => \Elementor\Controls_Manager::WYSIWYG, 'placeholder' => esc_html__( 'Type your description here', 'Kadu-tools' ), ] ); $this->end_controls_section(); // Sub title style $this->start_controls_section( 'icon_style', [ 'label' => esc_html__( 'Icon Style', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'sub_margin', [ 'label' => esc_html__( 'List Icon Margin', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .ftc-campaign-2-feature .icon' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'icon_color', [ 'label' => esc_html__( 'Icon Color', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ftc-campaign-2-feature .icon' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'icon-size', [ 'label' => esc_html__( 'Icon Size', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .ftc-campaign-2-feature .icon' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'slider_sub_title_style', [ 'label' => esc_html__( 'Title Style', 'kadu-plugin' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'ttl_margin', [ 'label' => esc_html__( 'Title Margin', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ '{{WRAPPER}} .ftc-campaign-2-feature' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'title_color', [ 'label' => esc_html__( 'Sub Title Color', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ftc-campaign-2-feature' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'border_color', [ 'label' => esc_html__( 'Border Color', 'kadu-plugin' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ftc-campaign-2-feature-line' => 'background: {{VALUE}}', ], ] ); // typography $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'm_s_typography', 'selector' => '{{WRAPPER}} .ftc-campaign-2-feature', ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); require __DIR__ . '/view/course/course-' . $settings['style'] . '.php'; } } Plugin::instance()->widgets_manager->register( new Kadu_Course() );