PluginProbe
Content Blocks Builder – Create blocks, repeater blocks with carousel, grid, popup layouts / trunk
Content Blocks Builder – Create blocks, repeater blocks with carousel, grid, popup layouts vtrunk
2.8.14 2.8.13 2.8.12 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.10 2.8.11 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 trunk 1.0.1 1.0.2 1.1.0 1.1.1 All 147 releases
content-blocks-builder / src / custom-blocks / utils.js

utils.js in Content Blocks Builder – Create blocks, repeater blocks with carousel, grid, popup layouts trunk, at src/custom-blocks/utils.js

60 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import { __ } from "@wordpress/i18n";
5
6 /**
7 * Internal dependencies
8 */
9 import { labels, getProLabel } from "../utils/labels";
10
11 /**
12 * Define a list of boldblocks features
13 */
14 export const BoldBlocksFeatures = {
15 width: __("Responsive width", "content-blocks-builder"),
16 height: __("Responsive height", "content-blocks-builder"),
17 spacing: __("Responsive spacing", "content-blocks-builder"),
18 border: __("Responsive border", "content-blocks-builder"),
19 background: labels.bgMedia,
20 overlay: labels.bgOverlay,
21 textAlignment: __("Text alignment", "content-blocks-builder"),
22 verticalAlignment: __("Vertical alignment", "content-blocks-builder"),
23 justifyAlignment: __("Justify alignment", "content-blocks-builder"),
24 aspectRatio: labels.aspectRatio,
25 boxShadow: labels.boxShadow,
26 transform: labels.transform,
27 visibility: labels.visibility,
28 toggle: labels.toggle,
29 sticky: labels.sticky,
30 customAttributes: labels.attributes,
31 animation: getProLabel(labels.animation),
32 customCSS: getProLabel(labels.customCSS),
33 };
34
35 /**
36 * Features that are only available for parent blocks
37 */
38 export const ParentBlockFeatures = {
39 steps: getProLabel(__("Steps style", "content-blocks-builder")),
40 };
41
42 /**
43 * Features for premium customers only
44 */
45 export const PremiumFeatures = ["animation", "steps", "customCSS"];
46
47 /**
48 * Features available only in accrodion
49 */
50 export const AccordionFeatures = [
51 "background",
52 "overlay",
53 "border",
54 "boxShadow",
55 "transform",
56 "visibility",
57 "customAttributes",
58 "customCSS",
59 ];
60