<?php /** * Video LearnDash Elementor widget class file. * * @package LearnDash\Elementor */ namespace LearnDash\Elementor\Widgets; /** * LearnDash Elementor Widget for ld_video shortcode. * * @since 1.0.5 */ class Video extends Base { /** * Widget base constructor. * * Initializing the widget base class. * * @since 1.0.5 * @access public * * @throws \Exception If arguments are missing when initializing a full widget * instance. * * @param array $data Widget data. Default is an empty array. * @param array|null $args Optional. Widget default arguments. Default is null. */ public function __construct( $data = array(), $args = null ) { $this->widget_slug = 'ld-video'; $this->widget_title = esc_html__( 'Video Progress', 'learndash-elementor' ); $this->widget_icon = 'fas fa-file-video'; $this->shortcode_slug = 'ld_video'; $this->shortcode_params = array(); parent::__construct( $data, $args ); } /** * Render widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.5 * @access protected */ protected function render() { $shortcode_params_str = '[' . $this->shortcode_slug . ']'; $shortcode_content = do_shortcode( $shortcode_params_str ); echo $shortcode_content; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Base.php | File | 4.29 KB | 0644 |
|
Course_Certificate.php | File | 12.28 KB | 0644 |
|
Course_Content.php | File | 23.43 KB | 0644 |
|
Course_Infobar.php | File | 38.54 KB | 0644 |
|
Course_List.php | File | 14.81 KB | 0644 |
|
Course_Progress.php | File | 3.46 KB | 0644 |
|
Lesson_List.php | File | 13.24 KB | 0644 |
|
Login.php | File | 9.32 KB | 0644 |
|
Payment_Buttons.php | File | 3.18 KB | 0644 |
|
Profile.php | File | 28.84 KB | 0644 |
|
Quiz.php | File | 17.21 KB | 0644 |
|
Quiz_List.php | File | 14.38 KB | 0644 |
|
Topic_List.php | File | 13.7 KB | 0644 |
|
Video.php | File | 1.3 KB | 0644 |
|