📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:28:31
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_link.php
<?php pxl_add_custom_widget( array( 'name' => 'pxl_link', 'title' => esc_html__('Case Links', 'berich'), 'icon' => 'eicon-editor-link', 'categories' => array('pxltheme-core'), 'params' => array( 'sections' => array( array( 'name' => 'section_content', 'label' => esc_html__('Content', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'controls' => array( array( 'name' => 'link', 'label' => esc_html__('Link', 'berich'), 'type' => \Elementor\Controls_Manager::REPEATER, 'controls' => array( array( 'name' => 'text', 'label' => esc_html__('Text', 'berich'), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'label_block' => true, 'description' => 'Create Highlight text with shortcode: [highlight text="Text"]', ), array( 'name' => 'link', 'label' => esc_html__('Link', 'berich'), 'type' => \Elementor\Controls_Manager::URL, 'label_block' => true, ), array( 'name' => 'pxl_icon', 'label' => esc_html__('Icon', 'berich' ), 'type' => \Elementor\Controls_Manager::ICONS, 'fa4compatibility' => 'icon', ), ), 'title_field' => '{{{ text }}}', ), array( 'name' => 'l_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-link' => 'max-width: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'wg_title', 'label' => esc_html__('Widget Title', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, ), ), ), array( 'name' => 'section_style_link', 'label' => esc_html__('Link', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'type', 'label' => esc_html__('Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'type-vertical' => 'Vertical', 'type-horizontal' => 'Horizontal', ], 'default' => 'type-vertical', ), array( 'name' => 'style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'style-default' => 'Default', 'style-hover-divider' => 'Hover Divider 1', 'style-hover-divider2' => 'Hover Divider 2', 'style-box' => 'Box', ], 'default' => 'style-default', ), array( 'name' => 'align', 'label' => esc_html__( 'Alignment', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'control_type' => 'responsive', 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'berich' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'berich' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'berich' ), 'icon' => 'eicon-text-align-right', ], 'justify' => [ 'title' => esc_html__( 'Justified', 'berich' ), 'icon' => 'eicon-text-align-justify', ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link' => 'text-align: {{VALUE}}; justify-content: {{VALUE}};', ], ), array( 'name' => 'link_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-link a:not(:hover)' => 'color: {{VALUE}};', ], ), array( 'name' => 'link_color_hover', 'label' => esc_html__('Color Hover', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-link a:hover' => 'color: {{VALUE}};', ], ), array( 'name' => 'color_divider', 'label' => esc_html__('Color Divider', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-link a:before, {{WRAPPER}} .pxl-link a:after' => 'background-color: {{VALUE}};', ], 'condition' => [ 'style' => ['style-hover-divider','style-hover-divider2'], ], ), array( 'name' => 'weight_divider', 'label' => esc_html__('Weight Divider', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 10000, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a:before, {{WRAPPER}} .pxl-link a:after' => 'height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'style' => ['style-hover-divider','style-hover-divider2'], ], ), array( 'name' => 'link_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-link a', ), array( 'name' => 'link_typography_hover', 'label' => esc_html__('Typography Hover', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-link a:hover', ), array( 'name' => 'bottom_spacer', 'label' => esc_html__('Vertical Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link.type-vertical li + li' => 'margin-top: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'type' => ['type-vertical'], ], ), array( 'name' => 'left_spacer', 'label' => esc_html__('Horizontal Spacer Left', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link.type-horizontal li' => 'margin-left: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'type' => ['type-horizontal'], ], ), array( 'name' => 'right_spacer', 'label' => esc_html__('Horizontal Spacer Right', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link.type-horizontal li' => 'margin-right: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'type' => ['type-horizontal'], ], ), array( 'name' => 'align_items', 'label' => esc_html__('Align Items', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'control_type' => 'responsive', 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Flex Start', 'berich' ), 'icon' => 'far fa-arrow-alt-to-top', ], 'Center' => [ 'title' => esc_html__( 'Center', 'berich' ), 'icon' => 'far fa-arrows-alt-v', ], 'flex-end' => [ 'title' => esc_html__( 'Flex End', 'berich' ), 'icon' => 'far fa-arrow-alt-to-bottom', ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link li a' => 'align-items: {{VALUE}};', ], ), ), ), array( 'name' => 'section_style_icon', 'label' => esc_html__('Icon', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array_merge( berich_widget_color_type([ 'prefix' => 'icon', 'selectors_class' => '.pxl-link a i', ]), array( array( 'name' => 'box_color', 'label' => esc_html__( 'Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-link a i' => 'background-color: {{VALUE}};', ], ), array( 'name' => 'icon_space_top', 'label' => esc_html__('Top Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i' => 'margin-top: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'icon_space_left', 'label' => esc_html__('Left Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i, {{WRAPPER}} .pxl-link a svg' => 'margin-left: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'icon_space_right', 'label' => esc_html__('Right Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i, {{WRAPPER}} .pxl-link a svg' => 'margin-right: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'icon_font_size', 'label' => esc_html__('Font Size', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i' => 'font-size: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .pxl-link a svg' => 'height: {{SIZE}}{{UNIT}};min-width: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'icon_width', 'label' => esc_html__('Box Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i' => 'min-width: {{SIZE}}{{UNIT}};width: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'icon_box_width', 'label' => esc_html__('Box Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i' => 'height: {{SIZE}}{{UNIT}};justify-content: center; align-items: center;', ], ), array( 'name' => 'icon_border_radius', 'label' => esc_html__('Box Border Radius', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-link a i' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ), ) ), ), array( 'name' => 'section_style_highlight', 'label' => esc_html__('Highlight', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array_merge( array( array( 'name' => 'highlight_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-link .pxl-title--highlight' => 'color: {{VALUE}};', ], ), array( 'name' => 'highlight_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-link .pxl-title--highlight', ), ) ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel