@total_onion/onion-library 2.0.66 → 2.0.70
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/.github/workflows/npm-publish.yml +2 -2
- package/components/block-accent-image-v3/accent-image-v3.twig +2 -2
- 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-form-selection-v3/form-selection-v3.twig +16 -1
- 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-market-selector-v3/market-selector-v3.twig +1 -1
- package/components/block-modal-form-v3/modal-form-v3.twig +12 -12
- 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-social-networks-v3/social-networks-v3.twig +5 -6
- 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-athena-body-close-v3/athena-body-close-v3.twig +2 -2
- package/components/component-athena-head-v3/athena-head-v3.twig +11 -11
- 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-core-body-close-v3/core-body-close-v3.twig +2 -0
- package/components/component-core-body-open-v3/core-body-open-v3.twig +32 -0
- package/components/component-core-head-v3/core-head-v3.twig +63 -0
- 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-text-editor-settings-variables-v3/text-editor-settings-variables-v3.twig +1 -1
- 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/entrypoint-entry-point-html-v3/entry-point-html-v3.twig +4 -7
- package/components/entrypoint-entry-point-style-v3/entry-point-style-v3.twig +2 -5
- 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-image-management-service-v3/group_677813165b633.json +149 -0
- package/components/fields-modal-popup-content-v3/group_689876f1ee3fc.json +403 -0
- package/components/{component-modal-popup-content-v3 → fields-modal-popup-content-v3}/modal-popup-content-v3.twig +1 -1
- package/package.json +3 -2
- package/components/block-smash-balloon-social-media-v3/group_6890a2ab0e0a9.json +0 -143
- package/components/component-modal-popup-content/modal-popup-content.twig +0 -18
- 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-modal-popup-content/group_689876f1ee3fc.json +0 -390
- package/components/fields-modal-popup-content/modal-popup-content.twig +0 -18
- 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
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{{ include('components/background-image-body.twig', ignore_missing = true) }}
|
|
2
|
+
{{ include('components/background-video-body.twig', ignore_missing = true) }}
|
|
3
|
+
|
|
4
|
+
{% set pageProperties = include('components/page-properties.twig') %}
|
|
5
|
+
{% set bodyStyles = pageProperties %}
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
{{bodyStyles}}
|
|
10
|
+
}
|
|
11
|
+
main {
|
|
12
|
+
--main-container-background-image: url({{get_image(options.main_container_background_image).src}});
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
15
|
+
|
|
16
|
+
{% if options.enable_global_content_max_width_on_main %}
|
|
17
|
+
<style>
|
|
18
|
+
@media(min-width: {{options.global_content_max_width_setting}}px) {
|
|
19
|
+
main {
|
|
20
|
+
--global-content-max-width-main: var(--global-content-max-width);
|
|
21
|
+
--screen-width: calc(var(--global-content-max-width-setting) * 1px);
|
|
22
|
+
--font-reference: calc(var(--global-content-max-width-setting) * 1px);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
{% else %}
|
|
27
|
+
<style>
|
|
28
|
+
main {
|
|
29
|
+
--global-content-max-width-main: 100%;
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
{% endif %}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{# noscript #}
|
|
2
|
+
<noscript>
|
|
3
|
+
<style>
|
|
4
|
+
.lazy-fade {
|
|
5
|
+
opacity: 1 !important;
|
|
6
|
+
}
|
|
7
|
+
.js-enabled-hide {
|
|
8
|
+
display: block !important;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
</noscript>
|
|
12
|
+
{# noscript end #}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
{# Global Preload #}
|
|
16
|
+
{% for item in options.global_preload_options.dns_prefetch_items %}
|
|
17
|
+
{% if item.url is not empty %}
|
|
18
|
+
<link rel="dns-prefetch" href="{{item.url}}" crossorigin/>
|
|
19
|
+
{% endif %}
|
|
20
|
+
{% endfor %}
|
|
21
|
+
|
|
22
|
+
{% for item in options.global_preload_options.preconnect_items %}
|
|
23
|
+
{% if item.url is not empty %}
|
|
24
|
+
<link rel="preconnect" href="{{item.url}}"/>
|
|
25
|
+
{% endif %}
|
|
26
|
+
{% endfor %}
|
|
27
|
+
|
|
28
|
+
{% for item in options.global_preload_options.preload_items %}
|
|
29
|
+
{% if item.url is not empty %}
|
|
30
|
+
{% set type = item.type|ru %}
|
|
31
|
+
<link rel="preload" href="{{item.url}}" as={{type}} {{type == 'font' or type == 'fetch' ? 'crossorigin' : null}}/>
|
|
32
|
+
{% endif %}
|
|
33
|
+
{% endfor %}
|
|
34
|
+
{# Global Preload end #}
|
|
35
|
+
|
|
36
|
+
{# speculation api #}
|
|
37
|
+
{% set navLinksString = '' %}
|
|
38
|
+
{% for item in nav_menus.primary_menu.items %}
|
|
39
|
+
{% set navLinksString = navLinksString ~ '"' ~ item.url ~ '",' %}
|
|
40
|
+
{% endfor %}
|
|
41
|
+
{% set navLinksString = navLinksString|trim(',') %}
|
|
42
|
+
|
|
43
|
+
<script type="speculationrules">
|
|
44
|
+
{
|
|
45
|
+
"prefetch": [
|
|
46
|
+
{
|
|
47
|
+
"where": { "href_matches": ["/"] },
|
|
48
|
+
"eagerness": "eager"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
</script>
|
|
53
|
+
{# speculation api end #}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
{# core design settings #}
|
|
57
|
+
{{function('core_design_settings_v3').0}}
|
|
58
|
+
{{function('core_site_global_v3').0}}
|
|
59
|
+
{{function('core_font_modifiers_v3').0}}
|
|
60
|
+
{{function('core_critical_css_v3').0}}
|
|
61
|
+
{{function('core_typography_v3').0}}
|
|
62
|
+
{{function('core_themes_v3').0}}
|
|
63
|
+
{# core design settings end #}
|
|
@@ -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
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
{% set defaultFontWeightDesktop = '--default-font-weight-desktop: ' ~ fields.desktop_default_font_weight|ru ~ ';' %}
|
|
32
32
|
{% endif %}
|
|
33
33
|
{% set displaytype = 'grid' %}
|
|
34
|
-
{% set responsiveShowHide = include('components/responsive-show-hide.twig', { fields, block, blockClassName, displaytype, is_preview }, with_context = false) %}
|
|
34
|
+
{% set responsiveShowHide = include('components/responsive-show-hide-v3.twig', { fields, block, blockClassName, displaytype, is_preview }, with_context = false) %}
|
|
35
35
|
{% if fields.mobile_default_font_style %}
|
|
36
36
|
{% set defaultFontStyleMobile = '--default-font-style-mobile: ' ~ fields.mobile_default_font_style|ru ~ ';' %}
|
|
37
37
|
{% endif %}
|
|
@@ -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 %}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{% if fields.buy_now_button.enable_buy_now_button %}
|
|
2
|
-
{{ include('components/buy-now-button.twig', {fields, block, blockClassName, options, environment}, with_context = false, ignore_missing = true) }}
|
|
2
|
+
{{ include('components/buy-now-button-v3.twig', {fields, block, blockClassName, options, environment}, with_context = false, ignore_missing = true) }}
|
|
3
3
|
{% endif %}
|
|
4
4
|
{% if fields.enable_scrolling_banner %}
|
|
5
|
-
{{ include('components/scrolling-banner.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
|
|
6
|
-
{% endif %}
|
|
7
|
-
{% if fields.scrolling_posts.enable_scrolling_posts %}
|
|
8
|
-
{{ include('components/scrolling-posts.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
|
|
5
|
+
{{ include('components/scrolling-banner-v3.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
|
|
9
6
|
{% endif %}
|
|
10
7
|
{% if fields.accent_image_v2.enable_accent_image_v2 %}
|
|
11
8
|
{{ include('components/accent-image-v3.twig', {fields, block, blockClassName, is_preview}, with_context = false, ignore_missing = true) }}
|
|
@@ -20,10 +17,10 @@
|
|
|
20
17
|
{{ include('components/content-box-v3.twig', { fields, block, options, market_settings, cta_styles, blockClassName, nav_menus, languages }, with_context = false) }}
|
|
21
18
|
{% endif %}
|
|
22
19
|
{% if fields.animations.enable_animations %}
|
|
23
|
-
{{ include('components/animations-style.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
20
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
24
21
|
{% endif %}
|
|
25
22
|
{% if fields.lottie_animations.enable_lottie_animations %}
|
|
26
|
-
{{ include('components/lottie-animations.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
23
|
+
{{ include('components/lottie-animations-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
27
24
|
{% endif %}
|
|
28
25
|
{% if fields.enable_gradient_overlay %}
|
|
29
26
|
{{ include('components/gradient-overlay-v3.twig', { fields, block, blockClassName, type : 'html' }, with_context = false) }}
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
{% if fields.block_overflow is defined or fields.block_background_colour %}
|
|
6
6
|
{{ include('components/block-settings-v3.twig', {fields, block}, with_context = false, ignore_missing = true) }}
|
|
7
7
|
{% endif %}
|
|
8
|
-
{{ include('components/responsive-show-hide.twig', {fields, block, displaytype}, with_context = false, ignore_missing = true) }}
|
|
8
|
+
{{ include('components/responsive-show-hide-v3-v3.twig', {fields, block, displaytype}, with_context = false, ignore_missing = true) }}
|
|
9
9
|
{% if fields.enable_global_content_max_width %}
|
|
10
|
-
{{ include('components/global-content-max-width.twig', {fields, block, is_preview}, with_context = false, ignore_missing = true) }}
|
|
11
|
-
{% endif %}
|
|
12
|
-
{% if fields.enable_gradient_overlay %}
|
|
13
|
-
{{ include('components/gradient-overlay.twig', {fields, block, is_preview, type : 'style'}, with_context = false, ignore_missing = true) }}
|
|
10
|
+
{{ include('components/global-content-max-width-v3.twig', {fields, block, is_preview}, with_context = false, ignore_missing = true) }}
|
|
14
11
|
{% 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,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_677813165b633",
|
|
3
|
+
"title": "Fields: Image Management Service v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_677813fc392b5",
|
|
7
|
+
"label": "Image management",
|
|
8
|
+
"name": "image_management",
|
|
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": 1,
|
|
20
|
+
"layout": "block",
|
|
21
|
+
"acfe_seamless_style": 0,
|
|
22
|
+
"acfe_group_modal": 0,
|
|
23
|
+
"acfe_group_modal_close": 0,
|
|
24
|
+
"acfe_group_modal_button": "",
|
|
25
|
+
"acfe_group_modal_size": "large",
|
|
26
|
+
"sub_fields": [
|
|
27
|
+
{
|
|
28
|
+
"key": "field_677813171a4fa",
|
|
29
|
+
"label": "Enable image service",
|
|
30
|
+
"name": "enable_image_service",
|
|
31
|
+
"aria-label": "",
|
|
32
|
+
"type": "true_false",
|
|
33
|
+
"instructions": "",
|
|
34
|
+
"required": 0,
|
|
35
|
+
"conditional_logic": 0,
|
|
36
|
+
"wrapper": {
|
|
37
|
+
"width": "",
|
|
38
|
+
"class": "",
|
|
39
|
+
"id": ""
|
|
40
|
+
},
|
|
41
|
+
"wpml_cf_preferences": 1,
|
|
42
|
+
"message": "",
|
|
43
|
+
"default_value": 0,
|
|
44
|
+
"ui_on_text": "",
|
|
45
|
+
"ui_off_text": "",
|
|
46
|
+
"ui": 1,
|
|
47
|
+
"style": ""
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "field_6778137e1a4fb",
|
|
51
|
+
"label": "Image service",
|
|
52
|
+
"name": "image_service",
|
|
53
|
+
"aria-label": "",
|
|
54
|
+
"type": "select",
|
|
55
|
+
"instructions": "",
|
|
56
|
+
"required": 0,
|
|
57
|
+
"conditional_logic": [
|
|
58
|
+
[
|
|
59
|
+
{
|
|
60
|
+
"field": "field_677813171a4fa",
|
|
61
|
+
"operator": "==",
|
|
62
|
+
"value": "1"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
],
|
|
66
|
+
"wrapper": {
|
|
67
|
+
"width": "",
|
|
68
|
+
"class": "",
|
|
69
|
+
"id": ""
|
|
70
|
+
},
|
|
71
|
+
"wpml_cf_preferences": 1,
|
|
72
|
+
"choices": {
|
|
73
|
+
"cloudflare": "Cloudflare",
|
|
74
|
+
"imagekit": "Imagekit"
|
|
75
|
+
},
|
|
76
|
+
"default_value": false,
|
|
77
|
+
"return_format": "value",
|
|
78
|
+
"multiple": 0,
|
|
79
|
+
"max": "",
|
|
80
|
+
"prepend": "",
|
|
81
|
+
"append": "",
|
|
82
|
+
"allow_null": 0,
|
|
83
|
+
"ui": 0,
|
|
84
|
+
"ajax": 0,
|
|
85
|
+
"placeholder": "",
|
|
86
|
+
"allow_custom": 0,
|
|
87
|
+
"search_placeholder": "",
|
|
88
|
+
"min": ""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"key": "field_6778255b88595",
|
|
92
|
+
"label": "Imagekit Endpoint",
|
|
93
|
+
"name": "imagekit_endpoint",
|
|
94
|
+
"aria-label": "",
|
|
95
|
+
"type": "text",
|
|
96
|
+
"instructions": "",
|
|
97
|
+
"required": 0,
|
|
98
|
+
"conditional_logic": [
|
|
99
|
+
[
|
|
100
|
+
{
|
|
101
|
+
"field": "field_6778137e1a4fb",
|
|
102
|
+
"operator": "==",
|
|
103
|
+
"value": "imagekit"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
],
|
|
107
|
+
"wrapper": {
|
|
108
|
+
"width": "",
|
|
109
|
+
"class": "",
|
|
110
|
+
"id": ""
|
|
111
|
+
},
|
|
112
|
+
"wpml_cf_preferences": 2,
|
|
113
|
+
"default_value": "",
|
|
114
|
+
"maxlength": "",
|
|
115
|
+
"placeholder": "",
|
|
116
|
+
"prepend": "",
|
|
117
|
+
"append": ""
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"location": [
|
|
123
|
+
[
|
|
124
|
+
{
|
|
125
|
+
"param": "options_page",
|
|
126
|
+
"operator": "==",
|
|
127
|
+
"value": "global-settings"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
],
|
|
131
|
+
"menu_order": 0,
|
|
132
|
+
"position": "normal",
|
|
133
|
+
"style": "default",
|
|
134
|
+
"label_placement": "left",
|
|
135
|
+
"instruction_placement": "label",
|
|
136
|
+
"hide_on_screen": "",
|
|
137
|
+
"active": true,
|
|
138
|
+
"description": "",
|
|
139
|
+
"show_in_rest": 0,
|
|
140
|
+
"acfe_autosync": [
|
|
141
|
+
"json"
|
|
142
|
+
],
|
|
143
|
+
"acfml_field_group_mode": "translation",
|
|
144
|
+
"acfe_form": 0,
|
|
145
|
+
"acfe_display_title": "",
|
|
146
|
+
"acfe_meta": "",
|
|
147
|
+
"acfe_note": "",
|
|
148
|
+
"modified": 1758121738
|
|
149
|
+
}
|