@total_onion/onion-library 1.0.174 → 1.0.176
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 +1 -1
- package/components/block-betterreviews-display-v3/betterreviews-display-v3-extra.js +13 -0
- package/components/block-betterreviews-display-v3/betterreviews-display-v3.js +8 -5
- package/components/block-block-interactions-v3/block-interactions-v3.twig +1 -1
- package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.twig +1 -1
- package/components/block-cover-link-v3/cover-link-v3.twig +1 -1
- package/components/block-gradient-layer-v3/gradient-layer-v3.twig +1 -1
- package/components/block-modal-form-v3/modal-form-v3.js +57 -0
- package/components/block-modal-form-v3/modal-form-v3.php +14 -0
- package/components/block-modal-form-v3/modal-form-v3.scss +241 -0
- package/components/block-modal-form-v3/modal-form-v3.twig +28 -0
- package/components/block-nav-menu-container-v3/nav-menu-container-v3.twig +2 -1
- package/components/block-post-info-v3/post-info-v3.twig +1 -1
- package/components/block-product-info-v3/product-info-v3.twig +2 -1
- package/components/block-site-logo-container-v3/site-logo-container-v3.twig +1 -4
- package/components/block-standard-content-v3/standard-content-v3.twig +1 -1
- package/components/block-sub-group-container-v3/sub-group-container-v3.twig +2 -9
- package/components/component-modal-popup-content/modal-popup-content.twig +2 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{{sectionStyles}}
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
14
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{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
|
{{ include('components/accent-image-v3.twig', {fields, block, blockClassName, is_preview}, with_context = false, ignore_missing = true) }}
|
|
17
17
|
{% endif %}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default function (block) {
|
|
2
|
+
const betterReviewsCta = block.querySelector('.better-reviews__cta');
|
|
3
|
+
betterReviewsCta.classList.add(
|
|
4
|
+
'cmpl-cta-style-11',
|
|
5
|
+
'cmpl-cta-animation-style-1'
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
const span = document.createElement('span');
|
|
9
|
+
span.className = 'cmpl-cta-span';
|
|
10
|
+
span.textContent = betterReviewsCta.textContent.trim();
|
|
11
|
+
betterReviewsCta.textContent = '';
|
|
12
|
+
betterReviewsCta.appendChild(span);
|
|
13
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import extraJs from 'Assets/js/blocks/carousel-multi-layout-v3/carousel-multi-layout-v3-extra.js';
|
|
2
|
+
|
|
3
|
+
export default function betterreviewsdisplay3Js(options = {}) {
|
|
2
4
|
try {
|
|
3
|
-
const {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
const {block} = options;
|
|
6
|
+
extraJs(block);
|
|
7
|
+
} catch (error) {
|
|
8
|
+
console.error(error);
|
|
6
9
|
}
|
|
7
|
-
}
|
|
10
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{{sectionStyles}}
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-parentblockid="{{block.videoIdPrefix}}" data-assetkey="{{blockClassName}}">
|
|
14
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-parentblockid="{{block.videoIdPrefix}}" data-assetkey="{{blockClassName}}">
|
|
15
15
|
{% set blockInteractionsEnabled = fields.enable_block_interactions %}
|
|
16
16
|
{% set enableInteractionsButton = fields.enable_interactions_button %}
|
|
17
17
|
{% set interactionsButtonType = fields.interactions_button_type %}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
{{sectionStyles}}
|
|
105
105
|
}
|
|
106
106
|
</style>
|
|
107
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{ blockClassName }} lazy-fade {{block.id}} {{block.className}} {{classNameEntryPoint}} {{block.className ~ '-' ~ loop}}" {{sectionDataAttributes}} data-mobileslidesoffsetbefore="{{carousel_slides_offset_before_mobile}}" data-mobileslidesoffsetafter="{{carousel_slides_offset_after_mobile}}" data-tabletslidesoffsetbefore="{{carousel_slides_offset_before_tablet}}" data-tabletslidesoffsetafter="{{carousel_slides_offset_after_tablet}}" data-desktopslidesoffsetbefore="{{carousel_slides_offset_before_desktop}}" data-desktopslidesoffsetafter="{{carousel_slides_offset_after_desktop}}" data-desktopspacebetweenslides="{{fields.carousel_space_between_slides_desktop}}" data-mobilespacebetweenslides="{{fields.carousel_space_between_slides_mobile}}" data-tabletspacebetweenslides="{{fields.carousel_space_between_slides_tablet}}" data-centeractiveslide="{{fields.carousel_center_active_slide}}" data-centeractiveslideportrait="{{fields.center_active_slide_portrait}}" data-centeractiveslidemobile="{{fields.center_active_slide_mobile}}" data-loopslides="{{fields.loop_slides}}" data-loopslidesportrait="{{fields.loop_slides_portrait}}" data-loopslidesmobile="{{fields.loop_slides_mobile}}" data-paginationstyle="{{carouselPaginationStyle}}" data-assetkey="{{ blockClassName }}">
|
|
107
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{ blockClassName }} lazy-fade {{block.id}} {{block.className}} {{classNameEntryPoint}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} " {{sectionDataAttributes}} data-mobileslidesoffsetbefore="{{carousel_slides_offset_before_mobile}}" data-mobileslidesoffsetafter="{{carousel_slides_offset_after_mobile}}" data-tabletslidesoffsetbefore="{{carousel_slides_offset_before_tablet}}" data-tabletslidesoffsetafter="{{carousel_slides_offset_after_tablet}}" data-desktopslidesoffsetbefore="{{carousel_slides_offset_before_desktop}}" data-desktopslidesoffsetafter="{{carousel_slides_offset_after_desktop}}" data-desktopspacebetweenslides="{{fields.carousel_space_between_slides_desktop}}" data-mobilespacebetweenslides="{{fields.carousel_space_between_slides_mobile}}" data-tabletspacebetweenslides="{{fields.carousel_space_between_slides_tablet}}" data-centeractiveslide="{{fields.carousel_center_active_slide}}" data-centeractiveslideportrait="{{fields.center_active_slide_portrait}}" data-centeractiveslidemobile="{{fields.center_active_slide_mobile}}" data-loopslides="{{fields.loop_slides}}" data-loopslidesportrait="{{fields.loop_slides_portrait}}" data-loopslidesmobile="{{fields.loop_slides_mobile}}" data-paginationstyle="{{carouselPaginationStyle}}" data-assetkey="{{ blockClassName }}">
|
|
108
108
|
|
|
109
109
|
{% set arrowData = fields %}
|
|
110
110
|
<div class="{{ blockClassName }}__inner-container">
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
{{sectionStyles}}
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
14
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
15
15
|
{{htmlEntryPoint}}
|
|
16
16
|
</section>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{{sectionStyles}}
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-jsload="false" data-renderdynamic="{{renderDynamic}}" data-pattern-gradient-overlay data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
16
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-jsload="false" data-renderdynamic="{{renderDynamic}}" data-pattern-gradient-overlay data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
17
17
|
|
|
18
18
|
{{htmlEntryPoint}}
|
|
19
19
|
</section>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default function modalformv3Js ( options = {} ) {
|
|
2
|
+
try {
|
|
3
|
+
const { block } = options;
|
|
4
|
+
|
|
5
|
+
// form logic
|
|
6
|
+
function validateFormFields(block) {
|
|
7
|
+
const inputs = block.querySelectorAll(
|
|
8
|
+
'.cdb_form_field input, .cdb_form_field select, .cdb_form_gdpr_information input, .cdb_form_privacypolicy_information input'
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
inputs.forEach((input) => {
|
|
12
|
+
const wrapper = input.closest('.cdb_form_field, .cdb_form_gdpr_information, .cdb_form_privacypolicy_information');
|
|
13
|
+
|
|
14
|
+
if (!wrapper) return;
|
|
15
|
+
|
|
16
|
+
wrapper.classList.remove('invalid');
|
|
17
|
+
|
|
18
|
+
if (!input.hasAttribute('required')) return;
|
|
19
|
+
|
|
20
|
+
if (input.type === 'checkbox') {
|
|
21
|
+
if (!input.checked) {
|
|
22
|
+
wrapper.classList.add('invalid');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
input.addEventListener('change', () => {
|
|
26
|
+
if (input.checked) {
|
|
27
|
+
wrapper.classList.remove('invalid');
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
if (!input.value.trim()) {
|
|
32
|
+
wrapper.classList.add('invalid');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
input.addEventListener('input', () => {
|
|
36
|
+
if (input.value.trim()) {
|
|
37
|
+
wrapper.classList.remove('invalid');
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const submit = block.querySelector(
|
|
45
|
+
'.cdb-submit'
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
submit.classList.add('cmpl-cta-style-11', 'cmpl-cta-animation-style-1');
|
|
49
|
+
|
|
50
|
+
submit.addEventListener('click', (e) => {
|
|
51
|
+
validateFormFields(block);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
} catch ( error ) {
|
|
55
|
+
console.error( error );
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'modal-form-v3',
|
|
6
|
+
'title' => __( 'Modal form v3', 'Global-theme Admin' ),
|
|
7
|
+
'render_callback' => 'athena_block_render_post_object',
|
|
8
|
+
'category' => 'common',
|
|
9
|
+
'icon' => get_svg_icon_content('brick.svg'),
|
|
10
|
+
'keywords' => array('content', 'text' ),
|
|
11
|
+
'mode' => 'preview',
|
|
12
|
+
'supports' => array( 'align' => false, 'anchor' => true ),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
3
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
4
|
+
|
|
5
|
+
.modal-form-v3 {
|
|
6
|
+
pointer-events: all;
|
|
7
|
+
|
|
8
|
+
&__container-modal {
|
|
9
|
+
display: none;
|
|
10
|
+
position: fixed;
|
|
11
|
+
inset: 0;
|
|
12
|
+
z-index: 9998;
|
|
13
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__inner {
|
|
17
|
+
padding: core-functions-v3.fluidSize(80) 0;
|
|
18
|
+
|
|
19
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
20
|
+
padding: core-functions-v3.fluidSize(90);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__modal-open {
|
|
25
|
+
&--icon {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
appearance: none;
|
|
28
|
+
border: none;
|
|
29
|
+
background: transparent;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__modal-close {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: core-functions-v3.fluidSize(20);
|
|
36
|
+
right: core-functions-v3.fluidSize(20);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.form__content {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
max-width: core-functions-v3.fluidSize(920);
|
|
45
|
+
height: 100%;
|
|
46
|
+
|
|
47
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
48
|
+
height: 80vh;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cdb_form_container {
|
|
52
|
+
margin-top: core-functions-v3.fluidSize(50);
|
|
53
|
+
|
|
54
|
+
.cdb_form_input_container {
|
|
55
|
+
form {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
gap: core-functions-v3.fluidSize(40, 'static');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cdb_form_field {
|
|
63
|
+
input,
|
|
64
|
+
select {
|
|
65
|
+
font-size: core-functions-v3.fontSize(14, 'mobile');
|
|
66
|
+
font-family: var(--primary-font-family);
|
|
67
|
+
width: 100%;
|
|
68
|
+
font-weight: 200;
|
|
69
|
+
border: 1px solid #2d292633;
|
|
70
|
+
border-radius: 0;
|
|
71
|
+
padding: core-functions-v3.fluidSize(20, 'static');
|
|
72
|
+
outline: unset;
|
|
73
|
+
background: transparent;
|
|
74
|
+
|
|
75
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
76
|
+
font-size: core-functions-v3.fontSize(14, 'portrait');
|
|
77
|
+
}
|
|
78
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
79
|
+
font-size: core-functions-v3.fontSize(14, 'desktop');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&::placeholder {
|
|
83
|
+
color: #2d2926;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
select {
|
|
88
|
+
padding-left: core-functions-v3.fluidSize(20, 'static');
|
|
89
|
+
appearance: none;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
._block_country_for_optin {
|
|
94
|
+
position: relative;
|
|
95
|
+
|
|
96
|
+
&::after {
|
|
97
|
+
content: '';
|
|
98
|
+
position: absolute;
|
|
99
|
+
background-image: url('Assets/images/icon/arrow-down-teal.svg');
|
|
100
|
+
background-size: cover;
|
|
101
|
+
top: 26px;
|
|
102
|
+
right: 12px;
|
|
103
|
+
width: 14px;
|
|
104
|
+
height: 8px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.optin,
|
|
109
|
+
.cdb_form_privacypolicy_information {
|
|
110
|
+
label {
|
|
111
|
+
display: flex;
|
|
112
|
+
|
|
113
|
+
input[type='checkbox'] {
|
|
114
|
+
width: auto;
|
|
115
|
+
appearance: none;
|
|
116
|
+
border: unset;
|
|
117
|
+
padding: unset;
|
|
118
|
+
margin: unset;
|
|
119
|
+
position: relative;
|
|
120
|
+
|
|
121
|
+
&::before {
|
|
122
|
+
content: ' ';
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
display: block;
|
|
125
|
+
width: 35px !important;
|
|
126
|
+
height: 35px !important;
|
|
127
|
+
border-radius: 0 !important;
|
|
128
|
+
border: 1px solid #2d292633 !important;
|
|
129
|
+
background-color: #f6f6f0 !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&::after {
|
|
133
|
+
content: ' ';
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
background-image: url('Assets/images/icon/tick.svg');
|
|
136
|
+
background-size: cover;
|
|
137
|
+
width: 35px !important;
|
|
138
|
+
height: 35px !important;
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:checked::after {
|
|
143
|
+
display: block;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:checked::before {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
span {
|
|
152
|
+
margin-left: core-functions-v3.fluidSize(30, 'static');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
p {
|
|
156
|
+
text-transform: initial;
|
|
157
|
+
color: black;
|
|
158
|
+
font-size: core-functions-v3.fluidSize(14, 'static');
|
|
159
|
+
font-weight: 200;
|
|
160
|
+
|
|
161
|
+
a {
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cdb_form_privacypolicy_information {
|
|
169
|
+
p {
|
|
170
|
+
margin-left: core-functions-v3.fluidSize(30, 'static');
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.cdb_form_gdpr_information {
|
|
175
|
+
p {
|
|
176
|
+
font-size: core-functions-v3.fluidSize(14, 'static');
|
|
177
|
+
font-weight: 200;
|
|
178
|
+
|
|
179
|
+
a {
|
|
180
|
+
font-weight: 400;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cdb-submit {
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
width: max-content;
|
|
188
|
+
margin: auto;
|
|
189
|
+
padding: core-functions-v3.fluidSize(12, 'static')
|
|
190
|
+
core-functions-v3.fluidSize(20, 'static');
|
|
191
|
+
border: 2px solid black;
|
|
192
|
+
text-transform: uppercase;
|
|
193
|
+
font-weight: 800;
|
|
194
|
+
background: transparent;
|
|
195
|
+
z-index: 2;
|
|
196
|
+
|
|
197
|
+
&::before {
|
|
198
|
+
z-index: -1;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.cdb_form_field.invalid {
|
|
203
|
+
position: relative;
|
|
204
|
+
|
|
205
|
+
&::before {
|
|
206
|
+
content: 'Please fill in this field.';
|
|
207
|
+
position: absolute;
|
|
208
|
+
left: 0;
|
|
209
|
+
bottom: -25px;
|
|
210
|
+
color: #dc1919;
|
|
211
|
+
font-weight: 200;
|
|
212
|
+
font-size: core-functions-v3.fontSize(16, 'static');
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&::after {
|
|
216
|
+
content: '';
|
|
217
|
+
position: absolute;
|
|
218
|
+
background-image: url('Assets/images/icon/warning.svg');
|
|
219
|
+
background-size: cover;
|
|
220
|
+
top: 19px;
|
|
221
|
+
right: 10px;
|
|
222
|
+
width: 20px;
|
|
223
|
+
height: 20px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
input {
|
|
227
|
+
border: 1px solid #dc1919;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.optin.invalid {
|
|
232
|
+
&::after {
|
|
233
|
+
position: unset;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.cdb_form_field.invalid input[type='checkbox']::before {
|
|
238
|
+
border-color: #dc1919 !important;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{% set blockClassName = "modal-form-v3" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
|
|
6
|
+
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
|
+
|
|
8
|
+
{% set sectionStyles = styleEntryPoint %}
|
|
9
|
+
|
|
10
|
+
{{previewEntryPoint}}
|
|
11
|
+
|
|
12
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-pattern-form-selection data-renderdynamic={{renderDynamic}} data-formid="{{fields.form}}" data-assetkey="{{blockClassName}}">
|
|
13
|
+
|
|
14
|
+
<div class="{{ blockClassName }}__container-inline">
|
|
15
|
+
<div class="{{ blockClassName }}__inner">
|
|
16
|
+
<div class="{{ blockClassName }}__wrapper">
|
|
17
|
+
{% if fields.title %}
|
|
18
|
+
{{ fields.title }}
|
|
19
|
+
{% endif %}
|
|
20
|
+
<!-- inline-form -->
|
|
21
|
+
{{function('do_shortcode', '[cdbform id=' ~ fields.form ~ ']')}}
|
|
22
|
+
<!-- end-inline-form -->
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
{{htmlEntryPoint}}
|
|
28
|
+
</section>
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
{{sectionStyles}}
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-pattern-nav-menu-container data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}" data-navtype="{{menuType}}">
|
|
14
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-pattern-nav-menu-container data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}" data-navtype="{{menuType}}">
|
|
15
|
+
|
|
15
16
|
{% if menuType == 'classic_nav_items_center' %}
|
|
16
17
|
{{ include( 'components/classic-nav-items-center.twig', { fields, block, blockClassName, options, nav_menus, current_post}, with_context = false, ignore_missing = true) }}
|
|
17
18
|
{% elseif menuType == 'slide_in_nav_panel'%}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{{sectionStyles}}
|
|
27
27
|
}
|
|
28
28
|
</style>
|
|
29
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{postType}}-type {{classNameEntryPoint}} {{block.className}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-assetkey="post-info-v3">
|
|
29
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{postType}}-type {{classNameEntryPoint}} {{block.className}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-assetkey="post-info-v3">
|
|
30
30
|
|
|
31
31
|
{% for field in postTypeFields %}
|
|
32
32
|
{% if block %}
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
{{sectionStyles}}
|
|
22
22
|
}
|
|
23
23
|
</style>
|
|
24
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{
|
|
24
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{postType}}-type {{classNameEntryPoint}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} lazy-fade {{block.id}}" {{dataAttributeEntryPoint}} data-assetkey="product-info-v3">
|
|
25
|
+
|
|
25
26
|
{% for field in postTypeFields %}
|
|
26
27
|
{% if block %}
|
|
27
28
|
{% set block = block|merge({'anchor' : '','className' : '', 'id': block.id ~ '-' ~ loop.index }) %}
|
|
@@ -4,19 +4,16 @@
|
|
|
4
4
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
5
5
|
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
6
6
|
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
|
-
|
|
8
7
|
{% set logoMaxWidthDesktop = '--site-logo-max-width-desktop: ' ~ fields.site_logo_max_width_desktop ~ ';'%}
|
|
9
8
|
{% set logoMaxWidthPortrait = '--site-logo-max-width-portrait: ' ~ fields.site_logo_max_width_portrait ~ ';' %}
|
|
10
9
|
{% set logoMaxWidthMobile = '--site-logo-max-width-mobile: ' ~ fields.site_logo_max_width_mobile ~ ';' %}
|
|
11
|
-
|
|
12
10
|
{% set sectionStyles = styleEntryPoint ~ logoMaxWidthDesktop ~ logoMaxWidthPortrait ~ logoMaxWidthMobile %}
|
|
13
11
|
<style>
|
|
14
12
|
.{{blockClassName}}.{{block.id}}{
|
|
15
13
|
{{sectionStyles}}
|
|
16
14
|
}
|
|
17
15
|
</style>
|
|
18
|
-
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} {{block.id}} lazy-fade" data-jsload="false" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
19
|
-
|
|
16
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" data-jsload="false" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
20
17
|
<a class="{{blockClassName}}__site-logo-link" href="/{{ market_slug ? market_slug ~ '/' : '' }}" aria-label="site-logo-link">
|
|
21
18
|
{% if fields.logo_type|ru == 'site-header' %}
|
|
22
19
|
{% set siteLogo = get_image(options.header_logo_desktop) %}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{{sectionStyles}}
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }} data-assetkey="{{blockClassName}}" class="{{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} {{ block.id }} lazy-fade" {{dataAttributeEntryPoint}}>
|
|
18
|
+
<section {{ block.anchor ? 'id=' ~ block.anchor : '' }} data-assetkey="{{blockClassName}}" class="{{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{ block.id }} lazy-fade" {{dataAttributeEntryPoint}}>
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
{{htmlEntryPoint}}
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
5
5
|
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
6
6
|
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields: fields, block: block, displaytype: displaytype, is_preview: is_preview }, with_context = false) %}
|
|
7
|
-
|
|
8
7
|
{% set imageSizes = '(min-width: 1440px) ' ~ (100 / fields.grid_layout.grid_columns_desktop|default(1))|round ~ 'vw, (min-width: 1024px) ' ~ (100 / fields.grid_layout.grid_columns_desktop|default(1))|round ~ 'vw, (min-width: 768px) ' ~ (100 / fields.grid_layout.grid_columns_portrait|default(1))|round ~ 'vw, (min-width: 300px) ' ~(100 / fields.grid_layout.grid_columns_mobile|default(1))|round ~ 'vw, 100vw' %}
|
|
9
|
-
|
|
10
8
|
{% set layoutType = fields.layout_type|ru|default('grid') %}
|
|
11
9
|
{% set layoutStyles = '' %}
|
|
12
10
|
{% if layoutType == 'flex' %}
|
|
@@ -18,7 +16,6 @@
|
|
|
18
16
|
{% endif %}
|
|
19
17
|
{% set blockElementType = fields.block_element_type|default('section')|ru %}
|
|
20
18
|
|
|
21
|
-
|
|
22
19
|
{% set sectionStyles = styleEntryPoint ~ backgroundColour ~ gridLayoutContainer ~ containerOverflowType ~ blockPosition %}
|
|
23
20
|
|
|
24
21
|
{{previewEntryPoint}}
|
|
@@ -27,19 +24,15 @@
|
|
|
27
24
|
{{sectionStyles}}
|
|
28
25
|
}
|
|
29
26
|
</style>
|
|
30
|
-
<{{blockElementType}} {{block.anchor ? "id=" ~ block.anchor : ''}} class="sub-group-container-v3 {{blockClassName}} {{block.className}} {{block.className ~ '-' ~ loop}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-assetkey="sub-group-container-v3">
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
<{{blockElementType}} {{block.anchor ? "id=" ~ block.anchor : ''}} class="sub-group-container-v3 {{blockClassName}} {{block.className}} {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-assetkey="sub-group-container-v3">
|
|
33
28
|
{% if block %}
|
|
34
29
|
{% set block = block|merge({'videoIdPrefix' : block.id }) %}
|
|
35
30
|
{% endif %}
|
|
36
|
-
|
|
37
31
|
<style>
|
|
38
32
|
.{{blockClassName}}__grid-container.{{block.id}}{
|
|
39
33
|
{{layoutStyles}}
|
|
40
34
|
}
|
|
41
35
|
</style>
|
|
42
|
-
|
|
43
36
|
<div class="{{blockClassName}}__grid-container {{layoutClass}} {{block.id}}">
|
|
44
37
|
{% for section in fields.sections %}
|
|
45
38
|
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: section, block: block }, with_context = false) %}
|
|
@@ -52,7 +45,7 @@
|
|
|
52
45
|
}
|
|
53
46
|
</style>
|
|
54
47
|
<div class="{{blockClassName}}__block-container {{block.id}}">
|
|
55
|
-
{{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, is_preview, current, nav_menus, site, cta_styles, market_settings, languages, imageSizes }, with_context = false, ignore_missing = true) }}
|
|
48
|
+
{{ include('blocks/' ~ (section.acf_fc_layout|replace({ '_': '-' })) ~ '.twig', { fields: section, options, block, is_preview, current, nav_menus, site, cta_styles, market_settings, languages, imageSizes, loop: loop.index }, with_context = false, ignore_missing = true) }}
|
|
56
49
|
</div>
|
|
57
50
|
{% endfor %}
|
|
58
51
|
</div>
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
{{item.raw_html}}
|
|
7
7
|
{% endif %}
|
|
8
8
|
{% if item.acf_fc_layout == 'form_selection' %}
|
|
9
|
-
|
|
9
|
+
{% set data = {'title' : item.title, 'form' : item.form.ID} %}
|
|
10
|
+
{{ include('blocks/modal-form-v3.twig', { fields: data, options, block, is_preview, current_post, nav_menus, site, market_settings, market_slug, cta_styles, languages, imageSizes}, with_context = false, ignore_missing = true) }}
|
|
10
11
|
{% endif %}
|
|
11
12
|
</div>
|
|
12
13
|
</div>
|