403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/stirizo/wp-content/plugins/edumodo-core/elements/tx-course/template/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/stirizo/wp-content/plugins/edumodo-core/elements/tx-course/template/config.php
<?php
    use Elementor\Group_Control_Border;
    use Elementor\Widget_Base;
    use Elementor\Controls_Manager;
    Use Elementor\Core\Schemes\Typography;
    use Elementor\Group_Control_Typography;
    use Elementor\Group_Control_Box_Shadow;


if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * Elementor Edumodo course
 *
 * Elementor widget for edumodo course
 *
 * @since 1.0.0
 */
class Edumodo_Course_1 extends Widget_Base {

	public function get_name() {
		return 'edumodo-course-1';
	}

	public function get_title() {
		return __( 'TX Courses', 'edumodo' );
	}

	public function get_icon() {
		return 'eicon-sidebar';
	}

	public function get_categories() {
		return [ 'edumodo' ];
	}

	/**
	 * A list of scripts that the widgets is depended in
	 * @since 1.3.0
	 **/
	public function get_script_depends() {
		return [ 'edumodo-course-1' ];
	}

	protected function _register_controls() {

		$this->start_controls_section(
			'section_title',
			[
				'label' => __( 'Query', 'edumodo' ),
			]
		);

            $this->add_control(
                'posts_per_page',
                [
                    'label' => __('Course to Show', 'edumodo'),
                    'type' => Controls_Manager::NUMBER,
                    'default' => 6,
                    'min' => -1,
                    'max' => 50,
                    'step' => 1,
                ]
            );


            $this->add_control(
                'order',
                [
                    'label' => __('Order', 'edumodo'),
                    'type' => Controls_Manager::SELECT,
                    'default' => 'ASC',
                    'options' => [
                        'ASC' => __('Ascending', 'edumodo'),
                        'DESC' => __('Descending', 'edumodo'),
                    ],
                ]
            );

            $this->add_control(
                'orderby',
                [
                    'label' => __('Order By', 'edumodo'),
                    'type' => Controls_Manager::SELECT,
                    'default' => 'date',
                    'options' => [
                        'title' => __('Title', 'edumodo'),
                        'name' => __('Name', 'edumodo'),
                        'date' => __('Date', 'edumodo'),
                        'rand' => __('Random', 'edumodo'),
                    ],
                ]
            ); 

            $this->add_control(
                'posts_column',
                [
                    'label' => __('Column to Show', 'edumodo'),
                    'type' => Controls_Manager::SELECT,
                    'default' => '4',
                    'options' => [
                        '2'  => __('6', 'edumodo'),
                        '3'  => __('4', 'edumodo'),
                        '4'  => __('3', 'edumodo'),
                        '6'  => __('2', 'edumodo'),
                        '12' => __('1', 'edumodo'),
                    ],
                ]
            );  
                     
		$this->end_controls_section();

		$this->start_controls_section(
			'edumodo_section_title_typography',
			[
				'label' => __( 'Content', 'edumodo' ),
			]
		);
            $this->add_control(
                'content_title_heading',
                    [
                        'label' => __( 'Title', 'edumodo' ),
                        'type' => Controls_Manager::HEADING,
                        'separator' => 'before',
                    ]
            );
            $this->add_control(
                'excerpt_title_word',
                [
                    'label' => __('Word Count', 'edumodo'),
                    'type' => Controls_Manager::NUMBER,
                    'default' => 7,
                    'min' => 1,
                    'max' => 100,
                    'step' => 1,
                ]
            );
            $this->add_control(
                'content_desc_heading',
                    [
                        'label' => __( 'Description', 'edumodo' ),
                        'type' => Controls_Manager::HEADING,
                        'separator' => 'before',
                    ]
            );
            $this->add_control(
                'excerpt_desc_word',
                [
                    'label' => __('Word Count', 'edumodo'),
                    'type' => Controls_Manager::NUMBER,
                    'default' => 15,
                    'min' => 1,
                    'max' => 300,
                    'step' => 1,
                ]
            );

		$this->end_controls_section();

		$this->start_controls_section(
			'section_meta',
			[
				'label' => __( 'Meta', 'edumodo' ),
			]
		);

            $this->add_control(
                'meta_position_vertical',
                [
                    'label' => __( 'Position', 'edumodo' ),
                    'type' => Controls_Manager::CHOOSE,
                    'default' => 'bottom',
                    'options' => [
                        'top' => [
                            'title' => __( 'Top', 'edumodo' ),
                            'icon' => 'eicon-v-align-top',
                        ],
                        'bottom' => [
                            'title' => __( 'Bottom', 'edumodo' ),
                            'icon' => 'eicon-v-align-bottom',
                        ],
                    ],
                    'toggle' => false,
                ]
            );
            $this->add_control(
                'content_date_heading',
                    [
                        'label' => __( 'Date', 'edumodo' ),
                        'type' => Controls_Manager::HEADING,
                        'separator' => 'before',
                    ]
            );

            $this->add_control(
                'course_cat_enable',
                [
                    'label' => __( 'Display', 'edumodo' ),
                    'type' => Controls_Manager::SWITCHER,
                    'default' => 'yes',
                    'label_on' => __( 'Show', 'edumodo' ),
                    'label_off' => __( 'Hide', 'edumodo' ),
                    'return_value' => 'yes',
                ]
            );
            $this->add_control(
                'content_count_heading',
                    [
                        'label' => __( 'View Count', 'edumodo' ),
                        'type' => Controls_Manager::HEADING,
                        'separator' => 'before',
                    ]
            );

            $this->add_control(
                'course_view_enable',
                [
                    'label' => __( 'Display', 'edumodo' ),
                    'type' => Controls_Manager::SWITCHER,
                    'default' => 'yes',
                    'label_on' => __( 'Show', 'edumodo' ),
                    'label_off' => __( 'Hide', 'edumodo' ),
                    'return_value' => 'yes',
                ]
            );


		$this->end_controls_section();


        $this->start_controls_section(
            'section_style',
            [
                'label' => __( 'Content', 'edumodo' ),
                'tab'   => Controls_Manager::TAB_STYLE,
            ]
        );
            $this->add_control(
                'content_style_heading',
                    [
                        'label' => __( 'Title', 'edumodo' ),
                        'type' => Controls_Manager::HEADING,
                        'separator' => 'before',
                    ]
            );

            $this->add_control(
                'title_color',
                [
                    'label'     => __( 'Color', 'edumodo' ),
                    'type'      => Controls_Manager::COLOR,
                    'default'   => '',
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .entry-header .course-entry-title a' => 'color: {{VALUE}};',
                    ],
                ]
            );
            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'edumodo_title_typography',
                    'selector' => '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .entry-header .course-entry-title a',
                    'scheme' => Typography::TYPOGRAPHY_3,
                ]
            );
            $this->add_control(
                'title_hover_color',
                [
                    'label'     => __( 'Hover Color', 'edumodo' ),
                    'type'      => Controls_Manager::COLOR,
                    'default'   => '',
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .entry-header .course-entry-title a:hover' => 'color: {{VALUE}} !important;',
                    ],
                ]
            );

            $this->add_control(
                'content_desc_style',
                    [
                        'label' => __( 'Description', 'edumodo' ),
                        'type' => Controls_Manager::HEADING,
                        'separator' => 'before',
                    ]
            );
            $this->add_control(
                'desc_color',
                [
                    'label'     => __( 'Color', 'edumodo' ),
                    'type'      => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .entry-content p' => 'color: {{VALUE}};',
                    ],
                ]
            );
            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'desc_typography',
                    'selector' => '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .entry-content p',
                    'scheme' => Typography::TYPOGRAPHY_3,
                ]
            );

        $this->end_controls_section();
        
        $this->start_controls_section(
            'section_style_meta',
            [
                'label' => __( 'Meta', 'edumodo' ),
                'tab'   => Controls_Manager::TAB_STYLE,
            ]
        );
            $this->add_control(
                'meta_color',
                [
                    'label'     => __( 'Color', 'edumodo' ),
                    'type'      => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .course-meta .post-view, {{WRAPPER}} .edumodo-default-course article.tx-course .course-details .course-meta .post-date' => 'color: {{VALUE}};',
                    ],
                ]
            );
            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'meta_typography',
                    'selector' => '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details .course-meta',
                    'scheme' => Typography::TYPOGRAPHY_3,
                ]
            );

        $this->end_controls_section();


        $this->start_controls_section(
            'section_style_border_shadow',
                [
                    'label' => __( 'Global', 'edumodo' ),
                    'tab'   => Controls_Manager::TAB_STYLE,
                ]
        );

            $this->add_control(
                'bg_color',
                [
                    'label' => __( 'Background Color', 'edumodo' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course' => 'background-color: {{VALUE}};',
                    ],
                ]
            );
            $this->add_responsive_control(
                'content_layout_align',
                [
                    'label' => esc_html__( 'Alignment', 'edumodo' ),
                    'type'  => Controls_Manager::CHOOSE,
                    'default'   =>'left' ,
                    'options'   => [
                        'left'    => [
                            'title' => esc_html__( 'Left', 'edumodo' ),
                            'icon'  => 'eicon-text-align-left',
                        ],
                        'center' => [
                            'title' => esc_html__( 'Center', 'edumodo' ),
                            'icon'  => 'eicon-text-align-center',
                        ],
                        'right' => [
                            'title' => esc_html__( 'Right', 'edumodo' ),
                            'icon'  => 'eicon-text-align-left',
                        ],
                    ],
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details' => 'text-align: {{VALUE}};',
                    ],
                ]
            );

            $this->add_responsive_control(
                'content_padding',
                [
                    'label' => esc_html__( 'Padding', 'edumodo' ),
                    'type'  => Controls_Manager::DIMENSIONS,
                    'size_units' => [ 'px', '%' ],
                    'selectors'  => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course .course-details' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                    ],
                ]
            );


            $this->add_group_control(
                Group_Control_Border::get_type(),
                    [
                        'name'  => 'border_width',
                        'label' => esc_html__( 'Border', 'edumodo' ),
                        'placeholder' => '1px',
                        'default'   => '1px',
                        'selector'  => '{{WRAPPER}} .edumodo-default-course article.tx-course',
                        'separator' => 'before',
                      
                    ]
            );

            $this->add_responsive_control(
                'border_radius',
                    [
                        'label' => esc_html__( 'Border Radius', 'edumodo' ),
                        'type'  => Controls_Manager::DIMENSIONS,
                        'size_units' => [ 'px', '%' ],
                        'selectors'  => [
                            '{{WRAPPER}} .edumodo-default-course article.tx-course' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                        ],
                    ]
            );


            $this->add_group_control(
                Group_Control_Box_Shadow::get_type(),
                [
                    'name' => 'box_shadow',
                    'selector' => '{{WRAPPER}} .edumodo-default-course article.tx-course',

                ]
            );

            $this->add_group_control(
                Group_Control_Box_Shadow::get_type(),
                [   'label' => __( 'Hover Box Shadow', 'edumodo' ),
                    'name' => 'box_shadow_hover',
                    'selector' => '{{WRAPPER}} .edumodo-default-course article.tx-course:hover',
                ]
            );

            $this->add_control(
                'content_overlay_heading',
                        [
                            'label' => __( 'Overlay', 'edumodo' ),
                            'type' => Controls_Manager::HEADING,
                            'separator' => 'before',
                        ]
                );
            $this->add_control(
                'overlay_color',
                [
                    'label' => __( 'Color', 'edumodo' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course figure a:before' => 'background-color: {{VALUE}};',
                    ],
                ]
            );

            $this->add_control(
                'content_overlay_icon_heading',
                        [
                            'label' => __( 'Icon', 'edumodo' ),
                            'type' => Controls_Manager::HEADING,
                        ]
            );
            $this->add_control(
                'overlay_icon_color',
                [
                    'label' => __( 'Color', 'edumodo' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course figure a:after' => 'color: {{VALUE}};',
                    ],
                ]
            );

            $this->add_control(
                'overlay_icon_bg_color',
                [
                    'label' => __( 'Background Color', 'edumodo' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .edumodo-default-course article.tx-course figure a:after' => 'background: {{VALUE}};',
                    ],
                ]
            );
            $this->add_responsive_control(
                'icon_border_radius',
                    [
                        'label' => esc_html__( 'Border Radius', 'edumodo' ),
                        'type'  => Controls_Manager::DIMENSIONS,
                        'size_units' => [ 'px', '%' ],
                        'selectors'  => [
                            '{{WRAPPER}} .edumodo-default-course article.tx-course figure a:after' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                        ],
                    ]
            );

        $this->end_controls_section();
	}

	protected function render() {
		require EDUMODO_CORE_ROOT . '/elements/tx-course/template/view.php';
	}


}

Youez - 2016 - github.com/yon3zu
LinuXploit