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,396 @@
1
+ {%- liquid
2
+ assign sid = section.id
3
+ assign se_stts = section.settings
4
+ assign se_height = se_stts.se_height
5
+ assign url = se_stts.url
6
+ assign image = se_stts.image
7
+ assign txt_size = se_stts.text_size | split:","
8
+ assign design = se_stts.design
9
+ assign cl_btn = se_stts.cl_btn -%}
10
+
11
+ <div class="nt_se_{{sid}} {{se_stts.layout}} txt_shadow_{{se_stts.use_shadow}} se_height_{{se_height}} nt_first">
12
+ <div class="row equal_nt">
13
+ <div class="col-12">
14
+ <div class="nt_img_txt oh pr middle center">
15
+ <a href="/" class="db">
16
+ {%- if image != blank -%}{%- assign ratio = image.aspect_ratio -%}
17
+ {%- if se_stts.use_pr -%}
18
+ <div class="parallax-inner nt_parallax_{{se_stts.use_pr}} pa t__0 l__0 r__0 b__0 lazyloadt4s" data-bgset="{{ image | img_url: '1x1' }}" data-ratio="{{ratio}}" data-sizes="auto" data-parent-fit="cover"></div><div class="nt_bg_lz lazyloadt4s item__position"></div>
19
+ {%- else -%}
20
+ <div class="nt_bg_lz lazyloadt4s item__position {{se_stts.img_align}}" data-bgset="{{ image | img_url: '1x1' }}" data-ratio="{{ratio}}" data-sizes="auto" data-parent-fit="cover"></div>
21
+ {%- endif -%}
22
+ {%- else -%}
23
+ <div class="nt_bg_lz lazyloadt4s item__position {{se_stts.img_align}}" data-bg="https://placehold.jp/1/b59677/b59677/1170x400.png?text=1" style="padding-top:51.282051282051285%;"></div>
24
+ {%- endif -%}
25
+ </a>
26
+ <div class="txt_content pa t__0 l__0 b__0 r__0 caption-w-{{se_stts.caption_w}} flex column shadow_wrap {{se_stts.txt_align}}{% if url != blank %} pe_none{% endif %}">
27
+ <div class="pa pa_txts mb_h_pos{{se_stts.cap_h_pos}} mb_v_pos{{se_stts.cap_v_pos}} h_pos{{se_stts.cap_h_pos}} v_pos{{se_stts.cap_v_pos}}">
28
+ {%- if design == '1' -%}
29
+ <h4 class="fs__30 mt__0 tu fs_md_{{txt_size[0]}} mb__20 fwb lh__1 cw">{{se_stts.title}}</h4>
30
+ <h3 class="fs__15 mt__0 fs_md_{{txt_size[1]}} mb__30 lh__1 cw f__libre">{{se_stts.text}}</h3>
31
+ {%- else -%}
32
+ <h3 class="fs__15 mt__0 fs_md_{{txt_size[1]}} tc cw mb__20 lh__1 f__libre">{{se_stts.text}}</h3>
33
+ <h4 class="fs__30 tu fs_md_{{txt_size[0]}} fwb cw tc mb__20 mt__0 lh__1">{{se_stts.title}}</h4>
34
+ {%- endif -%}
35
+ {%- if url != blank and se_stts.button_label -%}<p class="mg__0"><a class="button button-o-w cw pe_auto btn_style_{{se_stts.btn_style}} nt_mfp_video" href="{{url}}" target="_blank">{{se_stts.button_label}}</a></p>{%- endif -%}
36
+ </div>
37
+ </div>
38
+ {%- if source == '1' %}
39
+ <div class="pa t__0 l__0 b__0 r__0 flex column tc fl_center pe_none">
40
+ <button type="button" class="flex fl_center al_center video-control__play"><svg aria-hidden="true" focusable="false" role="presentation" class="icon icon-play" viewBox="0 0 20 40"><path fill-rule="evenodd" clip-rule="evenodd" d="M23.6 16.8L7 1.5C5.6.3 4 .2 2.9.7 1.6 1.4.8 2.7.7 3.8v31.7c0 1.8 1.1 3.3 3.1 3.3 1.5 0 2.5-.5 3.4-1.4l16.4-15.7c1.5-1.4 1.5-3.6 0-4.9z"></path></svg></button>
41
+ </div>
42
+ {%- endif -%}
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ {%- render 'section_css' -%}
48
+ {%- style -%}
49
+ .nt_se_{{sid}} .nt_img_txt h3{ color: {{se_stts.cl_sub}} } .nt_se_{{sid}} .nt_img_txt h4{ color: {{se_stts.cl_h}} }
50
+ .nt_se_{{sid}} .nt_img_txt a.btn_style_1:not(:hover){ color: {{cl_btn}};border-color: {{cl_btn}} }
51
+ .nt_se_{{sid}} .nt_img_txt a.btn_style_2{color:{% if cl_btn == '#fff' %}#222{% else %}#fff{% endif %};background-color: {{cl_btn}};border-color: {{cl_btn}} }
52
+ .nt_se_{{sid}} .nt_img_txt>a:after{ background-color: {{se_stts.cl_overlay}};opacity: {{se_stts.cl_opacity | divided_by: 100.00}} }
53
+ {%- if se_height == 'adapt' and image != blank -%}
54
+ .nt_se_{{sid}}.se_height_adapt .nt_bg_lz{padding-top:{{ 1 | divided_by: ratio | times: 100}}%}
55
+ {%- elsif se_height == 'cus_h' -%}
56
+ .nt_se_{{sid}}.se_height_cus_h .nt_bg_lz{padding-top:{{ se_stts.h_mb | replace:'px','' | strip }}px}
57
+ @media (min-width: 768px) { .nt_se_{{sid}}.se_height_cus_h .nt_bg_lz{padding-top:{{ se_stts.h_tb | replace:'px','' | strip }}px} }
58
+ @media (min-width: 1025px) { .nt_se_{{sid}}.se_height_cus_h .nt_bg_lz{padding-top:{{ se_stts.h_des | replace:'px','' | strip }}px} }
59
+ {%- endif -%}
60
+ {%- endstyle -%}
61
+
62
+ {%- schema -%}
63
+ {
64
+ "name": "Video with popup",
65
+ "class": "nt_section type_popup_video",
66
+ "settings": [
67
+ {
68
+ "type": "select",
69
+ "id": "se_height",
70
+ "label": "Section height",
71
+ "default": "full",
72
+ "options": [
73
+ {
74
+ "value": "full",
75
+ "label": "Full screen height"
76
+ },
77
+ {
78
+ "value": "adapt",
79
+ "label": "Adapt to image"
80
+ },
81
+ {
82
+ "value": "cus_h",
83
+ "label": "Custom height"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "paragraph",
89
+ "content": "Custom height options:"
90
+ },
91
+ {
92
+ "type": "text",
93
+ "id": "h_des",
94
+ "label": "Desktop Large",
95
+ "placeholder": "600px",
96
+ "default": "600px"
97
+ },
98
+ {
99
+ "type": "text",
100
+ "id": "h_tb",
101
+ "label": "Tablet (<= 1024px)",
102
+ "placeholder": "500px",
103
+ "default": "500px"
104
+ },
105
+ {
106
+ "type": "text",
107
+ "id": "h_mb",
108
+ "label": "Mobile (<= 767px)",
109
+ "placeholder": "350px",
110
+ "default": "350px"
111
+ },
112
+ {
113
+ "type": "paragraph",
114
+ "content": "—————————————————"
115
+ },
116
+ {
117
+ "type": "image_picker",
118
+ "id": "image",
119
+ "label": "Image"
120
+ },
121
+ {
122
+ "type": "select",
123
+ "id": "img_align",
124
+ "default": "center",
125
+ "options": [
126
+ {
127
+ "value": "top",
128
+ "label": "Top"
129
+ },
130
+ {
131
+ "value": "center",
132
+ "label": "Middle"
133
+ },
134
+ {
135
+ "value": "bottom",
136
+ "label": "Bottom"
137
+ }
138
+ ],
139
+ "label": "Image alignment",
140
+ "info":"Not active when enable parallax"
141
+ },
142
+ {
143
+ "type": "textarea",
144
+ "id": "title",
145
+ "label": "Heading",
146
+ "default": "SALE OFF UP TO 70%"
147
+ },
148
+ {
149
+ "type": "textarea",
150
+ "id": "text",
151
+ "label": "Subheading",
152
+ "default": "Image with text overlay"
153
+ },
154
+ {
155
+ "type": "text",
156
+ "id": "button_label",
157
+ "label": "Button label",
158
+ "default": "Watch the video"
159
+ },
160
+ {
161
+ "id": "url",
162
+ "type": "video_url",
163
+ "label": "Video URL",
164
+ "accept": ["youtube", "vimeo"],
165
+ "default": "https://www.youtube.com/watch?v=_9VUPq3SxOc",
166
+ "info": "Accepts YouTube,vimeo links"
167
+ },
168
+ {
169
+ "type": "select",
170
+ "id": "btn_style",
171
+ "default": "1",
172
+ "options": [
173
+ {
174
+ "value": "1",
175
+ "label": "Style 1"
176
+ },
177
+ {
178
+ "value": "2",
179
+ "label": "Style 2"
180
+ }
181
+ ],
182
+ "label": "Button Style"
183
+ },
184
+ {
185
+ "type": "header",
186
+ "content": "== Caption settings"
187
+ },
188
+ {
189
+ "type": "select",
190
+ "id": "design",
191
+ "options": [
192
+ {
193
+ "value": "1",
194
+ "label": "Design 1"
195
+ },
196
+ {
197
+ "value": "2",
198
+ "label": "Design 2"
199
+ }
200
+ ],
201
+ "label": "Banners design",
202
+ "default": "1"
203
+ },
204
+ {
205
+ "type": "select",
206
+ "id": "text_size",
207
+ "label": "Text size",
208
+ "default": "60,18",
209
+ "options": [
210
+ {
211
+ "value": "30,15",
212
+ "label": "Small"
213
+ },
214
+ {
215
+ "value": "40,15",
216
+ "label": "Medium"
217
+ },
218
+ {
219
+ "value": "60,18",
220
+ "label": "Large"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "type": "select",
226
+ "id": "caption_w",
227
+ "default": "2",
228
+ "options": [
229
+ {
230
+ "value": "1",
231
+ "label": "Container"
232
+ },
233
+ {
234
+ "value": "2",
235
+ "label": "Full Width"
236
+ }
237
+ ],
238
+ "label": "Caption Width"
239
+ },
240
+ {
241
+ "type": "range",
242
+ "id": "cap_v_pos",
243
+ "label": "Caption vertical position",
244
+ "info":" <= 50: Top position , > 50 bottom position",
245
+ "default": 50,
246
+ "min": 0,
247
+ "max": 100,
248
+ "step": 1,
249
+ "unit": "%"
250
+ },
251
+ {
252
+ "type": "range",
253
+ "id": "cap_h_pos",
254
+ "label": "Caption horizontal position",
255
+ "info":" <= 50: Left position , > 50 right position",
256
+ "default": 50,
257
+ "min": 0,
258
+ "max": 100,
259
+ "step": 1,
260
+ "unit": "%"
261
+ },
262
+ {
263
+ "type": "select",
264
+ "id": "txt_align",
265
+ "label": "Text alignment",
266
+ "default": "tc",
267
+ "options": [
268
+ {
269
+ "value": "tl",
270
+ "label": "Left"
271
+ },
272
+ {
273
+ "value": "tc",
274
+ "label": "Center"
275
+ },
276
+ {
277
+ "value": "tr",
278
+ "label": "Right"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "type": "header",
284
+ "content": "== Color"
285
+ },
286
+ {
287
+ "type": "checkbox",
288
+ "id": "use_shadow",
289
+ "label": "Use text shadow?",
290
+ "default": false
291
+ },
292
+ {
293
+ "type": "color",
294
+ "id": "cl_h",
295
+ "label": "Heading",
296
+ "default": "#fff"
297
+ },
298
+ {
299
+ "type": "color",
300
+ "id": "cl_sub",
301
+ "label": "Subheading",
302
+ "default": "#fff"
303
+ },
304
+ {
305
+ "type": "color",
306
+ "id": "cl_btn",
307
+ "label": "Button",
308
+ "default": "#fff"
309
+ },
310
+ {
311
+ "type": "color",
312
+ "id": "cl_overlay",
313
+ "label": "Overlay",
314
+ "default": "#000"
315
+ },
316
+ {
317
+ "type": "range",
318
+ "id": "cl_opacity",
319
+ "label": "Overlay opacity",
320
+ "default": 0,
321
+ "min": 0,
322
+ "max": 100,
323
+ "step": 1,
324
+ "unit": "%"
325
+ },
326
+ {
327
+ "type": "header",
328
+ "content": "== Design Options"
329
+ },
330
+ {
331
+ "type": "select",
332
+ "id": "layout",
333
+ "default": "nt_full",
334
+ "options": [
335
+ {
336
+ "value": "container",
337
+ "label": "Container"
338
+ },
339
+ {
340
+ "value": "nt_full",
341
+ "label": "Full Width"
342
+ }
343
+ ],
344
+ "label": "Layout"
345
+ },
346
+ {
347
+ "type": "color",
348
+ "id": "cl_bg",
349
+ "label": "Background Color"
350
+ },
351
+ {
352
+ "type": "checkbox",
353
+ "id": "use_pr",
354
+ "label": "Enable parallax scroll?",
355
+ "default": false
356
+ },
357
+ {
358
+ "type": "text",
359
+ "id": "mg",
360
+ "label": "Margin",
361
+ "info":"Margin top, margin right, margin bottom, margin left. If you not use to blank",
362
+ "default": "50px,,50px,",
363
+ "placeholder": "50px,,50px,"
364
+ },
365
+ {
366
+ "type": "text",
367
+ "id": "pd",
368
+ "label": "Padding",
369
+ "info":"Padding top, padding right, padding bottom, padding left. If you not use to blank",
370
+ "placeholder": "50px,,50px,"
371
+ },
372
+ {
373
+ "type": "header",
374
+ "content": "== Design Mobile Options"
375
+ },
376
+ {
377
+ "type": "text",
378
+ "id": "mg_mb",
379
+ "label": "Margin",
380
+ "placeholder": "50px,,50px,"
381
+ },
382
+ {
383
+ "type": "text",
384
+ "id": "pd_mb",
385
+ "label": "Padding",
386
+ "placeholder": "50px,,50px,"
387
+ }
388
+ ],
389
+ "presets": [
390
+ {
391
+ "name": "2. Video with popup",
392
+ "category": "IV. Video"
393
+ }
394
+ ]
395
+ }
396
+ {% endschema %}
@@ -0,0 +1,99 @@
1
+ {% if section.settings.show_best_products %}
2
+ <div data-section-id="{{ section.id }}" data-section-type="product-sidebar-bestsellers" class="product-sidebar-bestsellers">
3
+ <div class="widget widget_top_rated_products">
4
+ {% if collections[section.settings.bestseller].products.size > 0 %}
5
+ {% if section.settings.title != blank %}
6
+ <h4><span>{{ section.settings.title }}</span></h4>
7
+ {% endif %}
8
+ {% endif %}
9
+ <div class="carousel-block">
10
+ <ul class="no-bullets top-products">
11
+ {% for product in collections[section.settings.bestseller].products limit: section.settings.limit %}
12
+ <li class="products">
13
+ <span class="top_product_count">0{{ forloop.index }}</span>
14
+ <div class="product-detail top-products-detail">
15
+ <a class="grid-link__title" href="{{ product.url | within: collection }}"> {{ product.title }} </a>
16
+ {% if settings.product_review %} <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span> {% endif %}
17
+ <div class="top-product-prices grid-link__meta">
18
+ <div class="product_price">
19
+ <div class="grid-link__org_price">
20
+ {{ product.price_min | money }}
21
+ </div>
22
+ {% if product.compare_at_price_max > product.price %}
23
+ <del>{{ product.compare_at_price_max | money }}</del>
24
+ {% endif %}
25
+ </div>
26
+ </div>
27
+
28
+ </div>
29
+ {% comment %}
30
+ {% if product.compare_at_price > product.price %}
31
+ <span class="sale">{{ 'products.product.sale' | t }}</span>
32
+ {% endif %}
33
+ {% endcomment %}
34
+
35
+ <div class="products-container">
36
+ {% if product.images.size > 0 %}
37
+ <a class="thumb grid__item" href="{{ product.url | within: collection }}">
38
+ <img alt="featured product" src="{{ product.featured_image | product_img_url: 'small' }}">
39
+ </a>
40
+ {% endif %}
41
+ </div>
42
+ </li>
43
+
44
+ {% else %}
45
+ {% for i in (1..section.settings.limit) %}
46
+ <li class="products">
47
+ <div class="top-products-detail product-detail">
48
+ <a href="#" class="grid-link__title">Sample title {{ i }}</a>
49
+ <span class="spr-badge" id="spr_badge_6529189125" data-rating="0.0">
50
+ <span class="spr-starrating spr-badge-starrating"><i class="spr-icon spr-icon-star-empty"></i><i class="spr-icon spr-icon-star-empty"></i><i class="spr-icon spr-icon-star-empty"></i><i class="spr-icon spr-icon-star-empty"></i><i class="spr-icon spr-icon-star-empty"></i></span> <span class="spr-badge-caption"> </span> </span>
51
+ <div class="grid-link__meta">
52
+ <div class="product_price"> <span class="money" data-currency-usd="$320.00">$0.00</span> </div>
53
+ <del class="grid-link__sale_price"><span class="money" data-currency-usd="$756.00">$0.00</span></del> </div>
54
+ </div>
55
+ <div class="products-container">
56
+ <a href="#" class="grid-link thumb">
57
+ <div class="reveal">
58
+ {% capture current %}{% cycle 1, 2, 3, 4, 5, 6 %}{% endcapture %}
59
+ <img src="//via.placeholder.com/570x490">
60
+ </div>
61
+ </a>
62
+ </div>
63
+ </li>
64
+ {% endfor %}
65
+ {% endfor %}
66
+ </ul>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ {% endif %}
71
+
72
+ {% schema %}
73
+ {
74
+ "name": "Sidebar Bestsellers",
75
+ "settings": [
76
+ {
77
+ "type": "checkbox",
78
+ "id": "show_best_products",
79
+ "label": "Enable best sellers"
80
+ },
81
+ {
82
+ "type": "text",
83
+ "id": "title",
84
+ "label": "Heading"
85
+ },
86
+ {
87
+ "type": "collection",
88
+ "id": "bestseller",
89
+ "label": "Collection"
90
+ },
91
+ {
92
+ "type": "text",
93
+ "id": "limit",
94
+ "label": "Product Limit",
95
+ "default": "4"
96
+ }
97
+ ]
98
+ }
99
+ {% endschema %}
@@ -0,0 +1,158 @@
1
+ {% if section.settings.show_best_products %}
2
+ <div data-section-id="{{ section.id }}" data-section-type="product-sidebar-deals" class="product-sidebar-deals">
3
+ <div class="widget widget_hot_deals">
4
+ {% if collections[section.settings.dealitems].products.size > 0 %}
5
+ {% if section.settings.title != blank %}
6
+ <h4><span>{{ section.settings.title }}</span></h4>
7
+ {% endif %}
8
+ {% endif %}
9
+ <div class="carousel-block">
10
+ <ul class="no-bullets sidebar-deal-products owl-carousel owl-theme">
11
+ {% for product in collections[section.settings.dealitems].products limit: section.settings.limit %}
12
+ <li class="products">
13
+ <div class="products-container">
14
+ {% if product.images.size > 0 %}
15
+ <a class="thumb grid__item" href="{{ product.url | within: collection }}">
16
+ <img alt="featured product" src="{{ product.featured_image | product_img_url: '350X' }}">
17
+
18
+ {% if settings.count_down_enable and settings.count_down_collections %}
19
+ {% assign dealTime = settings.home_productdeal_time | split: ' ' | join: ' ' | split: ' ' %}
20
+ {% include 'deal-snippet-sidebar' %}
21
+ {% endif %}
22
+ </a>
23
+ {% endif %}
24
+ </div>
25
+
26
+ <div class="product-detail">
27
+ <div class="product_left">
28
+ <a class="grid-link__title" href="{{ product.url | within: collection }}"> {{ product.title }} </a>
29
+ {% if settings.product_review %} <span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span> {% endif %}
30
+ </div>
31
+ <div class="top-product-prices grid-link__meta">
32
+
33
+ <div class="product_price">
34
+ <div class="grid-link__org_price">
35
+ {{ product.price_min | money }}
36
+ </div>
37
+ {% if product.compare_at_price_max > product.price %}
38
+ <del>{{ product.compare_at_price_max | money }}</del>
39
+ {% endif %}
40
+ </div>
41
+
42
+ {% if product.compare_at_price > product.price %}
43
+ <span class="sale">{{ 'products.product.sale' | t }}</span>
44
+ {% endif %}
45
+
46
+ </div>
47
+ </div>
48
+
49
+ </li>
50
+
51
+ {% else %}
52
+ {% for i in (1..section.settings.limit) %}
53
+ <li>
54
+
55
+
56
+ <a href="#" class="grid-link thumb">
57
+
58
+
59
+ <div class="reveal">
60
+ {% capture current %}{% cycle 1, 2, 3, 4, 5, 6 %}{% endcapture %}
61
+ <img src="//via.placeholder.com/570x490">
62
+ </div>
63
+ </a>
64
+ <div class="products">
65
+
66
+ <div class="top-products-detail product-detail grid__item">
67
+ <div class="product_left">
68
+ <a href="#" class="grid-link__title">Sample title {{ i }}</a>
69
+ </div>
70
+ <div class="top-product-prices grid-link__meta">
71
+ <div class="grid-link__meta">
72
+ <div class="product_price"> <span class="money" data-currency-usd="$320.00">$0.00</span> </div>
73
+ <del class="grid-link__sale_price"><span class="money" data-currency-usd="$756.00">$0.00</span></del> </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </li>
78
+ {% endfor %}
79
+ {% endfor %}
80
+ </ul>
81
+ <div class="sidabar_nav product-sidebar-deals-nav"></div>
82
+ </div>
83
+ </div>
84
+ <style>
85
+ .sidebar-deal-products .lof-clock-timer-detail-single li {background:{{ section.settings.dealbtn }};color:{{ section.settings.dealbtn_text }};}
86
+
87
+ </style>
88
+ </div>
89
+ {% endif %}
90
+
91
+ {% schema %}
92
+ {
93
+ "name": "Product Sidebar Deals",
94
+ "settings": [
95
+ {
96
+ "type": "checkbox",
97
+ "id": "show_best_products",
98
+ "label": "Enable best deals"
99
+ },
100
+ {
101
+ "type": "text",
102
+ "id": "title",
103
+ "label": "Heading"
104
+ },
105
+ {
106
+ "type": "collection",
107
+ "id": "dealitems",
108
+ "label": "Collection"
109
+ },
110
+
111
+ {
112
+ "type": "color",
113
+ "id": "dealbtn",
114
+ "label": "Deal Button Bg",
115
+ "default": "#000"
116
+ },
117
+ {
118
+ "type": "color",
119
+ "id": "dealbtn_text",
120
+ "label": "Deal Button Text",
121
+ "default": "#000"
122
+ },
123
+
124
+ {
125
+ "type": "text",
126
+ "id": "limit",
127
+ "label": "Product Limit",
128
+ "default": "4"
129
+ }
130
+
131
+ ]
132
+ }
133
+ {% endschema %}
134
+
135
+ <script type="text/javascript">
136
+ $(document).ready(function(){
137
+ var productSidedeals = $(".sidebar-deal-products");
138
+ productSidedeals.owlCarousel({
139
+ loop:false,
140
+ margin:10,
141
+ nav:true,
142
+ navContainer: ".product-sidebar-deals-nav",
143
+ navText: [' <a class="prev btn active"><i class="fa fa-angle-left"></i></a>',' <a class="next btn active"><i class="fa fa-angle-right"></i></a>'],
144
+ dots: false,
145
+ responsive:{
146
+ 0:{
147
+ items:1
148
+ },
149
+ 600:{
150
+ items:1
151
+ },
152
+ 1000:{
153
+ items:1
154
+ }
155
+ }
156
+ });
157
+ });
158
+ </script>