rebly-sections 1.0.1 → 1.2.0

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.
Files changed (161) hide show
  1. package/assets/data/block-patterns.csv +160 -0
  2. package/assets/data/component-library/GDPR-modal.liquid +183 -0
  3. package/assets/data/component-library/Ishi_parallaxblockstyle1.liquid +331 -0
  4. package/assets/data/component-library/_index.csv +157 -19
  5. package/assets/data/component-library/about.liquid +1557 -0
  6. package/assets/data/component-library/adv-header.liquid +344 -0
  7. package/assets/data/component-library/adv-navigation.liquid +542 -0
  8. package/assets/data/component-library/announcement-bar.liquid +42 -60
  9. package/assets/data/component-library/article.liquid +242 -0
  10. package/assets/data/component-library/axeo-perfume-cosmetics-store-shopify-theme-about.liquid +1557 -0
  11. package/assets/data/component-library/basel-gl_newsletter_pets.liquid +612 -0
  12. package/assets/data/component-library/bixbang-fullpackage-collection-template.liquid +990 -0
  13. package/assets/data/component-library/blog-sidebar-article.liquid +51 -0
  14. package/assets/data/component-library/blog-sidebar-deals.liquid +189 -0
  15. package/assets/data/component-library/blog-sidebar-instagram.liquid +126 -0
  16. package/assets/data/component-library/blog-sidebar-tags.liquid +30 -0
  17. package/assets/data/component-library/blog.liquid +371 -0
  18. package/assets/data/component-library/brands-page.liquid +114 -0
  19. package/assets/data/component-library/cake-shop-shopify-theme-for-bakery-and-cafe-home-support-blo.liquid +780 -0
  20. package/assets/data/component-library/collection-template-promotion.liquid +1139 -0
  21. package/assets/data/component-library/collection-template.liquid +146 -0
  22. package/assets/data/component-library/contact-us.liquid +663 -0
  23. package/assets/data/component-library/contact.liquid +256 -0
  24. package/assets/data/component-library/copyright_payment.liquid +95 -0
  25. package/assets/data/component-library/custom-content.liquid +832 -0
  26. package/assets/data/component-library/faq-template-3.liquid +1014 -0
  27. package/assets/data/component-library/footer-model-1.liquid +503 -0
  28. package/assets/data/component-library/footer-model-10.liquid +210 -0
  29. package/assets/data/component-library/footer-model-2.liquid +460 -0
  30. package/assets/data/component-library/footer-model-3.liquid +548 -0
  31. package/assets/data/component-library/footer-model-4.liquid +455 -0
  32. package/assets/data/component-library/footer-model-5.liquid +407 -0
  33. package/assets/data/component-library/footer-model-6.liquid +543 -0
  34. package/assets/data/component-library/footer-model-7.liquid +345 -0
  35. package/assets/data/component-library/footer-model-8.liquid +279 -0
  36. package/assets/data/component-library/footer-model-9.liquid +376 -0
  37. package/assets/data/component-library/gallery.liquid +236 -0
  38. package/assets/data/component-library/gecko-shopify-v5-7-6-nulled-manual_blog.liquid +720 -0
  39. package/assets/data/component-library/gl_newsletter_pets.liquid +612 -0
  40. package/assets/data/component-library/gp-logo-list.liquid +362 -0
  41. package/assets/data/component-library/grid-banner-type-3-b.liquid +655 -0
  42. package/assets/data/component-library/header-model-1.liquid +427 -0
  43. package/assets/data/component-library/header-model-10.liquid +599 -0
  44. package/assets/data/component-library/header-model-2.liquid +633 -0
  45. package/assets/data/component-library/header-model-3.liquid +415 -0
  46. package/assets/data/component-library/header-model-4.liquid +754 -0
  47. package/assets/data/component-library/header-model-5.liquid +562 -0
  48. package/assets/data/component-library/header-model-6.liquid +713 -0
  49. package/assets/data/component-library/header-model-7.liquid +743 -0
  50. package/assets/data/component-library/header-model-8.liquid +500 -0
  51. package/assets/data/component-library/header-model-9.liquid +506 -0
  52. package/assets/data/component-library/home-blog-posts-1.liquid +399 -0
  53. package/assets/data/component-library/home-blog-posts-2.liquid +393 -0
  54. package/assets/data/component-library/home-blog-posts-3.liquid +545 -0
  55. package/assets/data/component-library/home-brand-slider.liquid +224 -0
  56. package/assets/data/component-library/home-circled-block.liquid +332 -0
  57. package/assets/data/component-library/home-contact-block-1.liquid +395 -0
  58. package/assets/data/component-library/home-contact-block-2.liquid +372 -0
  59. package/assets/data/component-library/home-content-block-1.liquid +320 -0
  60. package/assets/data/component-library/home-donut-chart.liquid +335 -0
  61. package/assets/data/component-library/home-fade-in-banner.liquid +277 -0
  62. package/assets/data/component-library/home-faq-model.liquid +323 -0
  63. package/assets/data/component-library/home-featured-blog.liquid +1462 -0
  64. package/assets/data/component-library/home-featured-collections.liquid +484 -0
  65. package/assets/data/component-library/home-gallery-block1.liquid +276 -0
  66. package/assets/data/component-library/home-gallery-block2.liquid +396 -0
  67. package/assets/data/component-library/home-grid-banner-type-1.liquid +371 -0
  68. package/assets/data/component-library/home-grid-banner-type-2.liquid +362 -0
  69. package/assets/data/component-library/home-grid-banner-type-3.liquid +374 -0
  70. package/assets/data/component-library/home-grid-banner-type-4.liquid +900 -0
  71. package/assets/data/component-library/home-grid-banner-type-5.liquid +368 -0
  72. package/assets/data/component-library/home-grid-banner-type-6.liquid +382 -0
  73. package/assets/data/component-library/home-grid-banner-type-7.liquid +371 -0
  74. package/assets/data/component-library/home-hotspot-with-product-carousel.liquid +1425 -0
  75. package/assets/data/component-library/home-image-gallery.liquid +1087 -0
  76. package/assets/data/component-library/home-instagram.liquid +356 -0
  77. package/assets/data/component-library/home-newsletter.liquid +246 -0
  78. package/assets/data/component-library/home-number-counter.liquid +790 -0
  79. package/assets/data/component-library/home-price-table.liquid +416 -0
  80. package/assets/data/component-library/home-pricing-table.liquid +1076 -0
  81. package/assets/data/component-library/home-product-grid.liquid +413 -0
  82. package/assets/data/component-library/home-product-tab-1.liquid +528 -0
  83. package/assets/data/component-library/home-product-tab-2.liquid +342 -0
  84. package/assets/data/component-library/home-product-tab-3.liquid +357 -0
  85. package/assets/data/component-library/home-product-vertical-carousel.liquid +477 -0
  86. package/assets/data/component-library/home-quotes-1.liquid +274 -0
  87. package/assets/data/component-library/home-quotes-2.liquid +239 -0
  88. package/assets/data/component-library/home-quotes-3.liquid +244 -0
  89. package/assets/data/component-library/home-quotes-4.liquid +258 -0
  90. package/assets/data/component-library/home-slider-width-promo-images.liquid +1377 -0
  91. package/assets/data/component-library/home-slideshow-type-1.liquid +656 -0
  92. package/assets/data/component-library/home-slideshow-type-2.liquid +570 -0
  93. package/assets/data/component-library/home-specification-block-1.liquid +468 -0
  94. package/assets/data/component-library/home-specification-block-2.liquid +291 -0
  95. package/assets/data/component-library/home-specification-block-3.liquid +429 -0
  96. package/assets/data/component-library/home-support-block.liquid +392 -0
  97. package/assets/data/component-library/home-testimonial.liquid +1348 -0
  98. package/assets/data/component-library/home-video-banner.liquid +317 -0
  99. package/assets/data/component-library/home-wide-banner.liquid +327 -0
  100. package/assets/data/component-library/icon-with-content.liquid +478 -0
  101. package/assets/data/component-library/instafeed.liquid +1 -0
  102. package/assets/data/component-library/kea-ecommerce-interior-furniture-shopify-theme-about.liquid +1300 -0
  103. package/assets/data/component-library/kidslife-responsive-shopify-theme-home-number-counter.liquid +729 -0
  104. package/assets/data/component-library/logo-bar.liquid +314 -0
  105. package/assets/data/component-library/lookbook.liquid +367 -0
  106. package/assets/data/component-library/manual_blog.liquid +724 -0
  107. package/assets/data/component-library/navigation-etc.liquid +642 -0
  108. package/assets/data/component-library/newsletter.liquid +246 -0
  109. package/assets/data/component-library/order-form.liquid +96 -0
  110. package/assets/data/component-library/page-catev1-template.liquid +344 -0
  111. package/assets/data/component-library/popup_video.liquid +396 -0
  112. package/assets/data/component-library/product-sidebar-bestsellers.liquid +99 -0
  113. package/assets/data/component-library/product-sidebar-deals.liquid +158 -0
  114. package/assets/data/component-library/product-template-2.liquid +629 -0
  115. package/assets/data/component-library/product-template-3.liquid +670 -0
  116. package/assets/data/component-library/product-template-4.liquid +627 -0
  117. package/assets/data/component-library/product-template-5.liquid +652 -0
  118. package/assets/data/component-library/product-template.liquid +698 -0
  119. package/assets/data/component-library/rich-text.liquid +541 -0
  120. package/assets/data/component-library/section-countdown-v2.liquid +215 -0
  121. package/assets/data/component-library/services.liquid +596 -0
  122. package/assets/data/component-library/shipping_info.liquid +327 -0
  123. package/assets/data/component-library/sidebar-bestsellers.liquid +109 -0
  124. package/assets/data/component-library/sidebar-category.liquid +105 -0
  125. package/assets/data/component-library/sidebar-colors.liquid +104 -0
  126. package/assets/data/component-library/single_product_feature.liquid +1892 -0
  127. package/assets/data/component-library/social-links-menu.liquid +244 -0
  128. package/assets/data/component-library/someone-purchased.liquid +190 -0
  129. package/assets/data/component-library/special-offer-area.liquid +530 -0
  130. package/assets/data/component-library/theno-minimal-clean-watch-store-shopify-theme-page-catev1-te.liquid +344 -0
  131. package/assets/data/component-library/top-bar-type-1.liquid +200 -0
  132. package/assets/data/component-library/top-bar-type-10.liquid +395 -0
  133. package/assets/data/component-library/top-bar-type-11.liquid +395 -0
  134. package/assets/data/component-library/top-bar-type-2.liquid +106 -0
  135. package/assets/data/component-library/top-bar-type-3.liquid +205 -0
  136. package/assets/data/component-library/top-countdown-bar.liquid +116 -0
  137. package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-image-gallery.liquid +783 -0
  138. package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-pricing-table.liquid +1043 -0
  139. package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-testimonial.liquid +1338 -0
  140. package/assets/data/component-library/video.liquid +511 -0
  141. package/assets/data/component-library/waffy-spices-dry-fruits-store-shopify-theme-v-1-1-contact-us.liquid +523 -0
  142. package/assets/data/design-tokens.csv +93 -57
  143. package/assets/data/schema-library.csv +48 -46
  144. package/assets/data/settings-profiles.csv +235 -0
  145. package/assets/data/shopify-best-practices.csv +58 -36
  146. package/assets/scripts/backfill-component-index.py +102 -0
  147. package/assets/scripts/core.py +30 -8
  148. package/assets/scripts/fix-schema-library.py +42 -0
  149. package/assets/scripts/kb-analyzer-helpers.py +136 -0
  150. package/assets/scripts/kb-analyzer.py +186 -0
  151. package/assets/scripts/kb-builder.py +32 -63
  152. package/assets/scripts/kb-constants.py +62 -0
  153. package/assets/scripts/kb-extractor-helpers.py +178 -0
  154. package/assets/scripts/kb-extractor.py +106 -170
  155. package/assets/scripts/kb-synthesizer.py +251 -0
  156. package/assets/scripts/quality-gate-checks.py +55 -0
  157. package/assets/scripts/quality-gate.py +56 -2
  158. package/assets/scripts/section-generator-helpers.py +74 -0
  159. package/assets/scripts/section-generator.py +59 -49
  160. package/assets/templates/generation-prompt.md +78 -14
  161. package/package.json +1 -1
