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);