@total_onion/onion-library 1.0.76 → 1.0.78

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.
@@ -24,11 +24,13 @@
24
24
 
25
25
  {% if enableInteractionsButton %}
26
26
  {% if (interactionsButtonType|ru == 'close-block') %}
27
- {% set closeButtonIcon = get_image(fields.upload_close_icon) %}
28
27
  {% set closeButtonCookie = fields.enable_closed_cookie %}
29
28
 
30
29
  <button class="block-interactions-v3__block-close-button" data-animationname="{{animationName}}" data-animationduration="{{animationDuration}}" data-store-cookie="{{closeButtonCookie ? 'true' : 'false' }}">
31
- <img class="block-interactions-v3__block-close-button-icon" src="{{closeButtonIcon.src}}">
30
+ {% set iconType = options.theme_cta_icons.cta_close_icon %}
31
+ {% set iconImage = get_image(iconType) %}
32
+ {% set isSVG = iconImage.post_mime_type == 'image/svg+xml' %}
33
+ {{ isSVG ? get_raw_svg(iconImage.id) : '<img class="" src="' ~ iconImage.src ~ '">'}}
32
34
  </button>
33
35
  {% endif %}
34
36
  {% endif %}
@@ -196,8 +196,8 @@
196
196
  "display": "block",
197
197
  "sub_fields": [
198
198
  {
199
- "key": "field_687cdf0b1ba4e",
200
- "label": "Style",
199
+ "key": "field_687cdf1f1ba4f",
200
+ "label": "Grid Layout",
201
201
  "name": "",
202
202
  "aria-label": "",
203
203
  "type": "tab",
@@ -216,9 +216,9 @@
216
216
  "selected": 0
217
217
  },
218
218
  {
219
- "key": "field_68664295513ba",
220
- "label": "text style",
221
- "name": "text_style",
219
+ "key": "field_6866429551f77",
220
+ "label": "Grid layout",
221
+ "name": "grid_layout",
222
222
  "aria-label": "",
223
223
  "type": "clone",
224
224
  "instructions": "",
@@ -231,7 +231,7 @@
231
231
  },
232
232
  "wpml_cf_preferences": 3,
233
233
  "clone": [
234
- "group_687a4e2334e37"
234
+ "field_64f700a0ede46"
235
235
  ],
236
236
  "display": "seamless",
237
237
  "layout": "block",
@@ -244,8 +244,8 @@
244
244
  "acfe_clone_modal_size": "large"
245
245
  },
246
246
  {
247
- "key": "field_687cdf1f1ba4f",
248
- "label": "Grid Layout",
247
+ "key": "field_687cdf0b1ba4e",
248
+ "label": "Style",
249
249
  "name": "",
250
250
  "aria-label": "",
251
251
  "type": "tab",
@@ -264,9 +264,9 @@
264
264
  "selected": 0
265
265
  },
266
266
  {
267
- "key": "field_6866429551f77",
268
- "label": "Grid layout",
269
- "name": "grid_layout",
267
+ "key": "field_6880fae1a9e1d",
268
+ "label": "Text editor settings fields",
269
+ "name": "text_editor_settings_fields",
270
270
  "aria-label": "",
271
271
  "type": "clone",
272
272
  "instructions": "",
@@ -279,7 +279,7 @@
279
279
  },
280
280
  "wpml_cf_preferences": 3,
281
281
  "clone": [
282
- "field_64f700a0ede46"
282
+ "group_687a4e2334e37"
283
283
  ],
284
284
  "display": "seamless",
285
285
  "layout": "block",
@@ -313,9 +313,29 @@
313
313
  "display": "block",
