[ Avaa Bypassed ]




Upload:

Command:

www-data@52.14.93.216: ~ $
jQuery(document).ready(function($) {
    'use strict';
    var this_obj = vw_charity_ngo_plugin_activate_plugin;

    $('#gutenberg_editor .plugin-activation-redirect a').addClass('ive-redirect-to-dashboard');
    $('#product_addons_editor .plugin-activation-redirect a').addClass('ive-redirect-to-dashboard');

    $(document).on('click', '.vw-charity-ngo-plugin-install', function(event) {

        event.preventDefault();
        var button = $(this);
        var slug = button.data('slug');
        button.text(this_obj.installing + '...').addClass('updating-message');
        wp.updates.installPlugin({
            slug: slug,
            success: function(data) {
                button.attr('href', data.activateUrl);
                button.text(this_obj.activating + '...');
                button.removeClass('button-secondary updating-message vw-charity-ngo-plugin-install');
                button.addClass('button-primary vw-charity-ngo-plugin-activate');
                button.trigger('click');
            },
            error: function(data) {
                jQuery('.vw-charity-ngo-recommended-plugins .vw-charity-ngo-activation-note').css('display','block');
                //console.log('error', data);
                button.removeClass('updating-message');
                button.text(this_obj.error);
            },
        });
    });

    $(document).on('click', '.vw-charity-ngo-plugin-activate', function(event) {
        var redirect_class = jQuery(this).attr('class');
        var data_plugin = jQuery(this).attr('data-slug');

        let redirect_url = '#';
        if ( data_plugin == 'ibtana-visual-editor' ) {
          redirect_url = this_obj.ibtana_admin_url;
        } else if ( data_plugin == 'ibtana-ecommerce-product-addons' ) {
          redirect_url = this_obj.addon_admin_url;
        }

        event.preventDefault();
        var button = $(this);
        var url = button.attr('href');
        if (typeof url !== 'undefined') {
            // Request plugin activation.
            jQuery.ajax({
                async: true,
                type: 'GET',
                url: url,
                beforeSend: function() {
                    button.text(this_obj.activating + '...');
                    button.removeClass('button-secondary');
                    button.addClass('button-primary activate-now updating-message');
                },
                success: function(data) {
                    if(redirect_class.indexOf('ive-redirect-to-dashboard') != -1){
                        location.href = redirect_url;
                    }else{
                        location.reload();
                    }
                }
            });
        }
    });

    /* --------- Create Pattern Page -------- */
    $(document).on('click', '.vw-pattern-page-btn', function(event) {
        jQuery.post(
        this_obj.ajax_url,
        {
            action: 'create_pattern_setup_builder'

        }, function(data, status){
            window.open(data.edit_page_url,'_blank');
        }, 'json');
    });

    jQuery('#lite_theme .ibtana-skip-btn').click(function(){
        var light_theme = jQuery(this).attr('get-start-tab-id');
        jQuery('.' + light_theme).css('display','block');
        jQuery('#lite_theme .vw-charity-ngo-recommended-plugins').css('display','none');
    });

    jQuery('#block_pattern .ibtana-skip-btn').click(function(){
        var light_theme = jQuery(this).attr('get-start-tab-id');
        jQuery('.' + light_theme).css('display','block');
        jQuery('#block_pattern .vw-charity-ngo-recommended-plugins').css('display','none');
    });

    jQuery('.ibtana-dashboard-page-btn').click(function(){
        location.href = this_obj.ibtana_admin_url;
    });
});

Filemanager

Name Type Size Permission Actions
bootstrap.js File 144.78 KB 0777
custom.js File 2.88 KB 0777
customize-controls.js File 1.08 KB 0777
customizer-controls.js File 6.41 KB 0777
customizer-scripts.js File 782 B 0777
jquery.superfish.js File 7.25 KB 0777
plugin-activation.js File 3.67 KB 0777
wow.js File 15.23 KB 0777