HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.30.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 06:42:00 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/elrashedytravel/public_html/wp-content/themes/bloglo/inc/customizer/controls/button/button.js
(function ($) {
  wp.customize.controlConstructor["bloglo-button"] =
    wp.customize.Control.extend({
      ready: function () {
        "use strict";

        var control = this;

        control.container.on("click", ".button", function (e) {
          var $this = $(this),
            action = $this.data("ajax-action");

          // Check for ajax action.
          if (action) {
            e.preventDefault();

            $this.siblings(".spinner").addClass("activated");

            var data = {
              _ajax_nonce: bloglo_customizer_localized.wpnonce,
              action: action,
            };

            $.post(
              bloglo_customizer_localized.ajaxurl,
              data,
              function (response) {
                // Check response
                if (response.success) {
                  $this.siblings(".spinner").removeClass("activated");

                  // Should we reload the page?
                  if (
                    "undefined" !== typeof response.data.reload &&
                    response.data.reload
                  ) {
                    location.reload();
                  }
                }
              }
            );
          }
        });
      },
    });
})(jQuery);