@@ -0,0 +1,542 @@
1
+
2
+ <div class="wrapper-navigation" data-sticky-pc>
3
+
4
+
5
+ <div class="main-menu jas-mb-style">
6
+
7
+ <div class="row">
8
+ <div class="col-12">
9
+ <div class="mb-area">
10
+
11
+ {% if settings.display_fixtop_menu %}
12
+
13
+ {% include 'mobile-search' %}
14
+
15
+ {% endif %}
16
+
17
+
18
+ <nav class="nav-bar" role="navigation">
19
+ {% include 'adv-site-nav' %}
20
+ </nav>
21
+ </div>
22
+ </div>
23
+ </div>
24
+
25
+ </div>
26
+ </div>
27
+
28
+
29
+ {% if settings.header_style_1 == 'style_3' %}
30
+ <div class="right-header header-items" data-append-header-pc>
31
+
32
+
33
+ <div class="appentMb wide--hide" data-append-header-mb>
34
+ <ul class="menu_bar_right">
35
+
36
+
37
+ <li class="wishlist">
38
+ <a href="/pages/wishlist" title="{{ 'products.wishlist.wishlist_name' | t }}"><span class="wide--hide">{{ 'products.wishlist.wishlist_name' | t }}</span><i class="fas fa-heart post-large--hide large--hide medium-down--hide"></i></a>
39
+ </li>
40
+
41
+
42
+
43
+
44
+ {% if shop.customer_accounts_enabled %}
45
+ <li class="customer_account">
46
+ <div class="header-account_links">
47
+ <ul>
48
+ {% if customer %}
49
+ <li>
50
+ <a href="/account" title="{{ 'layout.customer.account' | t }}" data-value="value 1"><i class="fa fa-user post-large--hide large--hide medium-down--hide"></i><span class="wide--hide ">{{ 'layout.customer.account' | t }}</span></a>
51
+ </li>
52
+ <li class="logout-link">
53
+ <a href="/account/logout" title="{{ 'layout.customer.log_out' | t }}" data-value="value 1"><i class="fa fa-sign-out-alt post-large--hide large--hide medium-down--hide"></i><span class="wide--hide ">{{ 'layout.customer.log_out' | t }}</span></a>
54
+ </li>
55
+ {% else %}
56
+ <li>
57
+ <a href="/account/login" title="{{ 'layout.customer.log_in' | t }}" data-value="value 1"><i class="fa fa-user post-large--hide large--hide medium-down--hide"></i><span class="wide--hide">{{ 'layout.customer.log_in' | t }}</span></a>
58
+ </li>
59
+
60
+ {% endif %}
61
+
62
+ </ul>
63
+
64
+ </div>
65
+
66
+ </li>
67
+ {% endif %}
68
+
69
+ </ul>
70
+
71
+
72
+ {% if settings.enable_multiple_currencies or settings.enable_shopify_payments_currencies %}
73
+
74
+ <div class="header_currency">
75
+ <ul class="tbl-list">
76
+ <li class="currency dropdown-parent uppercase currency-block">
77
+ {% include 'currencies-switcher' %}
78
+ </li>
79
+ </ul>
80
+ </div>
81
+ {% endif %}
82
+
83
+
84
+
85
+ </div>
86
+
87
+
88
+ </div> {% endif %}
89
+ {% include 'style-navigation' %}
90
+
91
+ <style>
92
+ @media (min-width:1200px) {
93
+ {% unless section.settings.logo_fix != blank %}
94
+ .header-lang-style2 .is-sticky .main-menu,
95
+ .wrapper_header_default .is-sticky .main-menu {
96
+ width: -moz-calc(100% - 112px);
97
+ width: -webkit-calc(100% - 112px);
98
+ width: -ms-calc(100% - 112px);
99
+ width: calc(100% - 112px);
100
+ margin-left: 112px;
101
+ }
102
+ {% endunless %}
103
+ }
104
+ </style>
105
+
106
+ {% schema %}
107
+ {
108
+ "name": "Navigation",
109
+ "max_blocks": 15,
110
+ "settings": [
111
+ {
112
+ "type": "header",
113
+ "content": "Fixed Top Menu"
114
+ },
115
+ {
116
+ "type": "link_list",
117
+ "id": "pick_menu",
118
+ "label": "Pick Menu",
119
+ "default": "main-menu"
120
+ },
121
+
122
+ {
123
+ "type": "image_picker",
124
+ "id": "logo_fix",
125
+ "label": "Logo image when enable Fixed Top Menu",
126
+ "info": "95px x 44px recommended"
127
+ },
128
+ {
129
+ "type": "header",
130
+ "content": "Navigation Text alignment"
131
+ },
132
+
133
+ {
134
+ "type": "select",
135
+ "id": "alignment",
136
+ "label": "Text alignment",
137
+ "default": "left",
138
+ "options": [
139
+ {
140
+ "value": "left",
141
+ "label": "Left"
142
+ },
143
+ {
144
+ "value": "center",
145
+ "label": "Center"
146
+ },
147
+ {
148
+ "value": "right",
149
+ "label": "Right"
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "type" : "header",
155
+ "content" : "Settings"
156
+ },
157
+
158
+
159
+ {
160
+ "type" : "text",
161
+ "id" : "font_size_mnu_lv1",
162
+ "label" : "Font size Menu level 1",
163
+ "default" : "13px",
164
+ "info" : "======================="
165
+ },
166
+
167
+ {
168
+ "type" : "text",
169
+ "id" : "font_size_mnu_lv2",
170
+ "label" : "Font size Menu level 2",
171
+ "default" : "12px",
172
+ "info" : "======================="
173
+ },
174
+
175
+
176
+ {
177
+ "type" : "text",
178
+ "id" : "font_size_mnu_lv3",
179
+ "label" : "Font size Menu level 3",
180
+ "default" : "12px",
181
+ "info" : "======================="
182
+ },
183
+ {
184
+ "type" : "header",
185
+ "content" : "Label"
186
+ },
187
+ {
188
+ "type" : "checkbox",
189
+ "id" : "enable_sale",
190
+ "label" : "Display Label Sale",
191
+ "default" : true
192
+ },
193
+ {
194
+ "type" : "text",
195
+ "id" : "lb_sale",
196
+ "label" : "Label sale",
197
+ "default" : "Sale"
198
+ },
199
+ {
200
+ "type" : "textarea",
201
+ "id" : "sale_item",
202
+ "label" : "Label Sale Items"
203
+ },
204
+ {
205
+ "type" : "color",
206
+ "id" : "bg_lb_sale",
207
+ "label" : "Background color label sale",
208
+ "default" : "#ef6454"
209
+ },
210
+ {
211
+ "type" : "color",
212
+ "id" : "color_lb_sale",
213
+ "label" : "Text Color label sale",
214
+ "default" : "#fff"
215
+ },
216
+ {
217
+ "type" : "checkbox",
218
+ "id" : "enable_new",
219
+ "label" : "Display Label New",
220
+ "default" : true
221
+ },
222
+ {
223
+ "type" : "text",
224
+ "id" : "lb_new",
225
+ "label" : "Label New",
226
+ "default" : "New"
227
+ },
228
+ {
229
+ "type" : "textarea",
230
+ "id" : "new_item",
231
+ "label" : "Label New Items"
232
+ },
233
+ {
234
+ "type" : "color",
235
+ "id" : "bg_lb_new",
236
+ "label" : "Background color label New",
237
+ "default" : "#06bfe2"
238
+ },
239
+ {
240
+ "type" : "color",
241
+ "id" : "color_lb_new",
242
+ "label" : "Text Color label New",
243
+ "default" : "#fff"
244
+ },
245
+ {
246
+ "type" : "checkbox",
247
+ "id" : "enable_hot",
248
+ "label" : "Display Label Hot",
249
+ "default" : true
250
+ },
251
+ {
252
+ "type" : "text",
253
+ "id" : "lb_hot",
254
+ "label" : "Label Hot",
255
+ "default" : "Hot"
256
+ },
257
+ {
258
+ "type" : "textarea",
259
+ "id" : "hot_item",
260
+ "label" : "Label Hot Items"
261
+ },
262
+ {
263
+ "type" : "color",
264
+ "id" : "bg_lb_hot",
265
+ "label" : "Background color label Hot",
266
+ "default" : "#ffbb49"
267
+ },
268
+ {
269
+ "type" : "color",
270
+ "id" : "color_lb_hot",
271
+ "label" : "Text Color label Hot",
272
+ "default" : "#fff"
273
+ },
274
+ {
275
+ "type": "header",
276
+ "content": "Mega Menu"
277
+ },
278
+ {
279
+ "type": "checkbox",
280
+ "id": "display_megamenu",
281
+ "label": "Display Mega Menu?",
282
+ "default": true
283
+ }
284
+ ],
285
+ "blocks": [
286
+ {
287
+ "type": "style_1",
288
+ "name": "Style 1",
289
+ "settings": [
290
+ {
291
+ "type" : "header",
292
+ "content" : "Column Menu"
293
+ },
294
+ {
295
+ "type": "text",
296
+ "id": "megamenu_items_1",
297
+ "label": "Mega Menu Items for Style 1",
298
+ "default": "Catalog",
299
+ "info": "Use \"|\" when use language , For ex: Collections | Sammlungen "
300
+ },
301
+ {
302
+ "type" : "header",
303
+ "content" : "Product"
304
+ },
305
+ {
306
+ "type": "text",
307
+ "id": "title_featured_product",
308
+ "label": "Title Product",
309
+ "default" : "Featured Products"
310
+ },
311
+ {
312
+ "type": "product",
313
+ "id": "featured_product",
314
+ "label": "Product"
315
+ },
316
+ {
317
+ "type" : "header",
318
+ "content" : "Banner"
319
+ },
320
+ {
321
+ "type": "image_picker",
322
+ "id": "banner_first_style_1",
323
+ "label": "Upload a new image",
324
+ "info": "210px x 337px recommended"
325
+ },
326
+ {
327
+ "type": "url",
328
+ "id": "link_banner_first_style_1",
329
+ "label": "Link image "
330
+ }
331
+ ]
332
+ },
333
+ {
334
+ "type": "style_2",
335
+ "name": "Style 2",
336
+ "settings": [
337
+ {
338
+ "type" : "header",
339
+ "content" : "Column Menu"
340
+ },
341
+ {
342
+ "type": "text",
343
+ "id": "megamenu_items_2",
344
+ "label": "Mega Menu Items for Style 2",
345
+ "default": "Catalog",
346
+ "info": "Use \"|\" when use language , For ex: Collections | Sammlungen "
347
+ },
348
+ {
349
+ "type" : "header",
350
+ "content" : "Banner"
351
+ },
352
+ {
353
+ "type": "image_picker",
354
+ "id": "banner_first_style_2",
355
+ "label": "Upload a new image 1",
356
+ "info": "210px x 165px recommended"
357
+ },
358
+ {
359
+ "type": "url",
360
+ "id": "link_banner_first_style_2",
361
+ "label": "Link image 1 ",
362
+ "info": "=============="
363
+ },
364
+ {
365
+ "type": "image_picker",
366
+ "id": "banner_second_style_2",
367
+ "label": "Upload a new image 2",
368
+ "info": "210px x 165px recommended"
369
+ },
370
+ {
371
+ "type": "url",
372
+ "id": "link_banner_second_style_2",
373
+ "label": "Link image 2 ",
374
+ "info": "=============="
375
+ },
376
+ {
377
+ "type": "image_picker",
378
+ "id": "banner_third_style_2",
379
+ "label": "Upload a new image 3",
380
+ "info": "210px x 337px recommended"
381
+ },
382
+ {
383
+ "type": "url",
384
+ "id": "link_banner_third_style_2",
385
+ "label": "Link image 3"
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "type": "style_3",
391
+ "name": "Style 3",
392
+ "settings": [
393
+ {
394
+ "type": "text",
395
+ "id": "megamenu_items_3",
396
+ "label": "Mega Menu Items for Style 3",
397
+ "default": "Catalog",
398
+ "info": "Use \"|\" when use language , For ex: Collections | Sammlungen "
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "type": "style_4",
404
+ "name": "Style 4",
405
+ "settings": [
406
+ {
407
+ "type" : "header",
408
+ "content" : "Column Menu"
409
+ },
410
+ {
411
+ "type": "text",
412
+ "id": "megamenu_items_4",
413
+ "label": "Mega Menu Items for Style 4",
414
+ "default": "Catalog",
415
+ "info": "Use \"|\" when use language , For ex: Collections | Sammlungen "
416
+ },
417
+ {
418
+ "type" : "header",
419
+ "content" : "Banner"
420
+ },
421
+ {
422
+ "type": "image_picker",
423
+ "id": "banner_first_style_4",
424
+ "label": "Upload a new image",
425
+ "info": "210px x 320px recommended"
426
+ },
427
+ {
428
+ "type": "url",
429
+ "id": "link_banner_first_style_4",
430
+ "label": "Link image"
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "type": "style_5",
436
+ "name": "Style 5",
437
+ "settings": [
438
+ {
439
+ "type": "text",
440
+ "id": "title",
441
+ "label": "Style 5",
442
+ "default": "Style 5"
443
+ },
444
+ {
445
+ "type": "text",
446
+ "id": "megamenu_items_5",
447
+ "label": "Mega Menu Items for Style 5",
448
+ "default": "Catalog"
449
+ },
450
+
451
+ {
452
+ "type": "image_picker",
453
+ "id": "banner_first_style_5",
454
+ "label": "Upload a new image",
455
+ "info": "610px x 338px recommended"
456
+ },
457
+ {
458
+ "type": "url",
459
+ "id": "link_banner_first_style_5",
460
+ "label": "Link image 1"
461
+ },
462
+ {
463
+ "type": "image_picker",
464
+ "id": "banner_second_style_5",
465
+ "label": "Upload a new image",
466
+ "info": "610px x 338px recommended"
467
+ },
468
+ {
469
+ "type": "url",
470
+ "id": "link_banner_second_style_5",
471
+ "label": "Link image 2"
472
+ }
473
+ ]
474
+ },
475
+ {
476
+ "type": "style_6",
477
+ "name": "Style 6",
478
+ "settings": [
479
+ {
480
+ "type": "text",
481
+ "id": "title",
482
+ "label": "Style 6",
483
+ "default": "Style 6"
484
+ },
485
+ {
486
+ "type": "text",
487
+ "id": "megamenu_items_6",
488
+ "label": "Mega Menu Items for Style 6",
489
+ "default": "Catalog"
490
+ },
491
+
492
+ {
493
+ "type": "image_picker",
494
+ "id": "banner_first_style_6",
495
+ "label": "Upload a new image",
496
+ "info": "400px x 600px recommended"
497
+ },
498
+ {
499
+ "type": "url",
500
+ "id": "link_banner_first_style_7",
501
+ "label": "Link image 1"
502
+ },
503
+
504
+ {
505
+ "type": "image_picker",
506
+ "id": "banner_second_style_6",
507
+ "label": "Upload a new image",
508
+ "info": "400px x 600px recommended"
509
+ },
510
+ {
511
+ "type": "url",
512
+ "id": "link_banner_second_style_6",
513
+ "label": "Link image 2"
514
+ }
515
+
516
+
517
+ ]
518
+ },
519
+ {
520
+ "type": "style_7",
521
+ "name": "Style 7",
522
+ "settings": [
523
+ {
524
+ "type": "text",
525
+ "id": "title",
526
+ "label": "Style 7",
527
+ "default": "Style 7"
528
+ },
529
+ {
530
+ "type": "text",
531
+ "id": "megamenu_items_7",
532
+ "label": "Mega Menu Items for Style 7",
533
+ "default": "Vendor"
534
+ }
535
+
536
+
537
+
538
+ ]
539
+ }
540
+ ]
541
+ }
542
+ {% endschema %}
@@ -1,69 +1,51 @@
1
- {%- comment -%} rebly-sections: Announcement Bar | Category: utility | OS2.0 {%- endcomment -%}
1
+ {%- if section.settings.show_announcement -%}
2
+ {%- if section.settings.home_page_only == false or template.name == 'index' -%}
2
3
 
3
- <section id="section-{{ section.id }}" class="announcement-bar" style="--bg: {{ section.settings.background_color }}; --color: {{ section.settings.text_color }};" data-dismissible="{{ section.settings.dismissible }}">
4
- <div class="announcement-bar__track">
5
- {%- for block in section.blocks -%}
6
- {%- if block.type == 'announcement' -%}
7
- <div class="announcement-bar__item" {{ block.shopify_attributes }}>
8
- {%- if block.settings.link != blank and block.settings.link_text != blank -%}
9
- {{ block.settings.text | escape }}
10
- <a href="{{ block.settings.link }}" class="announcement-bar__link">{{ block.settings.link_text | escape }}</a>
11
- {%- else -%}
12
- {{ block.settings.text | escape }}
13
- {%- endif -%}
14
- </div>
15
- {%- endif -%}
16
- {%- endfor -%}
17
- </div>
18
- {%- if section.settings.dismissible -%}
19
- <button class="announcement-bar__close" aria-label="Dismiss announcement" onclick="this.closest('.announcement-bar').style.display='none'">&#x2715;</button>
20
- {%- endif -%}
21
- </section>
4
+ {%- if section.settings.link == blank -%}
5
+ <div>
6
+ {%- else -%}
7
+ <a href="{{ section.settings.link }}" >
8
+ {%- endif -%}
9
+
10
+ <p class="text-center btn">{{ section.settings.text | escape }}</p>
22
11
 
23
- <style>
24
- #section-{{ section.id }} {
25
- background: var(--bg, #000);
26
- color: var(--color, #fff);
27
- position: relative;
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
- min-height: 44px;
32
- padding: 0.5rem 3rem;
33
- }
34
- #section-{{ section.id }} .announcement-bar__track { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; font-size: 0.9rem; }
35
- #section-{{ section.id }} .announcement-bar__item { white-space: nowrap; }
36
- #section-{{ section.id }} .announcement-bar__link { color: inherit; font-weight: 600; margin-left: 0.35rem; }
37
- #section-{{ section.id }} .announcement-bar__close { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; padding: 0.25rem; opacity: 0.75; }
38
- #section-{{ section.id }} .announcement-bar__close:hover { opacity: 1; }
39
- @media (max-width: 749px) { #section-{{ section.id }} { padding: 0.5rem 2.5rem; } #section-{{ section.id }} .announcement-bar__track { gap: 1rem; } }
40
- </style>
12
+ {%- if section.settings.link == blank -%}
13
+ </div>
14
+ {%- else -%}
15
+ </a>
16
+ {%- endif -%}
17
+
18
+ {%- endif -%}
19
+ {%- endif -%}
41
20
 
42
21
  {% schema %}
43
22
  {
44
- "name": "Announcement Bar",
45
- "tag": "section",
46
- "class": "section-announcement-bar",
23
+ "name": "Announcement bar",
24
+ "class":"announcement-bar",
47
25
  "settings": [
48
- { "type": "color_background", "id": "background_color", "label": "Background Color", "default": "#000000" },
49
- { "type": "color", "id": "text_color", "label": "Text Color", "default": "#ffffff" },
50
- { "type": "checkbox", "id": "dismissible", "label": "Allow Dismiss", "default": true }
51
- ],
52
- "blocks": [
53
26
  {
54
- "type": "announcement",
55
- "name": "Announcement",
56
- "settings": [
57
- { "type": "text", "id": "text", "label": "Text", "default": "Free shipping on orders over $50" },
58
- { "type": "url", "id": "link", "label": "Link" },
59
- { "type": "text", "id": "link_text", "label": "Link Text", "default": "Shop now" }
60
- ]
27
+ "type": "checkbox",
28
+ "id": "show_announcement",
29
+ "label": "Show announcement",
30
+ "default": false
61
31
  },
62
- { "type": "@app" }
63
- ],
64
- "presets": [{
65
- "name": "Announcement Bar",
66
- "blocks": [{ "type": "announcement" }]
67
- }]
32
+ {
33
+ "type": "checkbox",
34
+ "id": "home_page_only",
35
+ "label": "Home page only",
36
+ "default": true
37
+ },
38
+ {
39
+ "type": "text",
40
+ "id": "text",
41
+ "label": "Announcement text",
42
+ "default": "Announce something here"
43
+ },
44
+ {
45
+ "type": "url",
46
+ "id": "link",
47
+ "label": "Announcement link"
48
+ }
49
+ ]
68
50
  }
69
- {% endschema %}
51
+ {% endschema %}