📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:29:15
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_icon_box.php
<?php // Register Icon Box Widget pxl_add_custom_widget( array( 'name' => 'pxl_icon_box', 'title' => esc_html__('Case Icon Box', 'berich' ), 'icon' => 'eicon-icon-box', 'categories' => array('pxltheme-core'), '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_icon_box/layout1.jpg' ], '2' => [ 'label' => esc_html__('Layout 2', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_icon_box/layout2.jpg' ], '3' => [ 'label' => esc_html__('Layout 3', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_icon_box/layout3.jpg' ], '4' => [ 'label' => esc_html__('Layout 4', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_icon_box/layout4.jpg' ], '5' => [ 'label' => esc_html__('Layout 5', 'berich' ), 'image' => get_template_directory_uri() . '/elements/widgets/img-layout/pxl_icon_box/layout5.jpg' ], ], ), ), ), array( 'name' => 'section_content', 'label' => esc_html__('Content', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'title', 'label' => esc_html__('Title', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, ), array( 'name' => 'desc', 'label' => esc_html__('Description', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'rows' => 10, 'show_label' => false, ), array( 'name' => 'btn_text', 'label' => esc_html__('Button Text', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, 'condition' => [ 'layout' => ['4'], ], ), array( 'name' => 'btn_link', 'label' => esc_html__('Button Link', 'berich' ), 'type' => \Elementor\Controls_Manager::URL, 'condition' => [ 'layout' => ['4'], ], ), array( 'name' => 'item_link', 'label' => esc_html__('Item Link', 'berich' ), 'type' => \Elementor\Controls_Manager::URL, 'condition' => [ 'layout' => ['2','5'], ], ), array( 'name' => 'icon_type', 'label' => esc_html__('Icon Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'icon' => 'Icon', 'image' => 'Image', ], 'default' => 'icon', ), array( 'name' => 'pxl_icon', 'label' => esc_html__('Icon', 'berich' ), 'type' => \Elementor\Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'condition' => [ 'icon_type' => 'icon', ], ), array( 'name' => 'icon_image', 'label' => esc_html__( 'Icon Image', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'condition' => [ 'icon_type' => 'image', ], ), array( 'name' => 'box_image', 'label' => esc_html__( 'Box Image', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'condition' => [ 'layout' => ['5'], ], 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-box--image' => 'background-image: url( {{URL}} );', ], ), array( 'name' => 'wg_max_width', 'label' => esc_html__('Widget Max Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-icon-box' => 'max-width: {{SIZE}}{{UNIT}};', ], ), ), ), array( 'name' => 'section_style_general', 'label' => esc_html__('General', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'style-1' => 'Style 1', 'style-2' => 'Style 2', 'style-3' => 'Style 3', ], 'default' => 'style-1', 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'box_color', 'label' => esc_html__('Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-icon-box5 .pxl-item--inner' => 'background-color: {{VALUE}};', ], 'condition' => [ 'layout' => '5', ], ), ), ), array( 'name' => 'section_style_title', 'label' => esc_html__('Title', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'title_tag', 'label' => esc_html__('HTML Tag', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6', 'div' => 'div', 'span' => 'span', 'p' => 'p', ], 'default' => 'h5', ), array( 'name' => 'title_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .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-icon-box .pxl-item--title', ), array( 'name' => 'title_top_spacer', 'label' => esc_html__('Top Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--title' => 'margin-top: {{SIZE}}{{UNIT}} !important;', ], ), array( 'name' => 'title_bottom_spacer', 'label' => esc_html__('Bottom Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--title' => 'margin-bottom: {{SIZE}}{{UNIT}} !important;', ], ), ), ), 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-icon-box .pxl-item--description' => 'color: {{VALUE}};', ], ), array( 'name' => 'desc_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-icon-box .pxl-item--description', ), ), ), array( 'name' => 'section_style_icon', 'label' => esc_html__('Icon', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'icon_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--icon i' => 'color: {{VALUE}};text-fill-color: {{VALUE}};-webkit-text-fill-color: {{VALUE}};background-image: none;', ], 'condition' => [ 'icon_type' => 'icon', ], ), array( 'name' => 'icon_font_size', 'label' => esc_html__('Size', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--icon i' => 'font-size: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .pxl-icon-box .pxl-item--icon svg' => 'height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'icon_type' => 'icon', ], ), array( 'name' => 'icon_box_color', 'label' => esc_html__('Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--icon' => 'background-color: {{VALUE}};', ], 'condition' => [ 'layout' => '1', ], ), array( 'name' => 'icon_box_min_width', 'label' => esc_html__('Box Min Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--icon' => 'min-width: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'icon_img_max_height', 'label' => esc_html__('Image Max Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-icon-box .pxl-item--icon img' => 'max-height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'icon_type' => 'image', ], ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel