Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/blocksy-companion-pro/static/js/options.js
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
import { createElement, Fragment, Component } from '@wordpress/element'
2
+
import { Fill } from '@wordpress/components'
3
+
import DisplayCondition from './options/DisplayCondition'
4
+
import CustomizerOptionsManager from './options/CustomizerOptionsManager'
5
+
6
+
import { onDocumentLoaded } from 'blocksy-options'
7
+
8
+
import ctEvents from 'ct-events'
9
+
10
+
import PanelsManager from './header/PanelsManager'
11
+
12
+
ctEvents.on('blocksy:options:before-option', (args) => {
13
+
if (!args.option) {
14
+
return
15
+
}
16
+
17
+
if (args.option.type === 'ct-header-builder') {
18
+
let prevHeaderBuilder = args.content
19
+
20
+
args.content = (
21
+
<Fragment>
22
+
{prevHeaderBuilder}
23
+
24
+
<Fill name="PlacementsBuilderPanelsManager">
25
+
<PanelsManager />
26
+
</Fill>
27
+
</Fragment>
28
+
)
29
+
}
30
+
})
31
+
32
+
ctEvents.on('blocksy:options:register', (opts) => {
33
+
opts['blocksy-display-condition'] = DisplayCondition
34
+
opts['blocksy-customizer-options-manager'] = CustomizerOptionsManager
35
+
})
36
+