@total_onion/onion-library 2.0.66 → 2.0.67
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-accordion-v3/accordion-v3.twig +23 -24
- package/components/block-betterreviews-display-v3/betterreviews-display-v3.twig +2 -3
- package/components/block-block-interactions-v3/block-interactions-v3.twig +7 -9
- package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.twig +5 -3
- package/components/block-cover-link-v3/cover-link-v3.twig +1 -1
- package/components/block-divider-v3/divider-v3.twig +1 -1
- package/components/block-featured-image-gallery-v3/featured-image-gallery-v3.twig +2 -2
- package/components/block-featured-image-gallery-v3/group_5f91897095b42.json +162 -7
- package/components/block-gradient-layer-v3/gradient-layer-v3.twig +2 -2
- package/components/block-group-container-v3/group-container-v3.twig +5 -4
- package/components/block-group-container-v3/group_6865578ada499.json +364 -38
- package/components/block-lottie-content-v3/lottie-content-v3.twig +5 -7
- package/components/block-nav-menu-container-v3/group_687e00b45e9a3.json +96 -66
- package/components/block-nav-menu-container-v3/nav-menu-container-v3.twig +9 -8
- package/components/block-post-type-filter-grid-v3/group_64690c62487bc.json +3674 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/better-reviews-widget.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/buy-now-widget.vue +72 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/cocktail-category.vue +40 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/cocktail-tasting-notes.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/divider-widget.vue +11 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/drink-tastes.vue +26 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/featured-post-component.vue +62 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/global-image-widget.vue +23 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/media-widget.vue +23 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-email-widget.vue +20 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-name-widget.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-questionaire-widget.vue +17 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-rating-widget.vue +25 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-author-widget.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-category-widget.vue +20 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-component.vue +130 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-headline-widget.vue +16 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-image-widget.vue +60 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-description.vue +14 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-subtitle.vue +14 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-link-widget.vue +44 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-publish-widget.vue +44 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-tags-widget.vue +19 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-text-alternative-style.vue +18 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-title-widget.vue +20 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/pre-render-posts-html.twig +17 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-abv.vue +18 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-age-statement.vue +17 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-bazaarvoice.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-brand.vue +16 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-cask-type.vue +16 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-country.vue +14 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-description.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-details-name.vue +18 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-details-price.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-finish.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-history.vue +16 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-link.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-logo-widget.vue +22 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-name.vue +17 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-nose.vue +16 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-price.vue +15 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-slug.vue +14 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-taste.vue +16 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-whisky-type.vue +25 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-posts.twig +474 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-utils.vue +38 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/shopify-add-to-cart.vue +31 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/social-media-item.vue +58 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/spacer-widget.vue +13 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/text-search.vue +10 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.js +14 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.php +48 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.scss +1084 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.twig +157 -0
- package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.vue +938 -0
- package/components/block-product-info-v3/product-info-v3.twig +2 -1
- package/components/block-scrolling-banner-v3/group_68e67fca1ec80.json +1 -56
- package/components/block-scrolling-banner-v3/scrolling-banner-v3.twig +7 -4
- package/components/block-section-separator-v3/section-separator-v3.twig +2 -2
- package/components/block-single-column-container-v3/single-column-container-v3.twig +1 -1
- package/components/block-single-responsive-image-v3/group_6867bcf24c2fc.json +5 -11
- package/components/block-single-responsive-image-v3/single-responsive-image-v3.twig +2 -2
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.php +1 -1
- package/components/block-site-logo-container-v3/group_687e3b887b508.json +53 -5
- package/components/block-site-logo-container-v3/site-logo-container-v3.twig +4 -2
- package/components/block-site-title-and-tagline-v3/site-title-and-tagline-v3.twig +2 -2
- package/components/block-smash-balloon-social-media-v3/smash-balloon-social-media-v3.twig +2 -2
- package/components/block-standard-content-v3/standard-content-v3.twig +2 -3
- package/components/block-sticky-buy-cta-v3/sticky-buy-cta-v3.twig +59 -59
- package/components/block-sub-group-container-v3/group_686ceba7d6066.json +197 -56
- package/components/block-sub-group-container-v3/sub-group-container-v3.twig +3 -4
- package/components/block-video-content-v3/group_687190b8d26df.json +175 -167
- package/components/block-video-content-v3/video-content-v3.twig +1 -1
- package/components/component-accent-image-v3/group_686cd5547efd2.json +5 -5
- package/components/component-block-settings-v3/group_689f649af2ac4.json +22 -1
- package/components/component-child-block-video-fields/group_6852a4f384204.json +351 -349
- package/components/component-content-box-settings-v3/group_686e6ec702acc.json +1727 -1937
- package/components/component-content-box-v3/group_686b8a4f1fe5d.json +50 -1
- package/components/component-cta-selection-v3/cta-selection-v3.twig +1 -2
- package/components/component-responsive-image-v3/group_6867bc53f1da8.json +4 -31
- package/components/component-video-component-v3/video-component-v3.twig +1 -1
- package/components/component-video-trigger-button-v3/video-trigger-button-v3.twig +1 -1
- package/components/fields-block-editor-assets-v3/block-editor-assets-v3.php +5 -7
- package/components/{fields-core-athena-block-render-function-v3/core-athena-block-render-function-v3.php → fields-core-block-render-function-v3/core-block-render-function-v3.php} +1 -1
- package/components/fields-drink-responsibly-notice-v3/group_68751257883ad.json +2 -1
- package/components/fields-dynamic-critical-css-v3/group_65abcd463e8d0.json +1 -1
- package/components/fields-modal-popup-content-v3/group_689876f1ee3fc.json +403 -0
- package/components/fields-modal-popup-content-v3/modal-popup-content-v3.twig +18 -0
- package/package.json +3 -2
- package/components/block-smash-balloon-social-media-v3/group_6890a2ab0e0a9.json +0 -143
- package/components/fields-buy-now-button/group_658432636bde2.json +0 -340
- package/components/fields-cta-icons-v3/group_677ed96c3c64f.json +0 -822
- package/components/fields-design-system-v3/group_6870e9e74a347.json +0 -743
- package/components/fields-site-logos-v3/group_6877b1697bf9f.json +0 -149
- package/components/fields-typography-settings-v3/group_6876149264002.json +0 -5636
|
@@ -221,6 +221,55 @@
|
|
|
221
221
|
"acfe_layout_col": "auto",
|
|
222
222
|
"acfe_layout_allowed_col": false
|
|
223
223
|
},
|
|
224
|
+
"layout_68de62d51a223": {
|
|
225
|
+
"key": "layout_68de62d51a223",
|
|
226
|
+
"name": "content_image_v3",
|
|
227
|
+
"label": "Content Image v3",
|
|
228
|
+
"display": "block",
|
|
229
|
+
"sub_fields": [
|
|
230
|
+
{
|
|
231
|
+
"key": "field_68de62d51a225",
|
|
232
|
+
"label": "Content image Fields",
|
|
233
|
+
"name": "content_image_fields",
|
|
234
|
+
"aria-label": "",
|
|
235
|
+
"type": "clone",
|
|
236
|
+
"instructions": "",
|
|
237
|
+
"required": 0,
|
|
238
|
+
"conditional_logic": 0,
|
|
239
|
+
"wrapper": {
|
|
240
|
+
"width": "",
|
|
241
|
+
"class": "",
|
|
242
|
+
"id": ""
|
|
243
|
+
},
|
|
244
|
+
"wpml_cf_preferences": 3,
|
|
245
|
+
"clone": [
|
|
246
|
+
"group_68722935c428f"
|
|
247
|
+
],
|
|
248
|
+
"display": "seamless",
|
|
249
|
+
"layout": "block",
|
|
250
|
+
"prefix_label": 0,
|
|
251
|
+
"prefix_name": 0,
|
|
252
|
+
"acfe_seamless_style": 0,
|
|
253
|
+
"acfe_clone_modal": 0,
|
|
254
|
+
"acfe_clone_modal_close": 0,
|
|
255
|
+
"acfe_clone_modal_button": "",
|
|
256
|
+
"acfe_clone_modal_size": "large"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"min": "",
|
|
260
|
+
"max": "",
|
|
261
|
+
"acfe_flexible_render_template": false,
|
|
262
|
+
"acfe_flexible_render_style": false,
|
|
263
|
+
"acfe_flexible_render_script": false,
|
|
264
|
+
"acfe_flexible_thumbnail": false,
|
|
265
|
+
"acfe_flexible_settings": false,
|
|
266
|
+
"acfe_flexible_settings_size": "medium",
|
|
267
|
+
"acfe_layout_locations": [],
|
|
268
|
+
"acfe_flexible_modal_edit_size": false,
|
|
269
|
+
"acfe_flexible_category": false,
|
|
270
|
+
"acfe_layout_col": "auto",
|
|
271
|
+
"acfe_layout_allowed_col": false
|
|
272
|
+
},
|
|
224
273
|
"layout_63a4478d2ec58": {
|
|
225
274
|
"key": "layout_63a4478d2ec58",
|
|
226
275
|
"name": "spacer_v3",
|
|
@@ -446,5 +495,5 @@
|
|
|
446
495
|
"acfe_display_title": "",
|
|
447
496
|
"acfe_meta": "",
|
|
448
497
|
"acfe_note": "",
|
|
449
|
-
"modified":
|
|
498
|
+
"modified": 1759404809
|
|
450
499
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields, block }, with_context = false) %}
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields, block }, with_context = false) %}
|
|
3
2
|
{% set elementStyles = gridLayoutElement %}
|
|
4
3
|
{% if fields.enable_cta %}
|
|
5
4
|
{% set ctaContainerDisplay = fields.display_type|ru %}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"append": "",
|
|
65
65
|
"allow_null": 0,
|
|
66
66
|
"ui": 1,
|
|
67
|
-
"ajax":
|
|
67
|
+
"ajax": 0,
|
|
68
68
|
"placeholder": "",
|
|
69
69
|
"min": ""
|
|
70
70
|
},
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"append": "",
|
|
179
179
|
"allow_null": 0,
|
|
180
180
|
"ui": 1,
|
|
181
|
-
"ajax":
|
|
181
|
+
"ajax": 0,
|
|
182
182
|
"placeholder": "",
|
|
183
183
|
"min": ""
|
|
184
184
|
},
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"append": "",
|
|
298
298
|
"allow_null": 0,
|
|
299
299
|
"ui": 1,
|
|
300
|
-
"ajax":
|
|
300
|
+
"ajax": 0,
|
|
301
301
|
"placeholder": "",
|
|
302
302
|
"min": ""
|
|
303
303
|
},
|
|
@@ -1437,33 +1437,6 @@
|
|
|
1437
1437
|
"multi_expand": 0,
|
|
1438
1438
|
"endpoint": 0
|
|
1439
1439
|
},
|
|
1440
|
-
{
|
|
1441
|
-
"key": "field_6867bc541727e",
|
|
1442
|
-
"label": "Parallax",
|
|
1443
|
-
"name": "",
|
|
1444
|
-
"aria-label": "",
|
|
1445
|
-
"type": "accordion",
|
|
1446
|
-
"instructions": "",
|
|
1447
|
-
"required": 0,
|
|
1448
|
-
"conditional_logic": [
|
|
1449
|
-
[
|
|
1450
|
-
{
|
|
1451
|
-
"field": "field_6867bc54074c9",
|
|
1452
|
-
"operator": "==",
|
|
1453
|
-
"value": "1"
|
|
1454
|
-
}
|
|
1455
|
-
]
|
|
1456
|
-
],
|
|
1457
|
-
"wrapper": {
|
|
1458
|
-
"width": "",
|
|
1459
|
-
"class": "",
|
|
1460
|
-
"id": ""
|
|
1461
|
-
},
|
|
1462
|
-
"wpml_cf_preferences": 3,
|
|
1463
|
-
"open": 0,
|
|
1464
|
-
"multi_expand": 0,
|
|
1465
|
-
"endpoint": 0
|
|
1466
|
-
},
|
|
1467
1440
|
{
|
|
1468
1441
|
"key": "field_6867bc5417a2b",
|
|
1469
1442
|
"label": "Enable Parallax",
|
|
@@ -1602,5 +1575,5 @@
|
|
|
1602
1575
|
"acfe_display_title": "",
|
|
1603
1576
|
"acfe_meta": "",
|
|
1604
1577
|
"acfe_note": "",
|
|
1605
|
-
"modified":
|
|
1578
|
+
"modified": 1759402944
|
|
1606
1579
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
{% set captionsEnabled = fields.enable_captions|default(false) %}
|
|
62
62
|
{% set captions = fields.captions %}
|
|
63
63
|
{% set videoId = block.videoIdPrefix ~ fields.video_trigger_id %}
|
|
64
|
-
<div data-videoid="{{videoId}}" data-desktopvideo="{{gt_video_mainsrc(videoDesktop['url'])}}" data-youtubedesktop="{{youtubeDesktopId}}" data-youtubemobile="{{youtubeMobileId}}" data-vimeo-desktop-url="{{vimeoDesktopUrl}}" data-vimeo-mobile-url="{{vimeoMobileUrl}}" data-vimeodesktopid="{{vimeoDesktopId}}" data-vimeomobileid="{{vimeoMobileId}}" data-mobilevideo="{{gt_video_mainsrc(videoMobile['url'])}}" class="{{blockClassName}}__video-container cblvc-video-container {{lockVideoAspectToImage}} {{videoPlayingZindexClass}} {{setVideoToCover}}" data-videotype="{{videoType}}" data-loop="{{loopVideo}}" data-modal="{{modal}}" data-controls="{{controls}}" data-autoplay="{{autoplayVideo}}" data-autoplay-mobile="{{autoplayVideoMobile}}" data-fullscreen="{{fullscreen}}" data-muted="{{muted}}" data-videoenabled="{{videoEnabled}}" data-pattern-dynamic="1">
|
|
64
|
+
<div data-videoid="{{videoId}}" data-videocontainerid="{{fields.video_trigger_id}}" data-desktopvideo="{{gt_video_mainsrc(videoDesktop['url'])}}" data-youtubedesktop="{{youtubeDesktopId}}" data-youtubemobile="{{youtubeMobileId}}" data-vimeo-desktop-url="{{vimeoDesktopUrl}}" data-vimeo-mobile-url="{{vimeoMobileUrl}}" data-vimeodesktopid="{{vimeoDesktopId}}" data-vimeomobileid="{{vimeoMobileId}}" data-mobilevideo="{{gt_video_mainsrc(videoMobile['url'])}}" class="{{blockClassName}}__video-container cblvc-video-container {{lockVideoAspectToImage}} {{videoPlayingZindexClass}} {{setVideoToCover}}" data-videotype="{{videoType}}" data-loop="{{loopVideo}}" data-modal="{{modal}}" data-controls="{{controls}}" data-autoplay="{{autoplayVideo}}" data-autoplay-mobile="{{autoplayVideoMobile}}" data-fullscreen="{{fullscreen}}" data-muted="{{muted}}" data-videoenabled="{{videoEnabled}}" data-pattern-dynamic="1">
|
|
65
65
|
<div class="{{blockClassName}}__video-inner-container cblvc-video-container__video-inner-container" data-pattern-type>
|
|
66
66
|
{% if videoType == 'upload' %}
|
|
67
67
|
<video class="{{blockClassName}}__video-player cblvc-video-container__video-player" {{muted ? 'muted' : ''}} playsinline width='{{videoDesktop.width}}' height='{{videoDesktop.height}}'>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{videoButtonStyles}}
|
|
8
8
|
}
|
|
9
9
|
</style>
|
|
10
|
-
<button aria-label="
|
|
10
|
+
<button aria-label="{% if fields.enable_text %}{{fields.play_button_text}}{% endif %}" data-triggerid="{{videoId}}" class="{{blockClassName}}__video-play-button {{blockClassName}}__video-play-button--{{buttonStyle}} cblvc-video-container__trigger-button" tabindex="0">
|
|
11
11
|
{% if fields.enable_text %}
|
|
12
12
|
{{fields.play_button_text}}
|
|
13
13
|
{% endif %}
|
|
@@ -3,15 +3,13 @@ add_action('enqueue_block_assets', 'add_block_editor_assets_v3', 10, true);
|
|
|
3
3
|
function add_block_editor_assets_v3(): void
|
|
4
4
|
{
|
|
5
5
|
if (is_admin()) {
|
|
6
|
-
// wp_enqueue_style('block-editor-preview', gtp_get_asset_uri('blockeditorpreviewcss.css'), array(), null);
|
|
7
6
|
wp_enqueue_script('editorstyles', gtp_get_asset_uri('editor.js'), array(), null, true);
|
|
8
|
-
wp_localize_script('editorstyles', 'previewvars',
|
|
9
|
-
wp_localize_script('editorstyles', '
|
|
7
|
+
wp_localize_script('editorstyles', 'previewvars', core_design_settings_v3());
|
|
8
|
+
wp_localize_script('editorstyles', 'siteglobal', core_site_global_v3());
|
|
10
9
|
wp_localize_script('editorstyles', 'coretypography', core_typography_v3());
|
|
11
|
-
wp_localize_script('editorstyles', 'corefontmodifiers',
|
|
12
|
-
wp_localize_script('editorstyles', '
|
|
13
|
-
wp_localize_script('editorstyles', '
|
|
14
|
-
wp_localize_script('editorstyles', 'corethemes', core_themes());
|
|
10
|
+
wp_localize_script('editorstyles', 'corefontmodifiers', core_font_modifiers_v3());
|
|
11
|
+
wp_localize_script('editorstyles', 'corethemes', core_themes_v3());
|
|
12
|
+
wp_localize_script('editorstyles', 'currenttheme', core_current_theme_v3());
|
|
15
13
|
wp_localize_script('editorstyles', 'colourconfig', create_colour_data());
|
|
16
14
|
}
|
|
17
15
|
}
|
|
@@ -9,7 +9,7 @@ use Timber\Timber;
|
|
|
9
9
|
* @param string $content content.
|
|
10
10
|
* @param bool $is_preview If it's a preview.
|
|
11
11
|
*/
|
|
12
|
-
function
|
|
12
|
+
function core_block_render_post_object_v3(array $block, string $content = '', bool $is_preview = false, $post_id = 0, $wp_block = false, $context = false, array $extraContext = null): void
|
|
13
13
|
{
|
|
14
14
|
$context = \Timber\Timber::context();
|
|
15
15
|
$slug = substr($block['name'], 4); // Removes 'acf/' from the name.
|
|
@@ -256,10 +256,11 @@
|
|
|
256
256
|
"acfe_autosync": [
|
|
257
257
|
"json"
|
|
258
258
|
],
|
|
259
|
+
"acfml_field_group_mode": "localization",
|
|
259
260
|
"acfe_form": 1,
|
|
260
261
|
"acfe_display_title": "",
|
|
261
262
|
"acfe_permissions": "",
|
|
262
263
|
"acfe_meta": "",
|
|
263
264
|
"acfe_note": "",
|
|
264
|
-
"modified":
|
|
265
|
+
"modified": 1758874042
|
|
265
266
|
}
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_689876f1ee3fc",
|
|
3
|
+
"title": "Fields: Modal Popup Content v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_6898a645e88fd",
|
|
7
|
+
"label": "Modal Popup Content V3",
|
|
8
|
+
"name": "modal_popup_content_v3",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "group",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 3,
|
|
20
|
+
"layout": "block",
|
|
21
|
+
"acfe_seamless_style": 0,
|
|
22
|
+
"acfe_group_modal": 0,
|
|
23
|
+
"sub_fields": [
|
|
24
|
+
{
|
|
25
|
+
"key": "field_689876f3d30ee",
|
|
26
|
+
"label": "Modal Popup Content Items",
|
|
27
|
+
"name": "modal_popup_content_items",
|
|
28
|
+
"aria-label": "",
|
|
29
|
+
"type": "flexible_content",
|
|
30
|
+
"instructions": "",
|
|
31
|
+
"required": 0,
|
|
32
|
+
"conditional_logic": 0,
|
|
33
|
+
"wrapper": {
|
|
34
|
+
"width": "",
|
|
35
|
+
"class": "",
|
|
36
|
+
"id": ""
|
|
37
|
+
},
|
|
38
|
+
"wpml_cf_preferences": 3,
|
|
39
|
+
"acfe_flexible_advanced": 1,
|
|
40
|
+
"acfe_flexible_stylised_button": 1,
|
|
41
|
+
"acfe_flexible_layouts_templates": 0,
|
|
42
|
+
"acfe_flexible_layouts_placeholder": 0,
|
|
43
|
+
"acfe_flexible_layouts_thumbnails": 0,
|
|
44
|
+
"acfe_flexible_layouts_settings": 0,
|
|
45
|
+
"acfe_flexible_layouts_locations": 0,
|
|
46
|
+
"acfe_flexible_async": [
|
|
47
|
+
"title",
|
|
48
|
+
"layout"
|
|
49
|
+
],
|
|
50
|
+
"acfe_flexible_add_actions": [
|
|
51
|
+
"copy",
|
|
52
|
+
"lock",
|
|
53
|
+
"close"
|
|
54
|
+
],
|
|
55
|
+
"acfe_flexible_remove_button": [],
|
|
56
|
+
"acfe_flexible_layouts_state": "user",
|
|
57
|
+
"acfe_flexible_modal_edit": {
|
|
58
|
+
"acfe_flexible_modal_edit_enabled": "0",
|
|
59
|
+
"acfe_flexible_modal_edit_size": "large"
|
|
60
|
+
},
|
|
61
|
+
"acfe_flexible_modal": {
|
|
62
|
+
"acfe_flexible_modal_enabled": "0",
|
|
63
|
+
"acfe_flexible_modal_title": false,
|
|
64
|
+
"acfe_flexible_modal_size": "full",
|
|
65
|
+
"acfe_flexible_modal_col": "4",
|
|
66
|
+
"acfe_flexible_modal_categories": false
|
|
67
|
+
},
|
|
68
|
+
"acfe_flexible_grid": {
|
|
69
|
+
"acfe_flexible_grid_enabled": "0",
|
|
70
|
+
"acfe_flexible_grid_align": "center",
|
|
71
|
+
"acfe_flexible_grid_valign": "stretch",
|
|
72
|
+
"acfe_flexible_grid_wrap": false
|
|
73
|
+
},
|
|
74
|
+
"layouts": {
|
|
75
|
+
"layout_6898774bed496": {
|
|
76
|
+
"key": "layout_6898774bed496",
|
|
77
|
+
"name": "raw_html",
|
|
78
|
+
"label": "Raw Html",
|
|
79
|
+
"display": "block",
|
|
80
|
+
"sub_fields": [
|
|
81
|
+
{
|
|
82
|
+
"key": "field_6898a78431d84",
|
|
83
|
+
"label": "Modal Popup Content ID",
|
|
84
|
+
"name": "modal_popup_content_id",
|
|
85
|
+
"aria-label": "",
|
|
86
|
+
"type": "text",
|
|
87
|
+
"instructions": "",
|
|
88
|
+
"required": 0,
|
|
89
|
+
"conditional_logic": 0,
|
|
90
|
+
"wrapper": {
|
|
91
|
+
"width": "",
|
|
92
|
+
"class": "",
|
|
93
|
+
"id": ""
|
|
94
|
+
},
|
|
95
|
+
"wpml_cf_preferences": 2,
|
|
96
|
+
"default_value": "",
|
|
97
|
+
"maxlength": "",
|
|
98
|
+
"placeholder": "",
|
|
99
|
+
"prepend": "",
|
|
100
|
+
"append": ""
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"key": "field_6898776ad30f0",
|
|
104
|
+
"label": "Raw Html",
|
|
105
|
+
"name": "raw_html",
|
|
106
|
+
"aria-label": "",
|
|
107
|
+
"type": "acfe_code_editor",
|
|
108
|
+
"instructions": "",
|
|
109
|
+
"required": 0,
|
|
110
|
+
"conditional_logic": 0,
|
|
111
|
+
"wrapper": {
|
|
112
|
+
"width": "",
|
|
113
|
+
"class": "",
|
|
114
|
+
"id": ""
|
|
115
|
+
},
|
|
116
|
+
"wpml_cf_preferences": 2,
|
|
117
|
+
"default_value": "",
|
|
118
|
+
"placeholder": "",
|
|
119
|
+
"mode": "text\/html",
|
|
120
|
+
"lines": 1,
|
|
121
|
+
"indent_unit": 4,
|
|
122
|
+
"maxlength": "",
|
|
123
|
+
"rows": 4,
|
|
124
|
+
"max_rows": "",
|
|
125
|
+
"return_format": []
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"min": "",
|
|
129
|
+
"max": "",
|
|
130
|
+
"acfe_flexible_render_template": false,
|
|
131
|
+
"acfe_flexible_render_style": false,
|
|
132
|
+
"acfe_flexible_render_script": false,
|
|
133
|
+
"acfe_flexible_thumbnail": false,
|
|
134
|
+
"acfe_flexible_settings": false,
|
|
135
|
+
"acfe_flexible_settings_size": "medium",
|
|
136
|
+
"acfe_layout_locations": [],
|
|
137
|
+
"acfe_flexible_modal_edit_size": false,
|
|
138
|
+
"acfe_flexible_category": false,
|
|
139
|
+
"acfe_layout_col": "auto",
|
|
140
|
+
"acfe_layout_allowed_col": false
|
|
141
|
+
},
|
|
142
|
+
"layout_6898aed1ae16e": {
|
|
143
|
+
"key": "layout_6898aed1ae16e",
|
|
144
|
+
"name": "form_selection",
|
|
145
|
+
"label": "Form selection",
|
|
146
|
+
"display": "block",
|
|
147
|
+
"sub_fields": [
|
|
148
|
+
{
|
|
149
|
+
"key": "field_6898afb6ffcd5",
|
|
150
|
+
"label": "Modal Popup Content ID",
|
|
151
|
+
"name": "modal_popup_content_id",
|
|
152
|
+
"aria-label": "",
|
|
153
|
+
"type": "text",
|
|
154
|
+
"instructions": "",
|
|
155
|
+
"required": 0,
|
|
156
|
+
"conditional_logic": 0,
|
|
157
|
+
"wrapper": {
|
|
158
|
+
"width": "",
|
|
159
|
+
"class": "",
|
|
160
|
+
"id": ""
|
|
161
|
+
},
|
|
162
|
+
"default_value": "",
|
|
163
|
+
"maxlength": "",
|
|
164
|
+
"allow_in_bindings": 1,
|
|
165
|
+
"placeholder": "",
|
|
166
|
+
"prepend": "",
|
|
167
|
+
"append": "",
|
|
168
|
+
"wpml_cf_preferences": 2
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"key": "field_6898aee0ae170",
|
|
172
|
+
"label": "Form",
|
|
173
|
+
"name": "form",
|
|
174
|
+
"aria-label": "",
|
|
175
|
+
"type": "post_object",
|
|
176
|
+
"instructions": "",
|
|
177
|
+
"required": 0,
|
|
178
|
+
"conditional_logic": 0,
|
|
179
|
+
"wrapper": {
|
|
180
|
+
"width": "",
|
|
181
|
+
"class": "",
|
|
182
|
+
"id": ""
|
|
183
|
+
},
|
|
184
|
+
"post_type": [
|
|
185
|
+
"cdbform"
|
|
186
|
+
],
|
|
187
|
+
"post_status": "",
|
|
188
|
+
"taxonomy": "",
|
|
189
|
+
"return_format": "object",
|
|
190
|
+
"multiple": 0,
|
|
191
|
+
"save_custom": 0,
|
|
192
|
+
"save_post_status": "publish",
|
|
193
|
+
"acfe_add_post": 0,
|
|
194
|
+
"acfe_edit_post": 0,
|
|
195
|
+
"acfe_bidirectional": {
|
|
196
|
+
"acfe_bidirectional_enabled": "0"
|
|
197
|
+
},
|
|
198
|
+
"max": "",
|
|
199
|
+
"allow_null": 0,
|
|
200
|
+
"allow_in_bindings": 1,
|
|
201
|
+
"bidirectional": 0,
|
|
202
|
+
"ui": 1,
|
|
203
|
+
"bidirectional_target": [],
|
|
204
|
+
"save_post_type": "",
|
|
205
|
+
"min": "",
|
|
206
|
+
"wpml_cf_preferences": 3
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"key": "field_689a187215a55",
|
|
210
|
+
"label": "Enable Title",
|
|
211
|
+
"name": "enable_title",
|
|
212
|
+
"aria-label": "",
|
|
213
|
+
"type": "true_false",
|
|
214
|
+
"instructions": "",
|
|
215
|
+
"required": 0,
|
|
216
|
+
"conditional_logic": 0,
|
|
217
|
+
"wrapper": {
|
|
218
|
+
"width": "",
|
|
219
|
+
"class": "",
|
|
220
|
+
"id": ""
|
|
221
|
+
},
|
|
222
|
+
"message": "",
|
|
223
|
+
"default_value": 0,
|
|
224
|
+
"style": "",
|
|
225
|
+
"allow_in_bindings": 0,
|
|
226
|
+
"ui_on_text": "",
|
|
227
|
+
"ui_off_text": "",
|
|
228
|
+
"ui": 1,
|
|
229
|
+
"wpml_cf_preferences": 3
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"key": "field_689a187e15a56",
|
|
233
|
+
"label": "Title",
|
|
234
|
+
"name": "title",
|
|
235
|
+
"aria-label": "",
|
|
236
|
+
"type": "wysiwyg",
|
|
237
|
+
"instructions": "",
|
|
238
|
+
"required": 0,
|
|
239
|
+
"conditional_logic": [
|
|
240
|
+
[
|
|
241
|
+
{
|
|
242
|
+
"field": "field_689a187215a55",
|
|
243
|
+
"operator": "==",
|
|
244
|
+
"value": "1"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
],
|
|
248
|
+
"wrapper": {
|
|
249
|
+
"width": "",
|
|
250
|
+
"class": "",
|
|
251
|
+
"id": ""
|
|
252
|
+
},
|
|
253
|
+
"default_value": "",
|
|
254
|
+
"acfe_wysiwyg_height": 300,
|
|
255
|
+
"acfe_wysiwyg_max_height": "",
|
|
256
|
+
"acfe_wysiwyg_valid_elements": "",
|
|
257
|
+
"acfe_wysiwyg_custom_style": "",
|
|
258
|
+
"acfe_wysiwyg_disable_wp_style": 0,
|
|
259
|
+
"acfe_wysiwyg_autoresize": 0,
|
|
260
|
+
"acfe_wysiwyg_disable_resize": 0,
|
|
261
|
+
"acfe_wysiwyg_remove_path": 0,
|
|
262
|
+
"acfe_wysiwyg_menubar": 0,
|
|
263
|
+
"acfe_wysiwyg_transparent": 0,
|
|
264
|
+
"acfe_wysiwyg_merge_toolbar": 0,
|
|
265
|
+
"acfe_wysiwyg_custom_toolbar": 0,
|
|
266
|
+
"allow_in_bindings": 0,
|
|
267
|
+
"tabs": "visual",
|
|
268
|
+
"toolbar": "formatselect_align_bold_italic_underline_link_removeformat",
|
|
269
|
+
"media_upload": 0,
|
|
270
|
+
"delay": 0,
|
|
271
|
+
"acfe_wysiwyg_auto_init": 0,
|
|
272
|
+
"acfe_wysiwyg_min_height": 300,
|
|
273
|
+
"acfe_wysiwyg_toolbar_buttons": [],
|
|
274
|
+
"wpml_cf_preferences": 2
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"min": "",
|
|
278
|
+
"max": "",
|
|
279
|
+
"acfe_flexible_render_template": false,
|
|
280
|
+
"acfe_flexible_render_style": false,
|
|
281
|
+
"acfe_flexible_render_script": false,
|
|
282
|
+
"acfe_flexible_thumbnail": false,
|
|
283
|
+
"acfe_flexible_settings": false,
|
|
284
|
+
"acfe_flexible_settings_size": "medium",
|
|
285
|
+
"acfe_layout_locations": [],
|
|
286
|
+
"acfe_flexible_modal_edit_size": false,
|
|
287
|
+
"acfe_flexible_category": false,
|
|
288
|
+
"acfe_layout_col": "auto",
|
|
289
|
+
"acfe_layout_allowed_col": false
|
|
290
|
+
},
|
|
291
|
+
"layout_68af324074c41": {
|
|
292
|
+
"key": "layout_68af324074c41",
|
|
293
|
+
"name": "market_selector_v3",
|
|
294
|
+
"label": "Market Selector v3",
|
|
295
|
+
"display": "block",
|
|
296
|
+
"sub_fields": [
|
|
297
|
+
{
|
|
298
|
+
"key": "field_68af4c8575eaf",
|
|
299
|
+
"label": "Modal Popup Content ID",
|
|
300
|
+
"name": "modal_popup_content_id",
|
|
301
|
+
"aria-label": "",
|
|
302
|
+
"type": "text",
|
|
303
|
+
"instructions": "",
|
|
304
|
+
"required": 0,
|
|
305
|
+
"conditional_logic": 0,
|
|
306
|
+
"wrapper": {
|
|
307
|
+
"width": "",
|
|
308
|
+
"class": "",
|
|
309
|
+
"id": ""
|
|
310
|
+
},
|
|
311
|
+
"wpml_cf_preferences": 2,
|
|
312
|
+
"default_value": "",
|
|
313
|
+
"maxlength": "",
|
|
314
|
+
"placeholder": "",
|
|
315
|
+
"prepend": "",
|
|
316
|
+
"append": ""
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"key": "field_68af326a74c48",
|
|
320
|
+
"label": "market selector fields",
|
|
321
|
+
"name": "market_selector_fields",
|
|
322
|
+
"aria-label": "",
|
|
323
|
+
"type": "clone",
|
|
324
|
+
"instructions": "",
|
|
325
|
+
"required": 0,
|
|
326
|
+
"conditional_logic": 0,
|
|
327
|
+
"wrapper": {
|
|
328
|
+
"width": "",
|
|
329
|
+
"class": "",
|
|
330
|
+
"id": ""
|
|
331
|
+
},
|
|
332
|
+
"wpml_cf_preferences": 3,
|
|
333
|
+
"clone": [
|
|
334
|
+
"group_68752075dd831"
|
|
335
|
+
],
|
|
336
|
+
"display": "seamless",
|
|
337
|
+
"layout": "block",
|
|
338
|
+
"prefix_label": 0,
|
|
339
|
+
"prefix_name": 0,
|
|
340
|
+
"acfe_seamless_style": 0,
|
|
341
|
+
"acfe_clone_modal": 0,
|
|
342
|
+
"acfe_clone_modal_close": 0,
|
|
343
|
+
"acfe_clone_modal_button": "",
|
|
344
|
+
"acfe_clone_modal_size": "large"
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"min": "",
|
|
348
|
+
"max": "",
|
|
349
|
+
"acfe_flexible_render_template": false,
|
|
350
|
+
"acfe_flexible_render_style": false,
|
|
351
|
+
"acfe_flexible_render_script": false,
|
|
352
|
+
"acfe_flexible_thumbnail": false,
|
|
353
|
+
"acfe_flexible_settings": false,
|
|
354
|
+
"acfe_flexible_settings_size": "medium",
|
|
355
|
+
"acfe_layout_locations": [],
|
|
356
|
+
"acfe_flexible_modal_edit_size": false,
|
|
357
|
+
"acfe_flexible_category": false,
|
|
358
|
+
"acfe_layout_col": "auto",
|
|
359
|
+
"acfe_layout_allowed_col": false
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"min": "",
|
|
363
|
+
"max": "",
|
|
364
|
+
"button_label": "Add Row",
|
|
365
|
+
"acfe_flexible_hide_empty_message": false,
|
|
366
|
+
"acfe_flexible_empty_message": "",
|
|
367
|
+
"acfe_flexible_layouts_previews": false,
|
|
368
|
+
"acfe_flexible_grid_container": false
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"acfe_group_modal_close": 0,
|
|
372
|
+
"acfe_group_modal_button": "",
|
|
373
|
+
"acfe_group_modal_size": "large"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"location": [
|
|
377
|
+
[
|
|
378
|
+
{
|
|
379
|
+
"param": "options_page",
|
|
380
|
+
"operator": "==",
|
|
381
|
+
"value": "market-settings"
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
],
|
|
385
|
+
"menu_order": 0,
|
|
386
|
+
"position": "normal",
|
|
387
|
+
"style": "default",
|
|
388
|
+
"label_placement": "left",
|
|
389
|
+
"instruction_placement": "label",
|
|
390
|
+
"hide_on_screen": "",
|
|
391
|
+
"active": true,
|
|
392
|
+
"description": "",
|
|
393
|
+
"show_in_rest": 0,
|
|
394
|
+
"acfe_autosync": [
|
|
395
|
+
"json"
|
|
396
|
+
],
|
|
397
|
+
"acfml_field_group_mode": "localization",
|
|
398
|
+
"acfe_form": 0,
|
|
399
|
+
"acfe_display_title": "",
|
|
400
|
+
"acfe_meta": "",
|
|
401
|
+
"acfe_note": "",
|
|
402
|
+
"modified": 1758891783
|
|
403
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{% for item in market_settings.modal_popup_content_v3.modal_popup_content_items %}
|
|
2
|
+
{% set contentId = item.modal_popup_content_id|lower %}
|
|
3
|
+
<div class="{{ contentId }}-popup" style="display: none;">
|
|
4
|
+
<div class="{{ contentId }}__content" data-modalpopupcontent="{{ contentId }}">
|
|
5
|
+
{% if item.acf_fc_layout == 'raw_html' %}
|
|
6
|
+
{{item.raw_html}}
|
|
7
|
+
{% endif %}
|
|
8
|
+
{% if item.acf_fc_layout == 'form_selection' %}
|
|
9
|
+
{% set data = {'title' : item.title, 'form' : item.form.ID} %}
|
|
10
|
+
{{ include('blocks/modal-form-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
|
|
11
|
+
{% endif %}
|
|
12
|
+
{% if item.acf_fc_layout == 'market_selector_v3' %}
|
|
13
|
+
{% set data = {'heading_text' : item.heading_text, 'logo' : item.logo, 'selector_type': 'inline'} %}
|
|
14
|
+
{{ include('blocks/market-selector-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
|
|
15
|
+
{% endif %}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
{% endfor %}
|