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,356 @@
1
+ {% assign full = section.settings.full %}
2
+ <div class="instagram">
3
+ <div class="{% if section.settings.full %} container-fluid {% else %}container{% endif %}">
4
+ {% if section.settings.title != blank or section.settings.text_1 %}
5
+ <div class="grid__item ">
6
+ <div class="border-title text-center">
7
+ {% if section.settings.text_1 != blank %}
8
+ <div class="short-desc"> <p style="color:{{ section.settings.text_1_clr }};">{{ section.settings.text_1}}</p></div>
9
+ {% endif %}
10
+ <h2><span style="color:{{ section.settings.title_1_clr }};">{{ section.settings.title | escape }}</span></h2>
11
+ {% if section.settings.link != blank %}
12
+ <a class="instagram-link" href="{{section.settings.link}}">
13
+ {{section.settings.link_text}}
14
+ </a>
15
+ {% endif %}
16
+ </div>
17
+ </div>
18
+ {% endif %}
19
+
20
+ <div class="grid__item">
21
+ {% case section.blocks.size %}
22
+ {% when 0 %}
23
+ {% when 1 %}
24
+ {% assign column_width = 'text-center' %}
25
+ {% when 2 %}
26
+ {%- assign column_width = 'wide--one-half post-large--one-quarter large--one-quarter medium--one-half small--one-half' -%}
27
+ {% when 3 %}
28
+ {%- assign column_width = 'wide--one-third post-large--one-third large--one-third medium--one-half small--one-half' -%}
29
+ {% when 4 %}
30
+ {%- assign column_width = 'wide--one-quarter post-large--one-quarter large--one-quarter medium--one-half small--one-half' -%}
31
+ {% when 5 %}
32
+ {%- assign column_width = 'wide--one-fifth post-large--one-fifth large--one-fifth medium--one-half small--one-half' -%}
33
+ {% when 6 %}
34
+ {%- assign column_width = 'wide--one-sixth post-large--one-sixth large--one-third medium--one-half small--one-half' -%}
35
+
36
+ {% else %}
37
+ {%- assign column_width = 'wide--one-fifth post-large--one-fifth large--one-fifth medium--one-half small--one-half' -%}
38
+ {% endcase %}
39
+ <div class="grid-uniform">
40
+ {% if section.blocks.size > 0 %}
41
+ {% if section.settings.style == 'slider' %} <div class="customInstaSlider">{% endif %}
42
+ {% for block in section.blocks %}
43
+ <div class="item grid__item {% unless section.settings.style == 'slider' %} {{column_width}} {% endunless %}">
44
+ <div class="instagram-col">
45
+ {% if block.settings.image != blank %}
46
+ {% assign img_url = block.settings.image | img_url: 'master' %}
47
+ {% else %}
48
+ {% assign img_url = '//via.placeholder.com/500x500' %}
49
+ {% endif %}
50
+ <a href="{{ block.settings.gallery_link }}">
51
+ <img src="{{ img_url }}" />
52
+ </a>
53
+
54
+ <div class="info text-center">
55
+ {% if block.settings.title != blank %}
56
+ <p><a style="color:{{ block.settings.title_clr }}" href="{{ block.settings.gallery_link }}">{{ block.settings.title }}</a></p>
57
+ {% else %}
58
+ <i style="color:{{ block.settings.title_clr }}" class="fab fa-instagram"></i>
59
+ {% endif %}
60
+ </div>
61
+ </div>
62
+ </div>
63
+ {% endfor %}
64
+ {% if section.settings.style == 'slider' %} </div>{% endif %}
65
+ {% endif %}
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </div>
70
+
71
+ <style>
72
+
73
+ {% if section.settings.use_overlay %} .lush-instagram .info, .instagram-col .info { background: {{ section.settings.overlay | color_modify: 'alpha', 0.7 }}; } {% endif %}
74
+ .lush-instagram .info span { background:{{ section.settings.Button_bg }};color:{{ section.settings.Button_text }}; }
75
+
76
+ .instagram .instagram-link { color:{{ section.settings.btn_text_clr }};border-bottom:1px solid {{ section.settings.btn_text_clr }}; }
77
+ .instagram .instagram-link:hover { color:{{ section.settings.btn_hover_clr }};border-bottom:1px solid {{ section.settings.btn_hover_clr }}; }
78
+
79
+ </style>
80
+
81
+ {%- if section.settings.padding != blank or section.settings.margin != blank -%}
82
+ {% assign margin = section.settings.margin | remove: ' ' | split: '-' | join: ' ' %}
83
+ {% assign padding = section.settings.padding | remove: ' ' | split: '-' | join: ' ' %}
84
+
85
+ <style>
86
+
87
+ #shopify-section-{{ section.id }} .item {
88
+ {%- if section.settings.margin != blank -%} margin: {{margin}};{%- endif -%}
89
+ {%- if section.settings.padding != blank -%}padding: {{padding}};{%- endif -%}
90
+ }
91
+
92
+ </style>
93
+
94
+ {%- endif -%}
95
+
96
+ {% if section.settings.style == 'slider' %}
97
+ <script type="text/javascript">
98
+ $(document).ready(function(){
99
+ $('.customInstaSlider').not('.slick-initialized').slick({
100
+ infinite: true,
101
+ speed: 1000,
102
+ {% if section.settings.display_arrow %}
103
+ nextArrow: '<button type="button" class="slick-next"><i class="fa fa-angle-right"></i></button>',
104
+ prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-angle-left"></i></button>',
105
+ {% else %}
106
+ arrows: false,
107
+ autoplay: false,
108
+ {% endif %}
109
+ slidesToShow: 5,
110
+ slidesToScroll: 5,
111
+ responsive: [
112
+ {
113
+ breakpoint: 1200,
114
+ settings: {
115
+ {% if section.settings.slide_rows == '2' %}
116
+ slidesPerRow: 1,
117
+ slidesToShow: 4,
118
+ rows: 2,
119
+ {% else %}
120
+ slidesToShow: 4,
121
+ slidesToScroll: 4,
122
+ {% endif %}
123
+ }
124
+ },
125
+ {
126
+ breakpoint: 992,
127
+ settings: {
128
+ {% if section.settings.slide_rows == '2' %}
129
+ slidesPerRow: 1,
130
+ slidesToShow: 3,
131
+ rows: 2,
132
+ {% else %}
133
+ slidesToShow: 3,
134
+ slidesToScroll: 3,
135
+ {% endif %}
136
+ }
137
+ },
138
+ {
139
+ breakpoint: 768,
140
+ settings: {
141
+ {% if section.settings.slide_rows == '2' %}
142
+ slidesPerRow: 1,
143
+ slidesToShow: 2,
144
+ rows: 2,
145
+ {% else %}
146
+ slidesToShow: 2,
147
+ slidesToScroll: 2,
148
+ {% endif %}
149
+ }
150
+ }
151
+ ]
152
+ });
153
+ });
154
+ </script>
155
+ {% endif %}
156
+
157
+
158
+ {% schema %}
159
+ {
160
+ "name": "Instagram Feed",
161
+ "class": "index-section instagram-block",
162
+ "settings": [
163
+ {
164
+ "type": "checkbox",
165
+ "id": "full",
166
+ "label": "Show Full width"
167
+ },
168
+ {
169
+ "type": "select",
170
+ "id": "style",
171
+ "label": "Instagram Style",
172
+ "default": "slider",
173
+ "options": [
174
+ {
175
+ "value": "slider",
176
+ "label": "Slider"
177
+ },
178
+ {
179
+ "value": "grid",
180
+ "label": "Grid"
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "type": "text",
186
+ "id": "title",
187
+ "label": "Title",
188
+ "default": "Instagram Feed"
189
+ },
190
+ {
191
+ "type": "color",
192
+ "id": "title_1_clr",
193
+ "label": "Heading Color",
194
+ "default": "#000"
195
+ },
196
+ {
197
+ "type": "textarea",
198
+ "id": "text_1",
199
+ "label": "Description"
200
+ },
201
+ {
202
+ "type": "color",
203
+ "id": "text_1_clr",
204
+ "label": "Description",
205
+ "default": "#000"
206
+ },
207
+ {
208
+ "type": "text",
209
+ "id": "link_text",
210
+ "label": "Link Text",
211
+ "default": "Follow us on Instagram "
212
+ },
213
+ {
214
+ "type": "color",
215
+ "id": "btn_text_clr",
216
+ "label": "Link Color",
217
+ "default": "#777777"
218
+ },
219
+ {
220
+ "type": "color",
221
+ "id": "btn_hover_clr",
222
+ "label": "Link Hover Color",
223
+ "default": "#231f1e"
224
+ },
225
+ {
226
+ "type": "url",
227
+ "id": "link",
228
+ "label": "Link"
229
+ },
230
+
231
+ {
232
+ "type": "checkbox",
233
+ "id": "display_arrow",
234
+ "label": "Display Arrow?",
235
+ "default": true,
236
+ "info": "================="
237
+ },
238
+ {
239
+ "type": "header",
240
+ "content": "=== settings Color"
241
+ },
242
+ {
243
+ "type": "checkbox",
244
+ "id": "use_overlay",
245
+ "label": "Image Overlay ?",
246
+ "default": true
247
+ },
248
+ {
249
+ "type": "color",
250
+ "id": "overlay",
251
+ "label": "Image Overlay",
252
+ "default": "#000"
253
+ },
254
+ {
255
+ "type": "color",
256
+ "id": "Button_bg",
257
+ "label": "Button Bg",
258
+ "default": "#fff"
259
+ },
260
+ {
261
+ "type": "color",
262
+ "id": "Button_text",
263
+ "label": "Button Text",
264
+ "default": "#000"
265
+ },
266
+ {
267
+ "type": "header",
268
+ "content": "== Design settings"
269
+ },
270
+ {
271
+ "type": "paragraph",
272
+ "content": "To horizontally center a block element (like <div>), use margin: auto;"
273
+ },
274
+ {
275
+ "type": "text",
276
+ "id": "margin",
277
+ "label": "Margins ( top-right-bottom-left )",
278
+ "info": "60px-auto-60px-auto"
279
+ },
280
+ {
281
+ "type": "text",
282
+ "id": "padding",
283
+ "label": "Paddings Integer px ( top-right-bottom-left )",
284
+ "info": "60px-60px-0-60px"
285
+ },
286
+ {
287
+ "type": "select",
288
+ "id": "grid",
289
+ "label": "Products per row (Custom Choice only)",
290
+ "default": "4",
291
+ "options": [
292
+ {
293
+ "value": "2",
294
+ "label": "2"
295
+ },
296
+ {
297
+ "value": "3",
298
+ "label": "3"
299
+ },
300
+ {
301
+ "value": "4",
302
+ "label": "4"
303
+ },
304
+ {
305
+ "value": "5",
306
+ "label": "5"
307
+ },
308
+ {
309
+ "value": "6",
310
+ "label": "6"
311
+ }
312
+ ]
313
+ }
314
+ ],
315
+ "blocks": [
316
+ {
317
+ "type": "Image",
318
+ "name": "Custom Images",
319
+ "settings": [
320
+ {
321
+ "type": "image_picker",
322
+ "id": "image",
323
+ "label": "Image",
324
+ "info": "Size: 480x572"
325
+ },
326
+ {
327
+ "type": "text",
328
+ "id": "title",
329
+ "label": "Title",
330
+ "default": "Title"
331
+ },
332
+ {
333
+ "type": "color",
334
+ "id": "title_clr",
335
+ "label": "Color",
336
+ "default": "#fff"
337
+ },
338
+
339
+ {
340
+ "type": "url",
341
+ "id": "gallery_link",
342
+ "label": "Insta Image Link",
343
+ "info": "input the photo url such as https:\/\/www.instagram.com\/p\/Bn0j_G0D4AF"
344
+ }
345
+
346
+ ]
347
+ }
348
+ ],
349
+ "presets": [
350
+ {
351
+ "name": "Instagram Feed",
352
+ "category": "Image"
353
+ }
354
+ ]
355
+ }
356
+ {% endschema %}
@@ -0,0 +1,246 @@
1
+ <div data-section-id="{{ section.id }}" data-section-type="home-newsletter-block" class="home-newsletter-block" style="{% if section.settings.image_1 != blank %}background-image:url('{{ section.settings.image_1 | img_url: '1920X' }}');background-repeat:no-repeat;{% else %}background-color:{{section.settings.news_bg_clr}}{% endif%};">
2
+ <div class="newsletter-block {{ section.settings.newsletter_style }}">
3
+ <div class="overlay"></div>
4
+ <div class="dt-sc-hr-invisible-large"></div>
5
+ <div class="container">
6
+
7
+ <div class="news-inner-block">
8
+ {% if section.settings.title != blank %}
9
+ <div class="section-header section-header--small full-position-{{section.settings.heading_position}}">
10
+ <div class="border-title wow bounce">
11
+ <h2 class="newslet_title " style="color:{{ section.settings.title_color }};">
12
+ {{ section.settings.title }}
13
+ </h2>
14
+
15
+ {% if section.settings.news_desc != blank %}
16
+ <p style="color:{{section.settings.text_color}}"> {{ section.settings.news_desc }}</p>
17
+ {% endif %}
18
+ </div>
19
+ </div>
20
+ {% endif %}
21
+
22
+ <div class="mc-embedded-subscribe-form wow fadeInUp animated">
23
+ {% form 'customer' %}
24
+ {{ form.errors | default_errors }}
25
+ {% if form.posted_successfully? %}
26
+ <p class="note form-success">{{ 'general.newsletter_form.mailing_list_success_message' | t }}</p>
27
+ {% else %}
28
+
29
+ <input type="email" value="{% if customer %}{{ customer.email }}{% endif %}" placeholder="{{ 'general.newsletter_form.newsletter_email' | t }}" name="contact[email]" class="mail" aria-label="{{ 'general.newsletter_form.newsletter_email' | t }}" >
30
+ <input type="hidden" name="contact[tags]" value="newsletter">
31
+ <button type="submit" class="btn subscribe" name="subscribe" value="" >{{ section.settings.button }}</button>
32
+
33
+ {% endif %}
34
+
35
+ {% endform %}
36
+
37
+ </div>
38
+ {% if section.settings.footer_social_enable %}
39
+ <div class="footer_social_links wow fadeInUp animated">
40
+ {% include 'social-links-type-6' %}
41
+ </div>
42
+ {% endif %}
43
+ </div>
44
+ </div>
45
+ <div class="dt-sc-hr-invisible-large"></div>
46
+ </div>
47
+ </div>
48
+
49
+ <style>
50
+
51
+ .newsletter-block form input[type="email"]{color:{{section.settings.input_txt_color}};border:1px solid {{section.settings.news_border_clr}};}
52
+ .newsletter-block form input[type="email"]:focus{background-color:{{ section.settings.input_bg_color | color_modify: 'alpha', 0.5 }}; border:1px solid {{section.settings.news_border_clr | color_modify: 'alpha', 0.5 }}; }
53
+ .newsletter-block form input[type="email"]::-webkit-input-placeholder {color:{{section.settings.input_txt_color}};}
54
+ .newsletter-block form input[type="email"]::-moz-placeholder { color:{{section.settings.input_txt_color}};}
55
+ .newsletter-block form input[type="email"]:-ms-input-placeholder {color:{{section.settings.input_txt_color}};}
56
+ .newsletter-block form input[type="email"]:-moz-placeholder { color:{{section.settings.input_txt_color}};}
57
+
58
+ /* {% if section.settings.show_overlay_bg != blank %}
59
+ .home-newsletter-block::before{background:{{section.settings.news_bg_clr}};}
60
+ {% endif %} */
61
+ .newsletter-block form .btn{color:{{section.settings.btn_txt_color}}; background:{{section.settings.btn_bg_color}};}
62
+ .newsletter-block form .btn:hover {color:{{section.settings.btn_hover_color}}; background:{{section.settings.btn_hover_bg_color}};}
63
+
64
+ .newsletter-block .inline-list li a {border:1px solid {{section.settings.social_icon_borderclr}};}
65
+ .newsletter-block .inline-list li a:hover{border:1px solid {{section.settings.social_icon_hoverbg_clr}};background:{{section.settings.social_icon_hoverbg_clr}};color:{{section.settings.social_icon_hover_clr}};}
66
+
67
+ </style>
68
+
69
+ {% schema %}
70
+ {
71
+ "name": "Newsletter",
72
+ "class": "index-section",
73
+ "settings": [
74
+ {
75
+ "type": "image_picker",
76
+ "id": "image_1",
77
+ "label": "Image",
78
+ "info": "Size: 409x496"
79
+ },
80
+ {
81
+ "type": "checkbox",
82
+ "id": "show_overlay_bg",
83
+ "label":"Show Overlay bg Color"
84
+
85
+ },
86
+ {
87
+ "type": "color",
88
+ "id": "news_bg_clr",
89
+ "label": "Bg Color",
90
+ "default": "#fff"
91
+ },
92
+ {
93
+ "type": "text",
94
+ "id": "title",
95
+ "label": "Heading",
96
+ "default": "Newsletter"
97
+ },
98
+ {
99
+ "type": "text",
100
+ "id": "news_desc",
101
+ "label": "Desc",
102
+ "default": "Description"
103
+ },
104
+ {
105
+ "type": "select",
106
+ "id": "heading_position",
107
+ "label": "Heading Position",
108
+ "options": [
109
+ {
110
+ "value": "default",
111
+ "label": "Full center"
112
+ },
113
+ {
114
+ "value": "full-left",
115
+ "label": "Full left"
116
+ },
117
+ {
118
+ "value": "full-right",
119
+ "label": "Full right"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "type": "select",
125
+ "id": "newsletter_style",
126
+ "label": "Style",
127
+ "options": [
128
+ {
129
+ "value": "style1",
130
+ "label": "Style 1"
131
+ },
132
+ {
133
+ "value": "style2",
134
+ "label": "Style 2"
135
+ },
136
+ {
137
+ "value": "style3",
138
+ "label": "Style 3"
139
+ }
140
+ ],
141
+ "default": "style1"
142
+ },
143
+
144
+ {
145
+ "type": "color",
146
+ "id": "title_color",
147
+ "label": "Heading",
148
+ "default": "#000"
149
+ },
150
+ {
151
+ "type": "color",
152
+ "id": "news_border_clr",
153
+ "label": "Border Color",
154
+ "default": "#000"
155
+ },
156
+
157
+ {
158
+ "type": "color",
159
+ "id": "input_bg_color",
160
+ "label": "Input Bg color",
161
+ "default": "#fff"
162
+ },
163
+ {
164
+ "type": "color",
165
+ "id": "input_txt_color",
166
+ "label": "Input Text color",
167
+ "default": "#000"
168
+ },
169
+ {
170
+ "type": "color",
171
+ "id": "text_color",
172
+ "label": "Description",
173
+ "default": "#000"
174
+ },
175
+ {
176
+ "type": "text",
177
+ "id": "button",
178
+ "label": "Button",
179
+ "default": "Subscribe"
180
+ },
181
+ {
182
+ "type": "color",
183
+ "id": "btn_txt_color",
184
+ "label": "Button Text color",
185
+ "default": "#fff"
186
+ },
187
+ {
188
+ "type": "color",
189
+ "id": "btn_bg_color",
190
+ "label": "Button Bg color",
191
+ "default": "#000"
192
+ },
193
+ {
194
+ "type": "color",
195
+ "id": "btn_hover_bg_color",
196
+ "label": "Button Hover Bg color",
197
+ "default": "#000"
198
+ },
199
+ {
200
+ "type": "color",
201
+ "id": "btn_hover_color",
202
+ "label": "Button Hover Text color",
203
+ "default": "#fff"
204
+ },
205
+
206
+ {
207
+ "type": "checkbox",
208
+ "id": "footer_social_enable",
209
+ "label": "Show social media icons"
210
+ },
211
+ {
212
+ "type": "color",
213
+ "id": "social_icon_clr",
214
+ "label": "Social Icon Color",
215
+ "default":"#000"
216
+ },
217
+ {
218
+ "type": "color",
219
+ "id": "social_icon_borderclr",
220
+ "label": "Social Icon Border Color",
221
+ "default":"#000"
222
+ },
223
+ {
224
+ "type": "color",
225
+ "id": "social_icon_hover_clr",
226
+ "label": "Social Icon Hover Color",
227
+ "default":"#000"
228
+ },
229
+ {
230
+ "type": "color",
231
+ "id": "social_icon_hoverbg_clr",
232
+ "label": "Social Icon Hover Bg Color",
233
+ "default":"#000"
234
+ }
235
+
236
+
237
+ ],
238
+ "presets": [
239
+ {
240
+ "name": "Newsletter",
241
+ "category": "Form",
242
+ "blocks": [ ]
243
+ }
244
+ ]
245
+ }
246
+ {% endschema %}