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,276 @@
1
+ {% assign full = section.settings.full %}
2
+ {% assign margin = section.settings.margin | split: ',' %}
3
+ {% assign top = margin[0] %}
4
+ {% assign bottom = margin[1] %}
5
+
6
+ <div class="gallery-block style1" style="background:{{ section.settings.bg_color }};">
7
+ <div class="{% if section.settings.full %} container-bg {% else %}container{% endif %}" style="margin-top:{{top}}px; margin-bottom:{{bottom}}px;">
8
+ <div class="grid-uniform">
9
+ <div class="dt-sc-tabs-container-section">
10
+ <div class="container">
11
+ {% if section.settings.heading != blank or section.settings.description != blank %}
12
+ <div class="section-header section-header--small full-position-{{section.settings.heading_position}}">
13
+ <div class="border-title">
14
+ <h2 style="color:{{ section.settings.heading_color }};">{{ section.settings.heading }}</h2>
15
+
16
+ {% if section.settings.description != blank %}
17
+ <div class="short-desc"> <p style="color:{{ section.settings.description_color }};">{{ section.settings.description }}</p></div>
18
+ {% endif %}
19
+ </div>
20
+ </div>
21
+ <div class="dt-sc-hr-invisible-small"></div>
22
+ {% endif %}
23
+ </div>
24
+
25
+ {% if section.blocks.size > 0 %}
26
+ <div class="dt-sc-tabs-container">
27
+ <ul class="dt-sc-tabs wow fadeInUp animated">
28
+ {% for block in section.blocks %}
29
+ {% if block.settings.title != blank %}
30
+ <li><a href="#" class="btn tabs-{{ block.id }}">{{ block.settings.title }} </a></li>
31
+ {% endif %}
32
+ {% endfor %}
33
+ </ul>
34
+ {% for block in section.blocks %}
35
+ <div class="dt-sc-tabs-content" style="padding:0;">
36
+ <div class="grid-uniform list-gallery-items">
37
+ {% for link in linklists[block.settings.collection].links limit: section.settings.limit %}
38
+ {% assign collection = link.object %}
39
+ {% unless collection.handle == 'frontpage' %}
40
+ {% assign collection_item_width = 'grid__item wide--one-quarter post-large--one-quarter large--one-half medium--one-half small--grid__item' %}
41
+ {% assign featured = collection.handle %}
42
+
43
+ {% assign collection_item_img_size = 'large' %}
44
+
45
+ {% if link.object.image != blank %}
46
+ <div class="grid__item {{collection_item_width}} column gallery text-center pickgradient-products">
47
+ {% capture collection_title %}{{ collections[featured].title | escape }}{% endcapture %}
48
+ {{ collections[featured].image.src | img_url: collection_item_img_size | img_tag: collection_title }}
49
+ <div class="image-overlay">
50
+ <div class="links">
51
+ <a href="{{ collections[featured].url }}" class="link"><i class="fas fa-link icons"></i></a>
52
+ <a href="{{ collections[featured].image.src | img_url: '1024x1024' }}" class="portfolio_zoom" rel="prettyPhoto[gallery{{forloop.index}}]"><i class="fas fa-search icons"></i></a>
53
+ </div>
54
+ {% if block.settings.gallery_title != blank %}
55
+ <div class="image-overlay-details">
56
+ {% if block.settings.gallery_title != blank %} <h4><a href="{{ collections[featured].url }}">{{ block.settings.gallery_title }}</a></h4>{% endif %}
57
+ </div>
58
+ {% endif %}
59
+ </div>
60
+ </div>
61
+ {% else %}
62
+ <div class="grid__item {{collection_item_width}} column gallery text-center pickgradient-products">
63
+ <img src="//via.placeholder.com/768x580">
64
+ </div>
65
+ {% endif %}
66
+ {% endunless %}
67
+ {% endfor %}
68
+ </div>
69
+
70
+ </div>
71
+
72
+ {% endfor %}
73
+ </div><!--End tabs container-->
74
+ {% endif %}
75
+ </div>
76
+
77
+ </div>
78
+ </div>
79
+ </div>
80
+
81
+ <style>
82
+
83
+ {% if section.settings.heading_image_need %}
84
+ .home-gallery-block .style1 .border-title h2:after { background-image:url({{ section.settings.heading_image | img_url: 'master' }}); } {% endif %}
85
+ .home-gallery-block .style1 .dt-sc-tabs-frame-content, .dt-sc-tabs-content { border:none; }
86
+ .home-gallery-block .style1 .grid__item.gallery:hover .image-overlay { opacity: 1;}
87
+ .home-gallery-block .style1 .grid__item .image-overlay .links a { border:1px solid {{ section.settings.img_overlay_icon }};color:{{ section.settings.img_overlay_icon_txt }}; }
88
+ .home-gallery-block .style1 .grid__item .image-overlay .links a:hover { background:{{ section.settings.img_overlay_icon_bg }};color:{{ section.settings.img_overlay_icon_hover_txt }}; }
89
+ .home-gallery-block .style1 .grid__item .image-overlay-details h4 a { color:{{ section.settings.img_overlay_title }}; }
90
+ .home-gallery-block .style1 .grid__item .image-overlay-details h4 a:hover { color:{{ section.settings.img_overlay_title_hover }}; }
91
+ .home-gallery-block .style1 .grid__item .image-overlay-details p { color:{{ section.settings.img_overlay_catgry }}; }
92
+ .home-gallery-block .style1 .grid__item .image-overlay { background: {{ section.settings.img_overlay | color_modify: 'alpha', 0.8 }}; }
93
+
94
+ </style>
95
+
96
+ {% schema %}
97
+ {
98
+ "name": "Gallery Block 1",
99
+ "class": "index-section home-gallery-block",
100
+ "max_blocks": 6,
101
+ "settings": [
102
+ {
103
+ "type": "checkbox",
104
+ "id": "full",
105
+ "label": "Show Full width"
106
+ },
107
+ {
108
+ "type": "text",
109
+ "id": "margin",
110
+ "label": "Style value (Margin)",
111
+ "default":"0,0",
112
+ "info":"Top(px),Bottom(px)"
113
+ },
114
+ {
115
+ "type": "color",
116
+ "id": "bg_color",
117
+ "label": "Bg",
118
+ "default": "#fff"
119
+ },
120
+ {
121
+ "type": "text",
122
+ "id": "heading",
123
+ "label": "Heading",
124
+ "default": "Heading"
125
+ },
126
+ {
127
+ "type": "color",
128
+ "id": "heading_color",
129
+ "label": "Color",
130
+ "default":"#000"
131
+ },
132
+ {
133
+ "type": "textarea",
134
+ "id": "description",
135
+ "label": "Description",
136
+ "default": "Description"
137
+ },
138
+ {
139
+ "type": "color",
140
+ "id": "description_color",
141
+ "label": "Color",
142
+ "default":"#000"
143
+ },
144
+ {
145
+ "type": "select",
146
+ "id": "heading_position",
147
+ "label": "Heading Position",
148
+ "options": [
149
+ {
150
+ "value": "default",
151
+ "label": "Full center"
152
+ },
153
+ {
154
+ "value": "full-left",
155
+ "label": "Full left"
156
+ },
157
+ {
158
+ "value": "full-right",
159
+ "label": "Full right"
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "type": "checkbox",
165
+ "id": "heading_image_need",
166
+ "label": "Show Heading Image ?"
167
+
168
+ },
169
+ {
170
+ "type": "image_picker",
171
+ "id": "heading_image",
172
+ "label": "Image",
173
+ "info": "Size: 69x45"
174
+
175
+ },
176
+ {
177
+ "type": "color",
178
+ "id": "img_overlay",
179
+ "label": "Image Overlay",
180
+ "default": "#000"
181
+ },
182
+ {
183
+ "type": "color",
184
+ "id": "img_overlay_title",
185
+ "label": "Overlay Title",
186
+ "default": "#000"
187
+ },
188
+ {
189
+ "type": "color",
190
+ "id": "img_overlay_title_hover",
191
+ "label": "Overlay Title Hover",
192
+ "default": "#000"
193
+ },
194
+ {
195
+ "type": "color",
196
+ "id": "img_overlay_catgry",
197
+ "label": "Overlay Category",
198
+ "default": "#000"
199
+ },
200
+ {
201
+ "type": "color",
202
+ "id": "img_overlay_icon",
203
+ "label": "Overlay Icon Border",
204
+ "default": "#000"
205
+ },
206
+ {
207
+ "type": "color",
208
+ "id": "img_overlay_icon_txt",
209
+ "label": "Overlay Icon Text",
210
+ "default": "#000"
211
+ },
212
+ {
213
+ "type": "color",
214
+ "id": "img_overlay_icon_bg",
215
+ "label": "Overlay Icon Hover Bg",
216
+ "default": "#000"
217
+ },
218
+ {
219
+ "type": "color",
220
+ "id": "img_overlay_icon_hover_txt",
221
+ "label": "Overlay Icon Hover Text",
222
+ "default": "#000"
223
+ },
224
+ {
225
+ "type": "text",
226
+ "id": "limit",
227
+ "label": "Limit",
228
+ "default": "4"
229
+ }
230
+ ],
231
+ "blocks": [
232
+ {
233
+ "type": "text_block",
234
+ "name": "Column",
235
+ "settings": [
236
+ {
237
+ "type": "text",
238
+ "id": "title",
239
+ "label": "Menu Name",
240
+ "default": "Tab Name"
241
+ },
242
+
243
+ {
244
+ "id": "collection",
245
+ "type": "link_list",
246
+ "label": "Pick Menu"
247
+ },
248
+ {
249
+ "type": "text",
250
+ "id": "gallery_title",
251
+ "label": "Title"
252
+ }
253
+ ]
254
+ }
255
+ ],
256
+ "presets": [
257
+ {
258
+ "name": "Gallery Block 1",
259
+ "category": "Image",
260
+ "blocks": [
261
+ {
262
+ "type": "text_block"
263
+ }
264
+ ]
265
+ }
266
+ ]
267
+ }
268
+ {% endschema %}
269
+
270
+ {% javascript %}
271
+
272
+ $("area[rel^='prettyPhoto']").prettyPhoto();
273
+ $(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'pp_default',slideshow:3000, autoplay_slideshow: false,social_tools: false,counter_separator_label: false});
274
+ $(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
275
+
276
+ {% endjavascript %}
@@ -0,0 +1,396 @@
1
+ {% assign full = section.settings.full %}
2
+ {% assign margin = section.settings.margin | split: ',' %}
3
+ {% assign top = margin[0] %}
4
+ {% assign bottom = margin[1] %}
5
+
6
+ <div class="gallery-block style2" style="background:{{ section.settings.bg_color }};">
7
+ <div class="{% if section.settings.full %} container-bg {% else %}container{% endif %}" style="margin-top:{{top}}px; margin-bottom:{{bottom}}px;">
8
+ {%- assign product_limit = section.settings.limit -%}
9
+ {% if section.settings.portfolio_title != blank or section.settings.portfolio_text != blank %}
10
+ <div class="section-header section-header--small full-position-{{section.settings.heading_position}}">
11
+ <div class="border-title">
12
+ {% if section.settings.portfolio_title != blank %}
13
+ <h2 style="color:{{ section.settings.portfolio_title_clr }}">{{ section.settings.portfolio_title }}</h2>
14
+ {% endif %}
15
+
16
+ {% if section.settings.portfolio_text != blank %}
17
+ <div class="short-desc" style="color:{{ section.settings.portfolio_text_clr }};">
18
+ {{ section.settings.portfolio_text }}
19
+ </div>
20
+ {% endif %}
21
+ </div>
22
+ </div>
23
+ {% endif %}
24
+ <div class="dt-sc-hr-invisible-small"></div>
25
+
26
+ <div class="grid-uniform">
27
+ <div class="grid__item text-center">
28
+ <div class="sorting-container">
29
+ {% if section.settings.portfolio_tag_1 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".all-sort" class="active-all" href="#">{{ section.settings.portfolio_tag_1 }}</a>{% endif %}
30
+ {% if section.settings.portfolio_tag_2 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".{{ section.settings.portfolio_tag_2 | replace: ' ', '-' | downcase }}" href="#">{{ section.settings.portfolio_tag_2 }}</a> {% endif %}
31
+ {% if section.settings.portfolio_tag_3 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".{{ section.settings.portfolio_tag_3 | replace: ' ', '-' | downcase }}" href="#">{{ section.settings.portfolio_tag_3 }}</a> {% endif %}
32
+ {% if section.settings.portfolio_tag_4 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".{{ section.settings.portfolio_tag_4 | replace: ' ', '-' | downcase }}" href="#">{{ section.settings.portfolio_tag_4 }}</a> {% endif %}
33
+ {% if section.settings.portfolio_tag_5 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".{{ section.settings.portfolio_tag_5 | replace: ' ', '-' | downcase }}" href="#">{{ section.settings.portfolio_tag_5 }}</a> {% endif %}
34
+ {% if section.settings.portfolio_tag_6 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".{{ section.settings.portfolio_tag_6 | replace: ' ', '-' | downcase }}" href="#">{{ section.settings.portfolio_tag_6 }}</a> {% endif %}
35
+ {% if section.settings.portfolio_tag_7 != blank %} <a style="color:{{ section.settings.tags_text_clr }};" data-filter=".{{ section.settings.portfolio_tag_7 | replace: ' ', '-' | downcase }}" href="#">{{ section.settings.portfolio_tag_7 }}</a> {% endif %}
36
+ </div>
37
+ </div>
38
+ {% case section.settings.grid %}
39
+ {% when '2' %}
40
+ {%- assign grid_item_width = 'wide--one-half post-large--one-half large--one-half medium--one-half small-grid__item' -%}
41
+ {% when '3' %}
42
+ {%- assign grid_item_width = 'wide--one-third post-large--one-third large--one-third medium--one-third small-grid__item' -%}
43
+ {% when '4' %}
44
+ {%- assign grid_item_width = 'wide--one-quarter post-large--one-quarter large--one-half medium--one-half small-grid__item' -%}
45
+ {% when '5' %}
46
+ {%- assign grid_item_width = 'wide--one-fifth post-large--one-fifth large--one-half medium--one-half small-grid__item' -%}
47
+ {% endcase %}
48
+ <div class="list-gallery-items portfolio-container">
49
+ {% if section.blocks.size > 0 %}
50
+ {% for block in section.blocks %}
51
+ <div class="column grid__item {{ grid_item_width }} small--grid__item text-center gallery no-space {{ block.settings.tag_list | downcase }} all-sort">
52
+
53
+ <ul>
54
+ {% if block.settings.image_1 != blank %}
55
+ <li>
56
+ <img src="{{ block.settings.image_1 | img_url: '960x' }}" alt="{{ product.title }}" />
57
+ <div class="image-overlay">
58
+
59
+ <div class="links">
60
+
61
+ <a href="{{ block.settings.gallery_link }}" class="link"><i class="fas fa-link icons"></i></a>
62
+ <a href="{{ block.settings.image_1 | img_url: '1024x1024' }}" class="portfolio_zoom" rel="prettyPhoto[gallery{{block.id}}]"><i class="fas fa-search icons"></i></a>
63
+ </div>
64
+ {% if block.settings.gallery_title != blank or block.settings.category != blank %}
65
+ <div class="image-overlay-details">
66
+ {% if block.settings.gallery_title != blank %} <h4><a href="{{ block.settings.gallery_link }}">{{ block.settings.gallery_title }}</a></h4>{% endif %}
67
+ {% if block.settings.category != blank %} <p>{{ block.settings.category }}</p>{% endif %}
68
+ </div>
69
+ {% endif %}
70
+ </div>
71
+ </li>
72
+ {% endif %}
73
+
74
+ {% if block.settings.image_2 != blank %}
75
+ <li style="display:none"> <a href="{{ block.settings.image_2 | img_url: '1024x1024' }}" class="portfolio_zoom" rel="prettyPhoto[gallery{{block.id}}]">
76
+ <img src="{{ block.settings.image_2 | img_url: '960x' }}" alt="{{ product.title }}" />
77
+ </a></li>
78
+ {% endif %}
79
+ {% if block.settings.image_3 != blank %}
80
+ <li style="display:none"> <a href="{{ block.settings.image_3 | img_url: '1024x1024' }}" class="portfolio_zoom" rel="prettyPhoto[gallery{{block.id}}]">
81
+ <img src="{{ block.settings.image_3 | img_url: '960x' }}" alt="{{ product.title }}" />
82
+ </a></li>
83
+ {% endif %}
84
+ {% if block.settings.image_4 != blank %}
85
+ <li style="display:none"> <a href="{{ block.settings.image_4 | img_url: '1024x1024' }}" class="portfolio_zoom" rel="prettyPhoto[gallery{{block.id}}]">
86
+ <img src="{{ block.settings.image_4 | img_url: '960x' }}" alt="{{ product.title }}" />
87
+ </a></li>
88
+ {% endif %}
89
+ </ul>
90
+
91
+
92
+ </div>
93
+ {% else %}
94
+
95
+ {% for i in (1..product_limit) %}
96
+ <div class="column grid__item {{ grid_item_width }} small--grid__item text-center no-space {% include 'port-check' %} all-sort">
97
+ <div class="grid-view-item">
98
+ <a href="#" class="grid-view-item__link">
99
+ <div class="grid-view-item__image">
100
+ {% capture current %}{% cycle 1, 2, 3, 4, 5, 6 %}{% endcapture %}
101
+ {{ 'product-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
102
+ </div>
103
+ </a>
104
+ </div>
105
+ </div>
106
+ {% endfor %}
107
+ {% endfor %}
108
+ {% endif %}
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </div>
113
+
114
+ <style>
115
+
116
+ .home-gallery-block .style2 .sorting-container a { border:1px solid {{ section.settings.tags_border }}; }
117
+ .home-gallery-block .style2 .sorting-container a:hover,.home-gallery-block .style2 .sorting-container a.active-all { color:{{ section.settings.tags_hover_text_clr }} !important; background:{{ section.settings.tags_hover_bg }};border:1px solid {{ section.settings.tags_hover_bg }}; }
118
+
119
+ .home-gallery-block .style2 .grid__item .image-overlay { background: {{ section.settings.img_overlay | color_modify: 'alpha', 0.7 }}; }
120
+ .home-gallery-block .style2 .grid__item:hover .image-overlay { opacity: 1;}
121
+ .home-gallery-block .style2 .grid__item .image-overlay .links a { border:2px solid {{ section.settings.img_overlay_icon }};color:{{ section.settings.img_overlay_icon_txt }}; }
122
+ .home-gallery-block .style2 .grid__item .image-overlay .links a:hover { background:{{ section.settings.img_overlay_icon_bg }};color:{{ section.settings.img_overlay_icon_hover_txt }}; }
123
+ .home-gallery-block .style2 .grid__item .image-overlay .image-overlay-details h4 a { color:{{ section.settings.img_overlay_title }}; }
124
+ .home-gallery-block .style2 .grid__item .image-overlay .image-overlay-details p { color:{{ section.settings.img_overlay_catgry }}; }
125
+
126
+ </style>
127
+
128
+ {% schema %}
129
+ {
130
+ "name": "Gallery Block 2",
131
+ "class": "index-section home-gallery-block",
132
+ "settings": [
133
+ {
134
+ "type": "checkbox",
135
+ "id": "full",
136
+ "label": "Show Full width"
137
+ },
138
+ {
139
+ "type": "text",
140
+ "id": "margin",
141
+ "label": "Style value (Margin)",
142
+ "default":"0,0",
143
+ "info":"Top(px),Bottom(px)"
144
+ },
145
+ {
146
+ "type": "color",
147
+ "id": "bg_color",
148
+ "label": "Bg",
149
+ "default": "#fff"
150
+ },
151
+ {
152
+ "type": "text",
153
+ "id": "portfolio_title",
154
+ "label": "Heading",
155
+ "default": "Best Sellers"
156
+ },
157
+ {
158
+ "type": "color",
159
+ "id": "portfolio_title_clr",
160
+ "label": "Heading",
161
+ "default": "#000"
162
+ },
163
+ {
164
+ "type": "richtext",
165
+ "id": "portfolio_text",
166
+ "label": "Description"
167
+ },
168
+ {
169
+ "type": "color",
170
+ "id": "portfolio_text_clr",
171
+ "label": "Description",
172
+ "default": "#000"
173
+ },
174
+ {
175
+ "type": "select",
176
+ "id": "heading_position",
177
+ "label": "Heading Position",
178
+ "options": [
179
+ {
180
+ "value": "default",
181
+ "label": "Full center"
182
+ },
183
+ {
184
+ "value": "full-left",
185
+ "label": "Full left"
186
+ },
187
+ {
188
+ "value": "full-right",
189
+ "label": "Full right"
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "type": "color",
195
+ "id": "tags_border",
196
+ "label": "Tag Border",
197
+ "default": "#000"
198
+ },
199
+ {
200
+ "type": "color",
201
+ "id": "tags_text_clr",
202
+ "label": "Tag Text",
203
+ "default": "#000"
204
+ },
205
+ {
206
+ "type": "color",
207
+ "id": "tags_hover_bg",
208
+ "label": "Tags Hover Bg",
209
+ "default": "#000"
210
+ },
211
+ {
212
+ "type": "color",
213
+ "id": "tags_hover_text_clr",
214
+ "label": "Tags Hover",
215
+ "default": "#000"
216
+ },
217
+ {
218
+ "type": "color",
219
+ "id": "img_overlay",
220
+ "label": "Image Overlay",
221
+ "default": "#000"
222
+ },
223
+ {
224
+ "type": "color",
225
+ "id": "img_overlay_title",
226
+ "label": "Overlay Title",
227
+ "default": "#000"
228
+ },
229
+ {
230
+ "type": "color",
231
+ "id": "img_overlay_catgry",
232
+ "label": "Overlay Category",
233
+ "default": "#000"
234
+ },
235
+ {
236
+ "type": "color",
237
+ "id": "img_overlay_icon",
238
+ "label": "Overlay Icon Border",
239
+ "default": "#000"
240
+ },
241
+ {
242
+ "type": "color",
243
+ "id": "img_overlay_icon_txt",
244
+ "label": "Overlay Icon Text",
245
+ "default": "#000"
246
+ },
247
+ {
248
+ "type": "color",
249
+ "id": "img_overlay_icon_bg",
250
+ "label": "Overlay Icon Hover Bg",
251
+ "default": "#000"
252
+ },
253
+ {
254
+ "type": "color",
255
+ "id": "img_overlay_icon_hover_txt",
256
+ "label": "Overlay Icon Hover Text",
257
+ "default": "#000"
258
+ },
259
+ {
260
+ "type": "text",
261
+ "id": "portfolio_tag_1",
262
+ "label": "Tag 1"
263
+ },
264
+ {
265
+ "type": "text",
266
+ "id": "portfolio_tag_2",
267
+ "label": "Tag 2"
268
+ },
269
+ {
270
+ "type": "text",
271
+ "id": "portfolio_tag_3",
272
+ "label": "Tag 3"
273
+ },
274
+ {
275
+ "type": "text",
276
+ "id": "portfolio_tag_4",
277
+ "label": "Tag 4"
278
+ },
279
+ {
280
+ "type": "text",
281
+ "id": "portfolio_tag_5",
282
+ "label": "Tag 5"
283
+ },
284
+ {
285
+ "type": "text",
286
+ "id": "portfolio_tag_6",
287
+ "label": "Tag 6"
288
+ },
289
+ {
290
+ "type": "text",
291
+ "id": "portfolio_tag_7",
292
+ "label": "Tag 7"
293
+ },
294
+ {
295
+ "type": "select",
296
+ "id": "grid",
297
+ "label": "Products per row",
298
+ "default": "3",
299
+ "options": [
300
+ {
301
+ "value": "2",
302
+ "label": "2"
303
+ },
304
+ {
305
+ "value": "3",
306
+ "label": "3"
307
+ },
308
+ {
309
+ "value": "4",
310
+ "label": "4"
311
+ },
312
+ {
313
+ "value": "5",
314
+ "label": "5"
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "type": "text",
320
+ "id": "limit",
321
+ "label": "Product Limit",
322
+ "default": "4"
323
+ }
324
+ ],
325
+ "blocks": [
326
+ {
327
+ "type": "text",
328
+ "name": "Gallery Images",
329
+ "settings": [
330
+
331
+ {
332
+ "type": "textarea",
333
+ "id": "tag_list",
334
+ "label": "Tag",
335
+ "default": "All"
336
+ },
337
+ {
338
+ "type": "image_picker",
339
+ "id": "image_1",
340
+ "label": "Gallery image 1",
341
+ "info": "Size: 650x761"
342
+ },
343
+ {
344
+ "type": "image_picker",
345
+ "id": "image_2",
346
+ "label": "Gallery image 2",
347
+ "info": "Size: 650x761"
348
+ },
349
+ {
350
+ "type": "image_picker",
351
+ "id": "image_3",
352
+ "label": "Gallery image 3",
353
+ "info": "Size: 650x761"
354
+ },
355
+ {
356
+ "type": "image_picker",
357
+ "id": "image_4",
358
+ "label": "Gallery image 4",
359
+ "info": "Size: 650x761"
360
+ },
361
+ {
362
+ "type": "text",
363
+ "id": "gallery_title",
364
+ "label": "Title"
365
+ },
366
+ {
367
+ "type": "text",
368
+ "id": "category",
369
+ "label": "Category"
370
+ },
371
+ {
372
+ "type": "text",
373
+ "id": "gallery_link",
374
+ "label": "Link"
375
+ }
376
+
377
+ ]
378
+ }
379
+ ],
380
+ "presets": [
381
+ {
382
+ "name": "Gallery Block 2",
383
+ "category": "Image",
384
+ "blocks": [ ]
385
+ }
386
+ ]
387
+ }
388
+ {% endschema %}
389
+
390
+ {% javascript %}
391
+
392
+ $("area[rel^='prettyPhoto']").prettyPhoto();
393
+ $(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'pp_default',slideshow:3000, autoplay_slideshow: false,social_tools: false,counter_separator_label: false});
394
+ $(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
395
+
396
+ {% endjavascript %}