🐞 fix: Remove ACF color picker and add gradient background support
Sync TODOs with Issues / sync_todos (push) Successful in 5s
Sync TODOs with Issues / sync_todos (push) Successful in 5s
This commit is contained in:
+557
-538
File diff suppressed because it is too large
Load Diff
@@ -1,27 +1,35 @@
|
|||||||
{
|
{
|
||||||
"name": "acf/section",
|
"name": "acf/section",
|
||||||
"title": "Section",
|
"apiVersion": 3,
|
||||||
"description": "Content section",
|
"title": "Section",
|
||||||
"style": [
|
"description": "Content section",
|
||||||
"file:./section.css"
|
"style": [
|
||||||
],
|
"file:./section.css"
|
||||||
"category": "vdi-blocks",
|
],
|
||||||
"icon": "align-wide",
|
"category": "vdi-blocks",
|
||||||
"keywords": [
|
"icon": "align-wide",
|
||||||
"setion",
|
"keywords": [
|
||||||
"content"
|
"setion",
|
||||||
],
|
"content"
|
||||||
"acf": {
|
],
|
||||||
"mode": "preview",
|
"acf": {
|
||||||
"renderTemplate": "section.php"
|
"blockVersion": 3,
|
||||||
},
|
"mode": "preview",
|
||||||
"supports": {
|
"renderTemplate": "section.php"
|
||||||
"align": true,
|
},
|
||||||
"anchor": true,
|
"supports": {
|
||||||
"color": true,
|
"align": true,
|
||||||
"html": true,
|
"anchor": true,
|
||||||
"jsx": true,
|
"color": {
|
||||||
"mode": true,
|
"background": true,
|
||||||
"multiple": true
|
"gradients": true,
|
||||||
}
|
"__experimentalDefaultControls": {
|
||||||
|
"background": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"html": false,
|
||||||
|
"jsx": true,
|
||||||
|
"mode": true,
|
||||||
|
"multiple": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ $ovlImage = get_field( 'overlay_image' );
|
|||||||
$ovlOpacity = get_field( 'overlay_opacity' ) ? get_field( 'overlay_opacity' ) / 100 : 1;
|
$ovlOpacity = get_field( 'overlay_opacity' ) ? get_field( 'overlay_opacity' ) / 100 : 1;
|
||||||
|
|
||||||
// Set classes
|
// Set classes
|
||||||
$classes = 'section';
|
$classes = 'section relative';
|
||||||
|
|
||||||
if ( $contentWidth === 'full' ) {
|
if ( $contentWidth === 'full' ) {
|
||||||
$classes .= ' mx-break-out';
|
$classes .= ' mx-break-out';
|
||||||
|
|||||||
Reference in New Issue
Block a user