@total_onion/onion-library 2.0.197 → 2.0.199
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-accent-image-v3/accent-image-v3.twig +117 -2
- package/components/block-back-to-top-button-v3/back-to-top-button-v3.twig +4 -1
- package/components/block-group-container-v3/group-container-v3.twig +4 -1
- package/components/block-post-info-v3/post-info-v3/post-image.twig +7 -2
- package/components/block-post-info-v3/post-info-v3/post-tags.twig +8 -1
- package/components/block-raw-html-v3/raw-html-v3.twig +4 -1
- package/components/block-scrolling-banner-v3/scrolling-banner-v3.twig +4 -0
- package/components/block-single-responsive-image-v3/single-responsive-image-v3.twig +144 -1
- package/components/block-site-copyright-notice-v3/index.html +33 -0
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.scss +1 -1
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.twig +4 -4
- package/components/block-standard-content-v3/standard-content-v3.twig +28 -3
- package/components/block-sub-group-container-v3/sub-group-container-v3.twig +4 -1
- package/components/block-video-content-v3/video-content-v3.twig +3 -0
- package/components/component-content-box-v3/content-box-v3.twig +2 -2
- package/components/component-video-component-v3/video-component-v3.twig +2 -2
- package/components/entrypoint-entry-point-html-v3/entry-point-html-v3.twig +15 -20
- package/onion-loader-local.js +222 -0
- package/package.json +1 -2
- package/public/block-site-copyright-notice-v3/site-copyright-notice-v3.css +3 -0
- package/public/block-site-copyright-notice-v3/site-copyright-notice-v3.js +58 -5
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.js +0 -7
- package/fields.json +0 -4
- package/index.js +0 -0
|
@@ -13,7 +13,122 @@
|
|
|
13
13
|
</style>
|
|
14
14
|
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} cmpl-core-group-container-styles {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
15
15
|
{% if fields.accent_image_v3.enable_accent_image_v3 %}
|
|
16
|
-
{
|
|
16
|
+
{% for image in fields.accent_image_v3.accent_images %}
|
|
17
|
+
{% set accentImage = get_image(image.accent_image_v3_image) %}
|
|
18
|
+
{% set rotationDesktop = image.desktop_positioning.image_rotation_desktop|default(0) %}
|
|
19
|
+
{% set rotationMobile = image.mobile_positioning.image_rotation_mobile|default(rotationDesktop) %}
|
|
20
|
+
{% set opacity = image.accent_image_opacity|default(1) %}
|
|
21
|
+
{% set borderRadius = image.accent_image_border_radius|default('0px') %}
|
|
22
|
+
{% set zIndex = image.accent_z_index %}
|
|
23
|
+
{% set mobileSettings = image.mobile_positioning %}
|
|
24
|
+
{% set oneHundredWidth = image.set_width_and_height_to_100 %}
|
|
25
|
+
{% set imageFitStyle = image.image_fit_style|ru %}
|
|
26
|
+
{% if image.use_desktop_positioning_for_mobile %}
|
|
27
|
+
{% set mobileSettings = image.desktop_positioning %}
|
|
28
|
+
{% endif %}
|
|
29
|
+
{% set mobilePositioning = mobileSettings.horizontal_offset ~ '% ' ~ mobileSettings.vertical_offset ~ '%' %}
|
|
30
|
+
{% set desktopPositioning = image.desktop_positioning.horizontal_offset ~ '% ' ~ image.desktop_positioning.vertical_offset ~ '%' %}
|
|
31
|
+
{% set desktopWidth = 'calc(' ~ image.desktop_accent_image_width ~ '/ var(--desktop-design-reference) * var(--screen-width-desktop))' %}
|
|
32
|
+
{% set mobileWidth = 'calc(' ~ image.mobile_accent_image_width ~ '/ var(--mobile-design-reference) * var(--screen-width-mobile))' %}
|
|
33
|
+
{% if oneHundredWidth %}
|
|
34
|
+
{% set desktopWidth = '100%' %}
|
|
35
|
+
{% set mobileWidth = '100%' %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% set accentImageContainerElement = 'div' %}
|
|
38
|
+
{% set accentImageCtaType = image.accent_image_cta_type|ru %}
|
|
39
|
+
{% if image.enable_accent_image_cta %}
|
|
40
|
+
{% if image.accent_image_cta_type|ru == 'link' %}
|
|
41
|
+
{% set accentImageContainerElement = 'a' %}
|
|
42
|
+
{% endif %}
|
|
43
|
+
{% endif %}
|
|
44
|
+
{% set suffix = block.id ~ '-' ~ loop.index %}
|
|
45
|
+
{% if image.animations.enable_animations %}
|
|
46
|
+
{{include('components/animations-style-v3.twig', { fields: image, suffix }, with_context = false)}}
|
|
47
|
+
{% endif %}
|
|
48
|
+
<style>
|
|
49
|
+
.loaded .{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
50
|
+
{{include('components/animations-v3.twig', { fields: image, block: block, blockClassName: blockClassName, suffix }, with_context = false)}}
|
|
51
|
+
animation: var(--animation-name) var(--animation-duration) var(--animation-delay) var(--animation-easing) var(--animation-repeat) var(--animation-fill-mode) var(--animation-direction);
|
|
52
|
+
}
|
|
53
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
54
|
+
z-index: {{zIndex}}
|
|
55
|
+
;
|
|
56
|
+
grid-area: main;
|
|
57
|
+
pointer-events: {{image.enable_accent_image_cta ? 'all' : 'none'}};
|
|
58
|
+
position: absolute;
|
|
59
|
+
place-self: {{mobileSettings.vertical_snap|ru}}
|
|
60
|
+
{{mobileSettings.horizontal_snap|ru}}
|
|
61
|
+
;
|
|
62
|
+
width: {{mobileWidth}}
|
|
63
|
+
;
|
|
64
|
+
height: {{mobileWidth}}
|
|
65
|
+
;
|
|
66
|
+
translate: {{mobilePositioning}}
|
|
67
|
+
;
|
|
68
|
+
}
|
|
69
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image .{{blockClassName}}__image-element.element {
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
object-fit: {{imageFitStyle}}
|
|
74
|
+
;
|
|
75
|
+
border-radius: {{borderRadius}}
|
|
76
|
+
;
|
|
77
|
+
border: 0 solid transparent;
|
|
78
|
+
opacity: {{opacity}}
|
|
79
|
+
;
|
|
80
|
+
rotate: {{rotationMobile ~ 'deg'}};
|
|
81
|
+
}
|
|
82
|
+
.{{blockClassName}}__image-number {
|
|
83
|
+
z-index: 99;
|
|
84
|
+
position: absolute;
|
|
85
|
+
font-size: 40px;
|
|
86
|
+
left: 50%;
|
|
87
|
+
top: 50%;
|
|
88
|
+
transform: translate(-50%, -50%);
|
|
89
|
+
color: white;
|
|
90
|
+
text-shadow: 1px 1px 1px blue;
|
|
91
|
+
}
|
|
92
|
+
@media screen and (min-width: 768px) {
|
|
93
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
94
|
+
place-self: {{image.desktop_positioning.vertical_snap|ru}}
|
|
95
|
+
{{image.desktop_positioning.horizontal_snap|ru}};
|
|
96
|
+
width: {{desktopWidth}};
|
|
97
|
+
height: {{desktopWidth}};
|
|
98
|
+
translate: {{desktopPositioning}};
|
|
99
|
+
}
|
|
100
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image .{{blockClassName}}__image-element.element {
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
display: flex;
|
|
104
|
+
object-fit: {{imageFitStyle}};
|
|
105
|
+
border-radius: {{borderRadius}};
|
|
106
|
+
border: 0 solid transparent;
|
|
107
|
+
opacity: {{opacity}};
|
|
108
|
+
rotate: {{rotationDesktop ~ 'deg'}};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
112
|
+
<{{accentImageContainerElement}}
|
|
113
|
+
{{accentImageCtaType == 'link' ? 'href="' ~ image.accent_image_link.url ~ '" ' ~ 'target="' ~ image.accent_image_link.target ~ '" ' : ''}}
|
|
114
|
+
class="{{block.id}}-{{ loop.index }} {{blockClassName}}__accent-image">
|
|
115
|
+
{% if image.inline_raw_svg %}
|
|
116
|
+
{{fn('get_raw_svg', accentImage.id, blockClassName ~ '__image-element element')}}
|
|
117
|
+
{% else %}
|
|
118
|
+
<img
|
|
119
|
+
class="{{block.id}}-{{ loop.index }} {{blockClassName}}__image-element element"
|
|
120
|
+
src="{{ accentImage.src }}"
|
|
121
|
+
width="{{ accentImage.width }}"
|
|
122
|
+
height="{{ accentImage.height }}"
|
|
123
|
+
alt="{{ accentImage.alt }}"
|
|
124
|
+
loading="lazy"
|
|
125
|
+
/>
|
|
126
|
+
{% endif %}
|
|
127
|
+
|
|
128
|
+
{% if fields.accent_image_v3.show_image_number and is_preview %}
|
|
129
|
+
<div class="{{blockClassName}}__image-number">{{ loop.index }}</div>
|
|
130
|
+
{% endif %}
|
|
131
|
+
</{{accentImageContainerElement}}>
|
|
132
|
+
{% endfor %}
|
|
17
133
|
{% endif %}
|
|
18
|
-
{{htmlEntryPoint}}
|
|
19
134
|
</section>
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
<span class="{{blockClassName}}__arrow" style="--arrow-colour: {{arrowColour}}"></span>
|
|
33
33
|
{% endif %}
|
|
34
34
|
</button>
|
|
35
|
-
{
|
|
35
|
+
{% if fields.animations.enable_animations %}
|
|
36
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
37
|
+
{% endif %}
|
|
38
|
+
|
|
36
39
|
</section>
|
|
37
40
|
{% endif %}
|
|
@@ -63,5 +63,8 @@
|
|
|
63
63
|
</div>
|
|
64
64
|
{% endfor %}
|
|
65
65
|
</div>
|
|
66
|
-
{
|
|
66
|
+
{% if fields.animations.enable_animations %}
|
|
67
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
68
|
+
{% endif %}
|
|
69
|
+
|
|
67
70
|
</{{blockElementType}}>
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
{% set imageAspectRatioPortrait = '--image-aspect-ratio-portrait:' ~ field.image_aspect_ratio_portrait ~ ';' %}
|
|
15
15
|
{% set imageAspectRatioMobile = '--image-aspect-ratio-mobile:' ~ field.image_aspect_ratio_mobile ~ ';' %}
|
|
16
16
|
{% set imageFitStyle = '--image-fit-style:' ~ (field.image_fit_style|ru|default('contain')) ~ ';' %}
|
|
17
|
+
{% set linkToAssociatedPost = field.link_to_associated_post %}
|
|
18
|
+
|
|
17
19
|
{% set styleVars = imageWidthPercentDesktop ~ imageWidthPercentMobile ~ imageWidthPercentMobilePx ~ imageWidthPercentDesktopPx ~ imageAspectRatioDesktop ~ imageAspectRatioPortrait ~ imageAspectRatioMobile ~ imageFitStyle %}
|
|
18
20
|
<style>
|
|
19
21
|
.{{blockClassName}}__post-image-container.{{block.id}}{
|
|
@@ -22,7 +24,8 @@
|
|
|
22
24
|
{{positionVars}}
|
|
23
25
|
}
|
|
24
26
|
</style>
|
|
25
|
-
<a aria-label="{{post.title}}" href="{{post.link}}" data-pattern-post-info="link" data-image-select="{{ imageSelect }}" class="{{blockClassName}}__post-image-container {{blockClassName}}__info-item {{blockClassName}}__info-item--{{postType}} {{blockClassName}}__post-image-container--{{imageSelect|replace({'_':'-'})}} {{block.id}}">
|
|
27
|
+
<a aria-label="{{post.title}}" href="{{linkToAssociatedPost ? get_post(post.associated_post).link : post.link}}" data-pattern-post-info="link" data-image-select="{{ imageSelect }}" class="{{blockClassName}}__post-image-container {{blockClassName}}__info-item {{blockClassName}}__info-item--{{postType}} {{blockClassName}}__post-image-container--{{imageSelect|replace({'_':'-'})}} {{block.id}}">
|
|
28
|
+
|
|
26
29
|
{% set imageSizes = imageSizes|default('(min-width: 1440px) 50vw, (min-width: 768px) 50vw, (min-width: 500px) 50vw, 100vw') %}
|
|
27
30
|
{% set imageFields = [] %}
|
|
28
31
|
{% set imageFields = imageFields|merge({'enable_image' : true}) %}
|
|
@@ -33,7 +36,9 @@
|
|
|
33
36
|
{% elseif attribute(post, 'post_image') %}
|
|
34
37
|
{% set imageFields = imageFields|merge({'image' : attribute(post, 'post_image')}) %}
|
|
35
38
|
{% endif %}
|
|
36
|
-
{
|
|
39
|
+
{% set imageFields = imageFields|merge({'enable_image' : true}) %}
|
|
40
|
+
{% set imageFields = imageFields|merge({'desktop_image' : imageFields.image}) %}
|
|
41
|
+
{{ include('components/responsive-image-v3.twig', {
|
|
37
42
|
fields: imageFields,
|
|
38
43
|
block: block,
|
|
39
44
|
blockClassName: imageClassname,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
{% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
4
4
|
{% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
5
5
|
{% set elementType = field.element_type|ru %}
|
|
6
|
+
{% set numberOfTags = field.number_of_tags %}
|
|
6
7
|
|
|
7
8
|
<style>
|
|
8
9
|
.{{blockClassName}}__post-tags.{{block.id}}{
|
|
@@ -11,5 +12,11 @@
|
|
|
11
12
|
}
|
|
12
13
|
</style>
|
|
13
14
|
<div class="{{blockClassName}}__post-tags {{blockClassName}}__info-item {{block.id}}">
|
|
14
|
-
<div class="{{blockClassName}}__cta cmpl-cta-style-{{field.cta_style}}">
|
|
15
|
+
<div class="{{blockClassName}}__cta cmpl-cta-style-{{field.cta_style}}">
|
|
16
|
+
|
|
17
|
+
{% for tag in post.tags | slice(0, numberOfTags) %}
|
|
18
|
+
{{ tag.name }}
|
|
19
|
+
{% endfor %}
|
|
20
|
+
|
|
21
|
+
</div>
|
|
15
22
|
</div>
|
|
@@ -10,5 +10,8 @@
|
|
|
10
10
|
{{previewEntryPoint}}
|
|
11
11
|
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-assetkey="{{blockClassName}}">
|
|
12
12
|
{{fields.code}}
|
|
13
|
-
{
|
|
13
|
+
{% if fields.animations.enable_animations %}
|
|
14
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
15
|
+
{% endif %}
|
|
16
|
+
|
|
14
17
|
</section>
|
|
@@ -12,5 +12,148 @@
|
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
14
|
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{fields.section_class}} {{classNameEntryPoint}} lazy-fade {{block.id}}" data-jsload="false" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
15
|
-
{
|
|
15
|
+
{% if fields.enable_image|default(fields.image_enabled) %}
|
|
16
|
+
{% set renderDynamic = fields.child_patterns.render_dynamic|default(0) %}
|
|
17
|
+
{% set suffix = fields.child_patterns.suffix %}
|
|
18
|
+
|
|
19
|
+
{% set desktopType = fields.desktop_image_aspect_ratio|ru|default('original') %}
|
|
20
|
+
{% set tabletType = fields.tablet_image_aspect_ratio|ru|default('original') %}
|
|
21
|
+
{% set mobileType = fields.mobile_image_aspect_ratio|ru|default('original') %}
|
|
22
|
+
|
|
23
|
+
{% set desktopImage = get_image(fields.desktop_image) %}
|
|
24
|
+
{% set tabletImage = get_image(fields.tablet_image)|default(desktopImage) %}
|
|
25
|
+
{% set mobileImage = get_image(fields.mobile_image) %}
|
|
26
|
+
|
|
27
|
+
{% set imageSizes = fields.custom_image_sizes %}
|
|
28
|
+
{% set sizes = imageSizes|default('(min-width: 1440px) 100vw, (min-width: 1024px) 1024px, (min-width: 768px) 768px, (min-width: 500px) 100vw, 250px') %}
|
|
29
|
+
|
|
30
|
+
{% set imageFitStyle = '--image-fit-style:' ~ (fields.image_fit_style|ru|default('cover')) ~ ';' %}
|
|
31
|
+
{% set imageObjectPositionAlign = '--image-object-position-align:' ~ (fields.image_object_position_align|ru) ~ ';' %}
|
|
32
|
+
{% set imageWidth = '--image-width:' ~ fields.image_width|default(100) ~ '%;' %}
|
|
33
|
+
{% set imageWidthMobile = '--image-width-mobile:' ~ fields.image_width_mobile|default(100) ~ '%;' %}
|
|
34
|
+
{% set imageWidthPortrait = '--image-width-portrait:' ~ fields.image_width_portrait|default(100) ~ '%;' %}
|
|
35
|
+
{% set imageOpacity = '--image-opacity:' ~ fields.image_opacity|default(1) ~ ';' %}
|
|
36
|
+
{% set imageZIndex = '--image-z-index:' ~ fields.image_z_index|default(0) ~ ';' %}
|
|
37
|
+
{% set imagePosition = '--image-position:' ~ fields.image_position|ru ~ ';' %}
|
|
38
|
+
{% set imageGridArea = '--image-grid-area:' ~ fields.image_grid_area|ru|default('main') ~ ';' %}
|
|
39
|
+
{% set imageBorderRadius = '--image-border-radius:' ~ fields.image_border_radius ~ ';' %}
|
|
40
|
+
{% set imageAspectRatioDesktop = '--image-aspect-ratio-desktop:' ~ fields.image_aspect_ratio_desktop ~ ';' %}
|
|
41
|
+
{% set imageAspectRatioPortrait = '--image-aspect-ratio-portrait:' ~ fields.image_aspect_ratio_portrait ~ ';' %}
|
|
42
|
+
{% set imageAspectRatioMobile = '--image-aspect-ratio-mobile:' ~ fields.image_aspect_ratio_mobile ~ ';' %}
|
|
43
|
+
{% set imageOffsetVert = '--image-offset-vert:' ~ fields.image_offset_vertical ~ '%;' %}
|
|
44
|
+
{% set imageOffsetHoriz = '--image-offset-horiz:' ~ fields.image_offset_horizontal ~ '%;' %}
|
|
45
|
+
{% set enableImageBorder = fields.enable_image_border %}
|
|
46
|
+
{% if enableImageBorder %}
|
|
47
|
+
{% set imageBorderColour = '--image-border-colour:' ~ (fields.image_border_colour|ru|default(000)) ~ ';' %}
|
|
48
|
+
{% set imageBorderWidth = '--image-border-width:' ~ (fields.image_border_width|ru|default(1)) ~ ';' %}
|
|
49
|
+
{% set imageBorderStyle = '--image-border-style:' ~ (fields.image_border_style|ru|default('solid')) ~ ';' %}
|
|
50
|
+
{% endif %}
|
|
51
|
+
{% set imageMinHeightMobile = '--image-min-height-mobile:' ~ (fields.image_min_height_mobile|ru|default('auto')) ~ ';' %}
|
|
52
|
+
{% set imageMinHeightDesktop = '--image-min-height-desktop:' ~ (fields.image_min_height_desktop|ru|default('auto')) ~ ';' %}
|
|
53
|
+
{% set subtractHeaderHeight = '--cancel-header-height:' ~ (fields.subtract_header_height ? '0px' : 'var(--global-site-header-height, 0px)') ~ ';' %}
|
|
54
|
+
{% set imageBorderString = imageBorderColour ~ imageBorderWidth ~ imageBorderStyle %}
|
|
55
|
+
{% set pictureStylesString = imageFitStyle ~ imageObjectPositionAlign ~ imageWidth ~ imageWidthMobile ~ imageWidthPortrait ~ imageOpacity ~ imageAspectRatioDesktop ~ imageAspectRatioPortrait ~ imageAspectRatioMobile ~ imageOffsetVert ~ imageOffsetHoriz ~ imageBorderRadius ~ imagePosition ~ imageGridArea ~ imageMinHeightMobile ~ imageMinHeightDesktop ~ subtractHeaderHeight ~ imageZIndex %}
|
|
56
|
+
{% set enableEagerLoading = fields.enable_eager_image_loading ? 'loading="eager" fetchpriority="high"' : 'loading="lazy"' %}
|
|
57
|
+
|
|
58
|
+
{% set selectedAspectRatioDesktop = fields.desktop_image_aspect_ratio|ru %}
|
|
59
|
+
{% set selectedAspectRatioTablet = fields.tablet_image_aspect_ratio|ru %}
|
|
60
|
+
{% set selectedAspectRatioMobile = fields.mobile_image_aspect_ratio|ru %}
|
|
61
|
+
|
|
62
|
+
{% if selectedAspectRatioDesktop == 'original' %}
|
|
63
|
+
{% set isSVG = desktopImage.post_mime_type == 'image/svg+xml' %}
|
|
64
|
+
{% set selectedAspectRatioDesktop = null %}
|
|
65
|
+
{% set mainImageSrc = isSVG ? desktopImage.src : gt_image_mainsrc(desktopImage) %}
|
|
66
|
+
{% set desktopSrcset = isSVG ? desktopImage.src : gt_image_srcset(desktopImage) %}
|
|
67
|
+
{% elseif selectedAspectRatioDesktop == 'custom_aspect_ratio' %}
|
|
68
|
+
{% set isSVG = desktopImage.post_mime_type == 'image/svg+xml' %}
|
|
69
|
+
{% set customAspectRatio = fields.desktop_custom_aspect_ratio %}
|
|
70
|
+
{% set mainImageSrc = isSVG ? desktopImage.src : gt_image_mainsrc(desktopImage, {"aspect_ratio": customAspectRatio|replace({'/' : 'x', ':' : 'x'})}) %}
|
|
71
|
+
{% set desktopSrcset = isSVG ? desktopImage.src : gt_image_srcset(desktopImage, {"aspect_ratio": customAspectRatio|replace({'/' : 'x', ':' : 'x'})}) %}
|
|
72
|
+
{% else %}
|
|
73
|
+
{% set isSVG = desktopImage.post_mime_type == 'image/svg+xml' %}
|
|
74
|
+
{% set mainImageSrc = isSVG ? desktopImage.src : gt_image_mainsrc(desktopImage, {"aspect_ratio" : selectedAspectRatioDesktop}) %}
|
|
75
|
+
{% set desktopSrcset = isSVG ? desktopImage.src : gt_image_srcset(desktopImage, {"aspect_ratio" : selectedAspectRatioDesktop}) %}
|
|
76
|
+
{% endif %}
|
|
77
|
+
|
|
78
|
+
{% if selectedAspectRatioTablet == 'original' %}
|
|
79
|
+
{% set isSVG = tabletImage.post_mime_type == 'image/svg+xml' %}
|
|
80
|
+
{% set selectedAspectRatioTablet = null %}
|
|
81
|
+
{% set tabletSrcset = isSVG ? tabletImage.src : gt_image_srcset(tabletImage)%}
|
|
82
|
+
{% elseif selectedAspectRatioTablet == 'custom_aspect_ratio' %}
|
|
83
|
+
{% set isSVG = tabletImage.post_mime_type == 'image/svg+xml' %}
|
|
84
|
+
{% set customAspectRatio = fields.tablet_custom_aspect_ratio %}
|
|
85
|
+
{% set mainImageSrc = isSVG ? tabletImage.src : gt_image_mainsrc(tabletImage, {"aspect_ratio": customAspectRatio|replace({'/' : 'x', ':' : 'x'})}) %}
|
|
86
|
+
{% set tabletSrcset = isSVG ? tabletImage.src : gt_image_srcset(tabletImage, {"aspect_ratio": customAspectRatio|replace({'/' : 'x', ':' : 'x'})}) %}
|
|
87
|
+
{% else %}
|
|
88
|
+
{% set isSVG = tabletImage.post_mime_type == 'image/svg+xml' %}
|
|
89
|
+
{% set tabletSrcset = isSVG ? tabletImage.src : gt_image_srcset(tabletImage, {"aspect_ratio" : selectedAspectRatioTablet})%}
|
|
90
|
+
{% endif %}
|
|
91
|
+
|
|
92
|
+
{% if selectedAspectRatioMobile == 'original' %}
|
|
93
|
+
{% set isSVG = mobileImage.post_mime_type == 'image/svg+xml' %}
|
|
94
|
+
{% set selectedAspectRatioMobile = null %}
|
|
95
|
+
{% set mobileSrcset = isSVG ? mobileImage.src : gt_image_srcset(mobileImage) %}
|
|
96
|
+
{% elseif selectedAspectRatioMobile == 'custom_aspect_ratio' %}
|
|
97
|
+
{% set isSVG = mobileImage.post_mime_type == 'image/svg+xml' %}
|
|
98
|
+
{% set customAspectRatio = fields.mobile_custom_aspect_ratio %}
|
|
99
|
+
{% set mainImageSrc = isSVG ? mobileImage.src : gt_image_mainsrc(mobileImage, {"aspect_ratio": customAspectRatio|replace({'/' : 'x', ':' : 'x'})}) %}
|
|
100
|
+
{% set mobileSrcset = isSVG ? mobileImage.src : gt_image_srcset(mobileImage, {"aspect_ratio": customAspectRatio|replace({'/' : 'x', ':' : 'x'})}) %}
|
|
101
|
+
{% else %}
|
|
102
|
+
{% set isSVG = mobileImage.post_mime_type == 'image/svg+xml' %}
|
|
103
|
+
{% set mobileSrcset = isSVG ? mobileImage.src : gt_image_srcset(mobileImage, {"aspect_ratio" : selectedAspectRatioMobile})%}
|
|
104
|
+
{% endif %}
|
|
105
|
+
{% set parallaxEnabled = fields.parallax_enabled %}
|
|
106
|
+
{% if parallaxEnabled %}
|
|
107
|
+
{% set parallaxDepth = 'data-depth=' ~ fields.parallax_depth ~ " " %}
|
|
108
|
+
{% set parallaxOffsetY = 'data-y-offset=' ~ fields.parallax_offset_y ~ " " %}
|
|
109
|
+
{% endif %}
|
|
110
|
+
|
|
111
|
+
<style>
|
|
112
|
+
.{{blockClassName|default('cbl-image')}}__picture.{{block.id}}{
|
|
113
|
+
{{pictureStylesString}}
|
|
114
|
+
{{imageBorderString}}
|
|
115
|
+
{% if selectedAspectRatioDesktop == 'custom_aspect_ratio' %}
|
|
116
|
+
--image-aspect-ratio-desktop: {{fields.desktop_custom_aspect_ratio}}
|
|
117
|
+
;
|
|
118
|
+
{% elseif selectedAspectRatioDesktop %}
|
|
119
|
+
--image-aspect-ratio-desktop: {{selectedAspectRatioDesktop|replace({'x': '/'})}}
|
|
120
|
+
;
|
|
121
|
+
{% endif %}
|
|
122
|
+
|
|
123
|
+
{% if selectedAspectRatioTablet == 'custom_aspect_ratio' %}
|
|
124
|
+
--image-aspect-ratio-portrait: {{fields.tablet_custom_aspect_ratio}}
|
|
125
|
+
;
|
|
126
|
+
{% elseif selectedAspectRatioTablet %}
|
|
127
|
+
--image-aspect-ratio-portrait: {{selectedAspectRatioTablet|replace({'x': '/'})}}
|
|
128
|
+
;
|
|
129
|
+
{% endif %}
|
|
130
|
+
|
|
131
|
+
{% if selectedAspectRatioMobile == 'custom_aspect_ratio' %}
|
|
132
|
+
--image-aspect-ratio-mobile: {{fields.mobile_custom_aspect_ratio}}
|
|
133
|
+
;
|
|
134
|
+
{% elseif selectedAspectRatioMobile %}
|
|
135
|
+
--image-aspect-ratio-mobile: {{selectedAspectRatioMobile|replace({'x': '/'})}}
|
|
136
|
+
;
|
|
137
|
+
{% endif %}
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
140
|
+
<picture class="{{ blockClassName|default('cbl-image') }}__picture {{block.id}}" data-pattern-suffix="{{suffix}}" data-pattern-dynamic="{{renderDynamic}}" data-assetkey="responsive-image" data-enableparallax="{{ parallaxEnabled }}">
|
|
141
|
+
{% if desktopImage %}
|
|
142
|
+
<source data-type="srcSetDesktop" data-pattern-suffix="{{suffix}}" media="(min-width: 1024px)" class="{{ blockClassName|default('cbl-image') }}__source {{ blockClassName|default('cbl-image') }}--desktop" width="{{ desktopImage.width }}" height="{{ desktopImage.height }}" sizes="{{ sizes }}" srcset="{{desktopSrcset}}"/>
|
|
143
|
+
{% endif %}
|
|
144
|
+
{% if tabletImage %}
|
|
145
|
+
<source data-type="srcSetTablet" data-pattern-suffix="{{suffix}}" media="(min-width: 768px)" width="{{ tabletImage.width }}" height="{{ tabletImage.height }}" class="{{ blockClassName|default('cbl-image') }}__source {{ blockClassName|default('cbl-image') }}--tablet" sizes="{{ sizes }}" srcset="{{ tabletSrcset }}"/>
|
|
146
|
+
{% endif %}
|
|
147
|
+
{% if mobileImage %}
|
|
148
|
+
<source data-type="srcSetMobile" data-pattern-suffix="{{suffix}}" class="{{ blockClassName|default('cbl-image') }}__source {{ blockClassName|default('cbl-image') }}__source--mobile" width="{{ mobileImage.width }}" height="{{ mobileImage.height }}" sizes="{{ sizes }}" srcset="{{ mobileSrcset }}"/>
|
|
149
|
+
{% endif %}
|
|
150
|
+
<img data-type="srcGeneral" data-elementname="main-image" data-pattern-suffix="{{suffix}}" data-pattern-dynamic="{{renderDynamic}}" {{ enableEagerLoading }} class="{{ blockClassName|default('cbl-image') }}__image" src="{{mainImageSrc}}" alt="{{ desktopImage.alt }}" {{ parallaxDepth }} {{ parallaxOffsetY }}/>
|
|
151
|
+
</picture>
|
|
152
|
+
{% endif %}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
{% if fields.animations.enable_animations %}
|
|
156
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
157
|
+
{% endif %}
|
|
158
|
+
|
|
16
159
|
</section>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Site Copyright Notice</title>
|
|
7
|
+
<link rel="stylesheet" href="../../public/publicBundle.css" />
|
|
8
|
+
</head>
|
|
9
|
+
|
|
10
|
+
<body>
|
|
11
|
+
<site-copyright-notice-v3
|
|
12
|
+
id=""
|
|
13
|
+
class="site-copyright-notice-v3 cmpl-block-settings cmpl-block-padding"
|
|
14
|
+
data-scopeid=""
|
|
15
|
+
data-sectionclass=""
|
|
16
|
+
data-copyright-text="@Total Onion"
|
|
17
|
+
data-cssload="true"
|
|
18
|
+
data-eager="false"
|
|
19
|
+
data-assetkey="site-copyright-notice-v3"
|
|
20
|
+
>
|
|
21
|
+
</site-copyright-notice-v3>
|
|
22
|
+
</body>
|
|
23
|
+
|
|
24
|
+
<script type="module">
|
|
25
|
+
import lazyloader from "../../onion-loader-local.js";
|
|
26
|
+
lazyloader.options.debugLogMessages = false;
|
|
27
|
+
lazyloader.lazyloaderInit();
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template id="site-copyright-notice-v3">
|
|
31
|
+
<div class="site-copyright-notice-v3__title"></div>
|
|
32
|
+
</template>
|
|
33
|
+
</html>
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
{% set sectionStyles = styleEntryPoint ~ siteCopyrightColour ~ siteCopyrightFontSizeDesktop ~ siteCopyrightFontSizePortrait ~ siteCopyrightFontSizeMobile %}
|
|
13
13
|
|
|
14
14
|
<style>
|
|
15
|
-
.
|
|
15
|
+
.site-copyright-notice-v3.{{block.id}}{
|
|
16
16
|
{{sectionStyles}}
|
|
17
17
|
}
|
|
18
18
|
</style>
|
|
19
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="
|
|
19
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="site-copyright-notice-v3 {{fields.section_class}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-blockid="{{block.id}}" data-pattern-site-copyright-notice data-assetkey="site-copyright-notice-v3">
|
|
20
20
|
|
|
21
21
|
{% if fields.enable_site_copyright_notice %}
|
|
22
22
|
<div
|
|
23
|
-
class="
|
|
23
|
+
class="site-copyright-notice-v3__title">
|
|
24
24
|
<!-- site-copyright-notice -->
|
|
25
25
|
{{options.site_copyright_notice_v3|default('@Total Onion')}}
|
|
26
26
|
<!-- end-site-copyright-notice -->
|
|
27
27
|
</div>
|
|
28
28
|
{% endif %}
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
</section>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
1
|
{% set blockClassName = "standard-content-v3" %}
|
|
3
2
|
{% set displaytype = 'grid' %}
|
|
4
|
-
|
|
5
3
|
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
|
|
6
4
|
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, cta_styles, environment, is_preview, nav_menus, imageSizes }, with_context = false) %}
|
|
7
5
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
@@ -16,5 +14,32 @@
|
|
|
16
14
|
}
|
|
17
15
|
</style>
|
|
18
16
|
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }} class="{{blockClassName}} {{fields.section_class}} {{classNameEntryPoint}} {{ block.id }} lazy-fade" {{dataAttributeEntryPoint}} data-assetkey="{{blockClassName}}">
|
|
19
|
-
{{
|
|
17
|
+
{% set contentContainerStyles = include('components/content-box-settings-v3.twig', { fields, block, blockClassName }, with_context = false) %}
|
|
18
|
+
<style>
|
|
19
|
+
.{{blockClassName}}__inner-container.{{block.id}}{
|
|
20
|
+
{{contentContainerStyles}}
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
{% set currentBlockId = block.id %}
|
|
24
|
+
<div class="{{blockClassName}}__inner-container {{block.id}}">
|
|
25
|
+
{% for item in fields.content_sections %}
|
|
26
|
+
{% if block %}
|
|
27
|
+
{% set block = block|merge({'anchor' : ''}) %}
|
|
28
|
+
{% set block = block|merge({'id' : block.id ~ '-' ~ loop.index}) %}
|
|
29
|
+
{% set block = block|merge({'className' : ''}) %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% set path = '' %}
|
|
32
|
+
{% if item.acf_fc_layout == 'spacer_v3' or item.acf_fc_layout == 'divider_v3' or item.acf_fc_layout == 'breadcrumb_display' or item.acf_fc_layout == 'block_interactions_v3' %}
|
|
33
|
+
{% set path = 'blocks' %}
|
|
34
|
+
{% else %}
|
|
35
|
+
{% set path = 'components' %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
{{ include(path ~ '/' ~ (item.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: item, block, contentImageSizes, blockClassName, options, nav_menus, cta_styles}, with_context = false, ignore_missing = true) }}
|
|
38
|
+
{% endfor %}
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
{% if fields.animations.enable_animations %}
|
|
42
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
43
|
+
{% endif %}
|
|
44
|
+
|
|
20
45
|
</section>
|
|
@@ -52,5 +52,8 @@
|
|
|
52
52
|
</div>
|
|
53
53
|
{% endfor %}
|
|
54
54
|
</div>
|
|
55
|
-
{
|
|
55
|
+
{% if fields.animations.enable_animations %}
|
|
56
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
57
|
+
{% endif %}
|
|
58
|
+
|
|
56
59
|
</{{blockElementType}}>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% set contentContainerStyles = include('components/content-box-settings-v3.twig', { fields, block, blockClassName }, with_context = false) %}
|
|
1
|
+
{# {% set contentContainerStyles = include('components/content-box-settings-v3.twig', { fields, block, blockClassName }, with_context = false) %}
|
|
2
2
|
<style>
|
|
3
3
|
.{{blockClassName}}__inner-container.{{block.id}}{
|
|
4
4
|
{{contentContainerStyles}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
{% endif %}
|
|
21
21
|
{{ include(path ~ '/' ~ (item.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: item, block, contentImageSizes, blockClassName, options, nav_menus, cta_styles}, with_context = false, ignore_missing = true) }}
|
|
22
22
|
{% endfor %}
|
|
23
|
-
</div>
|
|
23
|
+
</div> #}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% set videoEnabled = fields.enable_video %}
|
|
1
|
+
{# {% set videoEnabled = fields.enable_video %}
|
|
2
2
|
{% set renderDynamic = fields.child_pattern_settings.render_dynamic|default(0) %}
|
|
3
3
|
{% set videoPlayingZindexClass = fields.video_playing_high_z_index ? 'video-playing--high-z-index' : '' %}
|
|
4
4
|
{% if videoEnabled %}
|
|
@@ -87,4 +87,4 @@
|
|
|
87
87
|
{% endif %}
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
|
-
{% endif %}
|
|
90
|
+
{% endif %} #}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
{% if fields.buy_now_button.enable_buy_now_button %}
|
|
1
|
+
{# {% if fields.buy_now_button.enable_buy_now_button %}
|
|
2
2
|
{{ include('components/buy-now-button-v3.twig', {fields, block, blockClassName, options, environment}, with_context = false, ignore_missing = true) }}
|
|
3
|
-
{% endif %}
|
|
4
|
-
{% if fields.enable_scrolling_banner %}
|
|
3
|
+
{% endif %} #}
|
|
4
|
+
{# {% if fields.enable_scrolling_banner %}
|
|
5
5
|
{{ include('components/scrolling-banner-v3.twig', {fields, block, blockClassName}, with_context = false, ignore_missing = true) }}
|
|
6
|
-
{% endif %}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{% endif %}
|
|
10
|
-
{% if fields.enable_image %}
|
|
6
|
+
{% endif %} #}
|
|
7
|
+
|
|
8
|
+
{# {% if fields.enable_image %}
|
|
11
9
|
{{ include('components/responsive-image-v3.twig', {fields, block, blockClassName, is_preview}, with_context = false, ignore_missing = true) }}
|
|
12
|
-
{% endif %}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{% endif %}
|
|
16
|
-
{% if (fields.enable_content_box and fields.content_sections|length > 0) %}
|
|
10
|
+
{% endif %} #}
|
|
11
|
+
|
|
12
|
+
{# {% if (fields.enable_content_box and fields.content_sections|length > 0) %}
|
|
17
13
|
{{ include('components/content-box-v3.twig', { fields, block, options, cta_styles, blockClassName, nav_menus, languages }, with_context = false) }}
|
|
18
|
-
{% endif %}
|
|
19
|
-
{% if fields.animations.enable_animations %}
|
|
20
|
-
|
|
21
|
-
{% endif %}
|
|
22
|
-
{% if fields.lottie_animations.enable_lottie_animations %}
|
|
23
|
-
|
|
24
|
-
{% endif %}
|
|
14
|
+
{% endif %} #}
|
|
15
|
+
{# {% if fields.animations.enable_animations %}
|
|
16
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
17
|
+
{% endif %} #}
|
|
18
|
+
{# {% if fields.lottie_animations.enable_lottie_animations %}
|
|
19
|
+
{{ include('components/lottie-animations-v3.twig', { fields, block, blockClassName }, with_context = false) }}{% endif %} #}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import jsAssetList from './public/jsAssets.mjs';
|
|
2
|
+
const coreAssets = jsAssetList.dynamicAssets;
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-use-before-define */
|
|
5
|
+
/* eslint-disable no-console */
|
|
6
|
+
|
|
7
|
+
//*** Lazyloader ***//
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The options object for the lazyloader.
|
|
11
|
+
* @type {object}
|
|
12
|
+
* @property {string} rootMargin The root margin for the IntersectionObserver.
|
|
13
|
+
* @default '0% 0% 0%'
|
|
14
|
+
* @property {number} threshold The threshold for the IntersectionObserver.
|
|
15
|
+
* @property {boolean} debugLogMessages Whether to log debug messages.
|
|
16
|
+
* @property {array} lazyBlocksToSearchFor The array of lazy blocks to search for.
|
|
17
|
+
* @property {array} lazyBlocksFound The array of lazy blocks found.
|
|
18
|
+
* @property {array} assetArray The array of assets to load.
|
|
19
|
+
* @property {object} assetMap The asset map object.
|
|
20
|
+
* @property {boolean} ignoreCss Whether to ignore the css.
|
|
21
|
+
* @property {boolean} lazy Whether to lazy load the assets (after Assets alias).
|
|
22
|
+
* @property {string} filePath The file path for the js assets.
|
|
23
|
+
* @default 'js/blocks/'
|
|
24
|
+
* @property {string} filePathCss The file path for the css assets (after Assets alias).
|
|
25
|
+
* @default 'scss/blocks/'
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
const options = {
|
|
29
|
+
rootMargin: '100% 0px 300px 0px',
|
|
30
|
+
threshold: 0,
|
|
31
|
+
debugLogMessages: false,
|
|
32
|
+
lazyBlocksToSearchFor: [],
|
|
33
|
+
lazyBlocksFound: [],
|
|
34
|
+
coreAssets: [...coreAssets],
|
|
35
|
+
projectAssets: [],
|
|
36
|
+
assetMap: {},
|
|
37
|
+
css: true,
|
|
38
|
+
lazy: true,
|
|
39
|
+
cssLoadingStyle: 'component', // 'component' or 'bundle'
|
|
40
|
+
filePrefix: 'dev', //'nodemodules', 'assets' or 'dev'
|
|
41
|
+
fileSuffixJs: '.js',
|
|
42
|
+
fileSuffixCss: '.css',
|
|
43
|
+
filePath: 'js/blocks',
|
|
44
|
+
filePathCss: 'scss/blocks'
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initializes the lazyloader.
|
|
49
|
+
*/
|
|
50
|
+
function lazyloaderInit() {
|
|
51
|
+
const assetArray = options.coreAssets.concat(options.projectAssets);
|
|
52
|
+
options.debugLogMessages && console.log('Lazy Loader initialized!');
|
|
53
|
+
options.lazyBlocksToSearchFor = [];
|
|
54
|
+
assetArray.forEach((asset) => {
|
|
55
|
+
if (asset.assetKey.includes('-v3')) {
|
|
56
|
+
options.assetMap[asset.assetKey] = {
|
|
57
|
+
js: () =>
|
|
58
|
+
import(
|
|
59
|
+
`./public/block-${asset.assetKey}/${asset.assetKey}${options.fileSuffixJs}`
|
|
60
|
+
)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Add to lazy blocks to search for
|
|
65
|
+
options.lazyBlocksToSearchFor.push(
|
|
66
|
+
`[data-assetkey="${asset.assetKey}"]`
|
|
67
|
+
);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
options.lazyBlocksToSearchFor.forEach((block) => {
|
|
71
|
+
if (document.querySelector(block)) {
|
|
72
|
+
options.lazyBlocksFound.push(document.querySelector(block));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
// options.lazyBlocksFound = Array.from(
|
|
77
|
+
// document.querySelectorAll(options.lazyBlocksToSearchFor)
|
|
78
|
+
// );
|
|
79
|
+
|
|
80
|
+
// If data eager loading attribute is true - load js straight away
|
|
81
|
+
options.lazyBlocksFound.forEach((block) => {
|
|
82
|
+
if (block.dataset.eager == 'true') {
|
|
83
|
+
callBlockJs(block);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
options.debugLogMessages && console.log('Lazyloader Options', options);
|
|
88
|
+
|
|
89
|
+
// Check if the browser has intersection observer which is needed for the Lazyloader or if all assets should load immediately anyway.
|
|
90
|
+
if (options.lazy === false || !('IntersectionObserver' in window)) {
|
|
91
|
+
options.debugLogMessages && console.log('running eager loading');
|
|
92
|
+
try {
|
|
93
|
+
options.lazyBlocksFound.forEach((block) => {
|
|
94
|
+
callBlockJs(block);
|
|
95
|
+
});
|
|
96
|
+
} catch (error) {
|
|
97
|
+
console.log(error);
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
options.debugLogMessages && console.log('running normal process');
|
|
101
|
+
observerInit(options.lazyBlocksFound);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Initializes the IntersectionObserver for the lazy loading of blocks.
|
|
107
|
+
* @param {array} elementsToObserve The array of block elements to observe.
|
|
108
|
+
*/
|
|
109
|
+
function observerInit(elementsToObserve = []) {
|
|
110
|
+
const observer = new IntersectionObserver(intersectionCallback, options);
|
|
111
|
+
elementsToObserve.forEach((element) => {
|
|
112
|
+
if (element) {
|
|
113
|
+
observer.observe(element);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Callback function for the IntersectionObserver.
|
|
120
|
+
* @param {array} entries The entries array from the IntersectionObserver.
|
|
121
|
+
* @param {object} observer The IntersectionObserver object.
|
|
122
|
+
*/
|
|
123
|
+
const intersectionCallback = (entries, observer) => {
|
|
124
|
+
options.debugLogMessages && console.log('Observer entries', entries);
|
|
125
|
+
entries.forEach((entry) => {
|
|
126
|
+
if (entry.isIntersecting) {
|
|
127
|
+
const lazyTarget = entry.target;
|
|
128
|
+
try {
|
|
129
|
+
callBlockJs(lazyTarget);
|
|
130
|
+
} catch (error) {
|
|
131
|
+
console.log(
|
|
132
|
+
error,
|
|
133
|
+
'block data assetkey:',
|
|
134
|
+
lazyTarget.dataset.assetkey,
|
|
135
|
+
' - ',
|
|
136
|
+
'asset import function:',
|
|
137
|
+
options.assetMap[lazyTarget.dataset.assetkey],
|
|
138
|
+
'are you missing an asset key or import function?'
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
observer.unobserve(lazyTarget);
|
|
142
|
+
options.debugLogMessages &&
|
|
143
|
+
console.log('Unobserving lazyElement', lazyTarget);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Calls the block asset functions and adds the loaded class to the block.
|
|
150
|
+
* @param {object} block The block element.
|
|
151
|
+
*/
|
|
152
|
+
function callBlockJs(block) {
|
|
153
|
+
if (!block.classList.contains('loaded')) {
|
|
154
|
+
Promise.all([
|
|
155
|
+
options.assetMap[block.dataset.assetkey].js(),
|
|
156
|
+
block.dataset.cssload !== 'false' && loadCss(block.dataset.assetkey)
|
|
157
|
+
]).then((module) => {
|
|
158
|
+
try {
|
|
159
|
+
if (block.dataset.jsload !== 'false') {
|
|
160
|
+
module[0].default({
|
|
161
|
+
block,
|
|
162
|
+
css: false
|
|
163
|
+
});
|
|
164
|
+
} else {
|
|
165
|
+
options.debugLogMessages &&
|
|
166
|
+
console.log(
|
|
167
|
+
`Skipping JS load for block: ${block.dataset.assetkey}`
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
// block.classList.add('loaded');
|
|
171
|
+
} catch (error) {
|
|
172
|
+
console.log('could not load block js', error);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Checks to see if the css for the block has already been included in the 'criticalconfig' window object.
|
|
180
|
+
* Will return true if it is.
|
|
181
|
+
* @param {string} assetKey The assetkey string of the block.
|
|
182
|
+
* @returns {boolean}
|
|
183
|
+
*/
|
|
184
|
+
export function inCriticalCssConfig(assetKey) {
|
|
185
|
+
if (!globalThis.criticalConfig) {
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
if (
|
|
189
|
+
globalThis.criticalConfig &&
|
|
190
|
+
globalThis.criticalConfig.indexOf(assetKey) === -1
|
|
191
|
+
) {
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Dynamically loads the css for the block if it has not already been included in critical css or the css property is set to false.
|
|
199
|
+
* @param {string} assetKey The assetkey string of the block.
|
|
200
|
+
* @param {object} options The options object which will at the very least contain the css property set to true.
|
|
201
|
+
* @returns {promise}
|
|
202
|
+
*/
|
|
203
|
+
export function loadCss(assetKey) {
|
|
204
|
+
if (options.css == true) {
|
|
205
|
+
const promise = new Promise((resolve) => {
|
|
206
|
+
if (!inCriticalCssConfig(assetKey)) {
|
|
207
|
+
const link = `<link rel="stylesheet" href="./public/block-${assetKey}/${assetKey}${options.fileSuffixCss}" />`;
|
|
208
|
+
document.head.insertAdjacentHTML('beforeend', link);
|
|
209
|
+
resolve(true);
|
|
210
|
+
} else {
|
|
211
|
+
return resolve(true);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const api = {
|
|
218
|
+
lazyloaderInit,
|
|
219
|
+
options
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export default api;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@total_onion/onion-library",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.199",
|
|
4
4
|
"description": "Component library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/TotalOnion/onion-library#readme",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@total_onion/onion-loader": "^1.0.10",
|
|
22
21
|
"@total_onion/onion-modalcontroller": "^1.0.5",
|
|
23
22
|
"@total_onion/onion-utils": "^1.0.10",
|
|
24
23
|
"@total_onion/onion-videocontroller": "^1.0.2",
|
|
@@ -1,7 +1,60 @@
|
|
|
1
1
|
export default function sitecopyrightnoticev3Js(options = {}) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
try {
|
|
3
|
+
const {block} = options;
|
|
4
|
+
|
|
5
|
+
customElements.define(
|
|
6
|
+
'site-copyright-notice-v3',
|
|
7
|
+
class extends HTMLElement {
|
|
8
|
+
static observedAttributes = ['data-copyright-text'];
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
let template = document.querySelector(
|
|
12
|
+
'#site-copyright-notice-v3'
|
|
13
|
+
);
|
|
14
|
+
let templateContent = template.content;
|
|
15
|
+
|
|
16
|
+
// const shadowRoot = this.attachShadow({mode: 'open'});
|
|
17
|
+
// shadowRoot.appendChild(
|
|
18
|
+
// document.importNode(templateContent, true)
|
|
19
|
+
// );
|
|
20
|
+
// shadowRoot.querySelector(
|
|
21
|
+
// '.site-copyright-notice-v3__title'
|
|
22
|
+
// ).innerText = this.dataset.copyrightText;
|
|
23
|
+
|
|
24
|
+
this.appendChild(
|
|
25
|
+
document.importNode(templateContent, true)
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
this.classList.add('loaded');
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
console.log('Custom element added to page.');
|
|
32
|
+
this.querySelector(
|
|
33
|
+
'.site-copyright-notice-v3__title'
|
|
34
|
+
).innerText = this.dataset.copyrightText;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// disconnectedCallback() {
|
|
38
|
+
// console.log('Custom element removed from page.');
|
|
39
|
+
// }
|
|
40
|
+
|
|
41
|
+
// connectedMoveCallback() {
|
|
42
|
+
// console.log('Custom element moved with moveBefore()');
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
// adoptedCallback() {
|
|
46
|
+
// console.log('Custom element moved to new page.');
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
50
|
+
console.log(`Attribute ${name} has changed.`);
|
|
51
|
+
this.querySelector(
|
|
52
|
+
'.site-copyright-notice-v3__title'
|
|
53
|
+
).innerText = this.dataset.copyrightText;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
console.error(error);
|
|
59
|
+
}
|
|
7
60
|
}
|
package/fields.json
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47]",
|
|
3
|
-
"layouts": "<div class=\"layout\" data-id=\"65e73e1d5ad6d\" data-layout=\"standard_content_box_v2\">\n \n <input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][acf_fc_layout]\" value=\"standard_content_box_v2\"> \n <div class=\"acf-fc-layout-handle\" title=\"Drag to reorder\" data-name=\"collapse-layout\">\n <span class=\"acf-fc-layout-order\">1</span> <span class=\"acfe-layout-title acf-js-tooltip\" title=\"Layout: Text v2\"><span class=\"acfe-layout-title-text\"><span>Text v2</span></span></span> </div>\n \n <input type=\"text\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_layout_658063d590f0f_title\" class=\"acfe-flexible-control-title\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_layout_658063d590f0f_title]\" value=\"Text v2\" placeholder=\"Text v2\" data-acfe-flexible-control-title-input=\"1\"><input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_layout_658063d590f0f_toggle\" class=\"acfe-flexible-layout-toggle\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_layout_658063d590f0f_toggle]\" value=\"\"> <div class=\"acf-fc-layout-controls\">\n <a class=\"acf-icon small light acf-js-tooltip acfe-flexible-icon dashicons dashicons-category\" href=\"#\" title=\"Copy layout\" data-acfe-flexible-control-copy=\"standard_content_box_v2\"></a> <a class=\"acf-icon small light acf-js-tooltip acfe-flexible-icon dashicons dashicons-hidden\" href=\"#\" title=\"Toggle layout\" data-acfe-flexible-control-toggle=\"standard_content_box_v2\"></a> <a class=\"acf-icon -plus small light acf-js-tooltip\" href=\"#\" data-name=\"add-layout\" title=\"Add layout\"></a> <a class=\"acf-icon -duplicate small light acf-js-tooltip\" href=\"#\" data-name=\"duplicate-layout\" title=\"Duplicate layout\"></a> <a class=\"acf-icon -minus small light acf-js-tooltip\" href=\"#\" data-name=\"remove-layout\" title=\"Remove layout\"></a> <a class=\"acf-icon -collapse small acf-js-tooltip\" href=\"#\" data-name=\"collapse-layout\" title=\"Click to toggle\"></a> </div>\n <div class=\"acf-fields \">\n \n <div class=\"acf-field acf-field-true-false acf-field-6580636e8fad2\" data-name=\"enable_standard_content_box_v2\" data-type=\"true_false\" data-key=\"field_6580636e8fad2\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6580636e8fad2\">Enable content box v2</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-true-false\">\n\t\t\t<input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6580636e8fad2]\" value=\"0\">\t<label>\n\t\t<input type=\"checkbox\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6580636e8fad2\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6580636e8fad2]\" value=\"1\" class=\"acf-switch-input\" autocomplete=\"off\">\n\t\t\t<div class=\"acf-switch\"><span class=\"acf-switch-on\">Yes</span><span class=\"acf-switch-off\">No</span><div class=\"acf-switch-slider\"></div></div>\t\t\t\t</label>\n</div>\n\t\t\t</div>\n</div>\n<div class=\"acf-field acf-field-accordion acf-field-657305391a395 acf-accordion\" data-type=\"accordion\" data-key=\"field_657305391a395\">\n<div class=\"acf-label acf-accordion-title\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a395\">Text Editor Settings</label></div>\n<div class=\"acf-input acf-accordion-content\">\n\t\t<div class=\"acf-fields\"><div class=\"acf-field acf-field-tab acf-field-657305391a3e1\" data-type=\"tab\" data-key=\"field_657305391a3e1\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a3e1\">Desktop</label></div>\n<div class=\"acf-input\">\n\t\t<a href=\"\" class=\"acf-tab-button\" data-placement=\"top\" data-endpoint=\"0\" data-key=\"field_657305391a3e1\">Desktop</a>\n\t\t\t<a href=\"\" class=\"acf-tab-button\" data-placement=\"top\" data-endpoint=\"0\" data-key=\"field_657305391a3e1\">Desktop</a></div>\n</div><div class=\"acf-field acf-field-select acf-field-65730630ec0cd\" data-name=\"typographic_style\" data-type=\"select\" data-key=\"field_65730630ec0cd\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65730630ec0cd\">Typographic style</label></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65730630ec0cd-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65730630ec0cd]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65730630ec0cd\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65730630ec0cd]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"0\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65730630ec0cd\" data-ajax=\"0\"><option value=\"__h1-l-sizing\" data-select2-id=\"70\">H1 Large</option><option value=\"__h1-sizing\" data-select2-id=\"71\">H1</option><option value=\"__h2-sizing\" data-select2-id=\"72\">H2</option><option value=\"__h3-sizing\" data-select2-id=\"73\">H3</option><option value=\"__h4-sizing\" data-select2-id=\"74\">H4</option><option value=\"__h5-sizing\" data-select2-id=\"75\">H5</option><option value=\"__h6-sizing\" data-select2-id=\"76\">H6</option><option value=\"__sh1-sizing\" data-select2-id=\"77\">SH1</option><option value=\"__sh2-sizing\" data-select2-id=\"78\">SH2</option><option value=\"__sh3-sizing\" data-select2-id=\"79\">SH3</option><option value=\"__sh4-sizing\" data-select2-id=\"80\">SH4</option><option value=\"__sh5-sizing\" data-select2-id=\"81\">SH5</option><option value=\"__sh6-sizing\" data-select2-id=\"82\">SH6</option><option value=\"__p-l-sizing\" data-select2-id=\"83\">P large</option><option value=\"__p-sizing\" selected=\"selected\" data-i=\"0\" data-select2-id=\"84\">P</option><option value=\"__p-s-sizing\" data-select2-id=\"85\">P small</option><option value=\"__p-xs-sizing\" data-select2-id=\"86\">P extra small</option><option value=\"__p-xxs-sizing\" data-select2-id=\"87\">P extra extra small</option><option value=\"__p-xxxs-sizing\" data-select2-id=\"88\">P extra extra extra small</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-6584704d5ba56\" data-name=\"desktop_default_text_colour\" data-type=\"select\" data-key=\"field_6584704d5ba56\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_6584704d5ba56\">Desktop default text colour</label></div>\n<div class=\"acf-input\">\n<select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_6584704d5ba56\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_6584704d5ba56]\" data-ui=\"0\" data-ajax=\"0\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\"><option value=\"\" selected=\"selected\" data-i=\"0\">Select</option><option value=\"__var(--theme-primary-text-colour)\">Theme primary text</option><option value=\"__var(--theme-secondary-text-colour)\">Theme secondary text</option><option value=\"__var(--theme-tertiary-text-colour)\">Theme tertiary text</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a472\" style=\"width:50%;\" data-name=\"desktop_default_text_align\" data-type=\"select\" data-key=\"field_657305391a472\" data-width=\"50\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a472\">Desktop default text align</label></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a472-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a472]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a472\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a472]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a472\" data-ajax=\"1\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"90\">- Select -</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a4b9\" style=\"width:50%;\" data-name=\"desktop_default_text_transform\" data-type=\"select\" data-key=\"field_657305391a4b9\" data-width=\"50\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a4b9\">Desktop default text transform</label><p class=\"description\">Leave empty to allow mixed case</p></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a4b9-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a4b9]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a4b9\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a4b9]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a4b9\" data-ajax=\"1\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"92\">- Select -</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a502\" style=\"width:50%;\" data-name=\"desktop_default_font_weight\" data-type=\"select\" data-key=\"field_657305391a502\" data-width=\"50\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a502\">Desktop default font weight</label></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a502-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a502]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a502\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a502]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a502\" data-ajax=\"1\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"94\">- Select -</option></select></div>\n</div><div class=\"acf-field acf-field-range acf-field-65afed77d3cf9\" style=\"width:50%;\" data-name=\"wysiwyg_max_width\" data-type=\"range\" data-key=\"field_65afed77d3cf9\" data-width=\"50\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65afed77d3cf9\">Wysiwyg Max Width (%)</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-range-wrap\"><input type=\"range\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65afed77d3cf9\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65afed77d3cf9]\" value=\"100\" min=\"0\" max=\"100\" step=\"1\"><input type=\"number\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65afed77d3cf9-alt\" value=\"100\" step=\"1\" style=\"width: 3.9em;\"></div></div>\n</div><div class=\"acf-field acf-field-tab acf-field-657305391a549\" data-type=\"tab\" data-key=\"field_657305391a549\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a549\">Mobile</label></div>\n<div class=\"acf-input\">\n\t\t<a href=\"\" class=\"acf-tab-button\" data-placement=\"top\" data-endpoint=\"0\" data-key=\"field_657305391a549\">Mobile</a>\n\t\t\t<a href=\"\" class=\"acf-tab-button\" data-placement=\"top\" data-endpoint=\"0\" data-key=\"field_657305391a549\">Mobile</a></div>\n</div><div class=\"acf-field acf-field-select acf-field-65847772ec801 acf-hidden\" data-name=\"typographic_style_mobile\" data-type=\"select\" data-key=\"field_65847772ec801\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65847772ec801\">Typographic style mobile</label></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65847772ec801-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65847772ec801]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65847772ec801\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65847772ec801]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"0\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65847772ec801\" data-ajax=\"1\"><option value=\"__p-sizing\" selected=\"selected\" data-i=\"0\" data-select2-id=\"96\">P</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a56c acf-hidden\" data-name=\"mobile_default_text_colour\" data-type=\"select\" data-key=\"field_657305391a56c\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a56c\">Mobile default text colour</label><p class=\"description\">Leave empty to use default theme colour</p></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a56c-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a56c]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a56c\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a56c]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a56c\" data-ajax=\"0\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"98\">- Select -</option><option value=\"__var(--theme-primary-text-colour)\" data-select2-id=\"99\">Theme primary text colour</option><option value=\"__var(--theme-secondary-text-colour)\" data-select2-id=\"100\">Theme secondary text colour</option><option value=\"__var(--theme-tertiary-text-colour)\" data-select2-id=\"101\">Theme tertiary text</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a5d6 acf-hidden\" style=\"width:50%;\" data-name=\"mobile_default_text_align\" data-type=\"select\" data-key=\"field_657305391a5d6\" data-width=\"50\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a5d6\">Mobile default text align</label></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a5d6-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a5d6]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a5d6\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a5d6]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a5d6\" data-ajax=\"0\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"103\">- Select -</option><option value=\"__left\" data-select2-id=\"104\">Left</option><option value=\"__center\" data-select2-id=\"105\">Center</option><option value=\"__right\" data-select2-id=\"106\">Right</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a642 acf-hidden\" style=\"width:50%;\" data-name=\"mobile_default_text_transform\" data-type=\"select\" data-key=\"field_657305391a642\" data-width=\"50\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a642\">Mobile default text transform</label><p class=\"description\">Leave empty to allow mixed case</p></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a642-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a642]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a642\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a642]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a642\" data-ajax=\"0\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"108\">- Select -</option><option value=\"__uppercase\" data-select2-id=\"109\">Uppercase</option><option value=\"__capitalize\" data-select2-id=\"110\">Capitalize</option></select></div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a6a0 acf-hidden\" style=\"width:50%;\" data-name=\"mobile_default_font_weight\" data-type=\"select\" data-key=\"field_657305391a6a0\" data-width=\"50\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a6a0\">Mobile default font weight</label></div>\n<div class=\"acf-input\">\n<input type=\"hidden\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a6a0-input\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a6a0]\" value=\"\"><select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a6a0\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a6a0]\" data-ui=\"1\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"1\" data-select2-id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a6a0\" data-ajax=\"0\"><option value=\"\" selected=\"selected\" data-i=\"0\" data-select2-id=\"112\">- Select -</option><option value=\"__default\" data-select2-id=\"113\">Default</option><option value=\"__bold\" data-select2-id=\"114\">Bold</option></select></div>\n</div><div class=\"acf-field acf-field-range acf-field-65afed47d3cf8 acf-hidden\" style=\"width:50%;\" data-name=\"wysiwyg_max_width_mobile\" data-type=\"range\" data-key=\"field_65afed47d3cf8\" data-width=\"50\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65afed47d3cf8\">Wysiwyg Max Width Mobile(%)</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-range-wrap\"><input type=\"range\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65afed47d3cf8\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65afed47d3cf8]\" value=\"100\" min=\"0\" max=\"100\" step=\"1\"><input type=\"number\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65afed47d3cf8-alt\" value=\"100\" step=\"1\" style=\"width: 3.9em;\"></div></div>\n</div><div class=\"acf-field acf-field-tab acf-field-657305391a6ee\" data-type=\"tab\" data-key=\"field_657305391a6ee\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a6ee\">General</label></div>\n<div class=\"acf-input\">\n\t\t<a href=\"\" class=\"acf-tab-button\" data-placement=\"top\" data-endpoint=\"0\" data-key=\"field_657305391a6ee\">General</a>\n\t\t\t<a href=\"\" class=\"acf-tab-button\" data-placement=\"top\" data-endpoint=\"0\" data-key=\"field_657305391a6ee\">General</a></div>\n</div><div class=\"acf-field acf-field-select acf-field-65730562d621d acf-hidden\" data-name=\"element_type\" data-type=\"select\" data-key=\"field_65730562d621d\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65730562d621d\">Element type</label></div>\n<div class=\"acf-input\">\n<select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_65730562d621d\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_65730562d621d]\" data-ui=\"0\" data-ajax=\"0\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"0\"><option value=\"__h1\">H1</option><option value=\"__h2\">H2</option><option value=\"__h3\">H3</option><option value=\"__h4\">H4</option><option value=\"__h5\">H5</option><option value=\"__h6\">H6</option><option value=\"__p\" selected=\"selected\" data-i=\"0\">P</option></select></div>\n</div><div class=\"acf-field acf-field-true-false acf-field-657305391a737 acf-hidden\" data-name=\"enable_text_outline\" data-type=\"true_false\" data-key=\"field_657305391a737\" data-conditions=\"[[{"field":"field_657305391a42a","operator":"==","value":""}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a737\">Enable Text outline</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-true-false\">\n\t\t\t<input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a737]\" value=\"0\">\t<label>\n\t\t<input type=\"checkbox\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a737\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a737]\" value=\"1\" class=\"acf-switch-input\" autocomplete=\"off\">\n\t\t\t<div class=\"acf-switch\"><span class=\"acf-switch-on\">Yes</span><span class=\"acf-switch-off\">No</span><div class=\"acf-switch-slider\"></div></div>\t\t\t\t</label>\n</div>\n\t\t\t</div>\n</div><div class=\"acf-field acf-field-range acf-field-657305391a77f acf-hidden\" data-name=\"text_outline_width\" data-type=\"range\" data-key=\"field_657305391a77f\" data-conditions=\"[[{"field":"field_657305391a42a","operator":"==","value":""},{"field":"field_657305391a737","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a77f\">Text outline width</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-range-wrap\"><input type=\"range\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a77f\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a77f]\" value=\"1\" min=\"0\" max=\"10\" step=\"1\" disabled=\"\"><input type=\"number\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a77f-alt\" value=\"1\" step=\"1\" style=\"width: 3.2em;\"></div></div>\n</div><div class=\"acf-field acf-field-color-picker acf-field-657305391a7c6 acf-hidden\" data-name=\"text_outline_colour\" data-type=\"color_picker\" data-key=\"field_657305391a7c6\" data-conditions=\"[[{"field":"field_657305391a42a","operator":"==","value":""},{"field":"field_657305391a737","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a7c6\">Text outline colour</label></div>\n<div class=\"acf-input\">\n <div class=\"acf-color-picker\" data-display=\"default\" data-button_label=\"Select Color\" data-allow_null=\"1\" data-color_picker=\"1\" data-absolute=\"0\" data-input=\"1\" data-colors=\"[]\" data-alpha=\"0\">\n \n <input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a7c6]\" value=\"\" disabled=\"\"><input type=\"text\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a7c6\" class=\"wp-color-picker\" value=\"\" autocomplete=\"off\"> \n \n \n \n </div>\n </div>\n</div><div class=\"acf-field acf-field-true-false acf-field-657305391a80f acf-hidden\" data-name=\"enable_text_shadow\" data-type=\"true_false\" data-key=\"field_657305391a80f\" data-conditions=\"[[{"field":"field_657305391a42a","operator":"==","value":""}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a80f\">Enable Text Shadow</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-true-false\">\n\t\t\t<input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a80f]\" value=\"0\">\t<label>\n\t\t<input type=\"checkbox\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a80f\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a80f]\" value=\"1\" class=\"acf-switch-input\" autocomplete=\"off\">\n\t\t\t<div class=\"acf-switch\"><span class=\"acf-switch-on\">Yes</span><span class=\"acf-switch-off\">No</span><div class=\"acf-switch-slider\"></div></div>\t\t\t\t</label>\n</div>\n\t\t\t</div>\n</div><div class=\"acf-field acf-field-range acf-field-657305391a859 acf-hidden\" data-name=\"text_shadow_horizontal_offset\" data-type=\"range\" data-key=\"field_657305391a859\" data-conditions=\"[[{"field":"field_657305391a80f","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a859\">Text shadow horizontal offset</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-range-wrap\"><input type=\"range\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a859\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a859]\" value=\"0\" min=\"-40\" max=\"40\" step=\"1\" disabled=\"\"><input type=\"number\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a859-alt\" value=\"0\" step=\"1\" style=\"width: 3.9em;\"></div></div>\n</div><div class=\"acf-field acf-field-range acf-field-657305391a8a1 acf-hidden\" data-name=\"text_shadow_vertical_offset\" data-type=\"range\" data-key=\"field_657305391a8a1\" data-conditions=\"[[{"field":"field_657305391a80f","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a8a1\">Text shadow vertical offset</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-range-wrap\"><input type=\"range\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a8a1\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a8a1]\" value=\"0\" min=\"-40\" max=\"40\" step=\"1\" disabled=\"\"><input type=\"number\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a8a1-alt\" value=\"0\" step=\"1\" style=\"width: 3.9em;\"></div></div>\n</div><div class=\"acf-field acf-field-range acf-field-657305391a8fd acf-hidden\" data-name=\"text_shadow_blur\" data-type=\"range\" data-key=\"field_657305391a8fd\" data-conditions=\"[[{"field":"field_657305391a80f","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a8fd\">Text shadow blur</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-range-wrap\"><input type=\"range\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a8fd\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a8fd]\" value=\"0\" min=\"0\" max=\"20\" step=\"1\" disabled=\"\"><input type=\"number\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a8fd-alt\" value=\"0\" step=\"1\" style=\"width: 3.2em;\"></div></div>\n</div><div class=\"acf-field acf-field-color-picker acf-field-657305391a955 acf-hidden\" data-name=\"text_shadow_colour\" data-type=\"color_picker\" data-key=\"field_657305391a955\" data-conditions=\"[[{"field":"field_657305391a80f","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a955\">Text shadow colour</label></div>\n<div class=\"acf-input\">\n <div class=\"acf-color-picker\" data-display=\"default\" data-button_label=\"Select Color\" data-allow_null=\"1\" data-color_picker=\"1\" data-absolute=\"0\" data-input=\"1\" data-colors=\"[]\" data-alpha=\"1\">\n \n <input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a955]\" value=\"rgba(255,255,255,0.5)\" disabled=\"\"><input type=\"text\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a955\" class=\"wp-color-picker\" value=\"rgba(255,255,255,0.5)\" autocomplete=\"off\" data-alpha-enabled=\"true\" data-alpha-color-type=\"hex\" style=\"width: 278px;\"> \n \n \n \n </div>\n </div>\n</div><div class=\"acf-field acf-field-true-false acf-field-657305391a99f acf-hidden\" data-name=\"enable_wysiwyg_decoration\" data-type=\"true_false\" data-key=\"field_657305391a99f\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a99f\">Enable wysiwyg decoration</label></div>\n<div class=\"acf-input\">\n<div class=\"acf-true-false\">\n\t\t\t<input type=\"hidden\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a99f]\" value=\"0\">\t<label>\n\t\t<input type=\"checkbox\" id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a99f\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a99f]\" value=\"1\" class=\"acf-switch-input\" autocomplete=\"off\">\n\t\t\t<div class=\"acf-switch\"><span class=\"acf-switch-on\">Yes</span><span class=\"acf-switch-off\">No</span><div class=\"acf-switch-slider\"></div></div>\t\t\t\t</label>\n</div>\n\t\t\t</div>\n</div><div class=\"acf-field acf-field-select acf-field-657305391a9e8 acf-hidden\" data-name=\"wysiwyg_decoration_style\" data-type=\"select\" data-key=\"field_657305391a9e8\" data-conditions=\"[[{"field":"field_657305391a99f","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a9e8\">Container decoration style</label></div>\n<div class=\"acf-input\">\n<select id=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6581ad01408dc_field_657305391a9e8\" class=\"\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6581ad01408dc_field_657305391a9e8]\" data-ui=\"0\" data-ajax=\"0\" data-multiple=\"0\" data-placeholder=\"Select\" data-allow_null=\"0\" disabled=\"\"><option value=\"__wysiwyg-decoration-1\" selected=\"selected\" data-i=\"0\">Decoration style 1</option></select></div>\n</div></div>\n\t\t\t</div>\n</div><div class=\"acf-field acf-field-accordion\" data-type=\"accordion\"><div class=\"acf-input\"><div class=\"acf-fields\" data-endpoint=\"1\"></div></div></div>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<div class=\"acf-field acf-field-wysiwyg acf-field-6580636e8fbaa acf-hidden\" data-name=\"standard_content_box_text_content_v2\" data-type=\"wysiwyg\" data-key=\"field_6580636e8fbaa\" data-acfe-wysiwyg-auto-init=\"1\" data-acfe-wysiwyg-height=\"300\" data-conditions=\"[[{"field":"field_6580636e8fad2","operator":"==","value":"1"}]]\" hidden=\"\">\n<div class=\"acf-label\">\n<label for=\"acf-field_63a06d8fb1a47-acfcloneindex-field_658063d590f11_field_6580636e8fbaa\">Text content</label></div>\n<div class=\"acf-input\">\n\t\t<div id=\"wp-acf-editor-65e73e1d73ae4-wrap\" class=\"acf-editor-wrap wp-core-ui wp-editor-wrap tmce-active delay\" data-toolbar=\"colour_bold_italic_underline_link\">\n\t\t\t<div id=\"wp-acf-editor-65e73e1d73ae4-editor-tools\" class=\"wp-editor-tools hide-if-no-js\">\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t<div id=\"wp-acf-editor-65e73e1d73ae4-editor-container\" class=\"wp-editor-container\">\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<textarea id=\"acf-editor-65e73e1d73ae4\" class=\"wp-editor-area\" name=\"acf-7a9bb0ea-83d9-4315-a3b0-dcfb3ee03054[field_63a06d8fb1a47][65e73e1d5ad6d][field_658063d590f11_field_6580636e8fbaa]\" style=\"height:300px;\" disabled=\"\"></textarea>\t\t\t</div>\n\t\t</div>\n\t\t\t</div>\n</div>\n \n \n <div class=\"acfe-flexible-opened-actions\"><a href=\"javascript:void(0);\" class=\"button\">Close</a></div>\n \n </div>\n \n </div>"
|
|
4
|
-
}
|
package/index.js
DELETED
|
File without changes
|