📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:29:27
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_testimonial_carousel.php
<?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_carousel', 'title' => esc_html__('Case Testimonial Carousel', 'berich'), 'icon' => 'eicon-testimonial', 'categories' => array('pxltheme-core'), 'scripts' => array( 'swiper', 'pxl-swiper', ), 'params' => array( 'sections' => array( array( 'name' => 'section_layout', 'label' => esc_html__('Layout', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_LAYOUT, 'controls' => array( array( 'name' => 'layout', 'label' => esc_html__('Templates', 'berich' ), 'type' => 'layoutcontrol', 'default' => '1', 'options' => [ '1' => [ 'label' => esc_html__('Layout 1', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_testimonial_carousel/layout1.jpg' ], '2' => [ 'label' => esc_html__('Layout 2', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_testimonial_carousel/layout2.jpg' ], '3' => [ 'label' => esc_html__('Layout 3', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_testimonial_carousel/layout3.jpg' ], '4' => [ 'label' => esc_html__('Layout 4', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_testimonial_carousel/layout4.jpg' ], '5' => [ 'label' => esc_html__('Layout 5', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_testimonial_carousel/layout5.jpg' ], '6' => [ 'label' => esc_html__('Layout 6', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_testimonial_carousel/layout6.jpg' ], ], ), ), ), array( 'name' => 'section_content', 'label' => esc_html__('Content', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'testimonial', 'label' => esc_html__('Testimonial', 'berich'), 'type' => \Elementor\Controls_Manager::REPEATER, 'controls' => array( array( 'name' => 'title', 'label' => esc_html__('Title', 'berich'), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, ), array( 'name' => 'position', 'label' => esc_html__('Position', 'berich'), 'type' => \Elementor\Controls_Manager::TEXT, ), array( 'name' => 'desc', 'label' => esc_html__('Description', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'rows' => 10, 'show_label' => false, ), array( 'name' => 'image', 'label' => esc_html__('Avatar', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, ), array( 'name' => 'pxl_icon', 'label' => esc_html__('Icon', 'berich' ), 'type' => \Elementor\Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'description' => 'Apply to layout 4.' ), ), 'title_field' => '{{{ title }}}', ), ), ), array( 'name' => 'section_style_title', 'label' => esc_html__('Title', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'title_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--title' => 'color: {{VALUE}};', ], ), array( 'name' => 'title_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--title', ), ), ), array( 'name' => 'section_style_position', 'label' => esc_html__('Position', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'position_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--position' => 'color: {{VALUE}};', ], ), array( 'name' => 'position_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--position', ), ), ), array( 'name' => 'section_style_desc', 'label' => esc_html__('Description', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'desc_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--desc' => 'color: {{VALUE}};', ], ), array( 'name' => 'desc_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-testimonial-carousel .pxl-item--desc', ), ), ), array( 'name' => 'section_style_extra', 'label' => esc_html__('Extra', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'box_color', 'label' => esc_html__('Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-testimonial-carousel5 .pxl-item--inner' => 'background-color: {{VALUE}};', ], 'condition' => [ 'layout' => ['5'], ], ), array( 'name' => 'arrow_box_color', 'label' => esc_html__('Arrows Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-swiper-arrow-wrap.style-4 .pxl-swiper-arrow::after' => 'background-color: {{VALUE}};', ], 'condition' => [ 'layout' => ['5'], ], ), ), ), array( 'name' => 'section_settings_carousel', 'label' => esc_html__('Settings', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_SETTINGS, 'controls' => array( array( 'name' => 'col_xs', 'label' => esc_html__('Columns XS Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '1', 'options' => [ 'auto' => 'Auto', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'col_sm', 'label' => esc_html__('Columns SM Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '2', 'options' => [ 'auto' => 'Auto', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'col_md', 'label' => esc_html__('Columns MD Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '3', 'options' => [ 'auto' => 'Auto', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'col_lg', 'label' => esc_html__('Columns LG Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '3', 'options' => [ 'auto' => 'Auto', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'col_xl', 'label' => esc_html__('Columns XL Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '3', 'options' => [ 'auto' => 'Auto', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'col_xxl', 'label' => esc_html__('Columns XXL Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '3', 'options' => [ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'slides_to_scroll', 'label' => esc_html__('Slides to scroll', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '1', 'options' => [ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', ], 'condition' => [ 'layout!' => ['1','4'], ], ), array( 'name' => 'arrows', 'label' => esc_html__('Show Arrows', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, ), array( 'name' => 'pagination', 'label' => esc_html__('Show Pagination', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, ), array( 'name' => 'pagination_type', 'label' => esc_html__('Pagination Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'bullets', 'options' => [ 'bullets' => 'Bullets', 'fraction' => 'Fraction', 'progressbar' => 'Progressbar', ], 'condition' => [ 'pagination' => 'true' ] ), array( 'name' => 'pause_on_hover', 'label' => esc_html__('Pause on Hover', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, ), array( 'name' => 'autoplay', 'label' => esc_html__('Autoplay', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, ), array( 'name' => 'autoplay_speed', 'label' => esc_html__('Autoplay Delay', 'berich'), 'type' => \Elementor\Controls_Manager::NUMBER, 'default' => 5000, 'condition' => [ 'autoplay' => 'true' ] ), array( 'name' => 'infinite', 'label' => esc_html__('Infinite Loop', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, ), array( 'name' => 'speed', 'label' => esc_html__('Animation Speed', 'berich'), 'type' => \Elementor\Controls_Manager::NUMBER, 'default' => 500, ), array( 'name' => 'drap', 'label' => esc_html__('Show Scroll Drap', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, ), array( 'name' => 'center_slide', 'label' => esc_html__('Center', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, 'condition' => [ 'layout' => '3' ] ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel