Skip to content

Commit

Permalink
Merge pull request #38 from anishdalvi/notification-bar
Browse files Browse the repository at this point in the history
Notification Bar fixed
  • Loading branch information
mihir-bombay-studio authored Nov 22, 2023
2 parents 5c6cf4c + 5362bba commit ef4ee2f
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions sections/notification-bar.liquid
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<div class="yummuy_only_text--wrp">
<span class="blinking_circle"></span>
<p>
{% if section.settings.notification_text != 'This is notification bar' %}
{{ section.settings.notification_text }}
{% endif %}
Nieuw:
<a href='/products/sleep' title='Sleep'>Yummygums Sleep</a>
ZzzzZzzZ 🌚
</p>
{% if section.settings.notification_text != blank and section.settings.linkUrl != blank %}
<p>
<a href="{{ section.settings.linkUrl }}" target="_blank"> {{ section.settings.notification_text }} </a>
{% if section.settings.sub_notification_text != blank %}
<p>
{{ section.settings.sub_notification_text }}
</p>
{% endif %}
</p>
{% endif %}
</div>

{% schema %}
Expand All @@ -17,9 +19,19 @@
{
"type": "text",
"label": "Notification Text",
"id": "notification_text",
"default": "This is notification bar"
"id": "notification_text"
},
{
"type": "url",
"label": "Link URL",
"id": "linkUrl"
},
{
"type": "text",
"label": "Sub Notification Text",
"id": "sub_notification_text"
}

],
"presets": [
{
Expand Down

0 comments on commit ef4ee2f

Please sign in to comment.