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.
- package/assets/data/block-patterns.csv +160 -0
- package/assets/data/component-library/GDPR-modal.liquid +183 -0
- package/assets/data/component-library/Ishi_parallaxblockstyle1.liquid +331 -0
- package/assets/data/component-library/_index.csv +157 -19
- package/assets/data/component-library/about.liquid +1557 -0
- package/assets/data/component-library/adv-header.liquid +344 -0
- package/assets/data/component-library/adv-navigation.liquid +542 -0
- package/assets/data/component-library/announcement-bar.liquid +42 -60
- package/assets/data/component-library/article.liquid +242 -0
- package/assets/data/component-library/axeo-perfume-cosmetics-store-shopify-theme-about.liquid +1557 -0
- package/assets/data/component-library/basel-gl_newsletter_pets.liquid +612 -0
- package/assets/data/component-library/bixbang-fullpackage-collection-template.liquid +990 -0
- package/assets/data/component-library/blog-sidebar-article.liquid +51 -0
- package/assets/data/component-library/blog-sidebar-deals.liquid +189 -0
- package/assets/data/component-library/blog-sidebar-instagram.liquid +126 -0
- package/assets/data/component-library/blog-sidebar-tags.liquid +30 -0
- package/assets/data/component-library/blog.liquid +371 -0
- package/assets/data/component-library/brands-page.liquid +114 -0
- package/assets/data/component-library/cake-shop-shopify-theme-for-bakery-and-cafe-home-support-blo.liquid +780 -0
- package/assets/data/component-library/collection-template-promotion.liquid +1139 -0
- package/assets/data/component-library/collection-template.liquid +146 -0
- package/assets/data/component-library/contact-us.liquid +663 -0
- package/assets/data/component-library/contact.liquid +256 -0
- package/assets/data/component-library/copyright_payment.liquid +95 -0
- package/assets/data/component-library/custom-content.liquid +832 -0
- package/assets/data/component-library/faq-template-3.liquid +1014 -0
- package/assets/data/component-library/footer-model-1.liquid +503 -0
- package/assets/data/component-library/footer-model-10.liquid +210 -0
- package/assets/data/component-library/footer-model-2.liquid +460 -0
- package/assets/data/component-library/footer-model-3.liquid +548 -0
- package/assets/data/component-library/footer-model-4.liquid +455 -0
- package/assets/data/component-library/footer-model-5.liquid +407 -0
- package/assets/data/component-library/footer-model-6.liquid +543 -0
- package/assets/data/component-library/footer-model-7.liquid +345 -0
- package/assets/data/component-library/footer-model-8.liquid +279 -0
- package/assets/data/component-library/footer-model-9.liquid +376 -0
- package/assets/data/component-library/gallery.liquid +236 -0
- package/assets/data/component-library/gecko-shopify-v5-7-6-nulled-manual_blog.liquid +720 -0
- package/assets/data/component-library/gl_newsletter_pets.liquid +612 -0
- package/assets/data/component-library/gp-logo-list.liquid +362 -0
- package/assets/data/component-library/grid-banner-type-3-b.liquid +655 -0
- package/assets/data/component-library/header-model-1.liquid +427 -0
- package/assets/data/component-library/header-model-10.liquid +599 -0
- package/assets/data/component-library/header-model-2.liquid +633 -0
- package/assets/data/component-library/header-model-3.liquid +415 -0
- package/assets/data/component-library/header-model-4.liquid +754 -0
- package/assets/data/component-library/header-model-5.liquid +562 -0
- package/assets/data/component-library/header-model-6.liquid +713 -0
- package/assets/data/component-library/header-model-7.liquid +743 -0
- package/assets/data/component-library/header-model-8.liquid +500 -0
- package/assets/data/component-library/header-model-9.liquid +506 -0
- package/assets/data/component-library/home-blog-posts-1.liquid +399 -0
- package/assets/data/component-library/home-blog-posts-2.liquid +393 -0
- package/assets/data/component-library/home-blog-posts-3.liquid +545 -0
- package/assets/data/component-library/home-brand-slider.liquid +224 -0
- package/assets/data/component-library/home-circled-block.liquid +332 -0
- package/assets/data/component-library/home-contact-block-1.liquid +395 -0
- package/assets/data/component-library/home-contact-block-2.liquid +372 -0
- package/assets/data/component-library/home-content-block-1.liquid +320 -0
- package/assets/data/component-library/home-donut-chart.liquid +335 -0
- package/assets/data/component-library/home-fade-in-banner.liquid +277 -0
- package/assets/data/component-library/home-faq-model.liquid +323 -0
- package/assets/data/component-library/home-featured-blog.liquid +1462 -0
- package/assets/data/component-library/home-featured-collections.liquid +484 -0
- package/assets/data/component-library/home-gallery-block1.liquid +276 -0
- package/assets/data/component-library/home-gallery-block2.liquid +396 -0
- package/assets/data/component-library/home-grid-banner-type-1.liquid +371 -0
- package/assets/data/component-library/home-grid-banner-type-2.liquid +362 -0
- package/assets/data/component-library/home-grid-banner-type-3.liquid +374 -0
- package/assets/data/component-library/home-grid-banner-type-4.liquid +900 -0
- package/assets/data/component-library/home-grid-banner-type-5.liquid +368 -0
- package/assets/data/component-library/home-grid-banner-type-6.liquid +382 -0
- package/assets/data/component-library/home-grid-banner-type-7.liquid +371 -0
- package/assets/data/component-library/home-hotspot-with-product-carousel.liquid +1425 -0
- package/assets/data/component-library/home-image-gallery.liquid +1087 -0
- package/assets/data/component-library/home-instagram.liquid +356 -0
- package/assets/data/component-library/home-newsletter.liquid +246 -0
- package/assets/data/component-library/home-number-counter.liquid +790 -0
- package/assets/data/component-library/home-price-table.liquid +416 -0
- package/assets/data/component-library/home-pricing-table.liquid +1076 -0
- package/assets/data/component-library/home-product-grid.liquid +413 -0
- package/assets/data/component-library/home-product-tab-1.liquid +528 -0
- package/assets/data/component-library/home-product-tab-2.liquid +342 -0
- package/assets/data/component-library/home-product-tab-3.liquid +357 -0
- package/assets/data/component-library/home-product-vertical-carousel.liquid +477 -0
- package/assets/data/component-library/home-quotes-1.liquid +274 -0
- package/assets/data/component-library/home-quotes-2.liquid +239 -0
- package/assets/data/component-library/home-quotes-3.liquid +244 -0
- package/assets/data/component-library/home-quotes-4.liquid +258 -0
- package/assets/data/component-library/home-slider-width-promo-images.liquid +1377 -0
- package/assets/data/component-library/home-slideshow-type-1.liquid +656 -0
- package/assets/data/component-library/home-slideshow-type-2.liquid +570 -0
- package/assets/data/component-library/home-specification-block-1.liquid +468 -0
- package/assets/data/component-library/home-specification-block-2.liquid +291 -0
- package/assets/data/component-library/home-specification-block-3.liquid +429 -0
- package/assets/data/component-library/home-support-block.liquid +392 -0
- package/assets/data/component-library/home-testimonial.liquid +1348 -0
- package/assets/data/component-library/home-video-banner.liquid +317 -0
- package/assets/data/component-library/home-wide-banner.liquid +327 -0
- package/assets/data/component-library/icon-with-content.liquid +478 -0
- package/assets/data/component-library/instafeed.liquid +1 -0
- package/assets/data/component-library/kea-ecommerce-interior-furniture-shopify-theme-about.liquid +1300 -0
- package/assets/data/component-library/kidslife-responsive-shopify-theme-home-number-counter.liquid +729 -0
- package/assets/data/component-library/logo-bar.liquid +314 -0
- package/assets/data/component-library/lookbook.liquid +367 -0
- package/assets/data/component-library/manual_blog.liquid +724 -0
- package/assets/data/component-library/navigation-etc.liquid +642 -0
- package/assets/data/component-library/newsletter.liquid +246 -0
- package/assets/data/component-library/order-form.liquid +96 -0
- package/assets/data/component-library/page-catev1-template.liquid +344 -0
- package/assets/data/component-library/popup_video.liquid +396 -0
- package/assets/data/component-library/product-sidebar-bestsellers.liquid +99 -0
- package/assets/data/component-library/product-sidebar-deals.liquid +158 -0
- package/assets/data/component-library/product-template-2.liquid +629 -0
- package/assets/data/component-library/product-template-3.liquid +670 -0
- package/assets/data/component-library/product-template-4.liquid +627 -0
- package/assets/data/component-library/product-template-5.liquid +652 -0
- package/assets/data/component-library/product-template.liquid +698 -0
- package/assets/data/component-library/rich-text.liquid +541 -0
- package/assets/data/component-library/section-countdown-v2.liquid +215 -0
- package/assets/data/component-library/services.liquid +596 -0
- package/assets/data/component-library/shipping_info.liquid +327 -0
- package/assets/data/component-library/sidebar-bestsellers.liquid +109 -0
- package/assets/data/component-library/sidebar-category.liquid +105 -0
- package/assets/data/component-library/sidebar-colors.liquid +104 -0
- package/assets/data/component-library/single_product_feature.liquid +1892 -0
- package/assets/data/component-library/social-links-menu.liquid +244 -0
- package/assets/data/component-library/someone-purchased.liquid +190 -0
- package/assets/data/component-library/special-offer-area.liquid +530 -0
- package/assets/data/component-library/theno-minimal-clean-watch-store-shopify-theme-page-catev1-te.liquid +344 -0
- package/assets/data/component-library/top-bar-type-1.liquid +200 -0
- package/assets/data/component-library/top-bar-type-10.liquid +395 -0
- package/assets/data/component-library/top-bar-type-11.liquid +395 -0
- package/assets/data/component-library/top-bar-type-2.liquid +106 -0
- package/assets/data/component-library/top-bar-type-3.liquid +205 -0
- package/assets/data/component-library/top-countdown-bar.liquid +116 -0
- package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-image-gallery.liquid +783 -0
- package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-pricing-table.liquid +1043 -0
- package/assets/data/component-library/trixe-solar-responsive-shopify-template-home-testimonial.liquid +1338 -0
- package/assets/data/component-library/video.liquid +511 -0
- package/assets/data/component-library/waffy-spices-dry-fruits-store-shopify-theme-v-1-1-contact-us.liquid +523 -0
- package/assets/data/design-tokens.csv +93 -57
- package/assets/data/schema-library.csv +48 -46
- package/assets/data/settings-profiles.csv +235 -0
- package/assets/data/shopify-best-practices.csv +58 -36
- package/assets/scripts/backfill-component-index.py +102 -0
- package/assets/scripts/core.py +30 -8
- package/assets/scripts/fix-schema-library.py +42 -0
- package/assets/scripts/kb-analyzer-helpers.py +136 -0
- package/assets/scripts/kb-analyzer.py +186 -0
- package/assets/scripts/kb-builder.py +32 -63
- package/assets/scripts/kb-constants.py +62 -0
- package/assets/scripts/kb-extractor-helpers.py +178 -0
- package/assets/scripts/kb-extractor.py +106 -170
- package/assets/scripts/kb-synthesizer.py +251 -0
- package/assets/scripts/quality-gate-checks.py +55 -0
- package/assets/scripts/quality-gate.py +56 -2
- package/assets/scripts/section-generator-helpers.py +74 -0
- package/assets/scripts/section-generator.py +59 -49
- package/assets/templates/generation-prompt.md +78 -14
- package/package.json +1 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
<div data-section-id="{{ section.id }}" data-section-type="header-sicial-type" class="header-sicial-type" style="">
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<ul class="inline-list social-icons">
|
|
8
|
+
{% if settings.social_twitter_link != blank %}
|
|
9
|
+
<li>
|
|
10
|
+
<a class="icon-fallback-text twitt hexagon" target="blank" href="{{ settings.social_twitter_link }}" title="{{ 'layout.footer.twitter' | t: name: shop.name, platform: 'Twitter' }}">
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<span class="fab fa-twitter" aria-hidden="true"></span>
|
|
14
|
+
|
|
15
|
+
</a>
|
|
16
|
+
</li>
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% if settings.social_facebook_link != blank %}
|
|
19
|
+
<li>
|
|
20
|
+
<a class="icon-fallback-text fb hexagon" target="blank" href="{{ settings.social_facebook_link }}" title="{{ 'layout.footer.facebook' | t: name: shop.name, platform: 'Facebook' }}">
|
|
21
|
+
<span class="fab fa-facebook" aria-hidden="true"></span>
|
|
22
|
+
<span class="fallback-text">Facebook</span>
|
|
23
|
+
</a>
|
|
24
|
+
</li>
|
|
25
|
+
{% endif %}
|
|
26
|
+
{% if settings.social_pinterest_link != blank %}
|
|
27
|
+
<li>
|
|
28
|
+
<a class="icon-fallback-text pin hexagon" target="blank" href="{{ settings.social_pinterest_link }}" title="{{ 'layout.footer.pinterest' | t: name: shop.name, platform: 'Pinterest' }}">
|
|
29
|
+
<span class="fab fa-pinterest" aria-hidden="true"></span>
|
|
30
|
+
<span class="fallback-text">Pinterest</span>
|
|
31
|
+
</a>
|
|
32
|
+
</li>
|
|
33
|
+
{% endif %}
|
|
34
|
+
{% if settings.social_google_plus_link != blank %}
|
|
35
|
+
<li>
|
|
36
|
+
<a class="icon-fallback-text google hexagon" target="blank" href="{{ settings.social_google_plus_link }}" title="{{ 'layout.footer.google' | t: name: shop.name, platform: 'Google Plus' }}" rel="publisher">
|
|
37
|
+
<span class="fab fa-google-plus-g" aria-hidden="true"></span>
|
|
38
|
+
<span class="fallback-text">Google</span>
|
|
39
|
+
</a>
|
|
40
|
+
</li>
|
|
41
|
+
{% endif %}
|
|
42
|
+
{% if settings.social_instagram_link != blank %}
|
|
43
|
+
<li>
|
|
44
|
+
<a class="icon-fallback-text ins" target="blank" href="{{ settings.social_instagram_link }}" title="{{ 'layout.footer.instagram' | t: name: shop.name, platform: 'Instagram' }}">
|
|
45
|
+
<span class="fab fa-instagram" aria-hidden="true"></span>
|
|
46
|
+
<span class="fallback-text">Instagram</span>
|
|
47
|
+
</a>
|
|
48
|
+
</li>
|
|
49
|
+
{% endif %}
|
|
50
|
+
{% if settings.social_tumblr_link != blank %}
|
|
51
|
+
<li>
|
|
52
|
+
<a class="icon-fallback-text tumblr" target="blank" href="{{ settings.social_tumblr_link }}" title="{{ 'layout.footer.tumblr' | t: name: shop.name, platform: 'Tumblr' }}">
|
|
53
|
+
<span class="fab fa-tumblr" aria-hidden="true"></span>
|
|
54
|
+
<span class="fallback-text">Tumblr</span>
|
|
55
|
+
</a>
|
|
56
|
+
</li>
|
|
57
|
+
{% endif %}
|
|
58
|
+
{% if settings.social_youtube_link != blank %}
|
|
59
|
+
<li>
|
|
60
|
+
<a class="icon-fallback-text youtube" target="blank" href="{{ settings.social_youtube_link }}" title="{{ 'layout.footer.youtube' | t: name: shop.name, platform: 'YouTube' }}">
|
|
61
|
+
<span class="fab fa-youtube" aria-hidden="true"></span>
|
|
62
|
+
<span class="fallback-text">YouTube</span>
|
|
63
|
+
</a>
|
|
64
|
+
</li>
|
|
65
|
+
{% endif %}
|
|
66
|
+
{% if settings.social_vimeo_link != blank %}
|
|
67
|
+
<li>
|
|
68
|
+
<a class="icon-fallback-text vimeo" target="blank" href="{{ settings.social_vimeo_link }}" title="{{ 'layout.footer.vimeo' | t: name: shop.name, platform: 'Vimeo' }}">
|
|
69
|
+
<span class="fab fa-vimeo" aria-hidden="true"></span>
|
|
70
|
+
<span class="fallback-text">Vimeo</span>
|
|
71
|
+
</a>
|
|
72
|
+
</li>
|
|
73
|
+
{% endif %}
|
|
74
|
+
|
|
75
|
+
{% if settings.social_rss_link != blank %}
|
|
76
|
+
<li>
|
|
77
|
+
<a class="icon-fallback-text rss" target="blank" href="{{ settings.social_rss_link }}" title="{{ 'layout.footer.RSS' | t: name: shop.name, platform: 'RSS' }}">
|
|
78
|
+
<span class="fab fa-rss" aria-hidden="true"></span>
|
|
79
|
+
<span class="fallback-text">RSS</span>
|
|
80
|
+
</a>
|
|
81
|
+
</li>
|
|
82
|
+
{% endif %}
|
|
83
|
+
</ul>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<style>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
.header-type-16 .header-sicial-type li a::after { background: {{section.settings.social_icon_border_clr}};}
|
|
109
|
+
|
|
110
|
+
.header-type-16 .header-sicial-type li a {color:{{section.settings.social_icon_clr}};}
|
|
111
|
+
|
|
112
|
+
.header-type-16 .header-sicial-type li a:hover {color:{{section.settings.social_hovericon_clr}};}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
.header-type-16 .header-sicial-type li a.twitt::after { background: {{section.settings.social_1_iconclr}};}
|
|
119
|
+
|
|
120
|
+
.header-type-16 .header-sicial-type li a.fb::after { background: {{section.settings.social_2_iconclr}};}
|
|
121
|
+
|
|
122
|
+
.header-type-16 .header-sicial-type li a.pin::after { background: {{section.settings.social_3_iconclr}};}
|
|
123
|
+
|
|
124
|
+
.header-type-16 .header-sicial-type li a.google:after { background: {{section.settings.social_4_iconclr}};}
|
|
125
|
+
|
|
126
|
+
.header-type-16 .header-sicial-type li a.ins::after { background: {{section.settings.social_5_iconclr}};}
|
|
127
|
+
|
|
128
|
+
.header-type-16 .header-sicial-type li a.tumblr::after { background: {{section.settings.social_6_iconclr}};}
|
|
129
|
+
|
|
130
|
+
.header-type-16 .header-sicial-type li a.youtube::after { background: {{section.settings.social_7_iconclr}};}
|
|
131
|
+
|
|
132
|
+
.header-type-16 .header-sicial-type li a.vimeo::after { background: {{section.settings.social_8_iconclr}};}
|
|
133
|
+
|
|
134
|
+
.header-type-16 .header-sicial-type li a.rss::after { background: {{section.settings.social_9_iconclr}};}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</style>
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
{% schema %}
|
|
158
|
+
{
|
|
159
|
+
"name": "Social links menu",
|
|
160
|
+
"settings": [
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
{
|
|
164
|
+
"type": "color",
|
|
165
|
+
"id": "social_icon_border_clr",
|
|
166
|
+
"label": "Social Icon Border Color",
|
|
167
|
+
"default": "#35b8f4"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "color",
|
|
171
|
+
"id": "social_icon_clr",
|
|
172
|
+
"label": "Social Icon Color",
|
|
173
|
+
"default": "#35b8f4"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "color",
|
|
177
|
+
"id": "social_hovericon_clr",
|
|
178
|
+
"label": "Social Icon Hover Color",
|
|
179
|
+
"default": "#35b8f4"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "color",
|
|
183
|
+
"id": "social_1_iconclr",
|
|
184
|
+
"label": "Social Icon Color - twitter",
|
|
185
|
+
"default": "#35b8f4"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "color",
|
|
189
|
+
"id": "social_2_iconclr",
|
|
190
|
+
"label": "Social Icon Color - fb",
|
|
191
|
+
"default": "#35b8f4"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "color",
|
|
195
|
+
"id": "social_3_iconclr",
|
|
196
|
+
"label": "Social Icon Color - pin",
|
|
197
|
+
"default": "#35b8f4"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "color",
|
|
201
|
+
"id": "social_4_iconclr",
|
|
202
|
+
"label": "Social Icon Color - google",
|
|
203
|
+
"default": "#35b8f4"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "color",
|
|
207
|
+
"id": "social_5_iconclr",
|
|
208
|
+
"label": "Social Icon Color - ins",
|
|
209
|
+
"default": "#35b8f4"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "color",
|
|
213
|
+
"id": "social_6_iconclr",
|
|
214
|
+
"label": "Social Icon Color - tumblr",
|
|
215
|
+
"default": "#35b8f4"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "color",
|
|
219
|
+
"id": "social_7_iconclr",
|
|
220
|
+
"label": "Social Icon Color - youtube",
|
|
221
|
+
"default": "#35b8f4"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "color",
|
|
225
|
+
"id": "social_8_iconclr",
|
|
226
|
+
"label": "Social Icon Color - vimeo",
|
|
227
|
+
"default": "#35b8f4"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "color",
|
|
231
|
+
"id": "social_9_iconclr",
|
|
232
|
+
"label": "Social Icon Color - rss",
|
|
233
|
+
"default": "#35b8f4"
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
{% endschema %}
|
|
239
|
+
|
|
240
|
+
{% stylesheet %}
|
|
241
|
+
{% endstylesheet %}
|
|
242
|
+
|
|
243
|
+
{% javascript %}
|
|
244
|
+
{% endjavascript %}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
{% if section.settings.display_someone-purchased and section.blocks.size > 0 %}
|
|
2
|
+
<section class="product-notification" data-time="{{ section.settings.someone_speed }}">
|
|
3
|
+
<a href="javascript:void(0)" title="Close" class="close close-notifi">
|
|
4
|
+
<i class="fas fa-times"></i>
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
<div class="product-suggest">
|
|
8
|
+
<a class="product-image" href="">
|
|
9
|
+
<img src="" alt="">
|
|
10
|
+
</a>
|
|
11
|
+
<div class="column-right">
|
|
12
|
+
<label>
|
|
13
|
+
{{ section.settings.text }}
|
|
14
|
+
</label>
|
|
15
|
+
<a class="product-name" href=""></a>
|
|
16
|
+
<div class="info-ago">
|
|
17
|
+
<div class="time-ago"></div>
|
|
18
|
+
<div class="from-ago"></div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="hide">
|
|
23
|
+
{% for block in section.blocks %}
|
|
24
|
+
{%- assign product = all_products[block.settings.product] -%}
|
|
25
|
+
<div class="data-product" data-id="{{block.id}}" data-image="{{product.featured_image.src | product_img_url: 'compact' }}" data-url="{{ product.url | within: collection }}" data-title="{{ product.title | truncatewords: 5}}" data-alt="{{ product.title }}" data-local="{{block.settings.from_ago}}" data-time="{{block.settings.time_ago}}"></div>
|
|
26
|
+
{% endfor %}
|
|
27
|
+
</div>
|
|
28
|
+
</section>
|
|
29
|
+
{% endif %}
|
|
30
|
+
|
|
31
|
+
<style>
|
|
32
|
+
@media (min-width: 1200px) {
|
|
33
|
+
.product-notification{
|
|
34
|
+
{% if section.settings.show_someone-purchased == 'right' %}
|
|
35
|
+
right: 15px;
|
|
36
|
+
{% else %}
|
|
37
|
+
left: 15px;
|
|
38
|
+
{% endif %}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
{% schema %}
|
|
45
|
+
{
|
|
46
|
+
"name": "Someone Purchased",
|
|
47
|
+
"max_blocks": 10,
|
|
48
|
+
"settings": [
|
|
49
|
+
{
|
|
50
|
+
"type" : "checkbox",
|
|
51
|
+
"id" : "display_someone-purchased",
|
|
52
|
+
"label" : "Display Someone Purchased",
|
|
53
|
+
"default" : true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type" : "checkbox",
|
|
57
|
+
"id" : "display_someone-purchased_mb",
|
|
58
|
+
"label" : "Display Someone Purchased Popup on mobile",
|
|
59
|
+
"default" : true,
|
|
60
|
+
"info": "============="
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "radio",
|
|
64
|
+
"id": "show_someone-purchased",
|
|
65
|
+
"label": "Someone Purchased Modal on the",
|
|
66
|
+
"options": [
|
|
67
|
+
{
|
|
68
|
+
"value": "left",
|
|
69
|
+
"label": "Left"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": "right",
|
|
73
|
+
"label": "Right"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"default": "right",
|
|
77
|
+
"info": "Only Desktop"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "select",
|
|
81
|
+
"id": "someone_speed",
|
|
82
|
+
"label": "Change slides every",
|
|
83
|
+
"options": [
|
|
84
|
+
{ "value": "5000", "label": "5 seconds" },
|
|
85
|
+
{ "value": "6000", "label": "6 seconds" },
|
|
86
|
+
{ "value": "7000", "label": "7 seconds" },
|
|
87
|
+
{ "value": "8000", "label": "8 seconds" },
|
|
88
|
+
{ "value": "9000", "label": "9 seconds" },
|
|
89
|
+
{ "value": "10000", "label": "10 seconds" },
|
|
90
|
+
{ "value": "60000", "label": "1 minutes" },
|
|
91
|
+
{ "value": "180000", "label": "3 minutes" }
|
|
92
|
+
],
|
|
93
|
+
"default": "7000"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type" : "textarea",
|
|
97
|
+
"id" : "text",
|
|
98
|
+
"label" : "Text Someone recently bought",
|
|
99
|
+
"default" : "Someone recently bought a"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"blocks" : [
|
|
103
|
+
{
|
|
104
|
+
"type" : "image",
|
|
105
|
+
"name" : "Product",
|
|
106
|
+
"settings":[
|
|
107
|
+
{
|
|
108
|
+
"type" : "product",
|
|
109
|
+
"id" : "product",
|
|
110
|
+
"label" :"Select Product"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type" : "text",
|
|
114
|
+
"id" : "from_ago",
|
|
115
|
+
"default" : "from Blackburn, UK",
|
|
116
|
+
"label" : "Purchase Location"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type" : "text",
|
|
120
|
+
"id" : "time_ago",
|
|
121
|
+
"default" : "20 minutes ago",
|
|
122
|
+
"label" : "Purchase Time"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
{% endschema %}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
{% if section.settings.display_someone-purchased and section.blocks.size > 0 %}
|
|
132
|
+
<script type="text/javascript">
|
|
133
|
+
function SomeonePurchased() {
|
|
134
|
+
{% unless section.settings.display_someone-purchased_mb %}
|
|
135
|
+
if(window.innerWidth > 767 ){
|
|
136
|
+
{% endunless %}
|
|
137
|
+
if ($.cookie('pr_notification') == 'closed') {
|
|
138
|
+
$('.product-notification').remove();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
$('.close-notifi').bind('click',function(){
|
|
142
|
+
$('.product-notification').remove();
|
|
143
|
+
$.cookie('pr_notification', 'closed', {expires:1, path:'/'});
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
function toggleSomething() {
|
|
147
|
+
if($('.product-notification').hasClass('active')){
|
|
148
|
+
$('.product-notification').removeClass('active')
|
|
149
|
+
}else {
|
|
150
|
+
var number=$('.data-product').length,
|
|
151
|
+
i = Math.floor(Math.random() * number),
|
|
152
|
+
images = $('.product-notification .data-product:eq('+i+')').data('image'),
|
|
153
|
+
title = $('.product-notification .data-product:eq('+i+')').data('title'),
|
|
154
|
+
url = $('.product-notification .data-product:eq('+i+')').data('url'),
|
|
155
|
+
local = $('.product-notification .data-product:eq('+i+')').data('local'),
|
|
156
|
+
times =$('.product-notification .data-product:eq('+i+')').data('time');
|
|
157
|
+
|
|
158
|
+
$('.product-notification').addClass('active');
|
|
159
|
+
$('.product-notification .product-image').find('img').attr('src', images );
|
|
160
|
+
$('.product-notification .product-name').text(title).attr('href', url );
|
|
161
|
+
$('.product-notification .product-image').attr('href', url );
|
|
162
|
+
$('.product-notification .time-ago').text(times);
|
|
163
|
+
$('.product-notification .from-ago').text(local);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
var time = $('.product-notification').data('time');
|
|
168
|
+
var timer = setInterval(toggleSomething, time);
|
|
169
|
+
|
|
170
|
+
{% unless section.settings.display_someone-purchased_mb %}
|
|
171
|
+
}
|
|
172
|
+
{% endunless %}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
SomeonePurchased();
|
|
176
|
+
$(document)
|
|
177
|
+
.on( 'shopify:section:load', SomeonePurchased )
|
|
178
|
+
.on( 'shopify:section:unload', SomeonePurchased)
|
|
179
|
+
</script>
|
|
180
|
+
{% endif %}
|
|
181
|
+
|
|
182
|
+
{% unless section.settings.display_someone-purchased_mb %}
|
|
183
|
+
<style>
|
|
184
|
+
@media (max-width: 767px) {
|
|
185
|
+
.product-notification {
|
|
186
|
+
display:none;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
</style>
|
|
190
|
+
{% endunless %}
|