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/www/wp-content/themes/bloglo/inc/customizer/controls/sortable/sortable.js
(function ($) {
  "use strict";

  wp.customize.controlConstructor["bloglo-sortable"] =
    wp.customize.Control.extend({
      ready: function () {
        "use strict";

        var control = this;

        // Setup sortable.
        if (control.params.sortable) {
          control.container.find("ul").sortable({
            items: "> .bloglo-sortable-item",
            intersect: "pointer",
            axis: "y",
            update: function () {
              control.update();
            },
          });
        }

        // Set visibility.
        control.container.on("click", ".dashicons-visibility", function () {
          $(this).closest(".bloglo-sortable-item").toggleClass("invisible");
          control.update();
        });
      },

      update: function () {
        var items = this.container.find(".bloglo-sortable-item"),
          new_val = {},
          $item;

        if (!_.isEmpty(items)) {
          _.each(items, function (item) {
            $item = $(item);
            new_val[$item.data("value")] = !$item.hasClass("invisible");
          });
        }

        this.setting.set({});
        this.setting.set(new_val);
      },
    });
})(jQuery);