Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/plugins/themify-updater/js/themify-upgrader.js
Ðазад
; (function ($, window, document, undefined) { 'use strict'; var _updater_el; function showAlert() { $(".themify_updater_alert").addClass("busy").fadeIn(800); } function hideAlert(status) { if (status == 'error') { status = 'error'; } else { status = 'done'; } $(".themify_updater_alert").removeClass("busy").addClass(status).delay(800).fadeOut(800, function () { $(this).removeClass(status); }); } function showErrors(verbose) { $(".themify_updater_promt_overlay, .themify-updater-promt-box").delay(900).fadeIn(500); $('.themify-updater-promt-box .show-error').show(); $('.themify-updater-promt-box .show-error p').remove(); $('.themify-updater-promt-box .error-msg').after('<p class="prompt-error">' + verbose + '</p>'); $('.themify-updater-promt-box .show-login').hide(); } $('#themify-updater-search .clear-search').on( 'click', function () { var $input = $(this).prev(); $input.val(''); $(document).trigger('themify_update_promo'); }); $('#themify-updater-search .promo-search').on('input',function (e) { var $this = $(this), searchText = $this.val().toLowerCase(), $clear = $this.siblings('.clear-search'); if (searchText != '' && $('.theme-list li').length > 0) { $('.theme-list li').filter(function() { var $th = $(this); if ( $th.is(":visible") == true && $th.find('.theme-title h3').text().toLowerCase().indexOf(searchText) > -1) { $th.show(); } else { $th.hide(); $th.parent().append($th); } }); } if (searchText == '') { $clear.click().hide(); } else { $clear.show(); } }); $('.upgrade-theme-button').on('click', function (e) { e.preventDefault(); e.stopPropagation(); var data = JSON.parse(atob( $(e.target).data('install') )), version = $('#themeversiontoreinstall').val(); var $url = data.url + '?'; delete data.url; for ( var i in data) { $url += i + '=' + data[i] + '&'; } $url += 'themify-theme=1&version='+version; window.location = $url; }); $(function () { // // Upgrade Theme and Plugins // $('#wpbody').on('click', 'a.themify-updater', function(e){ e.preventDefault(); if ( $(this).hasClass('themify-updater-stop') ) { $(this).closest('.notifications').after('<div id="themifyUpdateRrror" class="notice notice-error is-dismissible">'+ themify_upgrader_license.error_message +'</div>'); return; } if (!confirm(themify_upgrader.check_backup)) return; var $this = $(this), $parent =$this.closest('.notifications'), action = $this.data('update_type'); var data = { slug: $this.data('plugin'), action: action.substring(0, action.length - 1), _ajax_nonce: $this.data('nonce'), _fs_nonce: '', username: '', password: '', connection_type: '', public_key: '', private_key: '', }; if ( action === 'update-plugins' ) { data.plugin = $this.data('base'); } $.ajax({ url:ajaxurl, type:'POST', data:data, beforeSend: function(){ showAlert(); }, success: function(response) { response = typeof response === 'string' ? JSON.parse(response) : response; if (response.success) { hideAlert(); setTimeout( function(){ location.reload(); },1500); } else { hideAlert('error'); if ( $parent.siblings("#themifyUpdateRrror").length > 0) { $parent.siblings("#themifyUpdateRrror").remove(); } $parent.after('<div id="themifyUpdateRrror" class="notice notice-error is-dismissible">'+ response.data.errorMessage +'</div>'); } }, error: function() { hideAlert('error'); } }); }); $('.themify_updater_changelogs').on('click', function (e) { e.preventDefault(); var $self = $(this), url = $self.data('changelog'); $('.themify-updater-promt-box .show-error').hide(); $('.themify_updater_alert').addClass('busy').fadeIn(300); $('.themify_updater_promt_overlay,.themify-updater-promt-box').fadeIn(300); var $iframe = $('<iframe src="' + url + '" />'); $iframe.on('load', function () { $('.themify_updater_alert').removeClass('busy').fadeOut(300); }).prependTo('.themify-updater-promt-box'); $('.themify-updater-promt-box').addClass('show-changelog'); $('.themify_updater_promt_overlay').one('click', function (e) { $(this).fadeOut(300); $('.themify-updater-promt-box').fadeOut(300).find('iframe').remove(); }); }); }); $('.notifications .notification-group span:first-child').on('click', function (e) { e.preventDefault(); $(this).siblings().fadeToggle(); }).siblings().fadeToggle(); }(jQuery, window, document));
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка