@total_onion/onion-library 1.0.22 → 1.0.24
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-current-post-info-v3/group_681f29c027d42.json +1766 -0
- package/components/block-group-container-v3/group_6865578ada499.json +11 -110
- package/components/block-single-responsive-image-v3/single-responsive-image-v3.twig +0 -1
- package/components/block-site-logo-container-v3/site-logo-container-v3-extra.scss +6 -0
- package/components/block-site-logo-container-v3/site-logo-container-v3.js +7 -0
- package/components/block-site-logo-container-v3/site-logo-container-v3.php +14 -0
- package/components/block-site-logo-container-v3/site-logo-container-v3.scss +30 -0
- package/components/block-site-logo-container-v3/site-logo-container-v3.twig +42 -0
- package/components/block-sub-group-container-v3/group_686ceba7d6066.json +1 -3
- package/components/fields-core-generic-v3/core-generic-v3.scss +140 -0
- package/package.json +1 -1
|
@@ -49,8 +49,6 @@
|
|
|
49
49
|
"layout"
|
|
50
50
|
],
|
|
51
51
|
"acfe_flexible_add_actions": [
|
|
52
|
-
"title",
|
|
53
|
-
"toggle",
|
|
54
52
|
"copy",
|
|
55
53
|
"close"
|
|
56
54
|
],
|
|
@@ -1143,8 +1141,8 @@
|
|
|
1143
1141
|
},
|
|
1144
1142
|
"layout_65d295051676d": {
|
|
1145
1143
|
"key": "layout_65d295051676d",
|
|
1146
|
-
"name": "
|
|
1147
|
-
"label": "Nav Menu Container",
|
|
1144
|
+
"name": "nav_menu_container_v3",
|
|
1145
|
+
"label": "Nav Menu Container v3",
|
|
1148
1146
|
"display": "block",
|
|
1149
1147
|
"sub_fields": [
|
|
1150
1148
|
{
|
|
@@ -1434,8 +1432,8 @@
|
|
|
1434
1432
|
},
|
|
1435
1433
|
"layout_65dda8f965f8c": {
|
|
1436
1434
|
"key": "layout_65dda8f965f8c",
|
|
1437
|
-
"name": "
|
|
1438
|
-
"label": "Site Title and Tagline",
|
|
1435
|
+
"name": "site_title_and_tagline_v3",
|
|
1436
|
+
"label": "Site Title and Tagline v3",
|
|
1439
1437
|
"display": "block",
|
|
1440
1438
|
"sub_fields": [
|
|
1441
1439
|
{
|
|
@@ -1531,8 +1529,8 @@
|
|
|
1531
1529
|
},
|
|
1532
1530
|
"layout_66296ce99eb03": {
|
|
1533
1531
|
"key": "layout_66296ce99eb03",
|
|
1534
|
-
"name": "
|
|
1535
|
-
"label": "Site Copyright Notice",
|
|
1532
|
+
"name": "site_copyright_notice_v3",
|
|
1533
|
+
"label": "Site Copyright Notice v3",
|
|
1536
1534
|
"display": "block",
|
|
1537
1535
|
"sub_fields": [
|
|
1538
1536
|
{
|
|
@@ -1628,8 +1626,8 @@
|
|
|
1628
1626
|
},
|
|
1629
1627
|
"layout_65ddac9f98296": {
|
|
1630
1628
|
"key": "layout_65ddac9f98296",
|
|
1631
|
-
"name": "
|
|
1632
|
-
"label": "Site Logo container",
|
|
1629
|
+
"name": "site_logo_container_v3",
|
|
1630
|
+
"label": "Site Logo container v3",
|
|
1633
1631
|
"display": "block",
|
|
1634
1632
|
"sub_fields": [
|
|
1635
1633
|
{
|
|
@@ -1725,8 +1723,8 @@
|
|
|
1725
1723
|
},
|
|
1726
1724
|
"layout_65eb0b972b031": {
|
|
1727
1725
|
"key": "layout_65eb0b972b031",
|
|
1728
|
-
"name": "
|
|
1729
|
-
"label": "Iframe Container",
|
|
1726
|
+
"name": "iframe_container_v3",
|
|
1727
|
+
"label": "Iframe Container v3",
|
|
1730
1728
|
"display": "block",
|
|
1731
1729
|
"sub_fields": [
|
|
1732
1730
|
{
|
|
@@ -1819,103 +1817,6 @@
|
|
|
1819
1817
|
"acfe_flexible_category": false,
|
|
1820
1818
|
"acfe_layout_col": "auto",
|
|
1821
1819
|
"acfe_layout_allowed_col": false
|
|
1822
|
-
},
|
|
1823
|
-
"layout_6710f495eab1b": {
|
|
1824
|
-
"key": "layout_6710f495eab1b",
|
|
1825
|
-
"name": "map_container",
|
|
1826
|
-
"label": "Map Container",
|
|
1827
|
-
"display": "block",
|
|
1828
|
-
"sub_fields": [
|
|
1829
|
-
{
|
|
1830
|
-
"key": "field_6865578b0ca32",
|
|
1831
|
-
"label": "Grid Layout",
|
|
1832
|
-
"name": "",
|
|
1833
|
-
"aria-label": "",
|
|
1834
|
-
"type": "tab",
|
|
1835
|
-
"instructions": "",
|
|
1836
|
-
"required": 0,
|
|
1837
|
-
"conditional_logic": 0,
|
|
1838
|
-
"wrapper": {
|
|
1839
|
-
"width": "",
|
|
1840
|
-
"class": "",
|
|
1841
|
-
"id": ""
|
|
1842
|
-
},
|
|
1843
|
-
"wpml_cf_preferences": 3,
|
|
1844
|
-
"placement": "top",
|
|
1845
|
-
"endpoint": 0,
|
|
1846
|
-
"no_preference": 0,
|
|
1847
|
-
"selected": 0
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
"key": "field_6865578b0cdf8",
|
|
1851
|
-
"label": "grid layout",
|
|
1852
|
-
"name": "grid_layout",
|
|
1853
|
-
"aria-label": "",
|
|
1854
|
-
"type": "clone",
|
|
1855
|
-
"instructions": "",
|
|
1856
|
-
"required": 0,
|
|
1857
|
-
"conditional_logic": 0,
|
|
1858
|
-
"wrapper": {
|
|
1859
|
-
"width": "",
|
|
1860
|
-
"class": "",
|
|
1861
|
-
"id": ""
|
|
1862
|
-
},
|
|
1863
|
-
"wpml_cf_preferences": 3,
|
|
1864
|
-
"clone": [
|
|
1865
|
-
"group_6504a81a0623c"
|
|
1866
|
-
],
|
|
1867
|
-
"display": "seamless",
|
|
1868
|
-
"layout": "block",
|
|
1869
|
-
"prefix_label": 0,
|
|
1870
|
-
"prefix_name": 0,
|
|
1871
|
-
"acfe_seamless_style": 0,
|
|
1872
|
-
"acfe_clone_modal": 0,
|
|
1873
|
-
"acfe_clone_modal_close": 0,
|
|
1874
|
-
"acfe_clone_modal_button": "",
|
|
1875
|
-
"acfe_clone_modal_size": "large"
|
|
1876
|
-
},
|
|
1877
|
-
{
|
|
1878
|
-
"key": "field_6865578b0d1ef",
|
|
1879
|
-
"label": "Map container fields",
|
|
1880
|
-
"name": "map_container_fields",
|
|
1881
|
-
"aria-label": "",
|
|
1882
|
-
"type": "clone",
|
|
1883
|
-
"instructions": "",
|
|
1884
|
-
"required": 0,
|
|
1885
|
-
"conditional_logic": 0,
|
|
1886
|
-
"wrapper": {
|
|
1887
|
-
"width": "",
|
|
1888
|
-
"class": "",
|
|
1889
|
-
"id": ""
|
|
1890
|
-
},
|
|
1891
|
-
"wpml_cf_preferences": 3,
|
|
1892
|
-
"clone": [
|
|
1893
|
-
"group_670fe49f73f13"
|
|
1894
|
-
],
|
|
1895
|
-
"display": "seamless",
|
|
1896
|
-
"layout": "block",
|
|
1897
|
-
"prefix_label": 0,
|
|
1898
|
-
"prefix_name": 0,
|
|
1899
|
-
"acfe_seamless_style": 0,
|
|
1900
|
-
"acfe_clone_modal": 0,
|
|
1901
|
-
"acfe_clone_modal_close": 0,
|
|
1902
|
-
"acfe_clone_modal_button": "",
|
|
1903
|
-
"acfe_clone_modal_size": "large"
|
|
1904
|
-
}
|
|
1905
|
-
],
|
|
1906
|
-
"min": "",
|
|
1907
|
-
"max": "",
|
|
1908
|
-
"acfe_flexible_render_template": false,
|
|
1909
|
-
"acfe_flexible_render_style": false,
|
|
1910
|
-
"acfe_flexible_render_script": false,
|
|
1911
|
-
"acfe_flexible_thumbnail": false,
|
|
1912
|
-
"acfe_flexible_settings": false,
|
|
1913
|
-
"acfe_flexible_settings_size": "medium",
|
|
1914
|
-
"acfe_layout_locations": [],
|
|
1915
|
-
"acfe_flexible_modal_edit_size": false,
|
|
1916
|
-
"acfe_flexible_category": false,
|
|
1917
|
-
"acfe_layout_col": "auto",
|
|
1918
|
-
"acfe_layout_allowed_col": false
|
|
1919
1820
|
}
|
|
1920
1821
|
},
|
|
1921
1822
|
"min": "",
|
|
@@ -2288,5 +2189,5 @@
|
|
|
2288
2189
|
"acfe_display_title": "",
|
|
2289
2190
|
"acfe_meta": "",
|
|
2290
2191
|
"acfe_note": "",
|
|
2291
|
-
"modified":
|
|
2192
|
+
"modified": 1752661955
|
|
2292
2193
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
{% set htmlEntryPoint = include('entry-points/entry-point-html.twig', { fields, block, blockClassName, options, environment, is_preview, nav_menus, imageSizes }, with_context = false) %}
|
|
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
|
-
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
6
|
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields: fields, block: block, displaytype: displaytype, is_preview: is_preview }, with_context = false) %}
|
|
8
7
|
{% set sectionStyles = styleEntryPoint %}
|
|
9
8
|
{{previewEntryPoint}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'site-logo-container-v3',
|
|
6
|
+
'title' => __('Site logo container 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,30 @@
|
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
3
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
4
|
+
@use 'Assets/scss/blocks/site-logo-container-v3/site-logo-container-v3-extra';
|
|
5
|
+
.site-logo-container-v3 {
|
|
6
|
+
&__site-logo {
|
|
7
|
+
margin: auto;
|
|
8
|
+
pointer-events: all;
|
|
9
|
+
max-width: core-functions.fluidSize(
|
|
10
|
+
var(--site-logo-max-width-mobile),
|
|
11
|
+
'mobile'
|
|
12
|
+
);
|
|
13
|
+
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
14
|
+
max-width: core-functions.fluidSize(
|
|
15
|
+
var(--site-logo-max-width-portrait),
|
|
16
|
+
'portrait'
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
20
|
+
max-width: core-functions.fluidSize(
|
|
21
|
+
var(--site-logo-max-width-desktop),
|
|
22
|
+
'desktop'
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&__site-logo-link {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
@include site-logo-container-v3-extra.additionalStyles();
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{% set blockClassName = "site-logo-container-v3" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html.twig', { fields, block, blockClassName, options, environment, is_preview, nav_menus }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields, block, displaytype, 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 logoMaxWidthDesktop = '--site-logo-max-width-desktop: ' ~ fields.site_logo_max_width_desktop ~ ';'%}
|
|
9
|
+
{% set logoMaxWidthPortrait = '--site-logo-max-width-portrait: ' ~ fields.site_logo_max_width_portrait ~ ';' %}
|
|
10
|
+
{% set logoMaxWidthMobile = '--site-logo-max-width-mobile: ' ~ fields.site_logo_max_width_mobile ~ ';' %}
|
|
11
|
+
|
|
12
|
+
{% set sectionStyles = styleEntryPoint ~ logoMaxWidthDesktop ~ logoMaxWidthPortrait ~ logoMaxWidthMobile %}
|
|
13
|
+
<style>
|
|
14
|
+
.{{blockClassName}}.{{block.id}}{
|
|
15
|
+
{{sectionStyles}}
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} {{block.id}} lazy-fade" data-jsload="false" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
19
|
+
|
|
20
|
+
<a class="{{blockClassName}}__site-logo-link" href="/{{ market_slug ? market_slug ~ '/' : '' }}" aria-label="site-logo-link">
|
|
21
|
+
{% if fields.logo_type|ru == 'site-header' %}
|
|
22
|
+
{% set siteLogo = get_image(options.header_logo_desktop) %}
|
|
23
|
+
{% endif %}
|
|
24
|
+
{% if fields.logo_type|ru == 'site-footer' %}
|
|
25
|
+
{% set siteLogo = get_image(options.footer_logo) %}
|
|
26
|
+
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% if fields.logo_type|ru == 'site-logo-alt' %}
|
|
29
|
+
{% set siteLogo = get_image(options.site_logo_alt) %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
32
|
+
{% set isSVG = siteLogo.post_mime_type == 'image/svg+xml' %}
|
|
33
|
+
{% set mainImageSrc = isSVG ? siteLogo.src : gt_image_mainsrc(siteLogo) %}
|
|
34
|
+
|
|
35
|
+
{% if isSVG %}
|
|
36
|
+
{{get_raw_svg(siteLogo.id, 'site-logo-container__site-logo style-svg')}}
|
|
37
|
+
{% else %}
|
|
38
|
+
<img src="{{gt_image_mainsrc(siteLogo)}}" srcset="{{gt_image_srcset(siteLogo)}}" width="{{siteLogo.width}}" height="{{siteLogo.height}}" alt="{{siteLogo.alt|default('site-logo')}}" class="{{blockClassName}}__site-logo style-svg"/>
|
|
39
|
+
{% endif %}
|
|
40
|
+
</a>
|
|
41
|
+
{{htmlEntryPoint}}
|
|
42
|
+
</section>
|
|
@@ -100,8 +100,6 @@
|
|
|
100
100
|
"layout"
|
|
101
101
|
],
|
|
102
102
|
"acfe_flexible_add_actions": [
|
|
103
|
-
"title",
|
|
104
|
-
"toggle",
|
|
105
103
|
"copy",
|
|
106
104
|
"close"
|
|
107
105
|
],
|
|
@@ -1366,5 +1364,5 @@
|
|
|
1366
1364
|
"acfe_display_title": "",
|
|
1367
1365
|
"acfe_meta": "",
|
|
1368
1366
|
"acfe_note": "",
|
|
1369
|
-
"modified":
|
|
1367
|
+
"modified": 1752661541
|
|
1370
1368
|
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/core-cta/core-cta';
|
|
4
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
5
|
+
|
|
6
|
+
/* Box sizing rules */
|
|
7
|
+
*,
|
|
8
|
+
*::before,
|
|
9
|
+
*::after {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html {
|
|
14
|
+
min-height: 100%;
|
|
15
|
+
container-type: inline-size;
|
|
16
|
+
&.lock-position {
|
|
17
|
+
@include core-mixins.lockPosition();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lazy-fade {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
.loaded:not(.cmpl-block-animations) {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.js-enabled-hide {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
body {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
scroll-behavior: smooth;
|
|
36
|
+
text-rendering: optimizeSpeed;
|
|
37
|
+
margin: 0; //reset default margin
|
|
38
|
+
padding: 0; //reset default padding
|
|
39
|
+
height: auto;
|
|
40
|
+
min-height: 100vh;
|
|
41
|
+
position: relative;
|
|
42
|
+
@include core-mixins.fontSecondary();
|
|
43
|
+
background: var(--body-background-colour);
|
|
44
|
+
--default-text-colour-mobile: var(--theme-primary-text-colour);
|
|
45
|
+
color: var(--default-text-colour-mobile);
|
|
46
|
+
|
|
47
|
+
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
48
|
+
--default-text-colour-desktop: var(--theme-primary-text-colour);
|
|
49
|
+
color: var(--default-text-colour-desktop);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.lock-position {
|
|
53
|
+
@include core-mixins.lockPosition();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.hide-nav {
|
|
57
|
+
.site-header {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.body-container-background-image,
|
|
64
|
+
.page-container-background-image {
|
|
65
|
+
&__picture {
|
|
66
|
+
height: 100%;
|
|
67
|
+
position: var(--body-background-image-position-type);
|
|
68
|
+
inset: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__image {
|
|
72
|
+
height: 100%;
|
|
73
|
+
object-fit: var(--body-background-image-fit);
|
|
74
|
+
object-position: var(--body-background-image-position);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.body-container-background-video {
|
|
79
|
+
position: fixed;
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
inset: 0;
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
img {
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: auto;
|
|
88
|
+
display: block;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
main {
|
|
92
|
+
height: auto;
|
|
93
|
+
width: 100%;
|
|
94
|
+
max-width: var(--global-content-max-width-main);
|
|
95
|
+
margin-inline: auto;
|
|
96
|
+
background-image: var(--main-container-background-image);
|
|
97
|
+
background-repeat: repeat;
|
|
98
|
+
container-type: inline-size;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
header,
|
|
102
|
+
footer,
|
|
103
|
+
section {
|
|
104
|
+
width: 100%;
|
|
105
|
+
max-width: 100%;
|
|
106
|
+
}
|
|
107
|
+
section[data-assetkey] {
|
|
108
|
+
// container-type: inline-size;
|
|
109
|
+
}
|
|
110
|
+
.site-footer-block {
|
|
111
|
+
margin-top: auto;
|
|
112
|
+
}
|
|
113
|
+
.grecaptcha-badge {
|
|
114
|
+
z-index: 50;
|
|
115
|
+
bottom: 0 !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.evidon-consent-button,
|
|
119
|
+
.evidon-prefdiag-overlay,
|
|
120
|
+
.evidon-banner {
|
|
121
|
+
color: var(--black);
|
|
122
|
+
img {
|
|
123
|
+
width: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
a {
|
|
127
|
+
text-decoration: underline;
|
|
128
|
+
font-size: unset;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Remove all animations and transitions for people that prefer not to see them */
|
|
133
|
+
@media (prefers-reduced-motion: reduce) {
|
|
134
|
+
* {
|
|
135
|
+
animation-duration: 0.01ms !important;
|
|
136
|
+
animation-iteration-count: 1 !important;
|
|
137
|
+
transition-duration: 0.01ms !important;
|
|
138
|
+
scroll-behavior: auto !important;
|
|
139
|
+
}
|
|
140
|
+
}
|