📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:27:00
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_heading.php
<?php // 'pxl-splitting', // 'pxl-typography-animation', pxl_add_custom_widget( array( 'name' => 'pxl_heading', 'title' => esc_html__('Case Heading', 'berich' ), 'icon' => 'eicon-heading', 'categories' => array('pxltheme-core'), 'scripts' => array( 'gsap', 'pxl-scroll-trigger', 'pxl-splitText', ), 'params' => array( 'sections' => array( array( 'name' => 'section_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' => [ 'text' => 'Text', 'title' => 'Page Title', ], 'default' => 'text', ), array( 'name' => 'title', 'label' => esc_html__('Title', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'label_block' => true, 'condition' => [ 'source_type' => ['text'], ], 'description' => 'Create Typewriter text width shortcode: [typewriter text="Text1, Text2"], Highlight text with shortcode: [highlight text="Text"] and Highlight image with shortcode: [highlight_image id_image="123"]', ), array( 'name' => 'sub_title', 'label' => esc_html__('Sub Title', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, ), 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-heading' => 'text-align: {{VALUE}};', ], ), array( 'name' => 'h_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-heading .pxl-heading--inner' => 'max-width: {{SIZE}}{{UNIT}};', ], ), ), ), 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' => 'h3', ), array( 'name' => 'title_color', 'label' => esc_html__('Title Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-item--title' => 'color: {{VALUE}};-webkit-text-stroke-color:{{VALUE}};', '{{WRAPPER}} .pxl-heading .pxl-item--title.style-outline .pxl-text-line-backdrop svg' => 'stroke:{{VALUE}};', ], ), array( 'name' => 'title_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-heading .pxl-item--title', ), array( 'name' => 'title_box_shadow', 'label' => esc_html__( 'Title Shadow', 'berich' ), 'type' => \Elementor\Group_Control_Text_Shadow::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-heading .pxl-item--title' ), array( 'name' => 'title_space_bottom', 'label' => esc_html__('Bottom Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'default' => [ 'size' => 0, ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-item--title' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], 'separator' => 'after', ), array( 'name' => 'h_title_style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'style-default' => 'Default', 'style-outline' => 'Outline', 'style-shape' => 'Shape 1', 'style-shape2' => 'Shape 2', ], 'default' => 'style-default', ), array( 'name' => 'color_shape1', 'label' => esc_html__('Color Shape 1', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-item--title.style-shape .pxl-heading--shape::before, {{WRAPPER}} .pxl-heading .pxl-item--title.style-shape2 .pxl-heading--shape2:before' => 'background-color: {{VALUE}};', ], 'condition' => [ 'h_title_style' => ['style-shape','style-shape2'], ], ), array( 'name' => 'color_shape2', 'label' => esc_html__('Color Shape 2', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-item--title.style-shape .pxl-heading--shape::after, {{WRAPPER}} .pxl-heading .pxl-item--title.style-shape2 .pxl-heading--shape2:after' => 'background-color: {{VALUE}};', ], 'condition' => [ 'h_title_style' => ['style-shape','style-shape2'], ], ), array( 'name' => 'shape_space_top', 'label' => esc_html__('Shape Top Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-item--title.style-shape .pxl-heading--shape, {{WRAPPER}} .pxl-heading .pxl-item--title.style-shape2 .pxl-heading--shape2' => 'margin-top: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'h_title_style' => ['style-shape','style-shape2'], ], ), array( 'name' => 'align_items', 'label' => esc_html__('Shape 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-heading .pxl-item--title.style-shape, {{WRAPPER}} .pxl-heading .pxl-item--title.style-shape2' => 'align-items: {{VALUE}};', ], 'condition' => [ 'h_title_style' => ['style-shape','style-shape2'], ], ), array( 'name' => 'pxl_animate', 'label' => esc_html__('Case Animate', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => berich_widget_animate_v2(), 'default' => '', ), array( 'name' => 'pxl_animate_delay', 'label' => esc_html__('Animate Delay', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => '0', 'description' => 'Enter number. Default 0ms', ), ), ), array( 'name' => 'section_style_title_sub', 'label' => esc_html__('Sub Title', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array_merge( array( array( 'name' => 'sub_title_style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'px-sub-title-default' => 'Default', 'px-sub-title-primary' => 'Primary', 'px-subtitle-box-primary' => 'Box Primary', 'px-subtitle-box-gray' => 'Box Gray', 'px-text-gradient' => 'Text Gradient', ], 'default' => 'px-sub-title-default', ), array( 'name' => 'box_border_radius', 'label' => esc_html__('Border Radius', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .px-subtitle-box-primary .pxl-item--subtext' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'sub_title_style' => ['px-subtitle-box-primary'], ], ), array( 'name' => 'box_padding', 'label' => esc_html__('Padding', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .px-subtitle-box-primary .pxl-item--subtext' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'control_type' => 'responsive', 'condition' => [ 'sub_title_style' => ['px-subtitle-box-primary'], ], ), array( 'name' => 'sub_title_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-item--subtitle' => 'color: {{VALUE}};', ], ), array( 'name' => 'sub_title_box_color', 'label' => esc_html__('Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .px-subtitle-box-primary .pxl-item--subtext' => 'background-color: {{VALUE}};', ], 'condition' => [ 'sub_title_style' => ['px-subtitle-box-primary'], ], ), array( 'name' => 'sub_title_box_color_gray', 'label' => esc_html__('Box Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .px-subtitle-box-gray' => '--box-color-to: {{VALUE}} !important;', ], 'condition' => [ 'sub_title_style' => ['px-subtitle-box-gray'], ], ), array( 'name' => 'sub_title_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-heading .pxl-item--subtitle, {{WRAPPER}} .pxl-heading .pxl-item--subtitle span', ), array( 'name' => 'sub_title_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-heading .pxl-item--subtitle' => 'top: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'sub_title_space_bottom', '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-heading .pxl-item--subtitle' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'pxl_animate_sub', 'label' => esc_html__('Case Animate', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => berich_widget_animate(), 'default' => '', ), array( 'name' => 'pxl_animate_delay_sub', 'label' => esc_html__('Animate Delay', 'berich' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => '0', 'description' => 'Enter number. Default 0ms', ), ) ), ), array( 'name' => 'section_style_highlight', 'label' => esc_html__('Highlight Text', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array_merge( array( array( 'name' => 'highlight_style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'highlight-default' => 'Default', 'highlight-text-gradient' => 'Text Gradient', ], 'default' => 'highlight-default', ), array( 'name' => 'highlight_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => 'color: {{VALUE}};', ], 'condition' => [ 'highlight_style' => ['highlight-default'], ], ), array( 'name' => 'highlight_color_from', 'label' => esc_html__('Color From', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => '--gradient-color-from: {{VALUE}};', ], 'condition' => [ 'highlight_style' => ['highlight-text-gradient'], ], ), array( 'name' => 'highlight_color_to', 'label' => esc_html__('Color To', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => '--gradient-color-to: {{VALUE}};', ], 'condition' => [ 'highlight_style' => ['highlight-text-gradient'], ], ), array( 'name' => 'highlight_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-heading .pxl-title--highlight', ), array( 'name' => 'highlight_text_image', 'label' => esc_html__( 'Text Image', 'berich' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => 'background-image: url( {{URL}} );', ], ), array( 'name' => 'highlight_image_position', 'label' => esc_html__( 'Text Image Position', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => array( '' => esc_html__( 'Default', 'berich' ), 'center center' => esc_html__( 'Center Center', 'berich' ), 'center left' => esc_html__( 'Center Left', 'berich' ), 'center right' => esc_html__( 'Center Right', 'berich' ), 'top center' => esc_html__( 'Top Center', 'berich' ), 'top left' => esc_html__( 'Top Left', 'berich' ), 'top right' => esc_html__( 'Top Right', 'berich' ), 'bottom center' => esc_html__( 'Bottom Center', 'berich' ), 'bottom left' => esc_html__( 'Bottom Left', 'berich' ), 'bottom right' => esc_html__( 'Bottom Right', 'berich' ), 'initial' => esc_html__( 'Custom', 'berich' ), ), 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => 'background-position: {{VALUE}};', ], 'condition' => [ 'highlight_text_image[url]!' => '' ] ), array( 'name' => 'highlight_image_size', 'label' => esc_html__( 'Text Image Size', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'hide_in_inner' => true, 'options' => array( '' => esc_html__( 'Default', 'berich' ), 'auto' => esc_html__( 'Auto', 'berich' ), 'cover' => esc_html__( 'Cover', 'berich' ), 'contain' => esc_html__( 'Contain', 'berich' ), 'initial' => esc_html__( 'Custom', 'berich' ), ), 'default' => '', 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => 'background-size: {{VALUE}};', ], 'condition' => [ 'highlight_text_image[url]!' => '' ] ), array( 'name' => 'highlight_margin', 'label' => esc_html__('Margin', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--highlight' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'control_type' => 'responsive', ), ) ), ), array( 'name' => 'section_style_highlight_img', 'label' => esc_html__('Highlight Image', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array_merge( array( array( 'name' => 'h_img_width', 'label' => esc_html__('Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-image--highlight' => 'width: {{SIZE}}{{UNIT}};', ], 'separator' => 'after', ), array( 'name' => 'h_img_height', 'label' => esc_html__('Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'control_type' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 3000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-image--highlight' => 'height: {{SIZE}}{{UNIT}};', ], 'separator' => 'after', ), ) ), ), array( 'name' => 'section_style_typewriter', 'label' => esc_html__('Typewriter', 'berich' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array_merge( array( array( 'name' => 'typewriter_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-heading .pxl-title--typewriter' => 'color: {{VALUE}};', ], ), array( 'name' => 'typewriter_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-heading .pxl-title--typewriter', ), ) ), ), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel