📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:29:23
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_gallery_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_gallery_carousel', 'title' => esc_html__('Case Gallery Carousel', 'berich'), 'icon' => 'eicon-gallery-justified', 'categories' => array('pxltheme-core'), 'scripts' => array( 'swiper', 'pxl-swiper', ), 'params' => array( 'sections' => array( array( 'name' => 'section_content', 'label' => esc_html__('Content', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'layout', 'label' => esc_html__('Layout', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ '1' => 'Layout 1', '2' => 'Layout 2', ], 'default' => '1', ), array( 'name' => 'gallery', 'label' => esc_html__('Gallery', 'berich'), 'type' => \Elementor\Controls_Manager::REPEATER, 'controls' => array( array( 'name' => 'img', 'label' => esc_html__('Image', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, ), ), ), ), ), array( 'name' => 'section_settings_carousel', 'label' => esc_html__('Settings', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_SETTINGS, 'controls' => array( array( 'name' => 'img_size', 'label' => esc_html__('Image Size', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'description' => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Default: 370x300 (Width x Height)).', ), array( 'name' => 'img_height', 'label' => esc_html__('Image Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'description' => esc_html__('Enter number.', 'berich' ), 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'control_type' => 'responsive', 'selectors' => [ '{{WRAPPER}} .pxl-gallery-carousel2 .pxl-item--inner' => 'min-height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'layout' => '2', ], ), array( 'name' => 'poup_img_size', 'label' => esc_html__('Popup Image Size', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'description' => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Default: 370x300 (Width x Height)).', 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'col_xs', 'label' => esc_html__('Columns XS Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '1', 'options' => [ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'col_sm', 'label' => esc_html__('Columns SM Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '2', 'options' => [ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'col_md', 'label' => esc_html__('Columns MD Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '3', 'options' => [ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'col_lg', 'label' => esc_html__('Columns LG Devices', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => '3', 'options' => [ '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6', ], 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'col_xl', 'label' => esc_html__('Columns XL 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', ], ), 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', ], ), 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', ], ), array( 'name' => 'arrows', 'label' => esc_html__('Show Arrows', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'pagination', 'label' => esc_html__('Show Pagination', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'pagination_type', 'label' => esc_html__('Pagination Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'bullets', 'options' => [ 'bullets' => 'Bullets', 'fraction' => 'Fraction', ], 'condition' => [ 'layout' => '1', 'pagination' => 'true' ] ), array( 'name' => 'pause_on_hover', 'label' => esc_html__('Pause on Hover', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, ), array( 'name' => 'autoplay', 'label' => esc_html__('Autoplay', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => false, ), array( 'name' => 'autoplay_speed', 'label' => esc_html__('Autoplay Speed', '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, 'default' => false, ), array( 'name' => 'speed', 'label' => esc_html__('Animation Speed', 'berich'), 'type' => \Elementor\Controls_Manager::NUMBER, 'default' => 500, ), array( 'name' => 'item_spacer', 'label' => esc_html__('Item Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-swiper-slider .pxl-swiper-slide' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .pxl-swiper-slider .pxl-swiper-container' => 'margin: 0 -{{RIGHT}}{{UNIT}} 0 -{{LEFT}}{{UNIT}};', ], 'control_type' => 'responsive', ), array( 'name' => 'grid_offset', 'label' => esc_html__('Offset Left/Right', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-swiper-slider .pxl-swiper-container' => 'margin-right:-{{RIGHT}}{{UNIT}}; margin-left:-{{LEFT}}{{UNIT}};', ], 'control_type' => 'responsive', 'placeholder' => [ 'top' => 'auto', 'right' => '', 'bottom' => 'auto', 'left' => '', ], 'allowed_dimensions' => 'horizontal', ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel