Plugin Directory

Changeset 2710516


Ignore:
Timestamp:
04/16/2022 11:58:14 AM (4 years ago)
Author:
unikforce
Message:

2nd level done

Location:
multi-level-pop-menu-addons/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • multi-level-pop-menu-addons/trunk/includes/assets/js/zx-multi-level-pop-menu.js

    r2710495 r2710516  
    1818                var text = $(this).text();
    1919                var text_id = text.toLowerCase();
    20                 var sub_menu = $(this).closest('ul').html();
    21                 text_id = $.trim(text_id);
     20                var sub_menu = $(this).next('ul.sub-menu').html();
     21                text_id = text_id.replace(" ", "");
    2222                $(this).attr('href', '#');
    2323                $(this).attr('data-submenu', text_id);
    24                 $(this).after('<div id="'+text_id+'" class="submenu">\n' +
    25                     '                    <div class="submenu-header">\n' +
    26                     '                        <a href="#" data-submenu-close="'+text_id+'">'+text+'</a>\n' +
    27                     '                    </div>\n' +
     24                $(this).after('<div id="'+text_id+'" class="submenu">' +
     25                    '                    <div class="submenu-header">' +
     26                    '                        <a href="#" data-submenu-close="'+text_id+'">'+text+'</a>' +
     27                    '                    </div>' +
    2828                    '                    <label>'+text+'</label>'+
    29                     '<ul>'+ sub_menu + '</ul></div>');
     29                    '<ul>'+ sub_menu + '</ul>' +
     30                    '</div>');
    3031            });
    3132
    3233            var zeynep = $('.zeynep').zeynep({
    3334                opened: function () {
    34                     console.log('the side menu is opened')
     35                    //console.log('the side menu is opened')
    3536                }
    3637            });
     
    3839            // dynamically bind 'closing' event
    3940            zeynep.on('closing', function () {
    40                 console.log('this event is dynamically binded')
     41                //console.log('this event is dynamically binded')
    4142            });
    4243
  • multi-level-pop-menu-addons/trunk/includes/widgets/pop-menu/index.php

    r2710495 r2710516  
    108108            ]
    109109        );
     110        $this->add_group_control(
     111            \Elementor\Group_Control_Typography::get_type(),
     112            [
     113                'name' => 'nav_fontsaaa',
     114                'label' => __('Button Typography', 'multi-level-pop-menu'),
     115                'selector' => '{{WRAPPER}} button.btn-open.first',
     116            ]
     117        );
    110118        $this->add_control(
    111119            'btn_color',
     
    117125                    '{{WRAPPER}} button.btn-open.first svg' => 'fill: {{VALUE}}',
    118126                ],
     127            ]
     128        );
     129        $this->add_group_control(
     130            \Elementor\Group_Control_Border::get_type(),
     131            [
     132                'name' => 'nav_fontsaaaas',
     133                'label' => __('Button Border', 'multi-level-pop-menu'),
     134                'selector' => '{{WRAPPER}} button.btn-open.first',
     135            ]
     136        );
     137        $this->add_responsive_control(
     138            'sdpdaaaabb',
     139            [
     140                'label' => esc_html__('Button Border', 'thepack'),
     141                'type' => Controls_Manager::DIMENSIONS,
     142                'size_units' => ['px', 'em'],
     143                'selectors' => [
     144                    '{{WRAPPER}} button.btn-open.first' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     145                ]
    119146            ]
    120147        );
     
    185212            Group_Control_Background::get_type(),
    186213            [
    187                 'name' => 'dropbgaa',
     214                'name' => 'dropbgaakk',
    188215                'label' => __('Main BG', 'multi-level-pop-menu'),
    189216                'types' => ['classic', 'gradient'],
Note: See TracChangeset for help on using the changeset viewer.