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,342 @@
1
+ {% assign full = section.settings.full %}
2
+ {% assign margin = section.settings.margin | split: ',' %}
3
+ {% assign top = margin[0] %}
4
+ {% assign bottom = margin[1] %}
5
+ {%- assign limit = section.settings.column_desktop | times: section.settings.rows_desktop -%}
6
+
7
+ {% if section.settings.layout_setup == '75%' %}
8
+ {% assign column1 = 'grid__item wide--three-quarters post-large--three-quarters large--three-quarters medium-down--grid__item small--grid__item' %}
9
+ {% assign column2 = 'grid__item wide--one-quarter post-large--one-quarter large--one-quarter medium-down--grid__item small--grid__item' %}
10
+ {% elsif section.settings.layout_setup == '50%' %}
11
+ {% assign column1 = 'grid__item wide--one-half post-large--one-half large--one-half medium-down--grid__item small--grid__item' %}
12
+ {% assign column2 = 'grid__item wide--one-half post-large--one-half large--one-half medium-down--grid__item small--grid__item' %}
13
+ {% elsif section.settings.layout_setup == '67%' %}
14
+ {% assign column1 = 'grid__item wide--two-thirds post-large--two-thirds large--two-quarters medium-down--grid__item small--grid__item' %}
15
+ {% assign column2 = 'grid__item wide--one-third post-large--two-third large--two-quarters medium-down--grid__item small--grid__item' %}
16
+ {% elsif section.settings.layout_setup == '100%' %}
17
+ {% assign column1 = 'grid__item full-width' %}
18
+ {% assign column2 = 'grid__item full-width' %}
19
+ {% else %}
20
+ {% assign column1 = 'grid__item wide--three-quarters post-large--two-quarters large--two-quarters medium-down--grid__item small--grid__item' %}
21
+ {% assign column2 = 'grid__item wide--one-quarter post-large--two-quarters large--two-quarters medium-down--grid__item small--grid__item' %}
22
+ {% endif %}
23
+
24
+ <div class="full_width_tab" style="float:left;width:100%;background-color:{{ section.settings.type_bg }};">
25
+ <div class="{% if section.settings.full %}container-bg{% else %}container{% endif %}" style="margin-top:{{top}}px; margin-bottom:{{bottom}}px;">
26
+ <div class="dt-sc-hr-invisible-large"></div>
27
+ <div class="wrapper">
28
+ <div class="grid-uniform">
29
+
30
+ {% if section.settings.alignment == 'left' %}
31
+ <div class="dt-sc-tabs brand_names {{column2}} product-tab-type-2-left">
32
+
33
+ {% if section.settings.title_1 != blank %}
34
+ <div class="border-title ">
35
+ <h4 style="background:{{ section.settings.title_bg_color }};color:{{ section.settings.title_1_color }}">{{ section.settings.title_1 }}</h4>
36
+ </div>
37
+ {% endif%}
38
+ <div class="grid wow fadeInUp animated">
39
+ {% for block in section.blocks %}
40
+ {% if block.settings.brand_image != blank %}
41
+ <div class="brand_logo"><a href="#"> <img src="{{ block.settings.brand_image | img_url: 'medium' }}" alt="{{ block.settings.brand_name }}" /><span>{{ block.settings.brand_name }}</span></a></div>
42
+
43
+ {% else %}
44
+ <div class="brand_logo"><a href="#"><img src="//via.placeholder.com/70x70"><span>{{ block.settings.brand_name }}</span></a></div>
45
+ {% endif%}
46
+ {% endfor %}
47
+ </div>
48
+ </div>
49
+ {% endif %}
50
+
51
+ {% for block in section.blocks %}
52
+ <ul class="dt-sc-tabs-content brand_tab {{column1}}">
53
+ <div class="dt-sc-tabs-container">
54
+ <ul class="dt-sc-tabs hide">
55
+ {%- assign collection = collections[block.settings.collection] -%}
56
+ <li><a href="#" class="tabs-{{ block.id }}-{{forloop.index }}">{{ collection.title }} </a></li>
57
+ </ul>
58
+
59
+ <div class="dt-sc-tabs-content">
60
+ <ul class="grid-uniform">
61
+ {% case section.settings.column_desktop %}
62
+ {% when '2' %}
63
+ {%- assign grid_item_width = 'wide--one-half post-large--one-half large--one-half medium--one-half small--one-half' -%}
64
+ {% when '3' %}
65
+ {%- assign grid_item_width = 'wide--one-third post-large--one-third large--one-third medium--one-half small--one-half' -%}
66
+ {% when '4' %}
67
+ {%- assign grid_item_width = 'wide--one-quarter post-large--one-third large--one-third medium--one-half small--one-half' -%}
68
+ {% when '5' %}
69
+ {%- assign grid_item_width = 'wide--one-fifth post-large--one-third large--one-third medium--one-half small--one-half' -%}
70
+ {% endcase %}
71
+ {% for product in collection.products limit: limit %}
72
+ {% include 'product-grid-item' , grid_item_width:grid_item_width %}
73
+ {% else %}
74
+ {% for i in (1..8) %}
75
+ <li class="grid__item wide--one-quarter post-large--one-quarter large--one-quarter medium--one-half small-grid__item item-row on-sale" id="product-{{ i }}">
76
+ <div class="products">
77
+ <div class="product-container">
78
+ <a href="#" class="grid-link">
79
+ {% if forloop.index == 3 %}
80
+ <div class="featured-tag">
81
+ <span class="badge badge--sale">
82
+ <span class="gift-tag badge__text badge__text--small">{{ 'products.product.sale' | t }}</span>
83
+ </span>
84
+ </div>{% endif %}
85
+
86
+ <div class="reveal">
87
+ {% capture current %}{% cycle 1, 2, 3, 4, 5, 6 %}{% endcapture %}
88
+ {{ 'product-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
89
+ </div>
90
+ </a>
91
+ </div>
92
+ <div class="product-detail">
93
+ <a href="#" class="grid-link__title">Sample title {{ i }}</a>
94
+
95
+ <div class="grid-link__meta">
96
+ <div class="product_price"> <span class="money" data-currency-usd="$320.00">$0.00</span> </div>
97
+ <del class="grid-link__sale_price"><span class="money" data-currency-usd="$756.00">$0.00</span></del> </div>
98
+ </div>
99
+ </div>
100
+ </li>
101
+ {% endfor %}
102
+ {% endfor %}
103
+ </ul>
104
+ </div>
105
+
106
+ </div><!--End tabs container-->
107
+ </ul>
108
+ {% endfor %}
109
+
110
+ {% if section.settings.alignment == 'right' %}
111
+ <div class="dt-sc-tabs brand_names grid__item {{column2}} product-tab-type-2-right">
112
+
113
+ {% if section.settings.title_1 != blank %}
114
+ <div class="border-title ">
115
+ <h4 style="background:{{ section.settings.title_bg_color }};color:{{ section.settings.title_1_color }}">{{ section.settings.title_1 }}</h4>
116
+ </div>
117
+ {% endif%}
118
+ <div class="grid wow fadeInUp animated">
119
+ {% for block in section.blocks %}
120
+ {% if block.settings.brand_image != blank %}
121
+ <div class="brand_logo"><a href="#"> <img src="{{ block.settings.brand_image | img_url: 'medium' }}" alt="{{ block.settings.brand_name }}" /><span>{{ block.settings.brand_name }}</span></a></div>
122
+
123
+ {% else %}
124
+ <div class="brand_logo"><a href="#"><img src="//via.placeholder.com/70x70"><span>{{ block.settings.brand_name }}</span></a></div>
125
+ {% endif%}
126
+ {% endfor %}
127
+ </div>
128
+ </div>
129
+ {% endif %}
130
+ </div>
131
+ </div>
132
+ <div class="dt-sc-hr-invisible-large"></div>
133
+ </div>
134
+ </div>
135
+
136
+ <style>
137
+
138
+ .product-tab-type-2 .brand_logo a { color:{{ section.settings.tag_clr }}; background: {{section.settings.tabactive_bg_clr}} }
139
+ .product-tab-type-2 .brand_logo a:hover, .product-tab-type-2 .brand_logo a.current {color:{{ section.settings.tag_hover_clr }};background: {{section.settings.tabactive_hover_bg_clr}};}
140
+
141
+ .product-tab-type-2 .image_link_txt { background:{{ section.settings.button_bg_clr }};color:{{ section.settings.button_txt_clr }}; }
142
+ .product-tab-type-2 .image_link_txt:hover { background:{{ section.settings.button_hover_bg_clr }};color:{{ section.settings.button_hover_txt_clr }}; }
143
+
144
+ </style>
145
+
146
+ <script type="text/javascript">
147
+
148
+ $(document).on('click', '.brand_names li a.current', function(){
149
+ var brandName = $(this).text();
150
+ console.log(brandName);
151
+ $('.brand_title').text(brandName);
152
+ });
153
+
154
+ </script>
155
+
156
+ {% schema %}
157
+ {
158
+ "name": "Product Tab 2",
159
+ "class": "index-section product-tab-type-2",
160
+ "max_blocks": 10,
161
+ "settings": [
162
+ {
163
+ "type": "checkbox",
164
+ "id": "full",
165
+ "label": "Show Full width"
166
+ },
167
+ {
168
+ "type": "text",
169
+ "id": "margin",
170
+ "label": "Style value (Margin)",
171
+ "default":"0,0",
172
+ "info":"Top(px),Bottom(px)"
173
+ },
174
+ {
175
+ "type": "select",
176
+ "id": "layout_setup",
177
+ "label": "Layout Grid Style",
178
+ "options": [
179
+ {
180
+ "value": "75%",
181
+ "label": "75/25"
182
+ },
183
+ {
184
+ "value": "50%",
185
+ "label": "50/50"
186
+ },
187
+ {
188
+ "value": "67%",
189
+ "label": "67/33"
190
+ },
191
+ {
192
+ "value": "100%",
193
+ "label": "100/100"
194
+ }
195
+ ],
196
+ "default": "75%"
197
+ },
198
+ {
199
+ "type": "color",
200
+ "id": "type_bg",
201
+ "label": "Bg color",
202
+ "default": "#fff"
203
+ },
204
+ {
205
+ "type": "color",
206
+ "id": "title_bg_color",
207
+ "label": "Title Bg",
208
+ "default": "#f2f2f2"
209
+ },
210
+ {
211
+ "type": "text",
212
+ "id": "title_1",
213
+ "label": "Heading",
214
+ "default": "Product Tab 2"
215
+ },
216
+ {
217
+ "type": "color",
218
+ "id": "title_1_color",
219
+ "label":"Heading color",
220
+ "default": "#000"
221
+ },
222
+ {
223
+ "type": "color",
224
+ "id": "tag_clr",
225
+ "label": "Tag Color",
226
+ "default": "#333"
227
+ },
228
+ {
229
+ "type": "color",
230
+ "id": "tabactive_bg_clr",
231
+ "label": "Tag Bg Color",
232
+ "default": "#fff"
233
+ },
234
+ {
235
+ "type": "color",
236
+ "id": "tag_hover_clr",
237
+ "label": "Tag Hover Color",
238
+ "default": "#000"
239
+ },
240
+ {
241
+ "type": "color",
242
+ "id": "tabactive_hover_bg_clr",
243
+ "label": "Tag Hover Bg Color",
244
+ "default": "#f2f2f2"
245
+ },
246
+ {
247
+ "type": "select",
248
+ "id": "alignment",
249
+ "label": "Brand block alignment",
250
+ "default": "left",
251
+ "options": [
252
+ {
253
+ "value": "left",
254
+ "label": "Left"
255
+ },
256
+ {
257
+ "value": "right",
258
+ "label": "Right"
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ "type": "select",
264
+ "id": "rows_desktop",
265
+ "label": "Rows",
266
+ "info": "For desktop screen",
267
+ "options": [
268
+ {
269
+ "value": "2",
270
+ "label": "2"
271
+ },
272
+ {
273
+ "value": "3",
274
+ "label": "3"
275
+ },
276
+ {
277
+ "value": "4",
278
+ "label": "4"
279
+ }
280
+ ],
281
+ "default": "2"
282
+ },
283
+ {
284
+ "type": "select",
285
+ "id": "column_desktop",
286
+ "label": "Products per row",
287
+ "info": "For desktop screen",
288
+ "options": [
289
+ {
290
+ "value": "2",
291
+ "label": "2"
292
+ },
293
+ {
294
+ "value": "3",
295
+ "label": "3"
296
+ },
297
+ {
298
+ "value": "4",
299
+ "label": "4"
300
+ },
301
+ {
302
+ "value": "5",
303
+ "label": "5"
304
+ }
305
+ ],
306
+ "default": "4"
307
+ }
308
+
309
+ ],
310
+ "blocks": [
311
+ {
312
+ "type": "collection",
313
+ "name": "Collections",
314
+ "settings": [
315
+ {
316
+ "type": "image_picker",
317
+ "id": "brand_image",
318
+ "label": "Brand logo"
319
+ },
320
+ {
321
+ "id": "brand_name",
322
+ "type": "text",
323
+ "label": "Brand name",
324
+ "default": "Brand name"
325
+ },
326
+ {
327
+ "id": "collection",
328
+ "type": "collection",
329
+ "label": "Collection"
330
+ }
331
+ ]
332
+ }
333
+ ],
334
+ "presets": [
335
+ {
336
+ "name": "Product Tab 2",
337
+ "category": "Collection",
338
+ "blocks": [ ]
339
+ }
340
+ ]
341
+ }
342
+ {% endschema %}
@@ -0,0 +1,357 @@
1
+ {% assign full = section.settings.full %}
2
+ {% assign margin = section.settings.margin | split: ',' %}
3
+ {% assign top = margin[0] %}
4
+ {% assign bottom = margin[1] %}
5
+ {%- assign limit = section.settings.column_desktop | times: section.settings.rows_desktop -%}
6
+
7
+ {% if section.settings.layout_setup == '75%' %}
8
+ {% assign column1 = 'grid__item wide--three-quarters post-large--three-quarters large--three-quarters medium-down--grid__item small--grid__item' %}
9
+ {% assign column2 = 'grid__item wide--one-quarter post-large--one-quarter large--one-quarter medium-down--grid__item small--grid__item' %}
10
+ {% elsif section.settings.layout_setup == '50%' %}
11
+ {% assign column1 = 'grid__item wide--one-half post-large--one-half large--one-half medium-down--grid__item small--grid__item' %}
12
+ {% assign column2 = 'grid__item wide--one-half post-large--one-half large--one-half medium-down--grid__item small--grid__item' %}
13
+ {% elsif section.settings.layout_setup == '67%' %}
14
+ {% assign column1 = 'grid__item wide--two-thirds post-large--two-thirds large--two-quarters medium-down--grid__item small--grid__item' %}
15
+ {% assign column2 = 'grid__item wide--one-third post-large--two-third large--two-quarters medium-down--grid__item small--grid__item' %}
16
+ {% elsif section.settings.layout_setup == '100%' %}
17
+ {% assign column1 = 'grid__item full-width' %}
18
+ {% assign column2 = 'grid__item full-width' %}
19
+ {% else %}
20
+ {% assign column1 = 'grid__item wide--three-quarters post-large--two-quarters large--two-quarters medium-down--grid__item small--grid__item' %}
21
+ {% assign column2 = 'grid__item wide--one-quarter post-large--two-quarters large--two-quarters medium-down--grid__item small--grid__item' %}
22
+ {% endif %}
23
+
24
+ <div class="full_width_tab" style="float:left;width:100%;background-color:{{ section.settings.type_bg }};">
25
+ <div class="{% if section.settings.full %}container-bg{% else %}container{% endif %}" style="margin-top:{{top}}px; margin-bottom:{{bottom}}px;">
26
+ <div class="dt-sc-hr-invisible-large"></div>
27
+ <div class="wrapper">
28
+ <div class="grid-uniform">
29
+
30
+ {% if section.settings.alignment == 'left' %}
31
+ <div class="dt-sc-tabs brand_names {{column2}} product-tab-type-3-left">
32
+ <div class="tabs-inner">
33
+ {% if section.settings.title_1 != blank %}
34
+ <div class="border-title ">
35
+ <h4 style="background:{{ section.settings.title_bg_color }};color:{{ section.settings.title_1_color }}">{{ section.settings.title_1 }}</h4>
36
+ </div>
37
+ {% endif%}
38
+ <div class="grid wow fadeInUp animated">
39
+ <ul class="brand_list">
40
+ {% for block in section.blocks %}
41
+ {% if block.settings.brand_name != blank %}
42
+ <li><a href="#"><span>{{ block.settings.brand_name }}</span></a></li>
43
+ {% endif%}
44
+ {% endfor %}
45
+ </ul>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ {% endif %}
50
+
51
+ {% for block in section.blocks %}
52
+ <ul class="dt-sc-tabs-content brand_tab {{column1}}">
53
+ <div class="dt-sc-tabs-container">
54
+ <ul class="dt-sc-tabs hide">
55
+ {%- assign collection = collections[block.settings.collection] -%}
56
+ <li><a href="#" class="tabs-{{ block.id }}-{{forloop.index }}">{{ collection.title }} </a></li>
57
+ </ul>
58
+
59
+ <div class="dt-sc-tabs-content">
60
+ <ul class="grid-uniform">
61
+ {% case section.settings.column_desktop %}
62
+ {% when '2' %}
63
+ {%- assign grid_item_width = 'wide--one-half post-large--one-half large--one-half medium--one-half small--one-half' -%}
64
+ {% when '3' %}
65
+ {%- assign grid_item_width = 'wide--one-third post-large--one-third large--one-third medium--one-half small--one-half' -%}
66
+ {% when '4' %}
67
+ {%- assign grid_item_width = 'wide--one-quarter post-large--one-third large--one-third medium--one-half small--one-half' -%}
68
+ {% when '5' %}
69
+ {%- assign grid_item_width = 'wide--one-fifth post-large--one-third large--one-third medium--one-half small--one-half' -%}
70
+ {% endcase %}
71
+ {% for product in collection.products limit: limit %}
72
+ {% include 'product-grid-item' , grid_item_width:grid_item_width %}
73
+ {% else %}
74
+ {% for i in (1..8) %}
75
+ <li class="grid__item wide--one-quarter post-large--one-quarter large--one-quarter medium--one-half small-grid__item item-row on-sale" id="product-{{ i }}">
76
+ <div class="products">
77
+ <div class="product-container">
78
+ <a href="#" class="grid-link">
79
+ {% if forloop.index == 3 %}
80
+ <div class="featured-tag">
81
+ <span class="badge badge--sale">
82
+ <span class="gift-tag badge__text badge__text--small">{{ 'products.product.sale' | t }}</span>
83
+ </span>
84
+ </div>{% endif %}
85
+
86
+ <div class="reveal">
87
+ {% capture current %}{% cycle 1, 2, 3, 4, 5, 6 %}{% endcapture %}
88
+ {{ 'product-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
89
+ </div>
90
+ </a>
91
+ </div>
92
+ <div class="product-detail">
93
+ <a href="#" class="grid-link__title">Sample title {{ i }}</a>
94
+
95
+ <div class="grid-link__meta">
96
+ <div class="product_price"> <span class="money" data-currency-usd="$320.00">$0.00</span> </div>
97
+ <del class="grid-link__sale_price"><span class="money" data-currency-usd="$756.00">$0.00</span></del> </div>
98
+ </div>
99
+ </div>
100
+ </li>
101
+ {% endfor %}
102
+ {% endfor %}
103
+ </ul>
104
+ </div>
105
+
106
+ </div><!--End tabs container-->
107
+ </ul>
108
+ {% endfor %}
109
+
110
+ {% if section.settings.alignment == 'right' %}
111
+ <div class="dt-sc-tabs brand_names grid__item {{column2}} product-tab-type-3-right">
112
+ <div class="tabs-inner">
113
+ {% if section.settings.title_1 != blank %}
114
+ <div class="border-title ">
115
+ <h4 style="background:{{ section.settings.title_bg_color }};color:{{ section.settings.title_1_color }}">{{ section.settings.title_1 }}</h4>
116
+ </div>
117
+ {% endif%}
118
+ <div class="grid wow fadeInUp animated">
119
+ <ul class="brand_list">
120
+ {% for block in section.blocks %}
121
+ {% if block.settings.brand_name != blank %}
122
+ <li><a href="#"><span>{{ block.settings.brand_name }}</span></a></li>
123
+ {% endif%}
124
+ {% endfor %}
125
+ </ul>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ {% endif %}
130
+ </div>
131
+ </div>
132
+ <div class="dt-sc-hr-invisible-large"></div>
133
+ </div>
134
+ </div>
135
+
136
+ <style>
137
+
138
+ {% if section.settings.tab_image != blank %}
139
+ .product-tab-type-3 .dt-sc-tabs .tabs-inner { background-image:url({{ section.settings.tab_image | img_url: 'master' }}); }
140
+ {% endif %}
141
+
142
+ .product-tab-type-3 .brand_list li a { color:{{ section.settings.tag_clr }}; background: {{section.settings.tabactive_bg_clr}} }
143
+ .product-tab-type-3 .brand_list li a:hover, .product-tab-type-3 .brand_list li a.current {color:{{ section.settings.tag_hover_clr }};background: {{section.settings.tabactive_hover_bg_clr}};}
144
+
145
+ .product-tab-type-3 .image_link_txt { background:{{ section.settings.button_bg_clr }};color:{{ section.settings.button_txt_clr }}; }
146
+ .product-tab-type-3 .image_link_txt:hover { background:{{ section.settings.button_hover_bg_clr }};color:{{ section.settings.button_hover_txt_clr }}; }
147
+
148
+ </style>
149
+
150
+ <script type="text/javascript">
151
+
152
+ $(document).on('click', '.brand_names li a.current', function(){
153
+ var brandName = $(this).text();
154
+ console.log(brandName);
155
+ $('.brand_title').text(brandName);
156
+ });
157
+
158
+ </script>
159
+
160
+ {% schema %}
161
+ {
162
+ "name": "Product Tab 3",
163
+ "class": "index-section product-tab-type-3",
164
+ "max_blocks": 10,
165
+ "settings": [
166
+ {
167
+ "type": "checkbox",
168
+ "id": "full",
169
+ "label": "Show Full width"
170
+ },
171
+ {
172
+ "type": "text",
173
+ "id": "margin",
174
+ "label": "Style value (Margin)",
175
+ "default":"0,0",
176
+ "info":"Top(px),Bottom(px)"
177
+ },
178
+ {
179
+ "type": "select",
180
+ "id": "layout_setup",
181
+ "label": "Layout Grid Style",
182
+ "options": [
183
+ {
184
+ "value": "75%",
185
+ "label": "75/25"
186
+ },
187
+ {
188
+ "value": "50%",
189
+ "label": "50/50"
190
+ },
191
+ {
192
+ "value": "67%",
193
+ "label": "67/33"
194
+ },
195
+ {
196
+ "value": "100%",
197
+ "label": "100/100"
198
+ }
199
+ ],
200
+ "default": "75%"
201
+ },
202
+ {
203
+ "type": "color",
204
+ "id": "type_bg",
205
+ "label": "Bg color",
206
+ "default": "#fff"
207
+ },
208
+ {
209
+ "type": "image_picker",
210
+ "id": "tab_image",
211
+ "label": "Tab Background Image",
212
+ "info": "Size: 200x300"
213
+ },
214
+ {
215
+ "type": "text",
216
+ "id": "title_1",
217
+ "label": "Heading",
218
+ "default": "Product Tab 3"
219
+ },
220
+ {
221
+ "type": "color",
222
+ "id": "title_1_color",
223
+ "label":"Heading color",
224
+ "default": "#000"
225
+ },
226
+ {
227
+ "type": "color",
228
+ "id": "tag_clr",
229
+ "label": "Tag Color",
230
+ "default": "#000"
231
+ },
232
+ {
233
+ "type": "color",
234
+ "id": "tabactive_bg_clr",
235
+ "label": "Tag Bg Color",
236
+ "default": "#fff"
237
+ },
238
+ {
239
+ "type": "color",
240
+ "id": "tag_hover_clr",
241
+ "label": "Tag Hover Color",
242
+ "default": "#fff"
243
+ },
244
+ {
245
+ "type": "color",
246
+ "id": "tabactive_hover_bg_clr",
247
+ "label": "Tag Hover Bg Color",
248
+ "default": "#000"
249
+ },
250
+ {
251
+ "type": "select",
252
+ "id": "alignment",
253
+ "label": "Brand block alignment",
254
+ "default": "left",
255
+ "options": [
256
+ {
257
+ "value": "left",
258
+ "label": "Left"
259
+ },
260
+ {
261
+ "value": "right",
262
+ "label": "Right"
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "type": "select",
268
+ "id": "rows_desktop",
269
+ "label": "Rows",
270
+ "info": "For desktop screen",
271
+ "options": [
272
+ {
273
+ "value": "2",
274
+ "label": "2"
275
+ },
276
+ {
277
+ "value": "3",
278
+ "label": "3"
279
+ },
280
+ {
281
+ "value": "4",
282
+ "label": "4"
283
+ }
284
+ ],
285
+ "default": "2"
286
+ },
287
+ {
288
+ "type": "select",
289
+ "id": "column_desktop",
290
+ "label": "Products per row",
291
+ "info": "For desktop screen",
292
+ "options": [
293
+ {
294
+ "value": "2",
295
+ "label": "2"
296
+ },
297
+ {
298
+ "value": "3",
299
+ "label": "3"
300
+ },
301
+ {
302
+ "value": "4",
303
+ "label": "4"
304
+ },
305
+ {
306
+ "value": "5",
307
+ "label": "5"
308
+ }
309
+ ],
310
+ "default": "4"
311
+ },
312
+ {
313
+ "type": "select",
314
+ "id": "multigrid",
315
+ "label": "Tab Type",
316
+ "info": "Tab Grid Styles",
317
+ "options": [
318
+ {
319
+ "value": "single",
320
+ "label": "Single Row Carousel"
321
+ },
322
+ {
323
+ "value": "multi",
324
+ "label": "Multi Row Carousel"
325
+ }
326
+ ],
327
+ "default": "single"
328
+ }
329
+ ],
330
+ "blocks": [
331
+ {
332
+ "type": "collection",
333
+ "name": "Collections",
334
+ "settings": [
335
+ {
336
+ "id": "brand_name",
337
+ "type": "text",
338
+ "label": "Brand name",
339
+ "default": "Brand name"
340
+ },
341
+ {
342
+ "id": "collection",
343
+ "type": "collection",
344
+ "label": "Collection"
345
+ }
346
+ ]
347
+ }
348
+ ],
349
+ "presets": [
350
+ {
351
+ "name": "Product Tab 3",
352
+ "category": "Collection",
353
+ "blocks": [ ]
354
+ }
355
+ ]
356
+ }
357
+ {% endschema %}