📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:29:06
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_video_player.php
<?php // Register Video Player Widget pxl_add_custom_widget( array( 'name' => 'pxl_video_player', 'title' => esc_html__('Case Video Button', 'berich' ), 'icon' => 'eicon-play', 'categories' => array('pxltheme-core'), 'scripts' => array( 'tilt' ), 'params' => array( 'sections' => array( array( 'name' => 'section_content', 'label' => esc_html__('Content', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'video_link', 'label' => esc_html__('Link', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => 'https://www.youtube.com/watch?v=SF4aHwxHtZ0' ), array( 'name' => 'video_icon', 'label' => esc_html__('Video Icon', 'berich' ), 'type' => \Elementor\Controls_Manager::ICONS, 'fa4compatibility' => 'icon', ), array( 'name' => 'image_type', 'label' => esc_html__('Image Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'none' => 'None', 'img' => 'Image', 'bg' => 'Background', ], 'default' => 'none', ), array( 'name' => 'image', 'label' => esc_html__('Image', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'condition' => [ 'image_type' => ['img', 'bg'], ], ), 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_border_radius', 'label' => esc_html__('Image Border Radius', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-video-player .pxl-video--imagebg, {{WRAPPER}} .pxl-video-player .pxl-video--holder img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'image_type' => ['img', 'bg'], ], ), 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-video-player .pxl-video--imagebg' => 'height: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'btn_video_style', 'label' => esc_html__('Button Video Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'style1' => 'Style White', 'style2' => 'Style Primary', ], 'default' => 'style1', ), array( 'name' => 'btn_video_position', 'label' => esc_html__('Button Video Position', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'p-center' => 'Center', 'p-top-left' => 'Top Left', 'p-top-right' => 'Top Right', 'p-bottom-left' => 'Bottom Left', 'p-bottom-right' => 'Bottom Right', ], 'default' => 'p-center', 'condition' => [ 'image_type' => ['img','bg'], ], ), array( 'name' => 'top_positioon', 'label' => esc_html__('Top Position', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'control_type' => 'responsive', 'default' => [ 'size' => 0, 'unit' => '%', ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-top-left, {{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-top-right' => 'top: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'btn_video_position' => ['p-top-left', 'p-top-right'], ], ), array( 'name' => 'right_positioon', 'label' => esc_html__('Right Position', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'control_type' => 'responsive', 'default' => [ 'size' => 0, 'unit' => '%', ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-top-right, {{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-bottom-right' => 'right: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'btn_video_position' => ['p-top-right', 'p-bottom-right'], ], ), array( 'name' => 'bottom_positioon', 'label' => esc_html__('Bottom Position', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'control_type' => 'responsive', 'default' => [ 'size' => 0, 'unit' => '%', ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-bottom-left, {{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-bottom-right' => 'bottom: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'btn_video_position' => ['p-bottom-left', 'p-bottom-right'], ], ), array( 'name' => 'left_positioon', 'label' => esc_html__('Left Position', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'control_type' => 'responsive', 'default' => [ 'size' => 0, 'unit' => '%', ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-top-left, {{WRAPPER}} .pxl-video--holder + .btn-video-wrap.p-bottom-left' => 'left: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'btn_video_position' => ['p-top-left', 'p-bottom-left'], ], ), array( 'name' => 't_width', 'label' => esc_html__('Max Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-video-player .pxl-video--inner' => 'max-width: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'overlay_color', 'label' => esc_html__('Overlay Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-video-player .pxl-overlay-color' => 'background-color: {{VALUE}};', ], ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel