📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:26:48
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
widgets
✏️
Editing: pxl_menu.php
<?php $menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) ); $pxl_menus = array( '' => esc_html__('Default', 'berich') ); if ( is_array( $menus ) && ! empty( $menus ) ) { foreach ( $menus as $value ) { if ( is_object( $value ) && isset( $value->name, $value->slug ) ) { $pxl_menus[ $value->slug ] = $value->name; } } } else { $pxl_menus = ''; } pxl_add_custom_widget( array( 'name' => 'pxl_menu', 'title' => esc_html__('Case Nav Menu', 'berich'), 'icon' => 'eicon-nav-menu', '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' => 'menu', 'label' => esc_html__('Select Menu', 'berich'), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => $pxl_menus, ), array( 'name' => 'menu_type', 'label' => esc_html__('Menu Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'horizontal' => 'Horizontal', 'vertical' => 'Vertical', ], 'default' => 'horizontal', ), array( 'name' => 'align', 'label' => esc_html__('Alignment', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, '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-nav-menu .pxl-menu-primary' => 'text-align: {{VALUE}};', '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li' => 'float: none;', ], 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'menu_vertical_style', 'label' => esc_html__('Menu Vertical Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'vertical-style-default' => 'Default', 'vertical-style-button' => 'Button', ], 'default' => 'vertical-style-default', 'condition' => [ 'menu_type' => 'vertical', ], ), array( 'name' => 'text_align', 'label' => esc_html__('Text Alignment', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, '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-nav-menu.pxl-nav-vertical' => 'text-align: {{VALUE}};', ], 'condition' => [ 'menu_type' => 'vertical', ], ), array( 'name' => 'max_height', 'label' => esc_html__('Max Height', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px','%', 'vh' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu.pxl-nav-vertical' => 'max-height: {{SIZE}}{{UNIT}};overflow-y: auto; scrollbar-width: none;', ], 'condition' => [ 'menu_type' => 'vertical', ], ), ), ), array( 'name' => 'section_style_first_level', 'label' => esc_html__('First Level', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'hover_active_style', 'label' => esc_html__('Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'fr-style-default' => 'Default', 'fr-style-divider' => 'Divider 1', 'fr-style-divider2' => 'Divider 2', 'fr-style-arrow' => 'Arrow', 'fr-style-box' => 'Box Primary', 'fr-style-gradient' => 'Box Gradient', ], 'default' => 'fr-style-default', 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li > a' => 'color: {{VALUE}};', ], ), array( 'name' => 'color_hover', 'label' => esc_html__('Color Hover', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li > a:hover' => 'color: {{VALUE}};', ], ), array( 'name' => 'color_active', 'label' => esc_html__('Color Active', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li.current-menu-parent > a:not(.is-one-page), {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li.current_page_item > a:not(.is-one-page), {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li > a.pxl-onepage-active' => 'color: {{VALUE}};', ], ), array( 'name' => 'arrow_color', 'label' => esc_html__('Arrow Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li > a .caseicon-angle-arrow-down' => 'color: {{VALUE}};', ], 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li > a', ), array( 'name' => 'arrow_children_font_size', 'label' => esc_html__('Arrow Has Children - Font Size', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li.menu-item-has-children > a .caseicon-angle-arrow-down' => 'font-size: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'item_space', 'label' => esc_html__('Item Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%', 'rem' ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'condition' => [ 'menu_type' => 'horizontal', ], 'control_type' => 'responsive', ), array( 'name' => 'item_space_vertical', 'label' => esc_html__('Item Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary > li + li' => 'margin-top: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'menu_type' => 'vertical', ], ), array( 'name' => 'flex_grow', 'label' => esc_html__('Flex Grow', 'berich' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'inherit' => [ 'title' => esc_html__( 'Inherit', 'berich' ), 'icon' => 'fas fa-arrows-alt-v', ], '1' => [ 'title' => esc_html__( 'Full', 'berich' ), 'icon' => 'fas fa-arrows-alt-h', ], ], 'selectors' => [ '{{WRAPPER}}' => 'flex-grow: {{VALUE}};', ], 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'menu_mega_type', 'label' => esc_html__('Menu Mega Type', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'pxl-mega-full-width' => 'Full Width', 'pxl-mega-boxed' => 'Boxed', ], 'default' => 'pxl-mega-full-width', ), array( 'name' => 'menu_mega_box_width', 'label' => esc_html__('Menu Mega Box Width', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 4000, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu.pxl-mega-boxed .pxl-megamenu > .sub-menu' => 'max-width: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'menu_mega_type' => 'pxl-mega-boxed', ], ), array( 'name' => 'show_arrow_parent', 'label' => esc_html__('Arrow Parent', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'none' => 'None', 'plus' => 'Plus', 'arrow' => 'Arrow', ], 'default' => 'none', ), ), ), array( 'name' => 'section_style_sub_level', 'label' => esc_html__('Sub Level', 'berich'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'controls' => array( array( 'name' => 'sub_color', 'label' => esc_html__('Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu li.pxl-megamenu, {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu li > a' => 'color: {{VALUE}};', ], ), array( 'name' => 'sub_color_hover', 'label' => esc_html__('Color Hover/Actvie', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu li:hover > a, {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu li.current_page_item > a, {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu li.current-menu-item > a, {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu li.current_page_ancestor > a, {{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu li.current-menu-ancestor > a' => 'color: {{VALUE}};', '{{WRAPPER}} .pxl-nav-menu.sub-style-default .sub-menu > li .pxl-menu-item-text::before' => 'background-color: {{VALUE}};', ], ), array( 'name' => 'sub_bg_color', 'label' => esc_html__('Box Background Color', 'berich' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .pxl-menu-primary .sub-menu, {{WRAPPER}} .pxl-menu-primary .children' => 'background-color: {{VALUE}};', ], 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'sub_typography', 'label' => esc_html__('Typography', 'berich' ), 'type' => \Elementor\Group_Control_Typography::get_type(), 'control_type' => 'group', 'selector' => '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary li .sub-menu a, {{WRAPPER}} .pxl-heading .pxl-item--title', ), array( 'name' => 'sub_item_space', 'label' => esc_html__('Item Spacer', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-menu-primary .sub-menu li + li' => 'margin-top: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'hover_active_style_sub', 'label' => esc_html__('Hover/Active Style', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'sub-style-default' => 'Default', ], 'default' => 'sub-style-default', 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'sub_show_effect', 'label' => esc_html__('Show Effect', 'berich' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'show-effect-fade' => 'Fade', 'show-effect-slideup' => 'Slide Up', 'show-effect-dropdown' => 'Dropdown', 'show-effect-slidedown' => 'Slide Down 3D', ], 'default' => 'show-effect-slideup', 'condition' => [ 'menu_type' => 'horizontal', ], ), array( 'name' => 'sub_hover_space_top', 'label' => esc_html__('Box Spacer Top', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary .sub-menu' => 'margin-top: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'sub_hover_space_top_mega', 'label' => esc_html__('Box Spacer Top - Mega', 'berich' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .pxl-menu-primary .sub-menu.pxl-mega-menu' => 'margin-top: {{SIZE}}{{UNIT}};', ], ), array( 'name' => 'box_sub_border_radius', 'label' => esc_html__('Border Radius', 'berich' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px' ], 'selectors' => [ '{{WRAPPER}} .pxl-nav-menu .sub-menu' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ), ), ), berich_widget_animation_settings(), ), ), ), berich_get_class_widget_path() );
💾 Save Changes
❌ Cancel