314
314
  "sub_fields": [
315
315
  {
316
- "key": "field_6866429554e65",
317
- "label": "Text style",
318
- "name": "text_style",
316
+ "key": "field_6880f8104ea10",
317
+ "label": "Grid layout",
318
+ "name": "",
319
+ "aria-label": "",
320
+ "type": "tab",
321
+ "instructions": "",
322
+ "required": 0,
323
+ "conditional_logic": 0,
324
+ "wrapper": {
325
+ "width": "",
326
+ "class": "",
327
+ "id": ""
328
+ },
329
+ "wpml_cf_preferences": 3,
330
+ "placement": "top",
331
+ "endpoint": 0,
332
+ "no_preference": 0,
333
+ "selected": 0
334
+ },
335
+ {
336
+ "key": "field_686642955523d",
337
+ "label": "Grid layout",
338
+ "name": "grid_layout",
319
339
  "aria-label": "",
320
340
  "type": "clone",
321
341
  "instructions": "",
@@ -328,7 +348,7 @@
328
348
  },
329
349
  "wpml_cf_preferences": 3,
330
350
  "clone": [
331
- "group_6509a986674f1"
351
+ "group_6504a81a0623c"
332
352
  ],
333
353
  "display": "seamless",
334
354
  "layout": "",
@@ -341,9 +361,29 @@
341
361
  "acfe_clone_modal_size": "large"
342
362
  },
343
363
  {
344
- "key": "field_686642955523d",
345
- "label": "Grid layout",
346
- "name": "grid_layout",
364
+ "key": "field_6880f7e54ea0f",
365
+ "label": "Style",
366
+ "name": "",
367
+ "aria-label": "",
368
+ "type": "tab",
369
+ "instructions": "",
370
+ "required": 0,
371
+ "conditional_logic": 0,
372
+ "wrapper": {
373
+ "width": "",
374
+ "class": "",
375
+ "id": ""
376
+ },
377
+ "wpml_cf_preferences": 3,
378
+ "placement": "top",
379
+ "endpoint": 0,
380
+ "no_preference": 0,
381
+ "selected": 0
382
+ },
383
+ {
384
+ "key": "field_6880f7d84ea0e",
385
+ "label": "Text editor settings fields",
386
+ "name": "text_editor_settings_fields",
347
387
  "aria-label": "",
348
388
  "type": "clone",
349
389
  "instructions": "",
@@ -356,10 +396,10 @@
356
396
  },
357
397
  "wpml_cf_preferences": 3,
358
398
  "clone": [
359
- "group_6504a81a0623c"
399
+ "group_687a4e2334e37"
360
400
  ],
361
401
  "display": "seamless",
362
- "layout": "",
402
+ "layout": "block",
363
403
  "prefix_label": 0,
364
404
  "prefix_name": 0,
365
405
  "acfe_seamless_style": 0,
@@ -458,9 +498,126 @@
458
498
  "selected": 0
459
499
  },
