@total_onion/onion-library 1.0.52 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/block-block-interactions-v3/block-interactions-v3-extra.scss +6 -0
- package/components/block-block-interactions-v3/block-interactions-v3.js +46 -0
- package/components/block-block-interactions-v3/block-interactions-v3.php +14 -0
- package/components/block-block-interactions-v3/block-interactions-v3.scss +25 -0
- package/components/block-block-interactions-v3/block-interactions-v3.twig +38 -0
- package/components/block-block-interactions-v3/group_687e1575ba23d.json +394 -0
- package/components/component-block-settings/block-settings.scss +42 -0
- package/components/component-block-settings/block-settings.twig +31 -0
- package/components/component-block-settings/group_65a45ada4e128.json +700 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export default function blockinteractionsv3Js(options = {}) {
|
|
2
|
+
try {
|
|
3
|
+
const { block } = options;
|
|
4
|
+
|
|
5
|
+
const blockId = block.dataset.blockid;
|
|
6
|
+
const parentBlockId = block.dataset.parentblockid;
|
|
7
|
+
|
|
8
|
+
const blockCloseButtons = block.querySelectorAll('.block-interactions-v3__block-close-button');
|
|
9
|
+
if (!blockCloseButtons.length) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
blockCloseButtons.forEach(button => {
|
|
14
|
+
const shouldStoreCookie = button?.dataset?.storeCookie === 'true';
|
|
15
|
+
const cookieKey = `blockClosed_${parentBlockId}`;
|
|
16
|
+
const wrappingSection = document.querySelector(`[data-blockid="${parentBlockId}"]`);
|
|
17
|
+
|
|
18
|
+
if (getCookie(cookieKey) === 'true') {
|
|
19
|
+
wrappingSection.remove();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
button.addEventListener('click', () => {
|
|
24
|
+
wrappingSection.remove();
|
|
25
|
+
if (shouldStoreCookie) {
|
|
26
|
+
setCookie(cookieKey, 'true', 7);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
function setCookie(name, value, days) {
|
|
34
|
+
const expires = new Date(Date.now() + days * 864e5).toUTCString();
|
|
35
|
+
document.cookie = `${name}=${encodeURIComponent(value)}; expires=${expires}; path=/`;
|
|
36
|
+
}
|
|
37
|
+
function getCookie(name) {
|
|
38
|
+
return document.cookie.split('; ').reduce((result, cookieString) => {
|
|
39
|
+
const [key, val] = cookieString.split('=');
|
|
40
|
+
return key === name ? decodeURIComponent(val) : result;
|
|
41
|
+
}, '');
|
|
42
|
+
}
|
|
43
|
+
} catch (error) {
|
|
44
|
+
console.error('Error in blockinteractionsv3Js:', error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'block-interactions-v3',
|
|
6
|
+
'title' => __( 'Block Interactions v3', 'Global-theme Admin' ),
|
|
7
|
+
'render_callback' => 'athena_block_render_post_object',
|
|
8
|
+
'category' => 'common',
|
|
9
|
+
'icon' => get_svg_icon_content('brick.svg'),
|
|
10
|
+
'keywords' => array('content', 'text' ),
|
|
11
|
+
'mode' => 'preview',
|
|
12
|
+
'supports' => array( 'align' => false, 'anchor' => true ),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
3
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
4
|
+
@use 'Assets/scss/blocks/block-interactions-v3/block-interactions-v3-extra';
|
|
5
|
+
.block-interactions-v3 {
|
|
6
|
+
@include block-interactions-v3-extra.additionalStyles();
|
|
7
|
+
|
|
8
|
+
&__block-close-button {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
border: unset;
|
|
11
|
+
background: unset;
|
|
12
|
+
}
|
|
13
|
+
&__block-close-button-icon {
|
|
14
|
+
width: core-functions.fluidSize(20, 'mobile');
|
|
15
|
+
height: core-functions.fluidSize(20, 'mobile');
|
|
16
|
+
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
17
|
+
width: core-functions.fluidSize(30, 'portrait');
|
|
18
|
+
height: core-functions.fluidSize(30, 'portrait');
|
|
19
|
+
}
|
|
20
|
+
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
21
|
+
width: core-functions.fluidSize(40, 'desktop');
|
|
22
|
+
height: core-functions.fluidSize(40, 'desktop');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{% set blockClassName = "block-interactions-v3" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
|
|
6
|
+
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
|
+
{% set sectionStyles = styleEntryPoint %}
|
|
8
|
+
{{previewEntryPoint}}
|
|
9
|
+
<style>
|
|
10
|
+
.{{blockClassName}}.{{block.id}}{
|
|
11
|
+
{{sectionStyles}}
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-parentblockid="{{block.videoIdPrefix}}" data-assetkey="{{blockClassName}}">
|
|
15
|
+
|
|
16
|
+
{% set blockInteractionsEnabled = fields.enable_block_interactions %}
|
|
17
|
+
{% set enableInteractionsButton = fields.enable_interactions_button %}
|
|
18
|
+
{% set interactionsButtonType = fields.interactions_button_type %}
|
|
19
|
+
|
|
20
|
+
{% if blockInteractionsEnabled %}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
{% if enableInteractionsButton %}
|
|
24
|
+
{% if (interactionsButtonType|ru == 'close-block') %}
|
|
25
|
+
{% set closeButtonIcon = get_image(fields.upload_close_icon) %}
|
|
26
|
+
{% set closeButtonCookie = fields.enable_closed_cookie %}
|
|
27
|
+
|
|
28
|
+
<button class="block-interactions-v3__block-close-button" data-store-cookie="{{closeButtonCookie ? 'true' : 'false' }}">
|
|
29
|
+
<img class="block-interactions-v3__block-close-button-icon" src="{{closeButtonIcon.src}}">
|
|
30
|
+
</button>
|
|
31
|
+
{% endif %}
|
|
32
|
+
{% endif %}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
{{htmlEntryPoint}}
|
|
38
|
+
</section>
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_687e1575ba23d",
|
|
3
|
+
"title": "Block: Block Interactions v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_687e1c72b415e",
|
|
7
|
+
"label": "Grid Layout",
|
|
8
|
+
"name": "",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "tab",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 1,
|
|
20
|
+
"placement": "top",
|
|
21
|
+
"endpoint": 0,
|
|
22
|
+
"no_preference": 0,
|
|
23
|
+
"selected": 0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "field_687e1c8db415f",
|
|
27
|
+
"label": "Grid Layout",
|
|
28
|
+
"name": "grid_layout",
|
|
29
|
+
"aria-label": "",
|
|
30
|
+
"type": "clone",
|
|
31
|
+
"instructions": "",
|
|
32
|
+
"required": 0,
|
|
33
|
+
"conditional_logic": 0,
|
|
34
|
+
"wrapper": {
|
|
35
|
+
"width": "",
|
|
36
|
+
"class": "",
|
|
37
|
+
"id": ""
|
|
38
|
+
},
|
|
39
|
+
"wpml_cf_preferences": 1,
|
|
40
|
+
"clone": [
|
|
41
|
+
"group_6504a81a0623c"
|
|
42
|
+
],
|
|
43
|
+
"display": "seamless",
|
|
44
|
+
"layout": "block",
|
|
45
|
+
"prefix_label": 0,
|
|
46
|
+
"prefix_name": 0,
|
|
47
|
+
"acfe_seamless_style": 0,
|
|
48
|
+
"acfe_clone_modal": 0,
|
|
49
|
+
"acfe_clone_modal_close": 0,
|
|
50
|
+
"acfe_clone_modal_button": "",
|
|
51
|
+
"acfe_clone_modal_size": "large"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "field_687e18f8855d0",
|
|
55
|
+
"label": "Content",
|
|
56
|
+
"name": "",
|
|
57
|
+
"aria-label": "",
|
|
58
|
+
"type": "tab",
|
|
59
|
+
"instructions": "",
|
|
60
|
+
"required": 0,
|
|
61
|
+
"conditional_logic": 0,
|
|
62
|
+
"wrapper": {
|
|
63
|
+
"width": "",
|
|
64
|
+
"class": "",
|
|
65
|
+
"id": ""
|
|
66
|
+
},
|
|
67
|
+
"wpml_cf_preferences": 1,
|
|
68
|
+
"placement": "top",
|
|
69
|
+
"endpoint": 0,
|
|
70
|
+
"no_preference": 0,
|
|
71
|
+
"selected": 0
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "field_687e1578d6b61",
|
|
75
|
+
"label": "Enable Block Interactions",
|
|
76
|
+
"name": "enable_block_interactions",
|
|
77
|
+
"aria-label": "",
|
|
78
|
+
"type": "true_false",
|
|
79
|
+
"instructions": "",
|
|
80
|
+
"required": 0,
|
|
81
|
+
"conditional_logic": 0,
|
|
82
|
+
"wrapper": {
|
|
83
|
+
"width": "",
|
|
84
|
+
"class": "",
|
|
85
|
+
"id": ""
|
|
86
|
+
},
|
|
87
|
+
"wpml_cf_preferences": 1,
|
|
88
|
+
"message": "",
|
|
89
|
+
"default_value": 0,
|
|
90
|
+
"style": "",
|
|
91
|
+
"ui_on_text": "",
|
|
92
|
+
"ui_off_text": "",
|
|
93
|
+
"ui": 1
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"key": "field_687e20dd7da49",
|
|
97
|
+
"label": "Enable Interactions Button",
|
|
98
|
+
"name": "enable_interactions_button",
|
|
99
|
+
"aria-label": "",
|
|
100
|
+
"type": "true_false",
|
|
101
|
+
"instructions": "",
|
|
102
|
+
"required": 0,
|
|
103
|
+
"conditional_logic": [
|
|
104
|
+
[
|
|
105
|
+
{
|
|
106
|
+
"field": "field_687e1578d6b61",
|
|
107
|
+
"operator": "==",
|
|
108
|
+
"value": "1"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
],
|
|
112
|
+
"wrapper": {
|
|
113
|
+
"width": "",
|
|
114
|
+
"class": "",
|
|
115
|
+
"id": ""
|
|
116
|
+
},
|
|
117
|
+
"wpml_cf_preferences": 1,
|
|
118
|
+
"message": "",
|
|
119
|
+
"default_value": 0,
|
|
120
|
+
"ui_on_text": "",
|
|
121
|
+
"ui_off_text": "",
|
|
122
|
+
"ui": 1,
|
|
123
|
+
"style": ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"key": "field_687e4099485e5",
|
|
127
|
+
"label": "Interactions Button Type",
|
|
128
|
+
"name": "interactions_button_type",
|
|
129
|
+
"aria-label": "",
|
|
130
|
+
"type": "select",
|
|
131
|
+
"instructions": "",
|
|
132
|
+
"required": 0,
|
|
133
|
+
"conditional_logic": [
|
|
134
|
+
[
|
|
135
|
+
{
|
|
136
|
+
"field": "field_687e20dd7da49",
|
|
137
|
+
"operator": "==",
|
|
138
|
+
"value": "1"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
],
|
|
142
|
+
"wrapper": {
|
|
143
|
+
"width": "",
|
|
144
|
+
"class": "",
|
|
145
|
+
"id": ""
|
|
146
|
+
},
|
|
147
|
+
"wpml_cf_preferences": 1,
|
|
148
|
+
"choices": {
|
|
149
|
+
"__close-block": "Close Block"
|
|
150
|
+
},
|
|
151
|
+
"default_value": false,
|
|
152
|
+
"return_format": "value",
|
|
153
|
+
"multiple": 0,
|
|
154
|
+
"max": "",
|
|
155
|
+
"allow_custom": 0,
|
|
156
|
+
"placeholder": "",
|
|
157
|
+
"search_placeholder": "",
|
|
158
|
+
"prepend": "",
|
|
159
|
+
"append": "",
|
|
160
|
+
"allow_null": 0,
|
|
161
|
+
"ui": 0,
|
|
162
|
+
"ajax": 0,
|
|
163
|
+
"min": ""
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"key": "field_687e40dc485e6",
|
|
167
|
+
"label": "Upload Close Icon",
|
|
168
|
+
"name": "upload_close_icon",
|
|
169
|
+
"aria-label": "",
|
|
170
|
+
"type": "image",
|
|
171
|
+
"instructions": "",
|
|
172
|
+
"required": 0,
|
|
173
|
+
"conditional_logic": [
|
|
174
|
+
[
|
|
175
|
+
{
|
|
176
|
+
"field": "field_687e4099485e5",
|
|
177
|
+
"operator": "==",
|
|
178
|
+
"value": "__close-block"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
],
|
|
182
|
+
"wrapper": {
|
|
183
|
+
"width": "",
|
|
184
|
+
"class": "",
|
|
185
|
+
"id": ""
|
|
186
|
+
},
|
|
187
|
+
"wpml_cf_preferences": 1,
|
|
188
|
+
"uploader": "",
|
|
189
|
+
"return_format": "array",
|
|
190
|
+
"library": "all",
|
|
191
|
+
"upload_folder": "",
|
|
192
|
+
"acfe_thumbnail": 0,
|
|
193
|
+
"min_width": "",
|
|
194
|
+
"min_height": "",
|
|
195
|
+
"min_size": "",
|
|
196
|
+
"max_width": "",
|
|
197
|
+
"max_height": "",
|
|
198
|
+
"max_size": "",
|
|
199
|
+
"mime_types": "",
|
|
200
|
+
"preview_size": "medium"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"key": "field_687e20d17da48",
|
|
204
|
+
"label": "Enable Closed Cookie",
|
|
205
|
+
"name": "enable_closed_cookie",
|
|
206
|
+
"aria-label": "",
|
|
207
|
+
"type": "true_false",
|
|
208
|
+
"instructions": "",
|
|
209
|
+
"required": 0,
|
|
210
|
+
"conditional_logic": [
|
|
211
|
+
[
|
|
212
|
+
{
|
|
213
|
+
"field": "field_687e4099485e5",
|
|
214
|
+
"operator": "==",
|
|
215
|
+
"value": "__close-block"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
],
|
|
219
|
+
"wrapper": {
|
|
220
|
+
"width": "",
|
|
221
|
+
"class": "",
|
|
222
|
+
"id": ""
|
|
223
|
+
},
|
|
224
|
+
"wpml_cf_preferences": 1,
|
|
225
|
+
"message": "",
|
|
226
|
+
"default_value": 0,
|
|
227
|
+
"ui_on_text": "",
|
|
228
|
+
"ui_off_text": "",
|
|
229
|
+
"ui": 1,
|
|
230
|
+
"style": ""
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"key": "field_687e48d871084",
|
|
234
|
+
"label": "Block Padding",
|
|
235
|
+
"name": "",
|
|
236
|
+
"aria-label": "",
|
|
237
|
+
"type": "tab",
|
|
238
|
+
"instructions": "",
|
|
239
|
+
"required": 0,
|
|
240
|
+
"conditional_logic": 0,
|
|
241
|
+
"wrapper": {
|
|
242
|
+
"width": "",
|
|
243
|
+
"class": "",
|
|
244
|
+
"id": ""
|
|
245
|
+
},
|
|
246
|
+
"wpml_cf_preferences": 1,
|
|
247
|
+
"placement": "top",
|
|
248
|
+
"endpoint": 0,
|
|
249
|
+
"no_preference": 0,
|
|
250
|
+
"selected": 0
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"key": "field_687e48e571085",
|
|
254
|
+
"label": "Block Padding",
|
|
255
|
+
"name": "block_padding",
|
|
256
|
+
"aria-label": "",
|
|
257
|
+
"type": "clone",
|
|
258
|
+
"instructions": "",
|
|
259
|
+
"required": 0,
|
|
260
|
+
"conditional_logic": 0,
|
|
261
|
+
"wrapper": {
|
|
262
|
+
"width": "",
|
|
263
|
+
"class": "",
|
|
264
|
+
"id": ""
|
|
265
|
+
},
|
|
266
|
+
"wpml_cf_preferences": 1,
|
|
267
|
+
"clone": [
|
|
268
|
+
"group_638f4148bc10b"
|
|
269
|
+
],
|
|
270
|
+
"display": "seamless",
|
|
271
|
+
"layout": "block",
|
|
272
|
+
"prefix_label": 0,
|
|
273
|
+
"prefix_name": 0,
|
|
274
|
+
"acfe_seamless_style": 0,
|
|
275
|
+
"acfe_clone_modal": 0,
|
|
276
|
+
"acfe_clone_modal_close": 0,
|
|
277
|
+
"acfe_clone_modal_button": "",
|
|
278
|
+
"acfe_clone_modal_size": "large"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"key": "field_687e19becafaf",
|
|
282
|
+
"label": "Block Settings",
|
|
283
|
+
"name": "",
|
|
284
|
+
"aria-label": "",
|
|
285
|
+
"type": "tab",
|
|
286
|
+
"instructions": "",
|
|
287
|
+
"required": 0,
|
|
288
|
+
"conditional_logic": 0,
|
|
289
|
+
"wrapper": {
|
|
290
|
+
"width": "",
|
|
291
|
+
"class": "",
|
|
292
|
+
"id": ""
|
|
293
|
+
},
|
|
294
|
+
"wpml_cf_preferences": 1,
|
|
295
|
+
"placement": "top",
|
|
296
|
+
"endpoint": 0,
|
|
297
|
+
"no_preference": 0,
|
|
298
|
+
"selected": 0
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"key": "field_687e1d8271485",
|
|
302
|
+
"label": "Block",
|
|
303
|
+
"name": "",
|
|
304
|
+
"aria-label": "",
|
|
305
|
+
"type": "accordion",
|
|
306
|
+
"instructions": "",
|
|
307
|
+
"required": 0,
|
|
308
|
+
"conditional_logic": 0,
|
|
309
|
+
"wrapper": {
|
|
310
|
+
"width": "",
|
|
311
|
+
"class": "",
|
|
312
|
+
"id": ""
|
|
313
|
+
},
|
|
314
|
+
"wpml_cf_preferences": 1,
|
|
315
|
+
"open": 0,
|
|
316
|
+
"multi_expand": 0,
|
|
317
|
+
"endpoint": 0
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"key": "field_687e191c855d2",
|
|
321
|
+
"label": "Block Settings",
|
|
322
|
+
"name": "block_settings",
|
|
323
|
+
"aria-label": "",
|
|
324
|
+
"type": "clone",
|
|
325
|
+
"instructions": "",
|
|
326
|
+
"required": 0,
|
|
327
|
+
"conditional_logic": 0,
|
|
328
|
+
"wrapper": {
|
|
329
|
+
"width": "",
|
|
330
|
+
"class": "",
|
|
331
|
+
"id": ""
|
|
332
|
+
},
|
|
333
|
+
"wpml_cf_preferences": 1,
|
|
334
|
+
"clone": [
|
|
335
|
+
"group_65a45ada4e128"
|
|
336
|
+
],
|
|
337
|
+
"display": "seamless",
|
|
338
|
+
"layout": "block",
|
|
339
|
+
"prefix_label": 0,
|
|
340
|
+
"prefix_name": 0,
|
|
341
|
+
"acfe_seamless_style": 0,
|
|
342
|
+
"acfe_clone_modal": 0,
|
|
343
|
+
"acfe_clone_modal_close": 0,
|
|
344
|
+
"acfe_clone_modal_button": "",
|
|
345
|
+
"acfe_clone_modal_size": "large"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"key": "field_687e1d9071486",
|
|
349
|
+
"label": "Block END",
|
|
350
|
+
"name": "",
|
|
351
|
+
"aria-label": "",
|
|
352
|
+
"type": "accordion",
|
|
353
|
+
"instructions": "",
|
|
354
|
+
"required": 0,
|
|
355
|
+
"conditional_logic": 0,
|
|
356
|
+
"wrapper": {
|
|
357
|
+
"width": "",
|
|
358
|
+
"class": "",
|
|
359
|
+
"id": ""
|
|
360
|
+
},
|
|
361
|
+
"wpml_cf_preferences": 1,
|
|
362
|
+
"open": 0,
|
|
363
|
+
"multi_expand": 0,
|
|
364
|
+
"endpoint": 1
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"location": [
|
|
368
|
+
[
|
|
369
|
+
{
|
|
370
|
+
"param": "block",
|
|
371
|
+
"operator": "==",
|
|
372
|
+
"value": "acf\/block-interactions-v3"
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
],
|
|
376
|
+
"menu_order": 0,
|
|
377
|
+
"position": "normal",
|
|
378
|
+
"style": "default",
|
|
379
|
+
"label_placement": "left",
|
|
380
|
+
"instruction_placement": "label",
|
|
381
|
+
"hide_on_screen": "",
|
|
382
|
+
"active": false,
|
|
383
|
+
"description": "",
|
|
384
|
+
"show_in_rest": 0,
|
|
385
|
+
"acfe_autosync": [
|
|
386
|
+
"json"
|
|
387
|
+
],
|
|
388
|
+
"acfml_field_group_mode": "translation",
|
|
389
|
+
"acfe_form": 0,
|
|
390
|
+
"acfe_display_title": "",
|
|
391
|
+
"acfe_meta": "",
|
|
392
|
+
"acfe_note": "",
|
|
393
|
+
"modified": 1753106703
|
|
394
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
4
|
+
|
|
5
|
+
@mixin blockSettings() {
|
|
6
|
+
.cmpl-block-settings {
|
|
7
|
+
min-height: core-functions.fluidSize(
|
|
8
|
+
var(--block-min-height-mobile),
|
|
9
|
+
'mobile'
|
|
10
|
+
);
|
|
11
|
+
overflow: var(--block-overflow, hidden);
|
|
12
|
+
border-radius: var(--block-border-radius);
|
|
13
|
+
place-items: center;
|
|
14
|
+
position: var(--block-position-type, relative);
|
|
15
|
+
z-index: var(--block-z-index);
|
|
16
|
+
top: var(--block-position-top);
|
|
17
|
+
right: var(--block-position-right);
|
|
18
|
+
bottom: var(--block-position-bottom);
|
|
19
|
+
left: var(--block-position-left);
|
|
20
|
+
background-color: var(--block-background-colour);
|
|
21
|
+
pointer-events: var(--block-pointer-events);
|
|
22
|
+
aspect-ratio: var(--block-aspect-ratio-mobile);
|
|
23
|
+
.wp-admin & {
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
28
|
+
aspect-ratio: var(--block-aspect-ratio-portrait);
|
|
29
|
+
min-height: core-functions.fluidSize(
|
|
30
|
+
var(--block-min-height-portrait),
|
|
31
|
+
'portrait'
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
35
|
+
aspect-ratio: var(--block-aspect-ratio);
|
|
36
|
+
min-height: core-functions.fluidSize(
|
|
37
|
+
var(--block-min-height-desktop),
|
|
38
|
+
'landscape'
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% set blockBorderRadius = '--block-border-radius:' ~ fields.block_border_radius|default(0) ~ ';' %}
|
|
2
|
+
{% set blockAspectRatio = '--block-aspect-ratio:' ~ fields.block_aspect_ratio|default('unset') ~ ';' %}
|
|
3
|
+
{% set blockAspectRatioPortrait = '--block-aspect-ratio-portrait:' ~ fields.block_aspect_ratio_portrait|default('unset') ~ ';' %}
|
|
4
|
+
{% set blockAspectRatioMobile = '--block-aspect-ratio-mobile:' ~ fields.block_aspect_ratio_mobile|default('unset') ~ ';' %}
|
|
5
|
+
{% set blockOverflow = '--block-overflow:' ~ fields.block_overflow|default('hidden')|ru ~ ';' %}
|
|
6
|
+
{% set blockZIndex = '--block-z-index:' ~ fields.block_z_index|default(1) ~ ';' %}
|
|
7
|
+
{% set blockBgColour = '--block-background-colour:' ~ (fields.block_background_colour|default('transparent')|ru) ~ ';' %}
|
|
8
|
+
{% if fields.block_background_colour_type and fields.block_background_colour_type|ru != 'colour-picker' %}
|
|
9
|
+
{% set blockBgColour = '--block-background-colour:' ~ (fields.block_background_colour_type|ru) ~ ';' %}
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% set blockPointerEvents = '--block-pointer-events: ' ~ (fields.block_pointer_events|default('all')|ru) ~ ';' %}
|
|
12
|
+
{% set blockMinHeightMobile = '--block-min-height-mobile: ' ~ fields.block_min_height.mobile_min_height|default(0) ~ ';' %}
|
|
13
|
+
{% set blockMinHeightPortrait = '--block-min-height-portrait: ' ~ fields.block_min_height.portrait_min_height|default(0) ~ ';' %}
|
|
14
|
+
{% set blockMinHeightDesktop = '--block-min-height-desktop: ' ~ fields.block_min_height.desktop_min_height|default(0) ~ ';' %}
|
|
15
|
+
{% set blockPositionType = '--block-position-type:' ~ fields.block_position_type|ru|default('relative') ~ ';' %}
|
|
16
|
+
{% set blockPositionTypeTabletPortrait = '--block-position-type-tablet-portrait:' ~ fields.block_position_type_tablet_portrait|ru|default('relative') ~ ';' %}
|
|
17
|
+
{% set blockPositionTypeMobile = '--block-position-type-mobile:' ~ fields.block_position_type_mobile|ru|default('relative') ~ ';' %}
|
|
18
|
+
{% set blockPositionTop = '--block-position-top: ' ~ fields.block_position.top|default('unset') ~ ';' %}
|
|
19
|
+
{% set blockPositionRight = '--block-position-right: ' ~ fields.block_position.right|default('unset') ~ ';' %}
|
|
20
|
+
{% set blockPositionBottom = '--block-position-bottom: ' ~ fields.block_position.bottom|default('unset') ~ ';' %}
|
|
21
|
+
{% set blockPositionLeft = '--block-position-left: ' ~ fields.block_position.left|default('unset') ~ ';' %}
|
|
22
|
+
{% if fields.block_inset %}
|
|
23
|
+
{% set blockPositionTop = '--block-position-top: ' ~ fields.block_inset_value ~ ';' %}
|
|
24
|
+
{% set blockPositionRight = '--block-position-right: ' ~ fields.block_inset_value ~ ';' %}
|
|
25
|
+
{% set blockPositionBottom = '--block-position-bottom: ' ~ fields.block_inset_value ~ ';' %}
|
|
26
|
+
{% set blockPositionLeft = '--block-position-left: ' ~ fields.block_inset_value ~ ';' %}
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% set blockSettingsString = blockBorderRadius ~ blockAspectRatio ~ blockAspectRatioPortrait ~ blockAspectRatioMobile ~ blockZIndex ~ blockOverflow ~ blockBgColour ~ blockPointerEvents ~ blockPosition ~ blockInset ~ blockPositionTop ~ blockPositionRight ~ blockPositionBottom ~ blockPositionLeft ~ blockPositionType ~ blockPositionTypeTabletPortrait ~ blockPositionTypeMobile ~ blockMinHeightMobile ~ blockMinHeightPortrait ~ blockMinHeightDesktop %}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
{{blockSettingsString}}
|
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_65a45ada4e128",
|
|
3
|
+
"title": "Component: Block Settings",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_6612748972cee",
|
|
7
|
+
"label": "Block background colour type",
|
|
8
|
+
"name": "block_background_colour_type",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "select",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "50",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 3,
|
|
20
|
+
"choices": {
|
|
21
|
+
"__colour-picker": "Colour picker",
|
|
22
|
+
"__var(--theme-primary-background-colour)": "Theme primary BG colour",
|
|
23
|
+
"__var(--theme-secondary-background-colour)": "Theme secondary BG colour",
|
|
24
|
+
"__var(--theme-tertiary-background-colour)": "Theme tertiary BG colour"
|
|
25
|
+
},
|
|
26
|
+
"default_value": "__colour-picker",
|
|
27
|
+
"return_format": "value",
|
|
28
|
+
"multiple": 0,
|
|
29
|
+
"max": "",
|
|
30
|
+
"allow_custom": 0,
|
|
31
|
+
"search_placeholder": "",
|
|
32
|
+
"prepend": "",
|
|
33
|
+
"append": "",
|
|
34
|
+
"allow_null": 0,
|
|
35
|
+
"ui": 1,
|
|
36
|
+
"ajax": 1,
|
|
37
|
+
"placeholder": "",
|
|
38
|
+
"min": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "field_63a06c99412c9",
|
|
42
|
+
"label": "Block background colour",
|
|
43
|
+
"name": "block_background_colour",
|
|
44
|
+
"aria-label": "",
|
|
45
|
+
"type": "color_picker",
|
|
46
|
+
"instructions": "",
|
|
47
|
+
"required": 0,
|
|
48
|
+
"conditional_logic": [
|
|
49
|
+
[
|
|
50
|
+
{
|
|
51
|
+
"field": "field_6612748972cee",
|
|
52
|
+
"operator": "==",
|
|
53
|
+
"value": "__colour-picker"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
],
|
|
57
|
+
"wrapper": {
|
|
58
|
+
"width": "50",
|
|
59
|
+
"class": "",
|
|
60
|
+
"id": ""
|
|
61
|
+
},
|
|
62
|
+
"wpml_cf_preferences": 3,
|
|
63
|
+
"default_value": "",
|
|
64
|
+
"enable_opacity": 1,
|
|
65
|
+
"return_format": "string",
|
|
66
|
+
"display": "palette",
|
|
67
|
+
"color_picker": 1,
|
|
68
|
+
"absolute": 1,
|
|
69
|
+
"input": 1,
|
|
70
|
+
"allow_null": 1,
|
|
71
|
+
"theme_colors": 0,
|
|
72
|
+
"colors": [],
|
|
73
|
+
"button_label": "Select Color"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "field_63a06c994130b",
|
|
77
|
+
"label": "Block border Radius",
|
|
78
|
+
"name": "block_border_radius",
|
|
79
|
+
"aria-label": "",
|
|
80
|
+
"type": "text",
|
|
81
|
+
"instructions": "",
|
|
82
|
+
"required": 0,
|
|
83
|
+
"conditional_logic": 0,
|
|
84
|
+
"wrapper": {
|
|
85
|
+
"width": "50",
|
|
86
|
+
"class": "hidden",
|
|
87
|
+
"id": ""
|
|
88
|
+
},
|
|
89
|
+
"wpml_cf_preferences": 2,
|
|
90
|
+
"default_value": "0px",
|
|
91
|
+
"maxlength": "",
|
|
92
|
+
"placeholder": "",
|
|
93
|
+
"prepend": "",
|
|
94
|
+
"append": ""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "field_65523a8572dbe",
|
|
98
|
+
"label": "Block pointer events",
|
|
99
|
+
"name": "block_pointer_events",
|
|
100
|
+
"aria-label": "",
|
|
101
|
+
"type": "select",
|
|
102
|
+
"instructions": "",
|
|
103
|
+
"required": 0,
|
|
104
|
+
"conditional_logic": 0,
|
|
105
|
+
"wrapper": {
|
|
106
|
+
"width": "50",
|
|
107
|
+
"class": "hidden",
|
|
108
|
+
"id": ""
|
|
109
|
+
},
|
|
110
|
+
"wpml_cf_preferences": 3,
|
|
111
|
+
"choices": {
|
|
112
|
+
"__all": "All",
|
|
113
|
+
"__none": "None"
|
|
114
|
+
},
|
|
115
|
+
"default_value": "__all",
|
|
116
|
+
"return_format": "value",
|
|
117
|
+
"multiple": 0,
|
|
118
|
+
"max": "",
|
|
119
|
+
"allow_custom": 0,
|
|
120
|
+
"search_placeholder": "",
|
|
121
|
+
"prepend": "",
|
|
122
|
+
"append": "",
|
|
123
|
+
"allow_null": 0,
|
|
124
|
+
"ui": 1,
|
|
125
|
+
"ajax": 1,
|
|
126
|
+
"placeholder": "",
|
|
127
|
+
"min": ""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "field_65fc33c62191e",
|
|
131
|
+
"label": "Block min-height (px)",
|
|
132
|
+
"name": "block_min_height",
|
|
133
|
+
"aria-label": "",
|
|
134
|
+
"type": "group",
|
|
135
|
+
"instructions": "",
|
|
136
|
+
"required": 0,
|
|
137
|
+
"conditional_logic": 0,
|
|
138
|
+
"wrapper": {
|
|
139
|
+
"width": "",
|
|
140
|
+
"class": "hidden",
|
|
141
|
+
"id": ""
|
|
142
|
+
},
|
|
143
|
+
"wpml_cf_preferences": 3,
|
|
144
|
+
"layout": "block",
|
|
145
|
+
"acfe_seamless_style": 0,
|
|
146
|
+
"acfe_group_modal": 0,
|
|
147
|
+
"acfe_group_modal_close": 0,
|
|
148
|
+
"acfe_group_modal_button": "",
|
|
149
|
+
"acfe_group_modal_size": "large",
|
|
150
|
+
"sub_fields": [
|
|
151
|
+
{
|
|
152
|
+
"key": "field_65fc34508b53d",
|
|
153
|
+
"label": "Desktop min-height",
|
|
154
|
+
"name": "desktop_min_height",
|
|
155
|
+
"aria-label": "",
|
|
156
|
+
"type": "number",
|
|
157
|
+
"instructions": "",
|
|
158
|
+
"required": 0,
|
|
159
|
+
"conditional_logic": 0,
|
|
160
|
+
"wrapper": {
|
|
161
|
+
"width": "33",
|
|
162
|
+
"class": "",
|
|
163
|
+
"id": ""
|
|
164
|
+
},
|
|
165
|
+
"wpml_cf_preferences": 3,
|
|
166
|
+
"default_value": "",
|
|
167
|
+
"min": "",
|
|
168
|
+
"max": "",
|
|
169
|
+
"placeholder": "",
|
|
170
|
+
"step": "",
|
|
171
|
+
"prepend": "",
|
|
172
|
+
"append": ""
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"key": "field_65fc3527351cb",
|
|
176
|
+
"label": "Portrait min-height",
|
|
177
|
+
"name": "portrait_min_height",
|
|
178
|
+
"aria-label": "",
|
|
179
|
+
"type": "number",
|
|
180
|
+
"instructions": "",
|
|
181
|
+
"required": 0,
|
|
182
|
+
"conditional_logic": 0,
|
|
183
|
+
"wrapper": {
|
|
184
|
+
"width": "33",
|
|
185
|
+
"class": "",
|
|
186
|
+
"id": ""
|
|
187
|
+
},
|
|
188
|
+
"wpml_cf_preferences": 3,
|
|
189
|
+
"default_value": "",
|
|
190
|
+
"min": "",
|
|
191
|
+
"max": "",
|
|
192
|
+
"placeholder": "",
|
|
193
|
+
"step": "",
|
|
194
|
+
"prepend": "",
|
|
195
|
+
"append": ""
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"key": "field_65fc354b351cc",
|
|
199
|
+
"label": "Mobile min-height",
|
|
200
|
+
"name": "mobile_min_height",
|
|
201
|
+
"aria-label": "",
|
|
202
|
+
"type": "number",
|
|
203
|
+
"instructions": "",
|
|
204
|
+
"required": 0,
|
|
205
|
+
"conditional_logic": 0,
|
|
206
|
+
"wrapper": {
|
|
207
|
+
"width": "33",
|
|
208
|
+
"class": "",
|
|
209
|
+
"id": ""
|
|
210
|
+
},
|
|
211
|
+
"wpml_cf_preferences": 3,
|
|
212
|
+
"default_value": "",
|
|
213
|
+
"min": "",
|
|
214
|
+
"max": "",
|
|
215
|
+
"placeholder": "",
|
|
216
|
+
"step": "",
|
|
217
|
+
"prepend": "",
|
|
218
|
+
"append": ""
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"key": "field_64f1fb9b2d3df",
|
|
224
|
+
"label": "Block aspect ratio desktop",
|
|
225
|
+
"name": "block_aspect_ratio",
|
|
226
|
+
"aria-label": "",
|
|
227
|
+
"type": "text",
|
|
228
|
+
"instructions": "",
|
|
229
|
+
"required": 0,
|
|
230
|
+
"conditional_logic": 0,
|
|
231
|
+
"wrapper": {
|
|
232
|
+
"width": "33",
|
|
233
|
+
"class": "hidden",
|
|
234
|
+
"id": ""
|
|
235
|
+
},
|
|
236
|
+
"wpml_cf_preferences": 2,
|
|
237
|
+
"default_value": "",
|
|
238
|
+
"maxlength": "",
|
|
239
|
+
"placeholder": "",
|
|
240
|
+
"prepend": "",
|
|
241
|
+
"append": ""
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"key": "field_66af8787e35b1",
|
|
245
|
+
"label": "Block aspect ratio portrait",
|
|
246
|
+
"name": "block_aspect_ratio_portrait",
|
|
247
|
+
"aria-label": "",
|
|
248
|
+
"type": "text",
|
|
249
|
+
"instructions": "",
|
|
250
|
+
"required": 0,
|
|
251
|
+
"conditional_logic": 0,
|
|
252
|
+
"wrapper": {
|
|
253
|
+
"width": "33",
|
|
254
|
+
"class": "hidden",
|
|
255
|
+
"id": ""
|
|
256
|
+
},
|
|
257
|
+
"wpml_cf_preferences": 2,
|
|
258
|
+
"default_value": "",
|
|
259
|
+
"maxlength": "",
|
|
260
|
+
"placeholder": "",
|
|
261
|
+
"prepend": "",
|
|
262
|
+
"append": ""
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"key": "field_659947736479e",
|
|
266
|
+
"label": "Block aspect ratio mobile",
|
|
267
|
+
"name": "block_aspect_ratio_mobile",
|
|
268
|
+
"aria-label": "",
|
|
269
|
+
"type": "text",
|
|
270
|
+
"instructions": "",
|
|
271
|
+
"required": 0,
|
|
272
|
+
"conditional_logic": 0,
|
|
273
|
+
"wrapper": {
|
|
274
|
+
"width": "33",
|
|
275
|
+
"class": "hidden",
|
|
276
|
+
"id": ""
|
|
277
|
+
},
|
|
278
|
+
"wpml_cf_preferences": 2,
|
|
279
|
+
"default_value": "",
|
|
280
|
+
"maxlength": "",
|
|
281
|
+
"placeholder": "",
|
|
282
|
+
"prepend": "",
|
|
283
|
+
"append": ""
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"key": "field_63c83e7fe72a9",
|
|
287
|
+
"label": "Global max width field",
|
|
288
|
+
"name": "global_max_width_field",
|
|
289
|
+
"aria-label": "",
|
|
290
|
+
"type": "clone",
|
|
291
|
+
"instructions": "",
|
|
292
|
+
"required": 0,
|
|
293
|
+
"conditional_logic": 0,
|
|
294
|
+
"wrapper": {
|
|
295
|
+
"width": "",
|
|
296
|
+
"class": "",
|
|
297
|
+
"id": ""
|
|
298
|
+
},
|
|
299
|
+
"wpml_cf_preferences": 3,
|
|
300
|
+
"user_roles": [
|
|
301
|
+
"administrator"
|
|
302
|
+
],
|
|
303
|
+
"clone": [
|
|
304
|
+
"group_63c83de4f0a99"
|
|
305
|
+
],
|
|
306
|
+
"display": "seamless",
|
|
307
|
+
"layout": "block",
|
|
308
|
+
"prefix_label": 0,
|
|
309
|
+
"prefix_name": 0,
|
|
310
|
+
"acfe_seamless_style": 0,
|
|
311
|
+
"acfe_clone_modal": 0,
|
|
312
|
+
"acfe_clone_modal_close": 0,
|
|
313
|
+
"acfe_clone_modal_button": "",
|
|
314
|
+
"acfe_clone_modal_size": "large"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"key": "field_6426db24a0a0e",
|
|
318
|
+
"label": "Block overflow",
|
|
319
|
+
"name": "block_overflow",
|
|
320
|
+
"aria-label": "",
|
|
321
|
+
"type": "select",
|
|
322
|
+
"instructions": "",
|
|
323
|
+
"required": 0,
|
|
324
|
+
"conditional_logic": 0,
|
|
325
|
+
"wrapper": {
|
|
326
|
+
"width": "50",
|
|
327
|
+
"class": "hidden",
|
|
328
|
+
"id": ""
|
|
329
|
+
},
|
|
330
|
+
"wpml_cf_preferences": 3,
|
|
331
|
+
"choices": {
|
|
332
|
+
"__hidden": "Hidden",
|
|
333
|
+
"__visible": "Visible",
|
|
334
|
+
"__scroll": "Scroll"
|
|
335
|
+
},
|
|
336
|
+
"default_value": "__hidden",
|
|
337
|
+
"return_format": "value",
|
|
338
|
+
"multiple": 0,
|
|
339
|
+
"max": "",
|
|
340
|
+
"allow_custom": 0,
|
|
341
|
+
"search_placeholder": "",
|
|
342
|
+
"prepend": "",
|
|
343
|
+
"append": "",
|
|
344
|
+
"allow_null": 0,
|
|
345
|
+
"ui": 1,
|
|
346
|
+
"ajax": 1,
|
|
347
|
+
"placeholder": "",
|
|
348
|
+
"min": ""
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"key": "field_670d46c1c2783",
|
|
352
|
+
"label": "Block inset",
|
|
353
|
+
"name": "block_inset",
|
|
354
|
+
"aria-label": "",
|
|
355
|
+
"type": "true_false",
|
|
356
|
+
"instructions": "",
|
|
357
|
+
"required": 0,
|
|
358
|
+
"conditional_logic": [
|
|
359
|
+
[
|
|
360
|
+
{
|
|
361
|
+
"field": "field_65cba9023a4ae",
|
|
362
|
+
"operator": "==",
|
|
363
|
+
"value": "__fixed"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
{
|
|
368
|
+
"field": "field_65cba9023a4ae",
|
|
369
|
+
"operator": "==",
|
|
370
|
+
"value": "__absolute"
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
],
|
|
374
|
+
"wrapper": {
|
|
375
|
+
"width": "",
|
|
376
|
+
"class": "",
|
|
377
|
+
"id": ""
|
|
378
|
+
},
|
|
379
|
+
"wpml_cf_preferences": 3,
|
|
380
|
+
"message": "",
|
|
381
|
+
"default_value": 0,
|
|
382
|
+
"ui_on_text": "",
|
|
383
|
+
"ui_off_text": "",
|
|
384
|
+
"ui": 1,
|
|
385
|
+
"style": ""
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"key": "field_6836bc2fe0399",
|
|
389
|
+
"label": "Block inset value",
|
|
390
|
+
"name": "block_inset_value",
|
|
391
|
+
"aria-label": "",
|
|
392
|
+
"type": "text",
|
|
393
|
+
"instructions": "",
|
|
394
|
+
"required": 0,
|
|
395
|
+
"conditional_logic": [
|
|
396
|
+
[
|
|
397
|
+
{
|
|
398
|
+
"field": "field_670d46c1c2783",
|
|
399
|
+
"operator": "==",
|
|
400
|
+
"value": "1"
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
],
|
|
404
|
+
"wrapper": {
|
|
405
|
+
"width": "",
|
|
406
|
+
"class": "",
|
|
407
|
+
"id": ""
|
|
408
|
+
},
|
|
409
|
+
"wpml_cf_preferences": 2,
|
|
410
|
+
"default_value": "",
|
|
411
|
+
"maxlength": "",
|
|
412
|
+
"placeholder": "",
|
|
413
|
+
"prepend": "",
|
|
414
|
+
"append": ""
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"key": "field_6836c0add392d",
|
|
418
|
+
"label": "Block Position Type",
|
|
419
|
+
"name": "block_position_type",
|
|
420
|
+
"aria-label": "",
|
|
421
|
+
"type": "select",
|
|
422
|
+
"instructions": "",
|
|
423
|
+
"required": 0,
|
|
424
|
+
"conditional_logic": 0,
|
|
425
|
+
"wrapper": {
|
|
426
|
+
"width": "50",
|
|
427
|
+
"class": "",
|
|
428
|
+
"id": ""
|
|
429
|
+
},
|
|
430
|
+
"wpml_cf_preferences": 3,
|
|
431
|
+
"choices": {
|
|
432
|
+
"__relative": "Relative",
|
|
433
|
+
"__absolute": "Absolute",
|
|
434
|
+
"__sticky": "Sticky",
|
|
435
|
+
"__fixed": "Fixed",
|
|
436
|
+
"__static": "Static"
|
|
437
|
+
},
|
|
438
|
+
"default_value": "__relative",
|
|
439
|
+
"return_format": "value",
|
|
440
|
+
"multiple": 0,
|
|
441
|
+
"max": "",
|
|
442
|
+
"allow_custom": 0,
|
|
443
|
+
"search_placeholder": "",
|
|
444
|
+
"prepend": "",
|
|
445
|
+
"append": "",
|
|
446
|
+
"allow_null": 0,
|
|
447
|
+
"ui": 1,
|
|
448
|
+
"ajax": 1,
|
|
449
|
+
"placeholder": "",
|
|
450
|
+
"min": ""
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"key": "field_65cba9023a4ae",
|
|
454
|
+
"label": "Block position",
|
|
455
|
+
"name": "block_position",
|
|
456
|
+
"aria-label": "",
|
|
457
|
+
"type": "group",
|
|
458
|
+
"instructions": "",
|
|
459
|
+
"required": 0,
|
|
460
|
+
"conditional_logic": [
|
|
461
|
+
[
|
|
462
|
+
{
|
|
463
|
+
"field": "field_670d46c1c2783",
|
|
464
|
+
"operator": "!=",
|
|
465
|
+
"value": "1"
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
],
|
|
469
|
+
"wrapper": {
|
|
470
|
+
"width": "",
|
|
471
|
+
"class": "hidden",
|
|
472
|
+
"id": ""
|
|
473
|
+
},
|
|
474
|
+
"wpml_cf_preferences": 3,
|
|
475
|
+
"layout": "block",
|
|
476
|
+
"acfe_seamless_style": 0,
|
|
477
|
+
"acfe_group_modal": 0,
|
|
478
|
+
"sub_fields": [
|
|
479
|
+
{
|
|
480
|
+
"key": "field_6836b81fed41b",
|
|
481
|
+
"label": "Top",
|
|
482
|
+
"name": "top",
|
|
483
|
+
"aria-label": "",
|
|
484
|
+
"type": "text",
|
|
485
|
+
"instructions": "",
|
|
486
|
+
"required": 0,
|
|
487
|
+
"conditional_logic": 0,
|
|
488
|
+
"wrapper": {
|
|
489
|
+
"width": "50",
|
|
490
|
+
"class": "",
|
|
491
|
+
"id": ""
|
|
492
|
+
},
|
|
493
|
+
"wpml_cf_preferences": 2,
|
|
494
|
+
"default_value": "unset",
|
|
495
|
+
"maxlength": "",
|
|
496
|
+
"placeholder": "",
|
|
497
|
+
"prepend": "",
|
|
498
|
+
"append": ""
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"key": "field_6836b84fed41c",
|
|
502
|
+
"label": "Right",
|
|
503
|
+
"name": "right",
|
|
504
|
+
"aria-label": "",
|
|
505
|
+
"type": "text",
|
|
506
|
+
"instructions": "",
|
|
507
|
+
"required": 0,
|
|
508
|
+
"conditional_logic": 0,
|
|
509
|
+
"wrapper": {
|
|
510
|
+
"width": "50",
|
|
511
|
+
"class": "",
|
|
512
|
+
"id": ""
|
|
513
|
+
},
|
|
514
|
+
"wpml_cf_preferences": 2,
|
|
515
|
+
"default_value": "unset",
|
|
516
|
+
"maxlength": "",
|
|
517
|
+
"placeholder": "",
|
|
518
|
+
"prepend": "",
|
|
519
|
+
"append": ""
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"key": "field_6836b857ed41d",
|
|
523
|
+
"label": "Bottom",
|
|
524
|
+
"name": "bottom",
|
|
525
|
+
"aria-label": "",
|
|
526
|
+
"type": "text",
|
|
527
|
+
"instructions": "",
|
|
528
|
+
"required": 0,
|
|
529
|
+
"conditional_logic": 0,
|
|
530
|
+
"wrapper": {
|
|
531
|
+
"width": "50",
|
|
532
|
+
"class": "",
|
|
533
|
+
"id": ""
|
|
534
|
+
},
|
|
535
|
+
"wpml_cf_preferences": 2,
|
|
536
|
+
"default_value": "unset",
|
|
537
|
+
"maxlength": "",
|
|
538
|
+
"placeholder": "",
|
|
539
|
+
"prepend": "",
|
|
540
|
+
"append": ""
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"key": "field_6836b85fed41e",
|
|
544
|
+
"label": "Left",
|
|
545
|
+
"name": "left",
|
|
546
|
+
"aria-label": "",
|
|
547
|
+
"type": "text",
|
|
548
|
+
"instructions": "",
|
|
549
|
+
"required": 0,
|
|
550
|
+
"conditional_logic": 0,
|
|
551
|
+
"wrapper": {
|
|
552
|
+
"width": "50",
|
|
553
|
+
"class": "",
|
|
554
|
+
"id": ""
|
|
555
|
+
},
|
|
556
|
+
"wpml_cf_preferences": 2,
|
|
557
|
+
"default_value": "unset",
|
|
558
|
+
"maxlength": "",
|
|
559
|
+
"placeholder": "",
|
|
560
|
+
"prepend": "",
|
|
561
|
+
"append": ""
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"acfe_group_modal_close": 0,
|
|
565
|
+
"acfe_group_modal_button": "",
|
|
566
|
+
"acfe_group_modal_size": "large"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"key": "field_65d28f09ca104",
|
|
570
|
+
"label": "Block z-index",
|
|
571
|
+
"name": "block_z_index",
|
|
572
|
+
"aria-label": "",
|
|
573
|
+
"type": "number",
|
|
574
|
+
"instructions": "",
|
|
575
|
+
"required": 0,
|
|
576
|
+
"conditional_logic": 0,
|
|
577
|
+
"wrapper": {
|
|
578
|
+
"width": "",
|
|
579
|
+
"class": "hidden",
|
|
580
|
+
"id": ""
|
|
581
|
+
},
|
|
582
|
+
"wpml_cf_preferences": 3,
|
|
583
|
+
"default_value": 0,
|
|
584
|
+
"min": -100,
|
|
585
|
+
"max": 500,
|
|
586
|
+
"placeholder": "",
|
|
587
|
+
"step": "",
|
|
588
|
+
"prepend": "",
|
|
589
|
+
"append": ""
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"key": "field_65ac257a1aaaa",
|
|
593
|
+
"label": "Eager loading",
|
|
594
|
+
"name": "eager_loading",
|
|
595
|
+
"aria-label": "",
|
|
596
|
+
"type": "clone",
|
|
597
|
+
"instructions": "",
|
|
598
|
+
"required": 0,
|
|
599
|
+
"conditional_logic": 0,
|
|
600
|
+
"wrapper": {
|
|
601
|
+
"width": "",
|
|
602
|
+
"class": "",
|
|
603
|
+
"id": ""
|
|
604
|
+
},
|
|
605
|
+
"wpml_cf_preferences": 3,
|
|
606
|
+
"user_roles": [
|
|
607
|
+
"administrator"
|
|
608
|
+
],
|
|
609
|
+
"clone": [
|
|
610
|
+
"group_654bee047f2f0"
|
|
611
|
+
],
|
|
612
|
+
"display": "seamless",
|
|
613
|
+
"layout": "block",
|
|
614
|
+
"prefix_label": 0,
|
|
615
|
+
"prefix_name": 0,
|
|
616
|
+
"acfe_seamless_style": 0,
|
|
617
|
+
"acfe_clone_modal": 0,
|
|
618
|
+
"acfe_clone_modal_close": 0,
|
|
619
|
+
"acfe_clone_modal_button": "",
|
|
620
|
+
"acfe_clone_modal_size": "large"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"key": "field_66719e8875c63",
|
|
624
|
+
"label": "Box Shadow",
|
|
625
|
+
"name": "box_shadow",
|
|
626
|
+
"aria-label": "",
|
|
627
|
+
"type": "clone",
|
|
628
|
+
"instructions": "",
|
|
629
|
+
"required": 0,
|
|
630
|
+
"conditional_logic": 0,
|
|
631
|
+
"wrapper": {
|
|
632
|
+
"width": "",
|
|
633
|
+
"class": "",
|
|
634
|
+
"id": ""
|
|
635
|
+
},
|
|
636
|
+
"wpml_cf_preferences": 3,
|
|
637
|
+
"clone": [
|
|
638
|
+
"group_666ed2bece4c3"
|
|
639
|
+
],
|
|
640
|
+
"display": "seamless",
|
|
641
|
+
"layout": "block",
|
|
642
|
+
"prefix_label": 0,
|
|
643
|
+
"prefix_name": 0,
|
|
644
|
+
"acfe_seamless_style": 0,
|
|
645
|
+
"acfe_clone_modal": 0,
|
|
646
|
+
"acfe_clone_modal_close": 0,
|
|
647
|
+
"acfe_clone_modal_button": "",
|
|
648
|
+
"acfe_clone_modal_size": "large"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"key": "field_65d2333553832",
|
|
652
|
+
"label": "Enable block layout name",
|
|
653
|
+
"name": "enable_block_layout_name",
|
|
654
|
+
"aria-label": "",
|
|
655
|
+
"type": "true_false",
|
|
656
|
+
"instructions": "",
|
|
657
|
+
"required": 0,
|
|
658
|
+
"conditional_logic": 0,
|
|
659
|
+
"wrapper": {
|
|
660
|
+
"width": "",
|
|
661
|
+
"class": "hidden",
|
|
662
|
+
"id": ""
|
|
663
|
+
},
|
|
664
|
+
"wpml_cf_preferences": 3,
|
|
665
|
+
"message": "",
|
|
666
|
+
"default_value": 0,
|
|
667
|
+
"ui_on_text": "",
|
|
668
|
+
"ui_off_text": "",
|
|
669
|
+
"ui": 1,
|
|
670
|
+
"style": ""
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"location": [
|
|
674
|
+
[
|
|
675
|
+
{
|
|
676
|
+
"param": "post_type",
|
|
677
|
+
"operator": "==",
|
|
678
|
+
"value": "post"
|
|
679
|
+
}
|
|
680
|
+
]
|
|
681
|
+
],
|
|
682
|
+
"menu_order": 0,
|
|
683
|
+
"position": "normal",
|
|
684
|
+
"style": "default",
|
|
685
|
+
"label_placement": "left",
|
|
686
|
+
"instruction_placement": "label",
|
|
687
|
+
"hide_on_screen": "",
|
|
688
|
+
"active": false,
|
|
689
|
+
"description": "",
|
|
690
|
+
"show_in_rest": 0,
|
|
691
|
+
"acfe_autosync": [
|
|
692
|
+
"json"
|
|
693
|
+
],
|
|
694
|
+
"acfml_field_group_mode": "localization",
|
|
695
|
+
"acfe_form": 0,
|
|
696
|
+
"acfe_display_title": "",
|
|
697
|
+
"acfe_meta": "",
|
|
698
|
+
"acfe_note": "",
|
|
699
|
+
"modified": 1749284669
|
|
700
|
+
}
|