@total_onion/onion-library 1.0.145 → 1.0.147
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-bazaarvoice-review-v3/bazaarvoice-review-v3-extra.scss +6 -0
- package/components/block-bazaarvoice-review-v3/bazaarvoice-review-v3.js +7 -0
- package/components/block-bazaarvoice-review-v3/bazaarvoice-review-v3.php +14 -0
- package/components/block-bazaarvoice-review-v3/bazaarvoice-review-v3.scss +11 -0
- package/components/block-bazaarvoice-review-v3/bazaarvoice-review-v3.twig +20 -0
- package/components/block-bazaarvoice-review-v3/group_6892880fc1a00.json +119 -0
- package/components/block-product-info-v3/product-info-v3/product-abv.twig +1 -0
- package/components/block-product-info-v3/product-info-v3/product-headline.twig +1 -0
- package/components/block-product-info-v3/product-info-v3/product-name.twig +2 -1
- package/components/block-product-info-v3/product-info-v3/product-volume.twig +1 -0
- package/components/block-social-networks-v3/social-networks-v3.scss +2 -1
- package/components/block-sub-group-container-v3/group_686ceba7d6066.json +2006 -1885
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'bazaarvoice-review-v3',
|
|
6
|
+
'title' => __( 'Bazaarvoice review 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,11 @@
|
|
|
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/bazaarvoice-review-v3/bazaarvoice-review-v3-extra';
|
|
5
|
+
.bazaarvoice-review-v3 {
|
|
6
|
+
&__review-wrapper {
|
|
7
|
+
place-self: var(--horizontal-alignment, center);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include bazaarvoice-review-v3-extra.additionalStyles();
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
{% set blockClassName = "bazaarvoice-review-v3" %}
|
|
3
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
4
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
|
|
5
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
6
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
|
|
7
|
+
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
8
|
+
{% set horizontalAlignment = '--horizontal-alignment: ' ~ fields.horizontal_alignment|ru ~ ';' %}
|
|
9
|
+
|
|
10
|
+
{% set sectionStyles = styleEntryPoint ~ horizontalAlignment %}
|
|
11
|
+
|
|
12
|
+
{{previewEntryPoint}}
|
|
13
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" style="{{sectionStyles}}" data-assetkey="{{blockClassName}}">
|
|
14
|
+
{% if fn("is_plugin_active","cbl-better-reviews/cbl-better-reviews.php") %}
|
|
15
|
+
<div class="{{blockClassName}}__review-wrapper">
|
|
16
|
+
{{ function( 'do_shortcode', '[better-reviews post_id="' ~ get_post(fields.bazaarvoice_product).product_bazaarvoice~ '" stars="yes" review_count="yes"]' )|raw }}
|
|
17
|
+
</div>
|
|
18
|
+
{% endif %}
|
|
19
|
+
{{htmlEntryPoint}}
|
|
20
|
+
</section>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_6892880fc1a00",
|
|
3
|
+
"title": "Block: Bazaarvoice review v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_6892881303d89",
|
|
7
|
+
"label": "Content",
|
|
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_6892887903d8a",
|
|
27
|
+
"label": "Bazaarvoice product",
|
|
28
|
+
"name": "bazaarvoice_product",
|
|
29
|
+
"aria-label": "",
|
|
30
|
+
"type": "post_object",
|
|
31
|
+
"instructions": "",
|
|
32
|
+
"required": 0,
|
|
33
|
+
"conditional_logic": 0,
|
|
34
|
+
"wrapper": {
|
|
35
|
+
"width": "",
|
|
36
|
+
"class": "",
|
|
37
|
+
"id": ""
|
|
38
|
+
},
|
|
39
|
+
"wpml_cf_preferences": 3,
|
|
40
|
+
"post_type": [
|
|
41
|
+
"product"
|
|
42
|
+
],
|
|
43
|
+
"post_status": [
|
|
44
|
+
"publish"
|
|
45
|
+
],
|
|
46
|
+
"taxonomy": "",
|
|
47
|
+
"return_format": "object",
|
|
48
|
+
"multiple": 0,
|
|
49
|
+
"max": "",
|
|
50
|
+
"save_custom": 0,
|
|
51
|
+
"save_post_status": "publish",
|
|
52
|
+
"acfe_add_post": 0,
|
|
53
|
+
"acfe_edit_post": 0,
|
|
54
|
+
"acfe_bidirectional": {
|
|
55
|
+
"acfe_bidirectional_enabled": "0"
|
|
56
|
+
},
|
|
57
|
+
"allow_null": 0,
|
|
58
|
+
"bidirectional": 0,
|
|
59
|
+
"ui": 1,
|
|
60
|
+
"bidirectional_target": [],
|
|
61
|
+
"save_post_type": "",
|
|
62
|
+
"min": ""
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "field_689289f86d90d",
|
|
66
|
+
"label": "Horizontal Alignment",
|
|
67
|
+
"name": "horizontal_alignment",
|
|
68
|
+
"aria-label": "",
|
|
69
|
+
"type": "radio",
|
|
70
|
+
"instructions": "",
|
|
71
|
+
"required": 0,
|
|
72
|
+
"conditional_logic": 0,
|
|
73
|
+
"wrapper": {
|
|
74
|
+
"width": "",
|
|
75
|
+
"class": "",
|
|
76
|
+
"id": ""
|
|
77
|
+
},
|
|
78
|
+
"wpml_cf_preferences": 0,
|
|
79
|
+
"choices": {
|
|
80
|
+
"__flex-start": "Left",
|
|
81
|
+
"__center": "Center",
|
|
82
|
+
"__flex-end": "Right"
|
|
83
|
+
},
|
|
84
|
+
"default_value": "__flex-start",
|
|
85
|
+
"return_format": "value",
|
|
86
|
+
"allow_null": 0,
|
|
87
|
+
"other_choice": 0,
|
|
88
|
+
"layout": "horizontal",
|
|
89
|
+
"save_other_choice": 0
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"location": [
|
|
93
|
+
[
|
|
94
|
+
{
|
|
95
|
+
"param": "block",
|
|
96
|
+
"operator": "==",
|
|
97
|
+
"value": "acf\/bazaarvoice-review-v3"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
],
|
|
101
|
+
"menu_order": 0,
|
|
102
|
+
"position": "normal",
|
|
103
|
+
"style": "default",
|
|
104
|
+
"label_placement": "left",
|
|
105
|
+
"instruction_placement": "label",
|
|
106
|
+
"hide_on_screen": "",
|
|
107
|
+
"active": true,
|
|
108
|
+
"description": "",
|
|
109
|
+
"show_in_rest": 0,
|
|
110
|
+
"acfe_autosync": [
|
|
111
|
+
"json"
|
|
112
|
+
],
|
|
113
|
+
"acfml_field_group_mode": "localization",
|
|
114
|
+
"acfe_form": 0,
|
|
115
|
+
"acfe_display_title": "",
|
|
116
|
+
"acfe_meta": "",
|
|
117
|
+
"acfe_note": "",
|
|
118
|
+
"modified": 1754434115
|
|
119
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<style>
|
|
7
7
|
.{{blockClassName}}__product-abv.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
8
|
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
9
10
|
}
|
|
10
11
|
</style>
|
|
11
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<style>
|
|
7
7
|
.{{blockClassName}}__product-headline.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
8
|
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
9
10
|
}
|
|
10
11
|
</style>
|
|
11
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
2
|
{% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
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) %}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<style>
|
|
7
7
|
.{{blockClassName}}__product-name.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
8
|
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
9
10
|
}
|
|
10
11
|
</style>
|
|
11
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<style>
|
|
7
7
|
.{{blockClassName}}__product-volume.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
|
|
8
8
|
{{textEditorStyleVars}}
|
|
9
|
+
{{gridLayoutElement}}
|
|
9
10
|
}
|
|
10
11
|
</style>
|
|
11
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
// @use 'Assets/scss/theme/breakpoints';
|
|
4
4
|
@use 'Assets/scss/blocks/social-networks-v3/social-networks-v3-extra';
|
|
5
5
|
.social-networks-v3 {
|
|
6
|
+
pointer-events: all;
|
|
6
7
|
display: flex;
|
|
7
8
|
flex-direction: column;
|
|
8
|
-
gap: core-functions-v3.fluidSize(
|
|
9
|
+
gap: core-functions-v3.fluidSize(10);
|
|
9
10
|
|
|
10
11
|
@include social-networks-v3-extra.additionalStyles();
|
|
11
12
|
}
|