460
500
  {
461
- "key": "field_6866429554a69",
462
- "label": "Text style",
463
- "name": "text_style",
501
+ "key": "field_6880f8184ea11",
502
+ "label": "Text editor settings fields",
503
+ "name": "text_editor_settings_fields",
504
+ "aria-label": "",
505
+ "type": "clone",
506
+ "instructions": "",
507
+ "required": 0,
508
+ "conditional_logic": 0,
509
+ "wrapper": {
510
+ "width": "",
511
+ "class": "",
512
+ "id": ""
513
+ },
514
+ "wpml_cf_preferences": 3,
515
+ "clone": [
516
+ "group_687a4e2334e37"
517
+ ],
518
+ "display": "seamless",
519
+ "layout": "block",
520
+ "prefix_label": 0,
521
+ "prefix_name": 0,
522
+ "acfe_seamless_style": 0,
523
+ "acfe_clone_modal": 0,
524
+ "acfe_clone_modal_close": 0,
525
+ "acfe_clone_modal_button": "",
526
+ "acfe_clone_modal_size": "large"
527
+ }
528
+ ],
529
+ "min": "",
530
+ "max": "",
531
+ "acfe_flexible_render_template": false,
532
+ "acfe_flexible_render_style": false,
533
+ "acfe_flexible_render_script": false,
534
+ "acfe_flexible_thumbnail": false,
535
+ "acfe_flexible_settings": false,
536
+ "acfe_flexible_settings_size": "medium",
537
+ "acfe_layout_locations": [],
538
+ "acfe_flexible_modal_edit_size": false,
539
+ "acfe_flexible_category": false,
540
+ "acfe_layout_col": "auto",
541
+ "acfe_layout_allowed_col": false
542
+ },
543
+ "layout_64f0c0e52cbbb": {
544
+ "key": "layout_64f0c0e52cbbb",
545
+ "name": "post_categories",
546
+ "label": "Post Categories",
547
+ "display": "block",
548
+ "sub_fields": [
549
+ {
550
+ "key": "field_6880f8884ea13",
551
+ "label": "Grid layout",
552
+ "name": "",
553
+ "aria-label": "",
554
+ "type": "tab",
555
+ "instructions": "",
556
+ "required": 0,
557
+ "conditional_logic": 0,
558
+ "wrapper": {
559
+ "width": "",
560
+ "class": "",
561
+ "id": ""
562
+ },
563
+ "wpml_cf_preferences": 3,
564
+ "placement": "top",
565
+ "endpoint": 0,
566
+ "no_preference": 0,
567
+ "selected": 0
568
+ },
569
+ {
570
+ "key": "field_6866429555a34",
571
+ "label": "Grid layout",
572
+ "name": "grid_layout",
573
+ "aria-label": "",
574
+ "type": "clone",
575
+ "instructions": "",
576
+ "required": 0,
577
+ "conditional_logic": 0,
578
+ "wrapper": {
579
+ "width": "",
580
+ "class": "",
581
+ "id": ""
582
+ },
583
+ "wpml_cf_preferences": 3,
584
+ "clone": [
585
+ "group_6504a81a0623c"
586
+ ],
587
+ "display": "seamless",
588
+ "layout": "block",
589
+ "prefix_label": 0,
590
+ "prefix_name": 0,
591
+ "acfe_seamless_style": 0,
592
+ "acfe_clone_modal": 0,
593
+ "acfe_clone_modal_close": 0,
594
+ "acfe_clone_modal_button": "",
595
+ "acfe_clone_modal_size": "large"
596
+ },
597
+ {
598
+ "key": "field_6880f8904ea14",
599
+ "label": "Style",
600
+ "name": "",
601
+ "aria-label": "",
602
+ "type": "tab",
603
+ "instructions": "",
604
+ "required": 0,
605
+ "conditional_logic": 0,
606
+ "wrapper": {
607
+ "width": "",
608
+ "class": "",
609
+ "id": ""
610
+ },
611
+ "wpml_cf_preferences": 3,
612
+ "placement": "top",
613
+ "endpoint": 0,
614
+ "no_preference": 0,
615
+ "selected": 0
616
+ },
617
+ {
618
+ "key": "field_6880f8534ea12",
619
+ "label": "Text editor settings fields",
620
+ "name": "text_editor_settings_fields",
464
621
  "aria-label": "",
465
622
  "type": "clone",
466
623
  "instructions": "",
@@ -506,6 +663,74 @@
506
663
  "label": "Post link",
507
664
  "display": "block",
508
665
  "sub_fields": [
666
+ {
667
+ "key": "field_68821afd6517f",
668
+ "label": "Grid layout",
669
+ "name": "",
670
+ "aria-label": "",
671
+ "type": "tab",
672
+ "instructions": "",
673
+ "required": 0,
674
+ "conditional_logic": 0,
675
+ "wrapper": {
676
+ "width": "",
677
+ "class": "",
678
+ "id": ""
679
+ },
680
+ "wpml_cf_preferences": 0,
681
+ "placement": "top",
682
+ "endpoint": 0,
683
+ "no_preference": 0,
684
+ "selected": 0
685
+ },
686
+ {
687
+ "key": "field_6866429552b45",
688
+ "label": "Grid layout",
689
+ "name": "grid_layout",
690
+ "aria-label": "",
691
+ "type": "clone",
692
+ "instructions": "",
693
+ "required": 0,
694
+ "conditional_logic": 0,
695
+ "wrapper": {
696
+ "width": "",
697
+ "class": "",
698
+ "id": ""
699
+ },
700
+ "wpml_cf_preferences": 3,
701
+ "clone": [
702
+ "group_6504a81a0623c"
703
+ ],
704
+ "display": "seamless",
705
+ "layout": "block",
706
+ "prefix_label": 0,
707
+ "prefix_name": 0,
708
+ "acfe_seamless_style": 0,
709
+ "acfe_clone_modal": 0,
710
+ "acfe_clone_modal_close": 0,
711
+ "acfe_clone_modal_button": "",
712
+ "acfe_clone_modal_size": "large"
713
+ },
714
+ {
715
+ "key": "field_68821b1265180",
716
+ "label": "Style",
717
+ "name": "",
718
+ "aria-label": "",
719
+ "type": "tab",
720
+ "instructions": "",
721
+ "required": 0,
722
+ "conditional_logic": 0,
723
+ "wrapper": {
724
+ "width": "",
725
+ "class": "",
726
+ "id": ""
727
+ },
728
+ "wpml_cf_preferences": 0,
729
+ "placement": "top",
730
+ "endpoint": 0,
731
+ "no_preference": 0,
732
+ "selected": 0
733
+ },
509
734
  {
510
735
  "key": "field_686642955235c",
511
736
  "label": "Cta style select",
@@ -573,34 +798,6 @@
573
798
  "placeholder": "",
574
799
  "min": ""
575
800
  },
576
- {
577
- "key": "field_6866429552b45",
578
- "label": "Grid layout",
579
- "name": "grid_layout",
580
- "aria-label": "",
581
- "type": "clone",
582
- "instructions": "",
583
- "required": 0,
584
- "conditional_logic": 0,
585
- "wrapper": {
586
- "width": "",
587
- "class": "",
588
- "id": ""
589
- },
590
- "wpml_cf_preferences": 3,
591
- "clone": [
592
- "group_6504a81a0623c"
593
- ],
594
- "display": "seamless",
595
- "layout": "block",
596
- "prefix_label": 0,
597
- "prefix_name": 0,
598
- "acfe_seamless_style": 0,
599
- "acfe_clone_modal": 0,
600
- "acfe_clone_modal_close": 0,
601
- "acfe_clone_modal_button": "",
602
- "acfe_clone_modal_size": "large"
603
- },
604
801
  {
605
802
  "key": "field_6866429552f26",
606
803
  "label": "CTA Alignment",
@@ -723,6 +920,26 @@
723
920
  "multi_expand": 0,
724
921
  "endpoint": 1
725
922
  },
923
+ {
924
+ "key": "field_68821b2365181",
925
+ "label": "Text",
926
+ "name": "",
927
+ "aria-label": "",
928
+ "type": "tab",
929
+ "instructions": "",
930
+ "required": 0,
931
+ "conditional_logic": 0,
932
+ "wrapper": {
933
+ "width": "",
934
+ "class": "",
935
+ "id": ""
936
+ },
937
+ "wpml_cf_preferences": 0,
938
+ "placement": "top",
939
+ "endpoint": 0,
940
+ "no_preference": 0,
941
+ "selected": 0
942
+ },
726
943
  {
727
944
  "key": "field_68664295542b0",
728
945
  "label": "Post link text",
@@ -808,83 +1025,6 @@
808
1025
  "acfe_layout_col": "auto",
809
1026
  "acfe_layout_allowed_col": false
810
1027
  },
811
- "layout_64f0c0e52cbbb": {
812
- "key": "layout_64f0c0e52cbbb",
813
- "name": "post_categories",
814
- "label": "Post Categories",
815
- "display": "block",
816
- "sub_fields": [
817
- {
818
- "key": "field_6866429555a34",
819
- "label": "Grid layout",
820
- "name": "grid_layout",
821
- "aria-label": "",
822
- "type": "clone",
823
- "instructions": "",
824
- "required": 0,
825
- "conditional_logic": 0,
826
- "wrapper": {
827
- "width": "",
828
- "class": "",
829
- "id": ""
830
- },
831
- "wpml_cf_preferences": 3,
832
- "clone": [
833
- "group_6504a81a0623c"
834
- ],
835
- "display": "seamless",
836
- "layout": "block",
837
- "prefix_label": 0,
838
- "prefix_name": 0,
839
- "acfe_seamless_style": 0,
840
- "acfe_clone_modal": 0,
841
- "acfe_clone_modal_close": 0,
842
- "acfe_clone_modal_button": "",
843
- "acfe_clone_modal_size": "large"
844
- },
845
- {
846
- "key": "field_6866429555dea",
847
- "label": "Text style",
848
- "name": "text_style",
849
- "aria-label": "",
850
- "type": "clone",
851
- "instructions": "",
852
- "required": 0,
853
- "conditional_logic": 0,
854
- "wrapper": {
855
- "width": "",
856
- "class": "",
857
- "id": ""
858
- },
859
- "wpml_cf_preferences": 3,
860
- "clone": [
861
- "group_6509a986674f1"
862
- ],
863
- "display": "seamless",
864
- "layout": "block",
865
- "prefix_label": 0,
866
- "prefix_name": 0,
867
- "acfe_seamless_style": 0,
868
- "acfe_clone_modal": 0,
869
- "acfe_clone_modal_close": 0,
870
- "acfe_clone_modal_button": "",
871
- "acfe_clone_modal_size": "large"
872
- }
873
- ],
874
- "min": "",
875
- "max": "",
876
- "acfe_flexible_render_template": false,
877
- "acfe_flexible_render_style": false,
878
- "acfe_flexible_render_script": false,
879
- "acfe_flexible_thumbnail": false,
880
- "acfe_flexible_settings": false,
881
- "acfe_flexible_settings_size": "medium",
882
- "acfe_layout_locations": [],
883
- "acfe_flexible_modal_edit_size": false,
884
- "acfe_flexible_category": false,
885
- "acfe_layout_col": "auto",
886
- "acfe_layout_allowed_col": false
887
- },
888
1028
  "layout_670cf26641c9f": {
889
1029
  "key": "layout_670cf26641c9f",
890
1030
  "name": "post_tags",
@@ -1729,5 +1869,5 @@
1729
1869
  "acfe_display_title": "",
1730
1870
  "acfe_meta": "",
1731
1871
  "acfe_note": "",
1732
- "modified": 1753014867
1872
+ "modified": 1753357107
1733
1873
  }
@@ -1,9 +1,14 @@
1
1
  {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
- {% set textStyle = include('components/text-style.twig', {field, post}) %}
3
- {% set elementStyles = gridLayoutElement ~ textStyle %}
2
+ {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
3
+ {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
+ {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
+ {% set elementType = field.element_type|ru %}
6
+
4
7
  <style>
5
- .{{blockClassName}}__post-categories.{{block.id}} {
6
- {{elementStyles}}
8
+ .{{blockClassName}}__post-categories.{{block.id}}{
9
+ {{textEditorStyleVars}}
7
10
  }
8
11
  </style>
9
- <{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__post-categories {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}" data-pattern-post-info="post_categories.0.name">{{post.categories.0.name}}</{{field.text_style.text_element_type|ru}}>
12
+ <div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
13
+ <{{elementType|default('p')}} class="{{blockClassName}}__post-categories {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}" data-pattern-post-info="post_categories.0.name">{{post.categories.0.name}}</{{elementType|default('p')}}>
14
+ </div>
@@ -1,14 +1,14 @@
1
1
  {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
- {% set elementStyles = gridLayoutElement ~ textStyle %}
3
2
  {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
3
  {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
4
  {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
6
5
  {% set elementType = field.element_type|ru %}
7
6
  <style>
8
- .{{blockClassName}}__post-info-description.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
9
- {{textEditorStyleVars}}
10
- }
7
+ .{{blockClassName}}__post-info-description.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
8
+ {{textEditorStyleVars}}
9
+ }
11
10
  </style>
12
- <div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}"> <{{elementType}} data-pattern-post-info="post_info_description" class="{{blockClassName}}__post-info-description {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">
13
- {{post.post_info_description}}</{{elementType}}>
11
+ <div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
12
+ <{{elementType|default('p')}} data-pattern-post-info="post_info_description" class="{{blockClassName}}__post-info-description {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">
13
+ {{post.post_info_description}}</{{elementType|default('p')}}>
14
14
  </div>
@@ -1,9 +1,13 @@
1
1
  {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
- {% set textStyle = include('components/text-style.twig', {field, post}) %}
3
- {% set elementStyles = gridLayoutElement ~ textStyle %}
2
+ {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
3
+ {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
+ {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
+ {% set elementType = field.element_type|ru %}
4
6
  <style>
5
- .{{blockClassName}}__post-info-subtitle.{{block.id}} {
6
- {{elementStyles}}
7
+ .{{blockClassName}}__post-info-subtitle.{{block.id}}{
8
+ {{textEditorStyleVars}}
7
9
  }
8
10
  </style>
9
- <{{field.text_style.text_element_type|ru}} class="{{blockClassName}}__post-info-subtitle {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.post_info_subtitle}}</{{field.text_style.text_element_type|ru}}>
11
+ <div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
12
+ <{{elementType|default('p')}} class="{{blockClassName}}__post-info-subtitle {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}">{{post.post_info_subtitle}}</{{elementType|default('p')}}>
13
+ </div>
@@ -1,8 +1,12 @@
1
- {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields:field, block }, with_context = false) %}
2
- {% set sectionStyles = gridLayoutElement %}
1
+ {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
+ {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
3
+ {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
+ {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
+ {% set elementType = field.element_type|ru %}
6
+
3
7
  <style>
4
- .{{blockClassName}}__post-tags.{{block.id}} {
5
- {{sectionStyles}}
8
+ .{{blockClassName}}__post-tags.{{block.id}}{
9
+ {{textEditorStyleVars}}
6
10
  }
7
11
  </style>
8
12
  <div class="{{blockClassName}}__post-tags {{blockClassName}}__info-item {{block.id}}">
@@ -1,14 +1,13 @@
1
1
  {% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
2
- {% set elementStyles = gridLayoutElement ~ textStyle %}
3
2
  {% set textEditorStyleVars = include('components/text-editor-settings-variables-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
4
3
  {% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
5
4
  {% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
6
5
  {% set elementType = field.element_type|ru %}
7
6
  <style>
8
- .{{blockClassName}}__post-title.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}} {
7
+ .{{blockClassName}}__post-title.{{block.id}}, .{{blockClassName}}__content-container.{{block.id}}{
9
8
  {{textEditorStyleVars}}
10
9
  }
11
10
  </style>
12
11
  <div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
13
- <{{elementType}} data-pattern-post-info="post_title" class="{{blockClassName}}__post-title {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">{{post.post_title}}</{{elementType}}>
14
- </div>
12
+ <{{elementType|default('p')}} data-pattern-post-info="post_title" class="{{blockClassName}}__post-title {{blockClassName}}__info-item {{textEditorElementClasses}} {{block.id}}">{{post.post_title}}</{{elementType|default('p')}}>
13
+ </div>
@@ -17,10 +17,7 @@
17
17
  "id": ""
18
18
  },
19
19
  "wpml_cf_preferences": 3,
20
- "user_roles": [
21
- "administrator"
22
- ],
23
- "open": 0,
20
+ "open": 1,
24
21
  "multi_expand": 0,
25
22
  "endpoint": 0
26
23
  },
@@ -1355,5 +1352,5 @@
1355
1352
  "acfe_display_title": "",
1356
1353
  "acfe_meta": "",
1357
1354
  "acfe_note": "",
1358
- "modified": 1753351990
1355
+ "modified": 1753357179
1359
1356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {