📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:26:42
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_image.php
<?php pxl_add_custom_widget( array( 'name' => 'pxl_image', 'title' => esc_html__('Case Image', 'berich' ), 'icon' => 'eicon-image', 'categories' => array('pxltheme-core'), 'scripts' => array( 'tilt', 'pxl-tweenmax', ), 'params' => array( 'sections' => array( array( 'name' => 'tab_content', 'label' => esc_html__('Content', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'source_type', 'label' => esc_html__('Source Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 's_img' => 'Select Image', 'f_img' => 'Featured Image', ], 'default' => 's_img', ), array( 'name' => 'image', 'label' => esc_html__('Choose Image', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'condition' => [ 'source_type' => ['s_img'], ], ), array( 'name' => 'image_link', 'label' => esc_html__('Link', 'berich' ), 'type' => \Elementor\Controls_Manager::URL, ), array( 'name' => 'image_type', 'label' => esc_html__('Image Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'img' => 'Image', 'bg' => 'Background', ], 'default' => 'img', ), 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 Example: 200x100 - Width x Height.', 'condition' => [ 'image_type' => ['img'], ], ), array( 'name' => 'img_label', 'label' => esc_html__('Image Label', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, ), array( 'name' => 'image_align', 'label' => esc_html__('Image Alignment', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'control_type' => 'responsive', 'options' => [ 'left' => [ 'title' => esc_html__('Left', 'berich' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => esc_html__('Center', 'berich' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => esc_html__('Right', 'berich' ), 'icon' => 'fa fa-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .pxl-image-single' => 'text-align: {{VALUE}};', ], ), ), ), array( 'name' => 'tab_style_img', 'label' => esc_html__('Image', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'image_max_height', 'label' => esc_html__('Image Max Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'description' => esc_html__('Enter number.', 'berich' ), 'condition' => [ 'image_type' => 'img', ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'control_type' => 'responsive', 'selectors' => [ '{{WRAPPER}} .pxl-image-single img' => 'max-height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'image_type' => 'img', ], ), array( 'name' => 'image_width', 'label' => esc_html__('Image Width', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'auto' => [ 'title' => esc_html__( 'Auto', 'berich' ), 'icon' => 'fas fa-arrows-alt-v', ], '100%' => [ 'title' => esc_html__( 'Full', 'berich' ), 'icon' => 'fas fa-arrows-alt-h', ], ], 'selectors' => [ '{{WRAPPER}} .pxl-image-single img' => 'width: {{VALUE}};', ], 'condition' => [ 'image_type' => 'img', ], 'control_type' => 'responsive', ), array( 'name' => 'image_height', 'label' => esc_html__('Image Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'description' => esc_html__('Enter number.', 'berich' ), 'condition' => [ 'image_type' => 'bg', ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'control_type' => 'responsive', 'selectors' => [ '{{WRAPPER}} .pxl-image-single .pxl-item--bg' => 'height: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'border_radius', 'label' => esc_html__('Border Radius', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-image-single img, {{WRAPPER}} .pxl-item--inner' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ), array( 'name' => 'border_type', 'label' => esc_html__( 'Border Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ '' => esc_html__( 'None', 'berich' ), 'solid' => esc_html__( 'Solid', 'berich' ), 'double' => esc_html__( 'Double', 'berich' ), 'dotted' => esc_html__( 'Dotted', 'berich' ), 'dashed' => esc_html__( 'Dashed', 'berich' ), 'groove' => esc_html__( 'Groove', 'berich' ), ], 'selectors' => [ '{{WRAPPER}} .pxl-image-single img' => 'border-style: {{VALUE}} !important;', ], ), array( 'name' => 'border_width', 'label' => esc_html__( 'Border Width', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .pxl-image-single img' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'condition' => [ 'border_type!' => '', ], 'responsive' => true, ), array( 'name' => 'border_color', 'label' => esc_html__( 'Border Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-image-single img' => 'border-color: {{VALUE}} !important;', ], 'condition' => [ 'border_type!' => '', ], ), array( 'name' => 'box_shadow', 'label' => esc_html__( 'Box Shadow', 'berich' ), 'type' => \Elementor\Group_Control_Box_Shadow::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-image-single img' ), array( 'name' => 'img_effect', 'label' => esc_html__('Image Effect', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ '' => 'None', 'pxl-image-effect1' => 'Zigzag', 'pxl-image-tilt' => 'Tilt', 'pxl-image-spin' => 'Spin', 'pxl-image-zoom' => 'Zoom 1', 'pxl-image-zoom2' => 'Zoom 2', 'pxl-image-bounce' => 'Bounce', 'slide-up-down' => 'Slide Up Down', 'slide-top-to-bottom' => 'Slide Top To Bottom ', 'pxl-image-effect2' => 'Slide Bottom To Top ', 'slide-right-to-left' => 'Slide Right To Left ', 'slide-left-to-right' => 'Slide Left To Right ', 'pxl-hover1' => 'ZoomIn', 'pxl-hover2' => 'ZoomOut', 'pxl-animation-round' => 'Round', 'pxl-image-parallax' => 'Parallax Hover', 'pxl-parallax-scroll' => 'Parallax Scroll', ], 'default' => '', 'condition' => [ 'image_type' => 'img', ], ), array( 'name' => 'parallax_scroll_type', 'label' => esc_html__('Parallax Scroll Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'y' => 'Effect Y', 'x' => 'Effect X', 'z' => 'Effect Z', ], 'default' => 'y', 'condition' => [ 'img_effect' => 'pxl-parallax-scroll', ], ), array( 'name' => 'parallax_scroll_value_x', 'label' => esc_html__('Parallax Value', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'condition' => [ 'img_effect' => 'pxl-parallax-scroll', ], 'default' => '80', 'description' => esc_html__('Enter number.', 'berich' ), ), array( 'name' => 'parallax_value', 'label' => esc_html__('Parallax Value', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'condition' => [ 'img_effect' => 'pxl-image-parallax', ], 'default' => '40', 'description' => esc_html__('Enter number.', 'berich' ), ), array( 'name' => 'max_tilt', 'label' => esc_html__('Max Tilt', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'condition' => [ 'img_effect' => 'pxl-image-tilt', ], 'default' => '10', 'description' => esc_html__('Enter number.', 'berich' ), ), array( 'name' => 'speed_tilt', 'label' => esc_html__('Speed Tilt', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'condition' => [ 'img_effect' => 'pxl-image-tilt', ], 'default' => '400', 'description' => esc_html__('Enter number.', 'berich' ), ), array( 'name' => 'perspective_tilt', 'label' => esc_html__('Perspective Tilt', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'condition' => [ 'img_effect' => 'pxl-image-tilt', ], 'default' => '1000', 'description' => esc_html__('Enter number.', 'berich' ), ), array( 'name' => 'speed_effect', 'label' => esc_html__('Speed', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-image-single, {{WRAPPER}} .pxl-image-single img' => 'animation-duration: {{SIZE}}ms;', ], 'condition' => [ 'img_effect!' => ['pxl-image-tilt','pxl-hover1','pxl-parallax-scroll'], ], 'description' => 'Enter number, unit is ms.', ), array( 'name' => 'img_display', 'label' => esc_html__('Hide on Screen <= 1400px', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => 'false', ), array( 'name' => 'hide_parallax_sm', 'label' => esc_html__('Disable Parallax on Mobile <= 767px', 'berich'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'default' => 'false', 'condition' => [ 'img_effect' => ['pxl-parallax-scroll'], ], ), array( 'name' => 'overlay_color', 'label' => esc_html__('Overlay Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-image-single .pxl-overlay-color' => 'background-color: {{VALUE}};', ], ), array( 'name' => 'opacity', 'label' => esc_html__('Opacity (0 - 100)', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ '%' ], 'default' => [ 'unit' => '%' ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-image-single' => 'opacity: {{SIZE}}%;', ], ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel