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