<?php
$slides_to_show = range( 1, 10 );
$slides_to_show = array_combine( $slides_to_show, $slides_to_show );

pxl_add_custom_widget(
    array(
        'name' => 'pxl_testimonial',
        'title' => esc_html__('Case Testimonial', 'solarva'),
        'icon' => 'eicon-testimonial',
        'categories' => array('pxltheme-core'),
        'scripts' => array(
            'swiper',
            'pxl-swiper',
            'elementor-waypoints',
            'jquery-numerator',
            'pxl-counter',
            'pxl-counter-slide',
            'solarva-counter',
        ),
        'params' => array(
            'sections' => array(
                array(
                    'name' => 'section_layout',
                    'label' => esc_html__('Layout', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_LAYOUT,
                    'controls' => array(
                        array(
                            'name' => 'layout',
                            'label' => esc_html__('Templates', 'solarva' ),
                            'type' => 'layoutcontrol',
                            'default' => '1',
                            'options' => [
                                '1' => [
                                    'label' => esc_html__('Layout 1', 'solarva' ),
                                    'image' => get_template_directory_uri() . '/elements/assets/img/pxl_testimonial/testimonial1.jpg'
                                ],
                                '2' => [
                                    'label' => esc_html__('Layout 2', 'solarva' ),
                                    'image' => get_template_directory_uri() . '/elements/assets/img/pxl_testimonial/testimonial2.jpg'
                                ],
                                '3' => [
                                    'label' => esc_html__('Layout 3', 'solarva' ),
                                    'image' => get_template_directory_uri() . '/elements/assets/img/pxl_testimonial/testimonial3.jpg'
                                ],
                                '4' => [
                                    'label' => esc_html__('Layout 4', 'solarva' ),
                                    'image' => get_template_directory_uri() . '/elements/assets/img/pxl_testimonial/testimonial4.jpg'
                                ],
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'section_content',
                    'label' => esc_html__('Content', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                    'controls' => array(
                        array(
                            'name' => 'layout_type',
                            'label' => esc_html__('Layout Type', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SELECT,
                            'default' => 'carousel',
                            'options' => [
                                'carousel' => esc_html__('Carousel', 'solarva'),
                                'grid' => esc_html__('Grid', 'solarva'),
                            ], 
                        ),
                        array(
                            'name' => 'pxl_icon',
                            'label' => esc_html__('Icon', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::ICONS,
                            'fa4compatibility' => 'icon',
                            'condition' => [
                                'layout' => '2',
                            ],
                        ),
                        array(
                            'name' => 'label',
                            'label' => esc_html__('Label', 'solarva'),
                            'type' => \Elementor\Controls_Manager::TEXT,
                            'default' => esc_html__('Rating', 'solarva'),
                            'condition' => [
                                'layout' => ['2', '3'],
                            ],
                        ),
                        array(
                            'name' => 'number',
                            'label' => esc_html__('Number', 'solarva'),
                            'type' => \Elementor\Controls_Manager::NUMBER,
                            'default' => 100,
                        ),
                        array(
                            'name' => 'suffix',
                            'label' => esc_html__('Suffix', 'solarva'),
                            'type' => \Elementor\Controls_Manager::TEXT,
                            'default' => '',
                        ),
                        array(
                            'name' => 'items',
                            'label' => esc_html__('Items', 'solarva'),
                            'type' => \Elementor\Controls_Manager::REPEATER,
                            'controls' => array(
                                array(
                                    'name' => 'select_form',
                                    'label' => esc_html__('Info entry form', 'solarva'), 
                                    'type' => \Elementor\Controls_Manager::SELECT,
                                    'default' => '1',
                                    'options' => [
                                        '1' => esc_html__('Form 1', 'solarva'),
                                        '2' => esc_html__('Form 2', 'solarva'),
                                    ],
                                    'description' => esc_html__('Form 1 is used for layout 1 and layout 2. Form 2 is used for layout 3', 'solarva'),
                                ),
                                array(
                                    'name' => 'avatar',
                                    'label' => esc_html__('Avatar', 'solarva'), 
                                    'type' => \Elementor\Controls_Manager::MEDIA,
                                ),
                                array(
                                    'name' => 'name',
                                    'label' => esc_html__('Name', 'solarva'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                ),
                                array(
                                    'name' => 'star_rating',
                                    'label' => esc_html__('Star Rating', 'solarva'),
                                    'type' => \Elementor\Controls_Manager::NUMBER,
                                    'min' => 0,
                                    'max' => 5,
                                    'description' => '',
                                    'condition' => [
                                        'select_form!' => '2', 
                                    ],
                                ),
                                array(
                                    'name' => 'position',
                                    'label' => esc_html__('Position', 'solarva'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'description' => esc_html__('Only use in layout 1', 'solarva'),
                                    'condition' => [
                                        'select_form!' => '2', 
                                    ],
                                ),
                                array(
                                    'name' => 'address',
                                    'label' => esc_html__('Address', 'solarva'),
                                    'type' => \Elementor\Controls_Manager::TEXT,
                                    'description' => esc_html__('Only use in layout 2', 'solarva'),
                                    'condition' => [
                                        'select_form!' => '2', 
                                    ],
                                ),
                                array(
                                    'name' => 'desc',
                                    'label' => esc_html__('Description', 'solarva' ),
                                    'type' => \Elementor\Controls_Manager::TEXTAREA,
                                    'rows' => 5,
                                ),
                            ),
                            'title_field' => '{{{ name }}}',
                        ),
                    ),
                ),
                solarva_grid_settings(false),
                solarva_carousel_settings(),
                array(
                    'name' => 'tab_style',
                    'label' => esc_html__('General', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name' => 'layout2_style',
                            'label' => esc_html__('Styles', 'solarva' ),
                            'type' => Elementor\Controls_Manager::SELECT,
                            'default' => 'pxl-testimonial-style1',
                            'options' => [
                                'pxl-testimonial-style1' => esc_html__('Style 1', 'solarva' ),
                                'pxl-testimonial-style2' => esc_html__('Layout 2', 'solarva' ),
                            ],
                            'condition' => [
                                'layout' => '2',
                            ],
                        ),
                        array(
                            'name' => 'background_color',
                            'label' => esc_html__('Background Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-carousel-inner' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'max_width',
                            'label' => esc_html__('Max Width', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px', '%', 'custom'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-carousel-inner' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'item_spacing_row',
                            'label' => esc_html__('Gap', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'placeholder' => 'Ex: 15',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-swiper-slide' => 'padding-inline: {{SIZE}}{{UNIT}};',
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-swiper-container' => 'margin-inline: -{{SIZE}}{{UNIT}}',
                            ],
                        ),
                        array(
                            'name' => 'padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-carousel-inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-carousel-inner' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'tab_style_item',
                    'label' => esc_html__('Slide Single', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name' => 'inner_ackground_color',
                            'label' => esc_html__('Background Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-slide-inner' => 'background-color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'inner_gap',
                            'label' => esc_html__('Gap', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'placeholder' => 'Ex: 15',
                            'size_units' => ['px'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'condition' => [
                                'layout!' => ['3', '4'],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel1 .pxl-slide-inner' => 'gap: {{SIZE}}{{UNIT}};',
                                '{{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel2 .pxl-user-info' => 'margin-bottom: {{SIZE}}{{UNIT}};'
                            ],
                        ),
                        array(
                            'name' => 'inner_max_width',
                            'label' => esc_html__('Max Width', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'control_type' => 'responsive',
                            'size_units' => ['px', '%', 'custom'], 
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-slide-inner' => 'max-width: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'inner_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-slide-inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'inner_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-slide-inner' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'tab_image_style',
                    'label' => esc_html__('Image', 'solarva'),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array(
                        array(
                            'name'         => 'img_border',
                            'label' => esc_html__( 'Border', 'solarva' ),
                            'type'         => \Elementor\Group_Control_Border::get_type(),
                            'control_type' => 'group',
                            'selector'     => '{{WRAPPER}} .pxl-testimonial-carousel1 .pxl-item--avatar img, 
                            {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel4 .pxl-user--avatar img,
                            {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel2 .pxl-user--avatar img, 
                            {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel3 .pxl-item--single',
                        ),
                        array(
                            'name' => 'img_box_size',
                            'label' => esc_html__('Box Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                               '{{WRAPPER}} .pxl-testimonial-carousel1 .pxl-item--avatar img, 
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel4 .pxl-user--avatar img,
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel2 .pxl-user--avatar img, 
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel3 .pxl-item--single' => '--size: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'img_border_radius',
                            'label' => esc_html__( 'Border Radius', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel1 .pxl-item--avatar img, 
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel4 .pxl-user--avatar img,
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel2 .pxl-user--avatar img, 
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel3 .pxl-item--single' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'tab_title_style',
                    'label' => esc_html__('Title', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array( 
                        array(
                            'name' => 'title_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--name, 
                                {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel3 .pxl-item--label' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'title_typography',
                            'label' => esc_html__('Typography', 'solarva' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--name, {{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel3 .pxl-item--label',
                        ),
                        array(
                            'name' => 'title_spacing_bottom',
                            'label' => esc_html__('Spacing Bottom', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'condition' => [
                                'layout!' => '3',
                            ],
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--name' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),

                array(
                    'name' => 'tab_position_style',
                    'label' => esc_html__('Position', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => '1',
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'position_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--position' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'position_typography',
                            'label' => esc_html__('Typography', 'solarva' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--position',
                        ),
                    ),
                ),

                array(
                    'name' => 'tab_address_style',
                    'label' => esc_html__('Address', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2', '4'],
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'address_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--address' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'address_typography',
                            'label' => esc_html__('Typography', 'solarva' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--address',
                        ),
                    ),
                ),

                array(
                    'name' => 'tab_desc_style',
                    'label' => esc_html__('Description', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'controls' => array( 
                        array(
                            'name' => 'desc_color',
                            'label' => esc_html__('Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--desc' => 'color: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'desc_typography',
                            'label' => esc_html__('Typography', 'solarva' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--desc',
                        ),
                        array(
                            'name' => 'desc_spacing_bottom',
                            'label' => esc_html__('Spacing Bottom', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--desc' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),

                array(
                    'name' => 'tab_rating_style',
                    'label' => esc_html__('Rating', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => '2',
                    ],
                    'controls' => array( 
                        array(
                            'name' => 'rating_title_typography',
                            'label' => esc_html__('Typography', 'solarva' ),
                            'type' => \Elementor\Group_Control_Typography::get_type(),
                            'control_type' => 'group', 
                            'selector' => '{{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel2 .pxl-item--label',
                            'condition' => [
                                'layout' => '2'
                            ],
                        ),
                        array(
                            'name' => 'rating_title_color',
                            'label' => esc_html__('Label Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel.pxl-testimonial-carousel2 .pxl-item--label' => 'color: {{VALUE}};',
                            ],
                            'condition' => [
                                'layout' => '2'
                            ],
                        ),
                        array(
                            'name' => 'rating_star_color',
                            'label' => esc_html__('Star Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-list--star svg path' => 'fill: {{VALUE}};',
                            ],
                        ),
                        array(
                            'name' => 'rating_size',
                            'label' => esc_html__('Star Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-list--star svg' => 'width: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'rating_gap',
                            'label' => esc_html__('Gap', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-list--star' => 'gap: {{SIZE}}{{UNIT}};',
                            ],
                        ),
                        array(
                            'name' => 'rating_position',
                            'label' => esc_html__( 'Position', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::CHOOSE,
                            'control_type' => 'responsive',
                            'options' => [
                                'column' => [
                                    'label' => esc_html__('Default', 'solarva'),
                                    'icon' => 'eicon-v-align-bottom',
                                ],
                                'column-reverse' => [
                                    'label' => esc_html__('Reverse', 'solarva'),
                                    'icon' => 'eicon-v-align-top',
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-swiper-slider .pxl-item--content' => 'flex-direction: {{VALUE}};',
                            ],
                            'condition' => [
                                'layout!' => '1'
                            ]
                        ),
                        array(
                            'name' => 'rating_padding',
                            'label' => esc_html__( 'Padding', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::DIMENSIONS,
                            'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
                            'control_type' => 'responsive',
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-list--star' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                            ],
                        ),
                    ),
                ),
                array(
                    'name' => 'tab_style_icon',
                    'label' => esc_html__('Icon', 'solarva' ),
                    'tab' => \Elementor\Controls_Manager::TAB_STYLE,
                    'condition' => [
                        'layout' => ['2', '4'],
                    ],
                    'controls' => array(    
                        array(
                            'name' => 'icon_color',
                            'label' => esc_html__( 'Color', 'solarva' ),
                            'type' => \Elementor\Controls_Manager::COLOR,
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--avatar .pxl-item--icon path' => 'fill: {{VALUE}}',
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--avatar .pxl-item--icon' => 'color: {{VALUE}}',
                            ],
                        ),
                        array(
                            'name' => 'icon_size',
                            'label' => esc_html__('Font Size', 'solarva'),
                            'type' => \Elementor\Controls_Manager::SLIDER,
                            'size_units' => ['px', '%', 'rem', 'em', 'custom'],
                            'control_type' => 'responsive',
                            'range' => [
                                'px' => [
                                    'min' => 0,
                                    'max' => 1000,
                                ],
                            ],
                            'selectors' => [
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--avatar .pxl-item--icon' => 'width: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}};',
                                '{{WRAPPER}} .pxl-testimonial-carousel .pxl-user--avatar .pxl-item--icon' => 'font-size: {{SIZE}}{{UNIT}};',

                            ],
                        ),
                    ),
                ),
                solarva_widget_animation_settings(),
            ),
        ),
    ),
    solarva_get_class_widget_path()
);