@shift72/core-template 0.4.3 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +47 -14
- package/kibble.json +108 -29
- package/package.json +21 -8
- package/scripts/core-template-version.js +30 -0
- package/scripts/language-file-to-csv/language-file-to-csv.js +2 -2
- package/scripts/language-file-validator.js +1 -1
- package/scripts/translate.mjs +43 -0
- package/site/ar_LB.all.json +1262 -595
- package/site/ca_ES.all.json +437 -417
- package/site/da_DK.all.json +307 -221
- package/site/de_DE.all.json +1119 -459
- package/site/ee_EE.all.json +1261 -600
- package/site/el_EL.all.json +1112 -459
- package/site/en_AU.all.json +1158 -466
- package/site/es_ES.all.json +1105 -452
- package/site/es_MX.all.json +1160 -479
- package/site/fi_FI.all.json +1113 -460
- package/site/fr_FR.all.json +1105 -454
- package/site/hr_HR.all.json +1169 -464
- package/site/hu_HU.all.json +1261 -599
- package/site/it_IT.all.json +1112 -458
- package/site/ja_JP.all.json +1114 -460
- package/site/lt_LT.all.json +1112 -454
- package/site/nl_BE.all.json +1112 -456
- package/site/no_NO.all.json +1252 -596
- package/site/pl_PL.all.json +1090 -447
- package/site/pt_BR.all.json +432 -429
- package/site/pt_PT.all.json +1252 -602
- package/site/ru_RU.all.json +1088 -449
- package/site/sr_SR.all.json +1254 -0
- package/site/styles/_awards.scss +5 -0
- package/site/styles/_buttons.scss +27 -4
- package/site/styles/_carousel.scss +9 -1
- package/site/styles/_forms.scss +78 -11
- package/site/styles/_meta-detail.scss +2 -2
- package/site/styles/_meta-item-tagline.scss +1 -1
- package/site/styles/_nav.scss +6 -6
- package/site/styles/_pages.scss +0 -2
- package/site/styles/_plans.scss +5 -0
- package/site/styles/_search.scss +1 -1
- package/site/styles/_shift72.scss +3 -3
- package/site/styles/_shopping.scss +1 -1
- package/site/styles/_skip-link.scss +19 -0
- package/site/styles/_variables.scss +10 -6
- package/site/styles/_wishlist.scss +19 -11
- package/site/styles/main.scss +1 -0
- package/site/templates/application/application.jet +11 -14
- package/site/templates/application/google.jet +26 -10
- package/site/templates/common/awards/carousel.jet +7 -1
- package/site/templates/common/awards/item.jet +2 -2
- package/site/templates/film/item.jet +83 -76
- package/site/templates/page/curated.jet +1 -1
- package/site/templates/page/page-content.jet +1 -23
- package/site/templates/page/page-header.jet +25 -6
- package/site/tr_TR.all.json +1252 -602
- package/site/uk_UA.all.json +528 -451
- package/site/zh_TW.all.json +438 -419
- package/site/se_SE.all.json +0 -601
package/site/styles/_awards.scss
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
.meta-awards {
|
2
2
|
@extend .d-flex;
|
3
3
|
@extend .align-items-center;
|
4
|
+
margin-left: -25px;
|
5
|
+
margin-right: -25px;
|
4
6
|
|
5
7
|
&.meta-awards-all {
|
6
8
|
@extend .align-items-start;
|
@@ -8,6 +10,9 @@
|
|
8
10
|
|
9
11
|
.meta-award-nomination {
|
10
12
|
@extend .d-flex;
|
13
|
+
max-width: 370px;
|
14
|
+
padding-right: 25px;
|
15
|
+
padding-left: 25px;
|
11
16
|
}
|
12
17
|
|
13
18
|
.meta-award-nomination-icon {
|
@@ -115,8 +115,8 @@
|
|
115
115
|
background: transparent;
|
116
116
|
|
117
117
|
.s72-icon-play circle {
|
118
|
-
fill:
|
119
|
-
stroke:
|
118
|
+
fill: var(--primary);
|
119
|
+
stroke: var(--primary);
|
120
120
|
stroke-width: 3px;
|
121
121
|
}
|
122
122
|
|
@@ -136,7 +136,7 @@
|
|
136
136
|
|
137
137
|
.verb {
|
138
138
|
background: transparent;
|
139
|
-
color:
|
139
|
+
color:var(--primary);
|
140
140
|
}
|
141
141
|
}
|
142
142
|
|
@@ -152,7 +152,7 @@
|
|
152
152
|
|
153
153
|
circle {
|
154
154
|
fill: transparent;
|
155
|
-
stroke:
|
155
|
+
stroke: var(--primary);
|
156
156
|
stroke-width: 3px;
|
157
157
|
}
|
158
158
|
|
@@ -244,3 +244,26 @@
|
|
244
244
|
border-color: $gray-200;
|
245
245
|
}
|
246
246
|
}
|
247
|
+
|
248
|
+
s72-donate-button:not(:empty) {
|
249
|
+
&:hover a {
|
250
|
+
background-color: $button-background-hover;
|
251
|
+
color: $button-text-color-hover;
|
252
|
+
/* stylelint-disable selector-max-compound-selectors */
|
253
|
+
svg {
|
254
|
+
g {
|
255
|
+
fill: $button-text-color-hover;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
/* stylelint-enable selector-max-compound-selectors */
|
259
|
+
}
|
260
|
+
a {
|
261
|
+
color: $button-text-color;
|
262
|
+
background-color: $button-background;
|
263
|
+
}
|
264
|
+
svg {
|
265
|
+
g {
|
266
|
+
fill: $button-text-color;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
@@ -8,7 +8,6 @@ s72-carousel {
|
|
8
8
|
.s72-carousel-slides {
|
9
9
|
background: $carousel-bg-color;
|
10
10
|
height: var(--carousel-height) !important;
|
11
|
-
overflow: hidden;
|
12
11
|
position: relative;
|
13
12
|
width: 100%;
|
14
13
|
@include media-breakpoint-up(sm) {
|
@@ -64,6 +63,10 @@ s72-carousel {
|
|
64
63
|
}
|
65
64
|
}
|
66
65
|
}
|
66
|
+
|
67
|
+
.s72-pricing-button-container {
|
68
|
+
white-space: nowrap;
|
69
|
+
}
|
67
70
|
}
|
68
71
|
|
69
72
|
.s72-carousel-item {
|
@@ -104,6 +107,11 @@ s72-carousel {
|
|
104
107
|
position: absolute;
|
105
108
|
top: var(--carousel-caption-top);
|
106
109
|
z-index: 999;
|
110
|
+
@include media-breakpoint-up(xs) {
|
111
|
+
left: 60px;
|
112
|
+
top: var(--carousel-caption-top-xs);
|
113
|
+
width: 70%;
|
114
|
+
}
|
107
115
|
@include media-breakpoint-up(md) {
|
108
116
|
left: 60px;
|
109
117
|
top: var(--carousel-caption-top-md);
|
package/site/styles/_forms.scss
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
label {
|
2
|
-
font-size:
|
3
|
-
|
2
|
+
font-size: 1rem;
|
3
|
+
margin-bottom: 0.25rem;
|
4
4
|
}
|
5
|
+
|
5
6
|
// Form Container Defaults
|
6
7
|
s72-signin-form,
|
7
8
|
s72-signup-form,
|
@@ -37,11 +38,11 @@ s72-activatedevice-form,
|
|
37
38
|
}
|
38
39
|
|
39
40
|
.s72-form-group-password {
|
40
|
-
padding-right:
|
41
|
+
padding-right: 2px;
|
41
42
|
}
|
42
43
|
|
43
44
|
.s72-form-group-password2 {
|
44
|
-
padding-left:
|
45
|
+
padding-left: 2px;
|
45
46
|
}
|
46
47
|
}
|
47
48
|
}
|
@@ -61,10 +62,12 @@ s72-activatedevice-form,
|
|
61
62
|
// Error Messaging
|
62
63
|
.s72-error-message {
|
63
64
|
background: $error-background;
|
65
|
+
border-radius: $border-radius;
|
64
66
|
color: $error-color;
|
65
|
-
font-
|
67
|
+
font-size: 0.875rem;
|
68
|
+
letter-spacing: 0.02em;
|
66
69
|
margin-top: 10px;
|
67
|
-
padding:
|
70
|
+
padding: 4px 8px;
|
68
71
|
position: relative;
|
69
72
|
|
70
73
|
&::before {
|
@@ -88,20 +91,41 @@ s72-activatedevice-form,
|
|
88
91
|
.s72-datepicker-year {
|
89
92
|
flex-shrink: 0;
|
90
93
|
}
|
94
|
+
.s72-datepicker-month {
|
95
|
+
margin: 0 4px;
|
96
|
+
width: 100%;
|
97
|
+
}
|
91
98
|
}
|
92
99
|
// Form Control Default
|
93
100
|
.s72-form-control {
|
94
101
|
font-weight: $font-weight-normal;
|
102
|
+
height: var(--input-height);
|
103
|
+
|
104
|
+
/* stylelint-disable-next-line */
|
105
|
+
&:not(.StripeElement) {
|
106
|
+
background-color: $body-bg-accent;
|
107
|
+
border-color: rgba(var(--body-color-rgb), 0.1);
|
108
|
+
color: var(--body-color);
|
109
|
+
&:focus {
|
110
|
+
border-color: $input-focus-border-color;
|
111
|
+
color: var(--body-color);
|
112
|
+
}
|
113
|
+
&::placeholder {
|
114
|
+
color: rgba(var(--body-color-rgb), 0.8);
|
115
|
+
}
|
116
|
+
}
|
95
117
|
}
|
96
118
|
// Account Page Change Password Field
|
97
119
|
.s72-form-control-static {
|
98
|
-
background:
|
99
|
-
border-radius: 6px 0 0 6px;
|
120
|
+
background: $body-bg-accent;
|
100
121
|
color: var(--body-color);
|
122
|
+
cursor: not-allowed;
|
101
123
|
display: inline-block;
|
102
|
-
font-size:
|
103
|
-
|
104
|
-
|
124
|
+
font-size: 1rem;
|
125
|
+
height: var(--input-height);
|
126
|
+
line-height: 1rem;
|
127
|
+
outline: none;
|
128
|
+
padding: 0.375rem 0.75rem;
|
105
129
|
}
|
106
130
|
.s72-modal-sm .s72-modal-dialog {
|
107
131
|
max-width: 400px;
|
@@ -116,6 +140,9 @@ s72-activatedevice-form,
|
|
116
140
|
}
|
117
141
|
}
|
118
142
|
}
|
143
|
+
.s72-form-control {
|
144
|
+
height: var(--input-height);
|
145
|
+
}
|
119
146
|
}
|
120
147
|
|
121
148
|
.s72-modal-closable {
|
@@ -195,3 +222,43 @@ s72-signup-form {
|
|
195
222
|
margin-bottom: 1rem;
|
196
223
|
}
|
197
224
|
}
|
225
|
+
|
226
|
+
// Error
|
227
|
+
.was-validated .form-control:invalid,
|
228
|
+
.was-validated .s72-form-control:invalid,
|
229
|
+
.was-validated .s72-pincode:invalid,
|
230
|
+
.form-control.is-invalid,
|
231
|
+
.s72-has-error .form-control,
|
232
|
+
.is-invalid.s72-form-control,
|
233
|
+
.is-invalid.s72-pincode,
|
234
|
+
.s72-has-error .s72-form-control,
|
235
|
+
.s72-has-error .s72-pincode {
|
236
|
+
border: 2px solid rgba(var(--body-color-rgb), 0.5) !important;
|
237
|
+
box-shadow: none !important;
|
238
|
+
}
|
239
|
+
|
240
|
+
// Stripe Inputs
|
241
|
+
.s72-payment-option-group {
|
242
|
+
.existing-card {
|
243
|
+
padding: 0.125rem 0 0.125rem 0.75rem;
|
244
|
+
}
|
245
|
+
// List of Saved Cards
|
246
|
+
.s72-form-control.existing-card.selectable {
|
247
|
+
background-color: transparent;
|
248
|
+
border-color: transparent;
|
249
|
+
margin-bottom: 12px;
|
250
|
+
padding-left: 0;
|
251
|
+
&:hover {
|
252
|
+
background-color: transparent;
|
253
|
+
}
|
254
|
+
|
255
|
+
/* stylelint-disable selector-no-qualifying-type */
|
256
|
+
i.fa.fa-trash {
|
257
|
+
color: $error-color;
|
258
|
+
&:hover {
|
259
|
+
opacity: 0.8;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
/* stylelint-enable selector-no-qualifying-type */
|
263
|
+
}
|
264
|
+
}
|
@@ -201,7 +201,6 @@
|
|
201
201
|
.meta-detail-extras,
|
202
202
|
s72-play-button,
|
203
203
|
can-be-watched-button:not(:empty) {
|
204
|
-
|
205
204
|
animation: fadein 2s;
|
206
205
|
margin-left: 0.5rem;
|
207
206
|
margin-right: 0.5rem;
|
@@ -245,7 +244,8 @@
|
|
245
244
|
}
|
246
245
|
}
|
247
246
|
|
248
|
-
.meta-detail-synopsis
|
247
|
+
.meta-detail-synopsis,
|
248
|
+
.meta-detail-switcher-tagline {
|
249
249
|
padding-top: 10px;
|
250
250
|
|
251
251
|
p {
|
package/site/styles/_nav.scss
CHANGED
@@ -311,7 +311,7 @@
|
|
311
311
|
}
|
312
312
|
|
313
313
|
&::placeholder {
|
314
|
-
color: rgba(
|
314
|
+
color: rgba(var(--body-color-rgb), 0.8);
|
315
315
|
font-weight: $font-weight-normal;
|
316
316
|
opacity: 0;
|
317
317
|
transition: 0.25s ease-out;
|
@@ -396,7 +396,7 @@
|
|
396
396
|
background: transparent;
|
397
397
|
border: 0;
|
398
398
|
border-radius: 50%;
|
399
|
-
color: rgba(
|
399
|
+
color: rgba(var(--body-color-rgb), 0.7);
|
400
400
|
height: 32px;
|
401
401
|
opacity: 0;
|
402
402
|
pointer-events: none;
|
@@ -413,7 +413,7 @@
|
|
413
413
|
&:hover,
|
414
414
|
&:focus,
|
415
415
|
&:active {
|
416
|
-
color: rgba(
|
416
|
+
color: rgba(var(--body-color-rgb), 1);
|
417
417
|
outline: 0;
|
418
418
|
}
|
419
419
|
}
|
@@ -701,7 +701,7 @@ s72-dropdown,
|
|
701
701
|
|
702
702
|
s72-user-known,
|
703
703
|
s72-user-anon {
|
704
|
-
border-top: 1px solid rgba(
|
704
|
+
border-top: 1px solid rgba(var(--body-color-rgb), 0.1);
|
705
705
|
|
706
706
|
@include media-breakpoint-up(lg) {
|
707
707
|
border: 0;
|
@@ -710,7 +710,7 @@ s72-dropdown,
|
|
710
710
|
}
|
711
711
|
|
712
712
|
hr {
|
713
|
-
border-top: 1px solid rgba(
|
713
|
+
border-top: 1px solid rgba(var(--body-color-rgb), 0.1);
|
714
714
|
display: none;
|
715
715
|
margin: 0 15px 5px;
|
716
716
|
|
@@ -809,7 +809,7 @@ s72-dropdown,
|
|
809
809
|
}
|
810
810
|
|
811
811
|
.vertical-line {
|
812
|
-
border-left: solid 1px rgba(
|
812
|
+
border-left: solid 1px rgba(var(--body-color-rgb), 0.5);
|
813
813
|
display: none;
|
814
814
|
height: 25px;
|
815
815
|
margin: 0 12px;
|
package/site/styles/_pages.scss
CHANGED
package/site/styles/_plans.scss
CHANGED
package/site/styles/_search.scss
CHANGED
@@ -224,7 +224,7 @@
|
|
224
224
|
@extend .form-control-plaintext;
|
225
225
|
|
226
226
|
.form-page & {
|
227
|
-
color: var(--body-color);
|
227
|
+
color: rgba(var(--body-color-rgb), 0.5);
|
228
228
|
}
|
229
229
|
}
|
230
230
|
|
@@ -232,7 +232,7 @@
|
|
232
232
|
.s72-readonly-text .s72-form-control-readonly {
|
233
233
|
@extend .py-0;
|
234
234
|
border: 1px solid transparent;
|
235
|
-
border-radius: $border-radius
|
235
|
+
border-radius: $border-radius;
|
236
236
|
|
237
237
|
font-size: unset;
|
238
238
|
}
|
@@ -240,7 +240,7 @@
|
|
240
240
|
s72-useraccount-form {
|
241
241
|
.s72-form-control-readonly {
|
242
242
|
@extend .s72-form-control-static;
|
243
|
-
border-radius:
|
243
|
+
border-radius: $border-radius;
|
244
244
|
}
|
245
245
|
|
246
246
|
.s72-account-password-form-group,
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.skip-link {
|
2
|
+
align-items: center;
|
3
|
+
background-color: var(--body-bg-accent);
|
4
|
+
border: 2px dashed var(--body-color);
|
5
|
+
color: var(--body-color);
|
6
|
+
display: flex;
|
7
|
+
height: 80px;
|
8
|
+
justify-content: center;
|
9
|
+
left: -9999px;
|
10
|
+
outline: none;
|
11
|
+
position: absolute;
|
12
|
+
text-decoration: underline;
|
13
|
+
width: 100%;
|
14
|
+
z-index: 12;
|
15
|
+
&:focus {
|
16
|
+
left: 0;
|
17
|
+
position: fixed;
|
18
|
+
}
|
19
|
+
}
|
@@ -21,16 +21,19 @@
|
|
21
21
|
--link-color-hover: rgb(var(--link-color-hover-rgb));
|
22
22
|
--input-focus-border-color: rgb(var(--input-focus-border-color-rgb));
|
23
23
|
|
24
|
+
--input-height: 40px;
|
25
|
+
|
24
26
|
--navbar-brand-padding-y: 25px;
|
25
27
|
--navbar-brand-min-width: 126px;
|
26
28
|
--navbar-brand-min-width-md: 126px;
|
27
29
|
--navbar-brand-min-width-lg: 126px;
|
28
30
|
--navbar-brand-min-width-xl: 126px;
|
29
31
|
|
30
|
-
--carousel-height:
|
31
|
-
--carousel-height-sm:
|
32
|
+
--carousel-height: 560px;
|
33
|
+
--carousel-height-sm: 560px;
|
32
34
|
--carousel-height-md: 620px;
|
33
|
-
--carousel-caption-top:
|
35
|
+
--carousel-caption-top: 125px;
|
36
|
+
--carousel-caption-top-xs: 150px;
|
34
37
|
--carousel-caption-top-md: 175px;
|
35
38
|
|
36
39
|
--page-padding-top: 120px;
|
@@ -105,12 +108,13 @@ $spacers: (
|
|
105
108
|
// 40px
|
106
109
|
'5': $spacer * 5,
|
107
110
|
// 50px
|
111
|
+
'1rem': 1rem
|
108
112
|
);
|
109
113
|
|
110
114
|
// Cookie Consent
|
111
|
-
$cookie-consent-color: #000;
|
112
|
-
$cookie-consent-link-color: var(--primary);
|
113
|
-
$cookie-consent-hover-link-color: var(--secondary);
|
115
|
+
$cookie-consent-color: #000 !default;
|
116
|
+
$cookie-consent-link-color: var(--primary) !default;
|
117
|
+
$cookie-consent-hover-link-color: var(--secondary) !default;
|
114
118
|
|
115
119
|
// Nav
|
116
120
|
// ------------------------------------
|
@@ -26,19 +26,8 @@
|
|
26
26
|
.s72-userwishlist-buttons {
|
27
27
|
.s72-btn-wishlist {
|
28
28
|
@extend .btn;
|
29
|
-
font-size: 12px;
|
30
|
-
font-weight: $font-weight-bold;
|
31
|
-
margin-right: 0.5rem;
|
32
|
-
padding-bottom: 3px;
|
33
29
|
padding-left: 0;
|
34
|
-
padding-top: 3px;
|
35
30
|
|
36
|
-
span {
|
37
|
-
@extend .d-flex;
|
38
|
-
align-items: center;
|
39
|
-
flex-direction: row;
|
40
|
-
justify-content: center;
|
41
|
-
}
|
42
31
|
|
43
32
|
.s72-icon {
|
44
33
|
font-size: 32px !important;
|
@@ -47,6 +36,25 @@
|
|
47
36
|
}
|
48
37
|
}
|
49
38
|
|
39
|
+
.s72-userwishlist-buttons .s72-btn-wishlist,
|
40
|
+
.meta-award-nomination {
|
41
|
+
font-size: 12px;
|
42
|
+
font-weight: $font-weight-bold;
|
43
|
+
|
44
|
+
span {
|
45
|
+
@extend .d-flex;
|
46
|
+
align-items: center;
|
47
|
+
flex-direction: row;
|
48
|
+
justify-content: center;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.s72-userwishlist-buttons .s72-btn-wishlist {
|
53
|
+
margin-right: 0.5rem;
|
54
|
+
padding-bottom: 3px;
|
55
|
+
padding-top: 3px;
|
56
|
+
}
|
57
|
+
|
50
58
|
.poster .s72-userwishlist-buttons .s72-btn-wishlist {
|
51
59
|
margin: 0;
|
52
60
|
padding: 0;
|
package/site/styles/main.scss
CHANGED
@@ -21,8 +21,11 @@
|
|
21
21
|
<link rel="manifest" href="/manifest.json">
|
22
22
|
<link rel="preload" href="/{{lang.DefinitionFilePath}}" as="fetch" crossorigin type="application/json">
|
23
23
|
<link rel="preload" href="/classifications.all.json" as="fetch" crossorigin type="application/json">
|
24
|
-
<!-- Kibble:{{
|
25
|
-
|
24
|
+
<!-- Kibble: {{version}} -->
|
25
|
+
{{if site.SiteConfig.CoreTemplateVersion != ""}}
|
26
|
+
<!-- Core-Template: {{site.SiteConfig.CoreTemplateVersion}} -->
|
27
|
+
{{end}}
|
28
|
+
<!-- Template: {{site.SiteConfig.Version}} -->
|
26
29
|
<link rel="stylesheet" href="{{CDN}}/s72.ui.css">
|
27
30
|
<link rel="stylesheet" href="{{CDN}}/s72.transactional.css">
|
28
31
|
<link rel="stylesheet" href="/styles/swiper.css">
|
@@ -62,21 +65,15 @@
|
|
62
65
|
</script>
|
63
66
|
|
64
67
|
<script type="text/javascript" src="/scripts/swiper.min.js"></script>
|
68
|
+
|
69
|
+
{{yield googleGa4Script()}}
|
65
70
|
</head>
|
66
71
|
<body>
|
67
|
-
<s72-cookie-consent></s72-cookie-consent>
|
68
72
|
|
69
|
-
<
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<a href="#main">{{i18n("wcag_skip_links_content")}}</a>
|
74
|
-
</li>
|
75
|
-
<li>
|
76
|
-
<a href="#footer">{{i18n("wcag_skip_links_footer")}}</a>
|
77
|
-
</li>
|
78
|
-
</ul>
|
79
|
-
</section>
|
73
|
+
<h2 class="sr-only">{{i18n("wcag_skip_links_header")}}</h2>
|
74
|
+
<a class="skip-link" href="#main">{{i18n("wcag_skip_links_content")}}</a>
|
75
|
+
|
76
|
+
<s72-cookie-consent></s72-cookie-consent>
|
80
77
|
|
81
78
|
{{yield googleTagManagerNoScript()}}
|
82
79
|
|
@@ -1,3 +1,10 @@
|
|
1
|
+
{{block googleGa4Script(analyticsId=config("google_analytics_id"))}}
|
2
|
+
{{if hasPrefix(analyticsId,"G")}}
|
3
|
+
<!-- GA4 script if G tracking code is provided -->
|
4
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{analyticsId}}"></script>
|
5
|
+
{{end}}
|
6
|
+
{{end}}
|
7
|
+
|
1
8
|
{{block googleScripts(tagManagerId=config("google_tag_manager_id"), analyticsId=config("google_analytics_id"))}}
|
2
9
|
<!-- Google integration scripts -->
|
3
10
|
<script>
|
@@ -9,17 +16,27 @@
|
|
9
16
|
})(window,document,'script','dataLayer','{{ tagManagerId }}')
|
10
17
|
}
|
11
18
|
|
19
|
+
<!-- GA4 code snippet if G tracking code is provided, else use legacy UA code snippet -->
|
20
|
+
{{if hasPrefix(analyticsId,"G")}}
|
21
|
+
function loadGoogleAnalytics() {
|
22
|
+
window.dataLayer = window.dataLayer || [];
|
23
|
+
function gtag(){dataLayer.push(arguments);}
|
24
|
+
gtag('js', new Date());
|
12
25
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
26
|
+
gtag('config', '{{analyticsId}}');
|
27
|
+
}
|
28
|
+
{{else}}
|
29
|
+
function loadGoogleAnalytics() {
|
30
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
31
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
32
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
33
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
18
34
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
35
|
+
ga('create', '{{analyticsId}}', 'auto');
|
36
|
+
ga('require', 'ecommerce');
|
37
|
+
ga('send', 'pageview');
|
38
|
+
}
|
39
|
+
{{end}}
|
23
40
|
|
24
41
|
// Only load Google Tag Manager if a/ the frontend cookie consent isn't required or b/ they've agreed to the cookie consent
|
25
42
|
var googleTagManagerEnabled = {{ (len(tagManagerId) > 0) ? "true" : "false" }};
|
@@ -51,4 +68,3 @@
|
|
51
68
|
<!-- End Google Tag Manager (noscript) -->
|
52
69
|
{{end}}
|
53
70
|
{{end}}
|
54
|
-
|
@@ -1,9 +1,15 @@
|
|
1
1
|
{{block awardsCarousel()}}
|
2
2
|
{{ if isset(.AwardCategories) && (len(.AwardCategories) > 0) }}
|
3
|
+
|
4
|
+
{{award_winner := false}}
|
5
|
+
{{ range .AwardCategories }}
|
6
|
+
{{ if .IsWinner}}{{award_winner = true}}{{end}}
|
7
|
+
{{ end }}
|
8
|
+
|
3
9
|
<div class="meta-awards">
|
4
10
|
<div class="meta-award-nomination">
|
5
11
|
<span><i class="meta-award-nomination-icon"></i></span>
|
6
|
-
<span
|
12
|
+
<span>{{ i18n("awards_in_competition") }}{{award_winner ? " - " + i18n("awards_winner") : ""}}</span>
|
7
13
|
</div>
|
8
14
|
</div>
|
9
15
|
{{ end }}
|
@@ -2,9 +2,9 @@
|
|
2
2
|
{{ if isset(.AwardCategories) && (len(.AwardCategories) > 0) }}
|
3
3
|
<div class="meta-awards row mt-2p5 meta-awards-all">
|
4
4
|
{{ range .AwardCategories }}
|
5
|
-
<div class="meta-award-nomination mb-
|
5
|
+
<div class="meta-award-nomination mb-3 col-12 col-sm-8 col-lg-6 col-xl-4">
|
6
6
|
<span><i class="meta-award-nomination-icon"></i></span>
|
7
|
-
<span
|
7
|
+
<span>{{ .DisplayLabel }}</span>
|
8
8
|
</div>
|
9
9
|
{{ end }}
|
10
10
|
</div>
|