kollapsminoriteten/wp-content/themes/blocksy/inc/panel-builder/footer/top-row/sync.js

17 lines
411 B
JavaScript

import { handleRowVariables, handleRowOptions } from '../middle-row/sync'
import ctEvents from 'ct-events'
ctEvents.on(
'ct:footer:sync:collect-variable-descriptors',
(variableDescriptors) => {
variableDescriptors['top-row'] = handleRowVariables
}
)
ctEvents.on('ct:footer:sync:item:top-row', (changeDescriptor) =>
handleRowOptions({
selector: '.ct-footer [data-row="top"]',
changeDescriptor,
})
)