Закрыть
      
        
        
' );
                                                $( this ).find( 'li.menu-item-has-children > a .open-this' ).css( {
                                                                'line-height' : linkHeight +'px',
                                                        } );
                                                        // Target
                                                        if ( $( this ).parent().hasClass( 'click-link' ) ) {
                                                                target = $( this ).find( 'li.menu-item-has-children > a' );
                                                        } else {
                                                                target = $( this ).find( '.open-this' );
                                                        }
                                                target.on( 'click', function() {
                                                                // Target
                                                                if ( $( this ).closest( '.ocean_custom_menu-2.oceanwp-custom-menu.dropdown-click' ).hasClass( 'click-link' ) ) {
                                                                        var parent              = $( this ).parent(),
                                                                                IconDown        = $( this ).find( '.open-this' ).parent().parent(),
                                                                                IconUp          = $( this ).find( '.open-this' ).parent().parent();
                                                                } else {
                                                                        var parent              = $( this ).parent().parent(),
                                                                                IconDown        = $( this ).parent().parent(),
                                                                                IconUp          = $( this ).parent().parent();
                                                                }
                                                    if ( parent.hasClass( 'opened' ) ) {
                                                        IconDown.removeClass( 'opened' ).find( '> ul' ).slideUp( 200 );
                                                    } else {
                                                        IconUp.addClass( 'opened' ).find( '> ul' ).slideDown( 200 );
                                                    }
                                                                // Return false
                                                                return false;
                                                } );
                                            } );
                                        } )( jQuery );