@total_onion/onion-library 1.0.32 → 1.0.34
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.
|
@@ -1,77 +1,129 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
2
|
+
"key": "group_68752075dd831",
|
|
3
|
+
"title": "Block: Market Selector v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_68762d4f6632f",
|
|
7
|
+
"label": "Block Settings",
|
|
8
|
+
"name": "",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "tab",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 3,
|
|
20
|
+
"placement": "top",
|
|
21
|
+
"endpoint": 0,
|
|
22
|
+
"no_preference": 0,
|
|
23
|
+
"selected": 0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "field_6875207709d8d",
|
|
27
|
+
"label": "Selector Type",
|
|
28
|
+
"name": "selector_type",
|
|
29
|
+
"aria-label": "",
|
|
30
|
+
"type": "radio",
|
|
31
|
+
"instructions": "",
|
|
32
|
+
"required": 0,
|
|
33
|
+
"conditional_logic": 0,
|
|
34
|
+
"wrapper": {
|
|
35
|
+
"width": "",
|
|
36
|
+
"class": "",
|
|
37
|
+
"id": ""
|
|
38
|
+
},
|
|
39
|
+
"wpml_cf_preferences": 3,
|
|
40
|
+
"choices": {
|
|
41
|
+
"__pop-up": "Pop Up",
|
|
42
|
+
"__inline": "Inline"
|
|
43
|
+
},
|
|
44
|
+
"default_value": "__pop-up : Pop Up",
|
|
45
|
+
"return_format": "value",
|
|
46
|
+
"allow_null": 0,
|
|
47
|
+
"other_choice": 0,
|
|
48
|
+
"layout": "vertical",
|
|
49
|
+
"save_other_choice": 0
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "field_6877b0a54f3eb",
|
|
53
|
+
"label": "Heading Text",
|
|
54
|
+
"name": "heading_text",
|
|
55
|
+
"aria-label": "",
|
|
56
|
+
"type": "text",
|
|
57
|
+
"instructions": "",
|
|
58
|
+
"required": 0,
|
|
59
|
+
"conditional_logic": 0,
|
|
60
|
+
"wrapper": {
|
|
61
|
+
"width": "",
|
|
62
|
+
"class": "",
|
|
63
|
+
"id": ""
|
|
64
|
+
},
|
|
65
|
+
"wpml_cf_preferences": 2,
|
|
66
|
+
"default_value": "",
|
|
67
|
+
"maxlength": "",
|
|
68
|
+
"placeholder": "",
|
|
69
|
+
"prepend": "",
|
|
70
|
+
"append": ""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "field_687910f6aa776",
|
|
74
|
+
"label": "Logo",
|
|
75
|
+
"name": "logo",
|
|
76
|
+
"aria-label": "",
|
|
77
|
+
"type": "image",
|
|
78
|
+
"instructions": "",
|
|
79
|
+
"required": 0,
|
|
80
|
+
"conditional_logic": 0,
|
|
81
|
+
"wrapper": {
|
|
82
|
+
"width": "",
|
|
83
|
+
"class": "",
|
|
84
|
+
"id": ""
|
|
85
|
+
},
|
|
86
|
+
"wpml_cf_preferences": 3,
|
|
87
|
+
"uploader": "",
|
|
88
|
+
"return_format": "id",
|
|
89
|
+
"library": "all",
|
|
90
|
+
"upload_folder": "",
|
|
91
|
+
"acfe_thumbnail": 0,
|
|
92
|
+
"min_width": "",
|
|
93
|
+
"min_height": "",
|
|
94
|
+
"min_size": "",
|
|
95
|
+
"max_width": "",
|
|
96
|
+
"max_height": "",
|
|
97
|
+
"max_size": "",
|
|
98
|
+
"mime_types": "",
|
|
99
|
+
"preview_size": "medium"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"location": [
|
|
103
|
+
[
|
|
104
|
+
{
|
|
105
|
+
"param": "block",
|
|
106
|
+
"operator": "==",
|
|
107
|
+
"value": "acf\/market-selector-v3"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
],
|
|
111
|
+
"menu_order": 0,
|
|
112
|
+
"position": "normal",
|
|
113
|
+
"style": "default",
|
|
114
|
+
"label_placement": "left",
|
|
115
|
+
"instruction_placement": "label",
|
|
116
|
+
"hide_on_screen": "",
|
|
117
|
+
"active": true,
|
|
118
|
+
"description": "",
|
|
119
|
+
"show_in_rest": 0,
|
|
120
|
+
"acfe_autosync": [
|
|
121
|
+
"json"
|
|
122
|
+
],
|
|
123
|
+
"acfml_field_group_mode": "localization",
|
|
124
|
+
"acfe_form": 0,
|
|
125
|
+
"acfe_display_title": "",
|
|
126
|
+
"acfe_meta": "",
|
|
127
|
+
"acfe_note": "",
|
|
128
|
+
"modified": 1752848810
|
|
77
129
|
}
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"layouts": {
|
|
79
79
|
"layout_658063d590f0f": {
|
|
80
80
|
"key": "layout_658063d590f0f",
|
|
81
|
-
"name": "
|
|
82
|
-
"label": "Wysiwyg Editor",
|
|
81
|
+
"name": "wysiwyg_editor_v3",
|
|
82
|
+
"label": "Wysiwyg Editor v3",
|
|
83
83
|
"display": "block",
|
|
84
84
|
"sub_fields": [
|
|
85
85
|
{
|
|
@@ -458,5 +458,5 @@
|
|
|
458
458
|
"acfe_display_title": "",
|
|
459
459
|
"acfe_meta": "",
|
|
460
460
|
"acfe_note": "",
|
|
461
|
-
"modified":
|
|
461
|
+
"modified": 1752847298
|
|
462
462
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{# Do not edit this file outside of the component library as your changes will be lost with future updates. #}
|
|
2
|
+
{% if fields.enable_text_shadow %}
|
|
3
|
+
{% set textShadowClass = blockClassName|default('default-class') ~ "--text-shadow" %}
|
|
4
|
+
{% set textShadowStyle = "--text-shadow-offset-x:" ~ (fields.text_shadow_horizontal_offset|default(0)) ~ "; --text-shadow-offset-y: " ~ (fields.text_shadow_vertical_offset|default(0)) ~ "; --text-shadow-blur: " ~ (fields.text_shadow_blur|default(0)) ~ "; --text-shadow-colour: " ~ (fields.text_shadow_colour|default("#000000")) ~ ";" %}
|
|
5
|
+
{% endif %}
|
|
6
|
+
{% if fields.enable_wysiwyg_decoration %}
|
|
7
|
+
{% set wysiwygDecorationStyle = fields.wysiwyg_decoration_style|ru %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
{% if fields.mobile_default_text_transform %}
|
|
10
|
+
{% set defaultTextTransformMobile = '--default-text-transform-mobile: ' ~ fields.mobile_default_text_transform|ru ~ ';' %}
|
|
11
|
+
{% endif %}
|
|
12
|
+
{% if fields.portrait_default_text_transform %}
|
|
13
|
+
{% set defaultTextTransformPortrait = '--default-text-transform-portrait: ' ~ fields.portrait_default_text_transform|ru ~ ';' %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% if fields.desktop_default_text_transform %}
|
|
16
|
+
{% set defaultTextTransformDesktop = '--default-text-transform-desktop: ' ~ fields.desktop_default_text_transform|ru ~ ';' %}
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% if fields.mobile_default_text_align %}
|
|
19
|
+
{% set defaultTextAlignMobile = '--default-text-align-mobile: ' ~ fields.mobile_default_text_align|ru ~ ';' %}
|
|
20
|
+
{% endif %}
|
|
21
|
+
{% if fields.portrait_default_text_align %}
|
|
22
|
+
{% set defaultTextAlignPortrait = '--default-text-align-portrait: ' ~ fields.portrait_default_text_align|ru ~ ';' %}
|
|
23
|
+
{% endif %}
|
|
24
|
+
{% if fields.desktop_default_text_align %}
|
|
25
|
+
{% set defaultTextAlignDesktop = '--default-text-align-desktop: ' ~ fields.desktop_default_text_align|ru ~ ';' %}
|
|
26
|
+
{% endif %}
|
|
27
|
+
{% if fields.mobile_default_font_weight %}
|
|
28
|
+
{% set defaultFontWeightMobile = '--default-font-weight-mobile: ' ~ fields.mobile_default_font_weight|ru ~ ';' %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% if fields.portrait_default_font_weight %}
|
|
31
|
+
{% set defaultFontWeightPortrait = '--default-font-weight-portrait: ' ~ fields.portrait_default_font_weight|ru ~ ';' %}
|
|
32
|
+
{% endif %}
|
|
33
|
+
{% if fields.desktop_default_font_weight %}
|
|
34
|
+
{% set defaultFontWeightDesktop = '--default-font-weight-desktop: ' ~ fields.desktop_default_font_weight|ru ~ ';' %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
{% set displaytype = 'grid' %}
|
|
37
|
+
{% set responsiveShowHide = include('components/responsive-show-hide.twig', { fields, block, blockClassName, displaytype, is_preview }, with_context = false) %}
|
|
38
|
+
{% if fields.mobile_default_font_style %}
|
|
39
|
+
{% set defaultFontStyleMobile = '--default-font-style-mobile: ' ~ fields.mobile_default_font_style|ru ~ ';' %}
|
|
40
|
+
{% endif %}
|
|
41
|
+
{% if fields.portrait_default_font_style %}
|
|
42
|
+
{% set defaultFontStylePortrait = '--default-font-style-portrait: ' ~ fields.portrait_default_font_style|ru ~ ';' %}
|
|
43
|
+
{% endif %}
|
|
44
|
+
{% if fields.desktop_default_font_style %}
|
|
45
|
+
{% set defaultFontStyleDesktop = '--default-font-style-desktop: ' ~ fields.desktop_default_font_style|ru ~ ';' %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
{% if fields.desktop_default_text_colour %}
|
|
48
|
+
{% set defaultTextColourDesktop = '--default-text-colour-desktop: ' ~ fields.desktop_default_text_colour|ru ~ ';' %}
|
|
49
|
+
{% endif %}
|
|
50
|
+
{% if fields.portrait_default_text_colour %}
|
|
51
|
+
{% set defaultTextColourPortrait = '--default-text-colour-portrait: ' ~ fields.portrait_default_text_colour|ru ~ ';' %}
|
|
52
|
+
{% endif %}
|
|
53
|
+
{% if fields.mobile_default_text_colour %}
|
|
54
|
+
{% set defaultTextColourMobile = '--default-text-colour-mobile: ' ~ fields.mobile_default_text_colour|ru ~ ';' %}
|
|
55
|
+
{% endif %}
|
|
56
|
+
{% if fields.enable_text_outline %}
|
|
57
|
+
{% set textStrokeWidth = '--text-stroke-width: ' ~ fields.text_outline_width ~ ';' %}
|
|
58
|
+
{% set textStrokeColour = '--text-stroke-colour: ' ~ fields.text_outline_colour ~ ';' %}
|
|
59
|
+
{% endif %}
|
|
60
|
+
{% set wysiwygMaxWidth = '--wysiwyg-max-width: ' ~ fields.wysiwyg_max_width ~ '%;' %}
|
|
61
|
+
{% set wysiwygMaxWidthPortrait = '--wysiwyg-max-width-portrait: ' ~ fields.wysiwyg_max_width_portrait ~ '%;' %}
|
|
62
|
+
{% set wysiwygMaxWidthMobile = '--wysiwyg-max-width-mobile: ' ~ fields.wysiwyg_max_width_mobile ~ '%;' %}
|
|
63
|
+
{% set widgetStyles = textShadowStyle ~ defaultTextColourDesktop ~ defaultTextColourPortrait ~ defaultTextColourMobile ~ textStrokeWidth ~ textStrokeColour ~ wysiwygHorizPaddingMobile ~ wysiwygHorizPaddingDesktop ~ wysiwygMaxWidth ~ wysiwygMaxWidthMobile ~ wysiwygMaxWidthPortrait ~ defaultTextTransformDesktop ~ defaultTextTransformMobile ~ defaultTextTransformPortrait ~ defaultFontWeightMobile ~ defaultFontWeightPortrait ~ defaultFontWeightDesktop ~ defaultFontStyleMobile ~ defaultFontStylePortrait ~ defaultFontStyleDesktop ~ defaultTextAlignMobile ~ defaultTextAlignPortrait ~ defaultTextAlignDesktop ~ responsiveShowHide %}
|
|
64
|
+
<style>
|
|
65
|
+
.{{blockClassName|default('default-class')}}__content-container.{{block.id}}{
|
|
66
|
+
{{widgetStyles}}
|
|
67
|
+
}
|
|
68
|
+
</style>
|
|
69
|
+
{% if fields.wysiwyg_editor %}
|
|
70
|
+
<div class="{{blockClassName|default('default-class')}}__content-container {{textShadowClass}} {{blockClassName|default('default-class')}}__{{wysiwygDecorationStyle}} standard-content-box-wysiwyg-editor {{block.id}}">
|
|
71
|
+
{% if fields.wysiwyg_editor is not empty %}
|
|
72
|
+
<{{fields.element_type|ru}} class="{{fields.typographic_style|ru}}">
|
|
73
|
+
{{fields.wysiwyg_editor|striptags('<br>, <a>, <em>, <i>, <span>, <strong>')|raw}}
|
|
74
|
+
</{{fields.element_type|ru}}>
|
|
75
|
+
{% endif %}
|
|
76
|
+
</div>
|
|
77
|
+
{% endif %}
|