Skip to content

Commit

Permalink
Allow multiple announcement bars in Header group (#2619)
Browse files Browse the repository at this point in the history
allow multiple announcement bars in header
  • Loading branch information
metamoni authored and ludoboludo committed Jun 5, 2023
1 parent 905691c commit c937c9a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 7 deletions.
3 changes: 3 additions & 0 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@
}
}
}
},
"presets": {
"name": "Announcement bar"
}
},
"apps": {
Expand Down
3 changes: 3 additions & 0 deletions locales/es.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@
"change_slides_speed": {
"label": "Cambiar de diapositiva cada"
}
},
"presets": {
"name": "Barra de anuncios"
}
},
"collage": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ko.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@
"change_slides_speed": {
"label": "슬라이드 변경 간격"
}
},
"presets": {
"name": "공지 표시줄"
}
},
"collage": {
Expand Down
3 changes: 3 additions & 0 deletions locales/nb.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@
"change_slides_speed": {
"label": "Endre lysbilde hvert"
}
},
"presets": {
"name": "Kunngjøringslinje"
}
},
"collage": {
Expand Down
3 changes: 3 additions & 0 deletions locales/tr.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@
"change_slides_speed": {
"label": "Slaytları şu zaman aralığında değiştir:"
}
},
"presets": {
"name": "Duyuru çubuğu"
}
},
"collage": {
Expand Down
20 changes: 13 additions & 7 deletions sections/announcement-bar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
"name": "t:sections.announcement-bar.name",
"max_blocks": 12,
"class": "announcement-bar-section",
"enabled_on": {
"groups": ["header"]
},
"settings": [
{
"type": "color_scheme",
Expand Down Expand Up @@ -146,12 +149,15 @@
]
}
],
"default": {
"blocks": [
{
"type": "announcement"
}
]
}
"presets": [
{
"name": "t:sections.announcement-bar.presets.name",
"blocks": [
{
"type": "announcement"
}
]
}
]
}
{% endschema %}

0 comments on commit c937c9a

Please sign in to comment.