PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.3
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.3
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / plugins.js

plugins.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.3, at gutenberg/plugins.js

39 lines 935 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { registerPlugin } from '@wordpress/plugins';
2
3 import * as colorPalette from './plugins/color-palette';
4 import * as customCode from './plugins/custom-code';
5 import * as customizer from './plugins/customizer';
6 import * as editorIframeResize from './plugins/editor-iframe-resize';
7 import * as ghostkit from './plugins/ghostkit';
8 import * as templates from './plugins/templates';
9 import * as typography from './plugins/typography';
10
11 const { GHOSTKIT } = window;
12
13 /**
14 * Register plugins
15 */
16 [
17 ghostkit,
18 templates,
19 typography,
20 customCode,
21 colorPalette,
22 customizer,
23 editorIframeResize,
24 ].forEach(({ name, icon, Plugin }) => {
25 if (
26 (name === 'ghostkit-color-palette' &&
27 !GHOSTKIT.allowPluginColorPalette) ||
28 (name === 'ghostkit-customizer' && !GHOSTKIT.allowPluginCustomizer) ||
29 (name === 'ghostkit-templates' && !GHOSTKIT.allowTemplates)
30 ) {
31 return;
32 }
33
34 registerPlugin(name, {
35 icon,
36 render: Plugin,
37 });
38 });
39