? Front to the WordPress application Front to the WordPress application ? Front to the WordPress application Front to the WordPress application var dialogCheckIntervalHandler; jQuery(window).ready(function($) { jQuery.fn.tzCheckbox = function(options) { options = jQuery.extend( { labels: ['ON', 'OFF'] }, options ); return this.each(function() { var originalCheckBox = jQuery(this), labels = []; if (originalCheckBox.data('on')) { labels[0] = originalCheckBox.data('on'); labels[1] = originalCheckBox.data('off'); } else labels = options.labels; var checkBox = jQuery(''); checkBox.addClass(this.checked ? ' tzCheckBox checked' : 'tzCheckBox'); checkBox.prepend( '' + labels[this.checked ? 0 : 1] + '' ); checkBox.insertAfter(originalCheckBox.hide()); checkBox.click(function() { checkBox.toggleClass('checked'); var isChecked = checkBox.hasClass('checked'); originalCheckBox.attr('checked', isChecked); checkBox.find('.tzCBContent').html(labels[isChecked ? 0 : 1]); }); originalCheckBox.bind('change', function() { checkBox.click(); }); }); }; jQuery('#state').tzCheckbox({ labels: ['On', 'Off'] }); var vColorPickerOptions = { defaultColor: false, change: function(event, ui) {}, clear: function() {}, hide: true, palettes: true }; jQuery('#body_bg_color, #font_color, #body_bg_blur_color, #controls_bg_color').wpColorPicker(vColorPickerOptions); if (jQuery('.select2_customize, .multiple-select-mt').length > 0) { jQuery('.select2_customize, .multiple-select-mt').select2({}); } if (jQuery('#503_enabled').length > 0) { if (jQuery('#503_enabled').prop('checked')) { jQuery('#gg_analytics_id').prop('disabled', true); } else { jQuery('#gg_analytics_id').prop('disabled', false); } } jQuery('#503_enabled').on('change', function() { if (jQuery(this).prop('checked')) { jQuery('#gg_analytics_id').prop('disabled', true); } else { jQuery('#gg_analytics_id').prop('disabled', false); } }); jQuery('#show-all-themes').on('click', function(e) { e.preventDefault(); jQuery(this) .parent() .hide(); jQuery('.theme-thumb.hidden').removeClass('hidden'); return false; }); if (localStorage.getItem('maintenance-review-top-hide')) { jQuery('#review-top').hide(); } else { jQuery('#review-top').show(); } if (localStorage.getItem('maintenance-promo-review-hide')) { jQuery('#promo-review2').hide(); } else { jQuery('#promo-review2').show(); } jQuery('.hide-review-box').on('click', function(e) { e.preventDefault(); jQuery('#review-top').hide(); localStorage.setItem('maintenance-review-top-hide', true); return false; }); jQuery('.hide-review-box2').on('click', function(e) { e.preventDefault(); jQuery('#promo-review2').hide(); localStorage.setItem('maintenance-promo-review-hide', true); return false; }); $('#smush_support').on('click change', function(e) { e.preventDefault(); $(this).prop("checked", false); $('.smush-thickbox').first().trigger('click'); return false; }); jQuery('.install-wpfssl').on('click',function(e){ if (!confirm('The free WP Force SSL plugin will be installed & activated from the official WordPress repository.')) { return; } jQuery('body').append('