@total_onion/onion-library 2.0.121 → 2.0.123
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-post-info-v3/post-info-v3/post-author.twig +2 -2
- package/components/block-post-info-v3/post-info-v3/post-image.twig +2 -2
- package/components/block-post-info-v3/post-info-v3/post-publish-date.twig +1 -1
- package/components/component-content-box-v3/content-box-v3.twig +1 -1
- package/components/component-content-box-v3/group_686b8a4f1fe5d.json +520 -497
- package/onion-loader-dev.js +260 -0
- package/onion-loader.js +273 -0
- package/package.json +1 -1
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
</style>
|
|
13
13
|
|
|
14
14
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}} {{blockClassName}}__info-item">
|
|
15
|
-
<span class="{{blockClassName}}__post-author-label"
|
|
16
|
-
<{{elementType|default('p')}} data-pattern-post-info="
|
|
15
|
+
<span class="{{blockClassName}}__post-author-label">{{field.label_text}}</span>
|
|
16
|
+
<{{elementType|default('p')}} data-pattern-post-info="author.name" class="{{blockClassName}}__post-author {{textEditorElementClasses}} {{block.id}}">{{post.author.name}}</{{elementType|default('p')}}>
|
|
17
17
|
</div>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
{% if imageSelect == 'image_accent' %}
|
|
4
4
|
{% set positionVars = include('components/element-positioning-v3.twig', {fields : field.post_image_positioning, block : block, blockClassName : imageClassname}, with_context = false) %}
|
|
5
5
|
{% endif %}
|
|
6
|
+
|
|
6
7
|
{% set imageWidthPercentMobile = '--post-image-width-mobile: ' ~ field.post_image_width ~ '%;' %}
|
|
7
8
|
{% set imageWidthPercentDesktop = '--post-image-width-desktop: ' ~ field.post_image_width ~ '%;' %}
|
|
8
9
|
{% if imageSelect == 'image_accent' %}
|
|
@@ -25,11 +26,10 @@
|
|
|
25
26
|
{% set imageSizes = imageSizes|default('(min-width: 1440px) 50vw, (min-width: 768px) 50vw, (min-width: 500px) 50vw, 100vw') %}
|
|
26
27
|
{% set imageFields = [] %}
|
|
27
28
|
{% set imageFields = imageFields|merge({'enable_image' : true}) %}
|
|
29
|
+
|
|
28
30
|
{% set imageClassname = 'post-info-v3__post' %}
|
|
29
31
|
{% if attribute(post, 'post_' ~ imageSelect) %}
|
|
30
32
|
{% set imageFields = imageFields|merge({'image' : attribute(post, 'post_' ~ imageSelect)}) %}
|
|
31
|
-
{% elseif attribute(post, postType ~ '_' ~ imageSelect) %}
|
|
32
|
-
{% set imageFields = imageFields|merge({'image' : attribute(post, postType ~ '_' ~ imageSelect)}) %}
|
|
33
33
|
{% elseif attribute(post, 'post_image') %}
|
|
34
34
|
{% set imageFields = imageFields|merge({'image' : attribute(post, 'post_image')}) %}
|
|
35
35
|
{% endif %}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
}
|
|
9
9
|
</style>
|
|
10
10
|
<{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__post-publish-date {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{field.enable_label ? '<span class="post-publish-date-label">' ~ field.label ~ '</span>' : ''}}
|
|
11
|
-
<span class="pattern-date">{{post.date}}</span>
|
|
11
|
+
<span class="{{blockClassName}}__post-publish-date-span" data-pattern-post-info="date">{{post.date}}</span>
|
|
12
12
|
</{{field.text_style.text_element_type|ru}}>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{% set block = block|merge({'className' : ''}) %}
|
|
14
14
|
{% endif %}
|
|
15
15
|
{% set path = '' %}
|
|
16
|
-
{% if item.acf_fc_layout == 'spacer_v3' or item.acf_fc_layout == 'divider_v3' or item.acf_fc_layout == 'breadcrumb_display' %}
|
|
16
|
+
{% if item.acf_fc_layout == 'spacer_v3' or item.acf_fc_layout == 'divider_v3' or item.acf_fc_layout == 'breadcrumb_display' or item.acf_fc_layout == 'block_interactions_v3' %}
|
|
17
17
|
{% set path = 'blocks' %}
|
|
18
18
|
{% else %}
|
|
19
19
|
{% set path = 'components' %}
|