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,783 @@
1
+ {% if section.settings.enable_overlay %}
2
+ {% assign section_overlay = 'dt-sc-overlay' %}
3
+ {% endif %}
4
+
5
+ {% case section.settings.grid %}
6
+ {% when '1' %}
7
+ {%- assign column = 'one-column' -%}
8
+ {% when '2' %}
9
+ {%- assign column = 'two-column' -%}
10
+ {% when '3' %}
11
+ {%- assign column = 'three-column' -%}
12
+ {% when '4' %}
13
+ {%- assign column = 'four-column' -%}
14
+ {% when '5' %}
15
+ {%- assign column = 'five-column' -%}
16
+ {% when '6' %}
17
+ {%- assign column = 'six-column' -%}
18
+ {% else %}
19
+ {%- assign column = 'five-column' -%}
20
+ {% endcase %}
21
+ {% if section.settings.show_background_image %}
22
+ {% assign lazyScript = "lazyload" %}
23
+ {% endif %}
24
+ {% if section.settings.enable_slider %}
25
+ <div data-section-id="{{ section.id }}" data-section-type="home-image-gallery" data-item-per-view="{{ section.settings.items_per_view }}" data-autoplay="{{section.settings.slider_autoplay}}" data-small-screen-items="1" data-blocks-limit="{{section.blocks.size}}" data-item-space="{{section.settings.column_gap}}" data-auto-height="{{section.settings.enable_auto_height}}">
26
+ {% endif %}
27
+ <div class="dt-sc-section-wrapper {{lazyScript}} {{section_overlay}} {% if section.settings.background_style == 'parallax' %} parallax-initiated{% endif %}" style="{% render 'bg-color-image-padding' %}" data-style="parallax" {{background_style}} {% include 'bg_image' %}>
28
+ <div class="{% render 'container-settings' %}">
29
+ <div class="row {{ section.settings.custom_class_name }}">
30
+ {% render 'section-heading', class: section.id %}
31
+ <div class="image-bar__section">
32
+ {%- if section.blocks.size > 0 -%}
33
+ {% if section.settings.enable_slider %} <div class="dt-sc-swiper-slider swiper-container {% if section.settings.dots %} {{ section.settings.carousel_pagination_alignment }} {% endif %} {% if section.settings.arrows %} {{ section.settings.nav_arrow_position }} {{ section.settings.center_nav_arrow_alignment }} {% endif %}"> {% endif %}
34
+ {% if section.settings.enable_slider %} <div id="swiper-{{section.id}}-slider" class="{{section.settings.block_style}}"> {% endif %}
35
+ <ul class="image-bar__section-inner {% if section.settings.enable_slider %}swiper-wrapper{% endif %} {% unless section.settings.enable_slider %} dt-sc-column {{column}} {% endunless %}">
36
+ {%- for block in section.blocks -%}
37
+ <li class="image-bar__item {% if section.settings.enable_slider %}swiper-slide{% endif %}" {{ block.shopify_attributes }} >
38
+ {%- if block.settings.link != blank -%}
39
+ <a href="{{ block.settings.link }}">
40
+ {%- endif -%}
41
+ {%- if block.settings.image != blank -%}
42
+ {%- assign img_url = block.settings.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
43
+ <img class="lazyload"
44
+ src="{{ 'loading.gif' | asset_url }}"
45
+ data-src="{{ img_url }}"
46
+ data-widths="[180, 360, 470, 600, 770, 970, 1060, 1280, 1512, 1728, 2048]"
47
+ data-aspectratio="{{ block.settings.image.aspect_ratio }}"
48
+ data-sizes="auto"
49
+ alt="{{ block.settings.image.alt}}">
50
+ <noscript>
51
+ {{ block.settings.image | img_url: '480x480', scale: 2 | img_tag: block.settings.image.alt, 'dt-sc-noscript-image' }}
52
+ </noscript>
53
+ {%- else -%}
54
+ {{ 'image' | placeholder_svg_tag }}
55
+ {%- endif -%}
56
+ {%- if block.settings.link != blank -%}
57
+ </a>
58
+ {%- endif -%}
59
+ </li>
60
+ {%- endfor -%}
61
+ </ul>
62
+ {% if section.settings.enable_slider %} </div>{% endif %}
63
+ {% if section.settings.enable_slider %}
64
+ {% if section.settings.arrows %}
65
+ <div class="swiper-{{ section.id}}-arrows swiper-arrows">
66
+ <div id="swiper-{{ section.id}}-next" class="swiper-button-next dt-sc-btn"></div>
67
+ <div id="swiper-{{ section.id}}-prev" class="swiper-button-prev dt-sc-btn"></div>
68
+ </div>
69
+ {% endif %}
70
+ {% if section.settings.dots %}
71
+ <div id="swiper-{{ section.id}}-pagination" class="swiper-pagination"></div>
72
+ {% endif %}
73
+ {% endif %}
74
+ {% if section.settings.enable_slider %} </div>{% endif %}
75
+ {%- endif -%}
76
+ {% if section.settings.image_list_text != blank and section.settings.image_list_link != blank %}
77
+ <a href="{{section.settings.image_list_link}}" class="dt-sc-image-list-btn">{{section.settings.image_list_text}}</a>
78
+ {% endif %}
79
+ </div>
80
+ </div>
81
+
82
+ </div>
83
+ </div>
84
+ {% if section.settings.enable_slider %}
85
+ </div>
86
+ {% endif %}
87
+
88
+ <style>
89
+
90
+ #shopify-section-{{section.id}}.home-image-gallery .dt-sc-heading .dt-sc-main-heading { color: var(--DTColor_Heading); color:{{ section.settings.section_heading_color }}; }
91
+ #shopify-section-{{section.id}}.home-image-gallery .dt-sc-heading .dt-sc-sub-heading { color: var(--DTColor_Heading); color:{{ section.settings.section_sub_heading_color }}; }
92
+ #shopify-section-{{section.id}}.home-image-gallery .dt-sc-heading .dt-sc-heading-description { color: var(--DTColor_Body); color:{{ section.settings.section_description_color }}; }
93
+ #shopify-section-{{section.id}}.home-image-gallery .dt-sc-heading .dt-sc-btn {
94
+ background: var(--DT_Button_BG_Color); background:{{ section.settings.section_button_bg_color }};
95
+ color: var(--DT_Button_Text_Color); color:{{ section.settings.section_button_text_color }};
96
+ }
97
+ #shopify-section-{{section.id}}.home-image-gallery .dt-sc-heading .dt-sc-btn:hover {
98
+ background: var(--DT_Button_BG_Hover_Color); background:{{ section.settings.section_button_hover_bg_color }};
99
+ color: var(--DT_Button_Text_Hover_Color); color:{{ section.settings.section_button_hover_text_color }};
100
+ }
101
+
102
+ #shopify-section-{{section.id}}.home-image-gallery .dt-sc-overlay:before {
103
+ color: var(--DTTertiaryColor);
104
+ color: {{ section.settings.background_color }};
105
+ background: currentcolor;
106
+ opacity: {{ section.settings.overlay_transparency }};
107
+ }
108
+
109
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item {
110
+ display: flex;
111
+ flex-wrap: wrap;
112
+ align-items: center;
113
+ justify-content: center;
114
+ flex-direction: column;
115
+ text-align: center;
116
+ height: {{section.settings.item_height}}px;
117
+ }
118
+
119
+
120
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item a,
121
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item img { height: 100%;
122
+ width: 100%;
123
+ object-fit: cover;
124
+ }
125
+
126
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item svg {
127
+ min-width: 150px;
128
+ height: auto;
129
+ }
130
+
131
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section {
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: center;
135
+ flex-wrap: wrap;
136
+ position: relative;
137
+ }
138
+
139
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .image-bar__section-inner { margin: 0; }
140
+
141
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .dt-sc-image-list-btn { position: absolute; padding: 20px 80px; border-radius: var(--DTRadius);
142
+ z-index: 1;
143
+ }
144
+
145
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .dt-sc-image-list-btn {
146
+ background: var(--DT_Button_BG_Color); background-color: {{ section.settings.image_link_bg_color }};
147
+ color: var(--DT_Button_Text_Color); color: {{ section.settings.image_link_text_color }}; }
148
+
149
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .dt-sc-image-list-btn:hover { background: var(--DT_Button_BG_Hover_Color);
150
+ background-color: {{ section.settings.image_link_hover_bg_color }};
151
+ color: var(--DT_Button_Text_Hover_Color); color: {{ section.settings.image_link_hover_text_color }}; }
152
+
153
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section-inner { gap: var(--DTGutter_Width); gap: {{ section.settings.column_gap}}px; }
154
+
155
+
156
+ /* Carousel Styles */
157
+
158
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container { width: 100%; }
159
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container [class*="swiper-container"] { margin: 0; padding: 0; }
160
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container [class*="swiper-container"] .image-bar__section-inner { gap: 0; }
161
+
162
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container .swiper-arrows > .dt-sc-btn[class*="swiper-button-"] {
163
+ background: var(--DT_Button_BG_Color);
164
+ background: {{ section.settings.navigation_button_color }};
165
+ }
166
+
167
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container .swiper-arrows > .dt-sc-btn[class*="swiper-button-"]:after {
168
+ color: var(--DT_Button_Text_Color);
169
+ color: {{ section.settings.navigation_button_icon_color }};
170
+ }
171
+
172
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container .swiper-arrows > .dt-sc-btn:hover {
173
+ background: var(--DT_Button_BG_Hover_Color);
174
+ background: {{ section.settings.navigation_button_hover_color }};
175
+ }
176
+
177
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container .swiper-arrows > .dt-sc-btn:hover[class*="swiper-button-"]:after {
178
+ color: var(--DT_Button_Text_Hover_Color);
179
+ color: {{ section.settings.navigation_button_hover_icon_color }};
180
+ }
181
+
182
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container .swiper-pagination-bullet {
183
+ background: var(--DTSecondaryColor);
184
+ background: {{ section.settings.navigation_dot_color }};
185
+ }
186
+
187
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .swiper-container .swiper-pagination-bullet.swiper-pagination-bullet-active {
188
+ background: var(--DTPrimaryColor);
189
+ background: {{ section.settings.navigation_dot_active_color }};
190
+ }
191
+
192
+
193
+
194
+ @media (max-width:1540px) {
195
+
196
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item { height: {{section.settings.item_height_laptop}}px; }
197
+
198
+ }
199
+
200
+ @media (max-width:1199px) {
201
+
202
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item { height: {{section.settings.item_height_tab}}px; }
203
+
204
+ }
205
+
206
+ @media (max-width:767px) {
207
+
208
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .dt-sc-image-list-btn { position: static; margin-top: 30px; }
209
+
210
+
211
+ {% if section.settings.remove_button_space %}
212
+
213
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .dt-sc-image-list-btn { margin-top: 0; }
214
+
215
+ {% endif %}
216
+
217
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__item { height: {{section.settings.item_height_mobile}}px; }
218
+
219
+ }
220
+
221
+ @media only screen and (min-width: 577px) and (max-width: 767px) {
222
+
223
+ #shopify-section-{{section.id}}.home-image-gallery .image-bar__section .image-bar__section-inner { grid-template-columns: repeat(2,1fr); }
224
+
225
+ }
226
+
227
+ </style>
228
+ {% if section.settings.enable_slider %}
229
+ <script type="text/javascript">
230
+ function homeImageGallery(){
231
+ var dataSectionType = $('[data-section-type="home-image-gallery"]');
232
+ var id = dataSectionType.attr('data-section-id');
233
+ var ItemsPerView = +dataSectionType.attr('data-item-per-view');
234
+ // var ItemsRow = +dataSectionType.attr('data-item-row');
235
+ var ItemsSpace = +dataSectionType.attr('data-item-space');
236
+ var autoHeight = +dataSectionType.attr('data-auto-height') || false;
237
+ var ItemsLimit = +dataSectionType.attr('data-blocks-limit');
238
+ var Autoplay = +dataSectionType.attr('data-autoplay') * 1000;
239
+ var mobileSlides = +dataSectionType.attr('data-small-screen-items') || 1;
240
+ var initAutoplay = Autoplay ? { delay: Autoplay } : false;
241
+ var swiper = new Swiper('#swiper-' + id + '-slider', {
242
+ pagination: {
243
+ el: '#swiper-' + id + '-pagination',
244
+ clickable: true
245
+ },
246
+ navigation: {
247
+ nextEl: '#swiper-' + id + '-next',
248
+ prevEl: '#swiper-' + id + '-prev'
249
+ },
250
+ loop: false,
251
+ slidesPerView: ItemsPerView,
252
+ // slidesPerColumn: ItemsRow,
253
+ spaceBetween: ItemsSpace,
254
+ autoHeight: autoHeight,
255
+ simulateTouch: true,
256
+ autoplay: initAutoplay,
257
+ breakpoints: {
258
+ 320: {
259
+ slidesPerView: mobileSlides,
260
+ spaceBetween: 20,
261
+ },
262
+ 640: {
263
+ slidesPerView: 2,
264
+ spaceBetween: 20,
265
+ },
266
+ 768: {
267
+ slidesPerView: 3,
268
+ spaceBetween: 40,
269
+ },
270
+ 1024: {
271
+ slidesPerView: ItemsPerView,
272
+ spaceBetween: 50,
273
+ },
274
+ },
275
+ });
276
+ }
277
+ $(document).ready(function(){
278
+ homeImageGallery();
279
+ })
280
+ $(document)
281
+ .on('shopify:section:load', homeImageGallery)
282
+ .on('shopify:section:unload', homeImageGallery)
283
+ </script>
284
+ {% endif %}
285
+ {% schema %}
286
+ {
287
+ "name": "Image list",
288
+ "class": "index-section home-image-gallery",
289
+ "max_blocks": 10,
290
+ "settings": [
291
+ {
292
+ "type": "checkbox",
293
+ "id": "full",
294
+ "label": "Show Full width"
295
+ },
296
+ {
297
+ "type": "checkbox",
298
+ "id": "spacing_both_ends",
299
+ "label": "Enable Right & Left Spacing (Works only on Fullwidth)",
300
+ "default": false
301
+ },
302
+ {
303
+ "type": "text",
304
+ "id": "padding",
305
+ "label": "Style value (Padding)",
306
+ "default":"0,0",
307
+ "info":"Top(px),Bottom(px)"
308
+ },
309
+ {
310
+ "type": "text",
311
+ "id": "margin",
312
+ "label": "Style value (Margin)",
313
+ "default":"0,0",
314
+ "info":"Top(px),Bottom(px)"
315
+ },
316
+ {
317
+ "type": "image_picker",
318
+ "id": "background_image",
319
+ "label": "Background image",
320
+ "info": "Size: 1920x1280"
321
+ },
322
+ {
323
+ "type": "checkbox",
324
+ "id": "show_background_image",
325
+ "label": "Enable Background image"
326
+ },
327
+ {
328
+ "type": "select",
329
+ "id": "background_style",
330
+ "label": "Background Style",
331
+ "default": "default",
332
+ "options": [
333
+ {
334
+ "value": "default",
335
+ "label": "Default"
336
+ },
337
+ {
338
+ "value": "parallax",
339
+ "label": "Parallax"
340
+ },
341
+ {
342
+ "value": "fixed",
343
+ "label": "Fixed"
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "type": "checkbox",
349
+ "id": "enable_overlay",
350
+ "label": "Enable Background Color (Used as Background Image Overlay Color too)"
351
+ },
352
+ {
353
+ "type": "color",
354
+ "id": "background_color",
355
+ "label":"Background color"
356
+ },
357
+ {
358
+ "type": "text",
359
+ "id": "overlay_transparency",
360
+ "label": "Overlay Transparency (0.01 to 1)",
361
+ "default": "0.5"
362
+ },
363
+ {
364
+ "type": "text",
365
+ "id": "section_heading",
366
+ "label": "Main Heading",
367
+ "default": "Image list"
368
+ },
369
+ {
370
+ "type": "text",
371
+ "id": "section_sub_heading",
372
+ "label": "Sub Heading",
373
+ "default": "Sub Heading"
374
+ },
375
+ {
376
+ "type": "text",
377
+ "id": "section_description",
378
+ "label": "Description",
379
+ "default": "Use this text to share the information which you like!."
380
+ },
381
+ {
382
+ "type": "text",
383
+ "id": "section_button_text",
384
+ "label": "Link text"
385
+ },
386
+ {
387
+ "type": "url",
388
+ "id": "section_button_link",
389
+ "label": "Link URL"
390
+ },
391
+ {
392
+ "type": "header",
393
+ "content": "Section Color settings"
394
+ },
395
+ {
396
+ "type": "color",
397
+ "id": "section_heading_color",
398
+ "label": "Heading color"
399
+ },
400
+ {
401
+ "type": "color",
402
+ "id": "section_sub_heading_color",
403
+ "label": "Sub heading color"
404
+ },
405
+ {
406
+ "type": "color",
407
+ "id": "section_description_color",
408
+ "label": "Description color"
409
+ },
410
+ {
411
+ "type": "color",
412
+ "id": "section_button_bg_color",
413
+ "label": "Button bg color"
414
+ },
415
+ {
416
+ "type": "color",
417
+ "id": "section_button_text_color",
418
+ "label": "Button text color"
419
+ },
420
+ {
421
+ "type": "color",
422
+ "id": "section_button_hover_bg_color",
423
+ "label": "Button hover bg color"
424
+ },
425
+ {
426
+ "type": "color",
427
+ "id": "section_button_hover_text_color",
428
+ "label": "Button hover text color"
429
+ },
430
+ {
431
+ "type": "select",
432
+ "id": "heading_position",
433
+ "label": "Heading Position",
434
+ "options": [
435
+ {
436
+ "value": "text-center",
437
+ "label": "Center"
438
+ },
439
+ {
440
+ "value": "text-start",
441
+ "label": "Left"
442
+ },
443
+ {
444
+ "value": "text-end",
445
+ "label": "Right"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "type": "header",
451
+ "content": "Block Settings"
452
+ },
453
+ {
454
+ "type": "select",
455
+ "id": "grid",
456
+ "label": "Items per row",
457
+ "default": "5",
458
+ "options": [
459
+ {
460
+ "value": "1",
461
+ "label": "1"
462
+ },
463
+ {
464
+ "value": "2",
465
+ "label": "2"
466
+ },
467
+ {
468
+ "value": "3",
469
+ "label": "3"
470
+ },
471
+ {
472
+ "value": "4",
473
+ "label": "4"
474
+ },
475
+ {
476
+ "value": "5",
477
+ "label": "5"
478
+ },
479
+ {
480
+ "value": "6",
481
+ "label": "6"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "type": "text",
487
+ "id": "column_gap",
488
+ "label": "Column Gap",
489
+ "default":"30",
490
+ "info": "Units not needed"
491
+ },
492
+ {
493
+ "type": "text",
494
+ "id": "image_list_text",
495
+ "label": "Image Link text"
496
+ },
497
+ {
498
+ "type": "url",
499
+ "id": "image_list_link",
500
+ "label": "Image Link URL"
501
+ },
502
+ {
503
+ "type": "header",
504
+ "content": "Item Height Settings"
505
+ },
506
+ {
507
+ "type": "range",
508
+ "id": "item_height",
509
+ "label": "Item Height",
510
+ "min": 50,
511
+ "max": 1000,
512
+ "step": 10,
513
+ "default": 450,
514
+ "unit": "px"
515
+ },
516
+ {
517
+ "type": "range",
518
+ "id": "item_height_laptop",
519
+ "label": "Item Height - Laptop (Small Screens)",
520
+ "min": 50,
521
+ "max": 1000,
522
+ "step": 10,
523
+ "default": 400,
524
+ "unit": "px"
525
+ },
526
+ {
527
+ "type": "range",
528
+ "id": "item_height_tab",
529
+ "label": "Item Height - Tablet",
530
+ "min": 50,
531
+ "max": 1000,
532
+ "step": 10,
533
+ "default": 350,
534
+ "unit": "px"
535
+ },
536
+ {
537
+ "type": "range",
538
+ "id": "item_height_mobile",
539
+ "label": "Item Height - Mobile",
540
+ "min": 50,
541
+ "max": 1000,
542
+ "step": 10,
543
+ "default": 300,
544
+ "unit": "px"
545
+ },
546
+ {
547
+ "type": "header",
548
+ "content": "Image Link Color settings"
549
+ },
550
+ {
551
+ "type": "color",
552
+ "id": "image_link_bg_color",
553
+ "label": "Image Link bg color"
554
+ },
555
+ {
556
+ "type": "color",
557
+ "id": "image_link_text_color",
558
+ "label": "Image Link text color"
559
+ },
560
+ {
561
+ "type": "color",
562
+ "id": "image_link_hover_bg_color",
563
+ "label": "Image Link hover bg color"
564
+ },
565
+ {
566
+ "type": "color",
567
+ "id": "image_link_hover_text_color",
568
+ "label": "Image Link hover text color"
569
+ },
570
+ {
571
+ "type": "header",
572
+ "content": "Carousel Settings"
573
+ },
574
+ {
575
+ "type": "checkbox",
576
+ "id": "enable_slider",
577
+ "label": "Enable Carousel",
578
+ "default": false
579
+ },
580
+ {
581
+ "type": "checkbox",
582
+ "id": "remove_button_space",
583
+ "label": "Adjust Space, If Paginations are Disabled",
584
+ "default": false
585
+ },
586
+ {
587
+ "type": "checkbox",
588
+ "id": "enable_auto_height",
589
+ "label": "Enable auto height",
590
+ "default": true
591
+ },
592
+
593
+ {
594
+ "type": "range",
595
+ "id": "items_per_view",
596
+ "label": "Slide per row",
597
+ "min": 2,
598
+ "max": 5,
599
+ "step": 1,
600
+ "default": 4
601
+ },
602
+ {
603
+ "type": "range",
604
+ "id": "slider_autoplay",
605
+ "min": 0,
606
+ "max": 7,
607
+ "step": 1,
608
+ "label": "Autoplay timing",
609
+ "default": 0,
610
+ "unit": "sec",
611
+ "info": "Use 0 to stop auto rotate"
612
+ },
613
+ {
614
+ "type": "checkbox",
615
+ "id": "dots",
616
+ "label": "Enable Carousel Pagination",
617
+ "default": true
618
+ },
619
+ {
620
+ "type": "select",
621
+ "id": "carousel_pagination_alignment",
622
+ "label": "Carousel Pagination Alignment (Only Bottom)",
623
+ "options": [
624
+ {
625
+ "value": "left_pagination",
626
+ "label": "Left Aligned"
627
+ },
628
+ {
629
+ "value": "center_pagination",
630
+ "label": "Center Aligned"
631
+ },
632
+ {
633
+ "value": "right_pagination",
634
+ "label": "Right Aligned"
635
+ }
636
+ ],
637
+ "default": "center_pagination"
638
+ },
639
+ {
640
+ "type": "checkbox",
641
+ "id": "arrows",
642
+ "label": "Enable Navigation Arrows",
643
+ "default": true
644
+ },
645
+ {
646
+ "type": "select",
647
+ "id": "nav_arrow_position",
648
+ "label": "Navigation Arrows position",
649
+ "options": [
650
+ {
651
+ "value": "navigation-top-left",
652
+ "label": "Top Left"
653
+ },
654
+ {
655
+ "value": "navigation-top-center",
656
+ "label": "Top Center"
657
+ },
658
+ {
659
+ "value": "navigation-top-right",
660
+ "label": "Top Right"
661
+ },
662
+ {
663
+ "value": "center-navigation",
664
+ "label": "Center"
665
+ },
666
+ {
667
+ "value": "navigation-bottom-left",
668
+ "label": "Bottom left"
669
+ },
670
+ {
671
+ "value": "navigation-bottom-center",
672
+ "label": "Bottom center"
673
+ },
674
+ {
675
+ "value": "navigation-bottom-right",
676
+ "label": "Bottom right"
677
+ }
678
+ ],
679
+ "default": "navigation-bottom-center"
680
+ },
681
+ {
682
+ "type": "select",
683
+ "id": "center_nav_arrow_alignment",
684
+ "label": "Center navigation alignment (Select 'Center', in the above dropdown)",
685
+ "options": [
686
+ {
687
+ "value": "outside_container",
688
+ "label": "Outside Container (not for Full width Section)"
689
+ },
690
+ {
691
+ "value": "along_with_container",
692
+ "label": "Along with Container"
693
+ },
694
+ {
695
+ "value": "inside_container",
696
+ "label": "Inside Container"
697
+ }
698
+ ],
699
+ "default": "outside_container"
700
+ },
701
+ {
702
+ "type": "color",
703
+ "id": "navigation_button_color",
704
+ "label": "Navigation Button Bg Color"
705
+ },
706
+ {
707
+ "type": "color",
708
+ "id": "navigation_button_icon_color",
709
+ "label": "Navigation Button Icon Color"
710
+ },
711
+ {
712
+ "type": "color",
713
+ "id": "navigation_button_hover_color",
714
+ "label": "Navigation Button Hover Bg Color"
715
+ },
716
+ {
717
+ "type": "color",
718
+ "id": "navigation_button_hover_icon_color",
719
+ "label": "Navigation Button Hover Icon Color"
720
+ },
721
+ {
722
+ "type": "color",
723
+ "id": "navigation_dot_color",
724
+ "label": "Navigation Dot Color"
725
+ },
726
+ {
727
+ "type": "color",
728
+ "id": "navigation_dot_active_color",
729
+ "label": "Navigation Dot Active Color"
730
+ },
731
+ {
732
+ "type": "header",
733
+ "content": "Custom class"
734
+ },
735
+ {
736
+ "type": "text",
737
+ "id": "custom_class_name",
738
+ "label": "Add your custom class name here"
739
+ }
740
+ ],
741
+ "blocks": [
742
+ {
743
+ "type": "image_image",
744
+ "name": "Image",
745
+ "settings": [
746
+ {
747
+ "type": "image_picker",
748
+ "id": "image",
749
+ "label": "Image"
750
+ },
751
+ {
752
+ "type": "url",
753
+ "id": "link",
754
+ "label": "Link (Optional)"
755
+ }
756
+ ]
757
+ }
758
+ ],
759
+ "presets": [
760
+ {
761
+ "name": "Image list",
762
+ "category": "Image",
763
+ "blocks": [
764
+ {
765
+ "type": "image_image"
766
+ },
767
+ {
768
+ "type": "image_image"
769
+ },
770
+ {
771
+ "type": "image_image"
772
+ },
773
+ {
774
+ "type": "image_image"
775
+ },
776
+ {
777
+ "type": "image_image"
778
+ }
779
+ ]
780
+ }
781
+ ]
782
+ }
783
+ {% endschema %}