Sindbad~EG File Manager

Current Path : /home/frekansk/www/wp-content/plugins/learnpress/config/elementor/course/skin/
Upload File :
Current File : /home/frekansk/www/wp-content/plugins/learnpress/config/elementor/course/skin/courses-loop-item.php

<?php
/**
 * Elementor Controls for skin Courses Loop Item.
 *
 * @since 4.2.3
 * @version 1.0.0
 */

use Elementor\Controls_Manager;
use Thim_EL_Kit\Functions;

/**
 * @var LearnPress\ExternalPlugin\Elementor\Widgets\Course\Skins\CoursesLoopItem $CoursesLoopItem
 */
if ( ! isset( $CoursesLoopItem ) ) {
	return;
}

if ( ! class_exists( Functions::class ) ) {
	return;
}

$layout_loop_items = Functions::instance()->get_pages_loop_item( 'lp_course' );

$CoursesLoopItem->add_control(
	'template_id',
	array(
		'label'         => esc_html__( 'Choose a template', 'thim-elementor-kit' ),
		'type'          => Controls_Manager::SELECT2,
		'default'       => '0',
		'options'       => [ '0' => esc_html__( 'None', 'thim-elementor-kit' ) ] + $layout_loop_items,
		'prevent_empty' => false,
	)
);

$CoursesLoopItem->add_responsive_control(
	'columns',
	array(
		'label'          => esc_html__( 'Columns', 'learnpress' ),
		'type'           => Controls_Manager::NUMBER,
		'default'        => 3,
		'min'            => 1,
		'selectors'      => array(
			'{{WRAPPER}}' => '--lp-el-list-courses-grid-columns: {{VALUE}}',
		),
	)
);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists