HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/themes/openmind/assets/js/custom-controls.js
(function(api) {

  api.sectionConstructor['openmind-upsell'] = api.Section.extend({
      attachEvents: function() {},
      isContextuallyActive: function() {
          return true;
      }
  });

  const openmind_section_lists = ['Main', 'Clients', 'Logo'];
  openmind_section_lists.forEach(openmind_homepage_scroll);

  function openmind_homepage_scroll(item) {
      item = item.replace(/-/g, '_');
      wp.customize.section('openmind_' + item + '_section', function(section) {
          section.expanded.bind(function(isExpanding) {
              wp.customize.previewer.send(item, { expanded: isExpanding });
          });
      });
  }
})(wp.customize);