-
Notifications
You must be signed in to change notification settings - Fork 90
/
store-item.html
508 lines (476 loc) · 23 KB
/
store-item.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
---
layout: default
---
{% assign settings = site.data.store[page.slug] %}
{% assign translation = site.data[page.lang].store.items[page.slug] %}
{% assign developer = site.data.developer[settings.developer] %}
{% assign icon = settings.icon | default: "bx bx-question-mark" %}
{% assign buyLink = '' %}
{% assign buyBtnIcon = 'bx bx-cart' %}
{% assign pricing = 0 %}
{% assign buyTitle = site.data[page.lang].translation.download-btn %}
{% assign buySubTitle = '' %}
{% assign purchase_details = nil %}
{% if developer.purchase_details %}
{% assign purchase_details = developer.purchase_details %}
{% endif %}
{% assign documentation = nil %}
{% if settings.documentation %}
{% assign documentation = settings.documentation %}
{% endif %}
{% assign screenshot = nil %}
{% if settings.screenshot %}
{% assign screenshot = settings.screenshot %}
{% endif %}
{% assign screenshots = nil %}
{% if settings.screenshots %}
{% assign screenshots = settings.screenshots %}
{% endif %}
{% if settings.download %}
{% assign buyLink = settings.download %}
{% assign buyBtnIcon = 'bx bx-download' %}
{% assign buyTitle = site.data[page.lang].translation.download-btn %}
{% elsif settings.email %}
{% assign buyLink = 'mailto:' | append: settings.email %}
{% assign buyBtnIcon = 'bx bx-envelope' %}
{% assign buyTitle = site.data[page.lang].translation.contact %}
{% elsif settings.play-store %}
{% assign buyLink = settings.play-store %}
{% assign buyBtnIcon = 'bx bxl-play-store' %}
{% assign buyTitle = 'Play Store' %}
{% elsif settings.app-store %}
{% assign buyLink = settings.app-store %}
{% assign buyBtnIcon = 'bx bxl-apple' %}
{% assign buyTitle = 'App Store' %}
{% elsif settings.shop %}
{% assign buyLink = settings.shop %}
{% assign buyBtnIcon = 'bx bx-cart' %}
{% elsif settings.github %}
{% assign buyLink = settings.github | append: '/releases' %}
{% assign buyBtnIcon = 'bx bxl-github' %}
{% assign buyTitle = site.data[page.lang].translation.download-btn %}
{% endif %}
{% assign isFree = false %}
{% if settings.subscription != nil and settings.subscription != 0 %}
{% assign buyTitle = site.data[page.lang].translation.store-buy-button %}
{% assign pricing = settings.subscription %}
{% assign perYear = site.data[page.lang].translation.per-year %}
{% assign buySubTitle = site.data[page.lang].translation.price-without-vat | append: ' (' | append: perYear | append: ')' %}
{% elsif settings.price == nil %}
{% assign pricing = site.data[page.lang].translation.price-contract %}
{% elsif settings.price != nil and settings.price != 0 %}
{% assign buyTitle = site.data[page.lang].translation.store-buy-button %}
{% assign pricing = settings.price %}
{% assign buySubTitle = site.data[page.lang].translation.price-without-vat %}
{% else %}
{% assign buyTitle = site.data[page.lang].translation.download-btn %}
{% assign pricing = site.data[page.lang].translation.free-badge %}
{% assign isFree = true %}
{% endif %}
{% assign showInstallation = false %}
{% assign showCompatibility = false %}
{% assign compatibleWithTwo = false %}
{% assign changelog = nil %}
{% assign showDemo = false %}
{% assign is_ppp = false %}
{% assign isUsingLicenseManager = false %}
{% if settings.bundle %}
{% assign showInstallation = true %}
{% if site.data.store.releases[settings.bundle.name] != nil %}
{% assign showCompatibility = true %}
{% if page.type == 'featured' or page.type == 'plugin' %}
{% for version in site.data.store.releases[settings.bundle.name].versions %}
{% assign startsVersion = version[1] | slice: 0, 2 %}
{% if startsVersion == '2.' %}
{% assign compatibleWithTwo = true %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if settings.changelog != nil %}
{% assign changelog = 'store/changelog/' | append: settings.bundle.name | append: '.md' %}
{% endif %}
{% endif %}
{% if settings.demo != nil %}
{% assign showDemo = settings.demo %}
{% endif %}
{% if settings.developer == 'kevinpapst' and settings.shop != nil %}
{% if settings.shop != nil %}
{% assign isUsingLicenseManager = true %}
{% endif %}
{% if page.lang != 'de' and isFree == false %}
{% assign is_ppp = true %}
{% endif %}
{% endif %}
<section class="bg-dark pt-2 pt-lg-3 pb-lg-5">
<div class="container position-relative zindex-5">
<div class="d-flex pt-3 pb-4 py-sm-4 pt-lg-5">
{% if showCompatibility %}
{% if compatibleWithTwo == false %}
<span class="badge bg-danger fs-sm me-2">Compatibility unknown</span>
{% endif %}
{% endif %}
</div>
<h1>{{ translation.title | default: page.title }}</h1>
<p class="fs-lg text-light opacity-70">{{ translation.intro }}</p>
{% comment %}
<div class="d-sm-flex py-3 py-md-4 py-xl-5">
<div class="d-flex border-sm-end pe-sm-3 me-sm-3 mb-2 mb-sm-0">
<div class="text-nowrap me-1">
<i class="bx bxs-star text-warning"></i>
<i class="bx bxs-star text-warning"></i>
<i class="bx bxs-star text-warning"></i>
<i class="bx bxs-star text-warning"></i>
<i class="bx bx-star text-muted opacity-75"></i>
</div>
<span class="text-light opacity-70">(1.2K reviews)</span>
</div>
<div class="d-flex border-sm-end pe-sm-3 me-sm-3 mb-2 mb-sm-0">
<i class="bx bx-like fs-xl text-light opacity-70 me-1"></i>
<span class="text-light opacity-70">4.2K likes</span>
</div>
<div class="d-flex">
<i class="bx bx-time fs-xl text-light opacity-70 me-1"></i>
<span class="text-light opacity-70">220 hours</span>
</div>
</div>
{% endcomment %}
<div class="d-flex align-items-center">
<img src="{{ developer.image }}" class="rounded-circle" width="60" alt="{{ developer.name }}">
<div class="ps-3">
<div class="text-light opacity-80 mb-1">{{ site.data[page.lang].translation.store-offered-by }}</div>
<h6>{{ developer.name }}</h6>
</div>
</div>
</div>
</section>
<section class="container pt-5 mt-2 mt-lg-4 mt-xl-5">
<div class="row" id="buy-item-card">
<aside class="col-lg-4 col-md-5 offset-xl-1 order-md-2 mb-5">
<div style="margin-top: -96px;"></div>
<div class="position-sticky top-0 pt-5">
<div class="pt-5 mt-md-3">
<div class="card shadow-sm p-sm-3">
<div class="card-body">
{% comment %}
<h4 class="mb-4">This plugin includes:</h4>
<ul class="list-unstyled pb-3">
<li class="d-flex align-items-center mb-2">
<i class="bx bx-slideshow fs-xl text-muted me-2 pe-1"></i>
220 hours on-demand video
</li>
<li class="d-flex align-items-center mb-2">
<i class="bx bx-file fs-xl text-muted me-2 pe-1"></i>
18 articles
</li>
<li class="d-flex align-items-center mb-2">
<i class="bx bx-download fs-xl text-muted me-2 pe-1"></i>
25 downloadable resources
</li>
<li class="d-flex align-items-center mb-2">
<i class="bx bx-infinite fs-xl text-muted me-2 pe-1"></i>
Full lifetime access
</li>
<li class="d-flex align-items-center mb-2">
<i class="bx bx-trophy fs-xl text-muted me-2 pe-1"></i>
Certificate of completion
</li>
</ul>
{% endcomment %}
<div class="h2 d-flex align-items-center mb-4">
<span class="text-nowrap">{{ pricing }}</span>
<small class="text-muted fs-xl fw-normal ms-2">
{{ buySubTitle }}
{% if is_ppp %}
<sup>*</sup>
{% endif %}
</small>
</div>
{% if isUsingLicenseManager %}
<div class="row align-items-center mb-3">
<p class="text-muted">
{{ site.data[page.lang].translation.store-license-manager }}
</p>
</div>
{% endif %}
<div class="row align-items-center mb-3">
<a class="btn btn-success btn-lg w-100 btn-buy" href="{{ buyLink }}" target="_blank"><i class="{{ buyBtnIcon }} me-2"></i> {{ buyTitle }}</a>
</div>
{% if isFree == false %}
<div class="row align-items-center mb-3 text-muted fs-sm">
<div class="col-auto">
{{ site.data[page.lang].translation.store-payment-methods }}
</div>
<div class="col-auto ms-auto fs-lg">
<i class="bx bxl-paypal"></i>
<i class="bx bxl-google"></i>
<i class="bx bxl-apple"></i>
<i class="bx bxl-visa"></i>
<i class="bx bxl-mastercard"></i>
</div>
</div>
{% endif %}
{% if is_ppp %}
<div class="row align-items-center text-muted fs-sm">
<div class="col-auto ms-auto">
<a href="{% link _landingpage/en/discount-codes.md %}" class="text-decoration-none text-muted">
* {{ site.data[page.lang].translation.purchase-power-parity }}
</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</aside>
<!-- Content -->
<div class="col-xl-7 col-lg-8 col-md-7 order-md-1 mb-5">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a href="#store-info" class="nav-link active" data-bs-toggle="tab" role="tab">
<i class="bx bx-home-alt opacity-70 me-2"></i>
{{ site.data[page.lang].translation.description }}
</a>
</li>
{% if showInstallation %}
<li class="nav-item">
<a href="#store-installation" class="nav-link" data-bs-toggle="tab" role="tab">
{{ site.data[page.lang].translation.installation }}
</a>
</li>
{% endif %}
{% if changelog != nil %}
<li class="nav-item">
<a href="#store-changelog" class="nav-link" data-bs-toggle="tab" role="tab">
{{ site.data[page.lang].translation.changelog }}
</a>
</li>
{% endif %}
{% if showDemo %}
<li class="nav-item">
<a href="#store-demo" class="nav-link" data-bs-toggle="tab" role="tab">
{{ site.data[page.lang].translation.try-it }}
</a>
</li>
{% endif %}
{% if documentation %}
<li class="nav-item">
<a target="_blank" href="{% link _documentation/{{ documentation }}.md %}" class="nav-link">
<i class="bx bx-link-external opacity-70 me-2"></i>
{{ site.data[page.lang].translation.documentation.name }}
</a>
</li>
{% endif %}
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="store-info" role="tabpanel">
{{ content }}
{% if changelog == nil and showCompatibility %}
<h3 id="changelog">{{ site.data[page.lang].translation.compatibility }}</h3>
<p>{{ site.data[page.lang].translation.compatibility-info }}</p>
<table class="table">
<thead>
<tr>
<th>
{{ site.data[page.lang].translation.compatibility-bundle }}
</th>
<th>
{{ site.data[page.lang].translation.compatibility-kimai }}
</th>
</tr>
</thead>
<tbody>
{% for version in site.data.store.releases[settings.bundle.name].versions %}
<tr>
<td>{{ version[0] }}</td>
<td>{{ version[1] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
{% if showInstallation %}
<div class="tab-pane fade" id="store-installation" role="tabpanel">
<h2 id="installation">{{ site.data[page.lang].translation.installation }}</h2>
{% include store-plugin-installation.html clone=settings.bundle.clone plugin=settings.bundle.name command=settings.bundle.command assets=settings.bundle.assets %}
<h3>{{ site.data[page.lang].translation.updates }}</h3>
{% include store-plugin-update.html plugin=settings.bundle.name command=settings.bundle.command assets=settings.bundle.assets %}
</div>
{% endif %}
{% if changelog != nil %}
<div class="tab-pane fade" id="store-changelog" role="tabpanel">
<h2 id="compatibility">{{ site.data[page.lang].translation.changelog }}</h2>
{% capture changelog_md -%}
{%- include {{ changelog }} -%}
{%- endcapture %}
{{ changelog_md | markdownify }}
</div>
{% endif %}
{% if showDemo %}
<div class="tab-pane fade" id="store-demo" role="tabpanel">
<h2 id="demo">{{ site.data[page.lang].translation.try-it }}</h2>
<p class="mb-3">
{{ site.data[page.lang].translation.plugin-demo-at }} <a href="https://demo.kimai.org">demo.kimai.org</a>:
</p>
<p>
{{ site.data[page.lang].translation.username }}: <strong>susan_super</strong>
<br>
{{ site.data[page.lang].translation.password }}: <strong>password</strong>
</p>
<p class="mb-2">
<a href="{% link _pages/demo.md %}">{{ site.data[page.lang].translation.plugin-demo-accounts }}</a>.
</p>
</div>
{% endif %}
</div>
</div>
</div>
</section>
{% if screenshots or screenshot %}
<section class="mb-5 pt-md-3 pt-lg-4 pt-xl-5">
<h2 class="h1 pt-lg-2 pt-xl-3 mb-5 text-center">{{ site.data[page.lang].translation.screenshots-title }}</h2>
<div class="pb-2 pb-sm-3 pb-md-4">
<div class="swiper" data-swiper-options='{
"loop": true,
"grabCursor": false,
"centeredSlides": true,
"autoplay": {
"delay": 0,
"disableOnInteraction": false
},
"freeMode": true,
"speed": 38000,
"freeModeMomentum": false,
"breakpoints": {
"0": {
"slidesPerView": 1,
"spaceBetween": 8
},
"500": {
"spaceBetween": 16
},
"768": {
"slidesPerView": 2,
"spaceBetween": 24
}
}
}'>
<div class="swiper-wrapper">
{% for imageId in screenshots %}
{% assign source = site.data.screenshots[imageId].src %}
{% assign image = site.data[page.lang].store.screenshots[imageId] %}
<div class="swiper-slide pb-3">
<figure class="figure">
<img src="{{ source }}" class="figure-img" alt="Screenshot">
{% if image.description %}
<figcaption class="figure-caption text-center">{{ image.description }}</figcaption>
{% endif %}
</figure>
</div>
{% endfor %}
{% for s in screenshot %}
<div class="swiper-slide">
<img src="{{ s }}" alt="Screenshot" class="rounded-3">
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}
{% if isFree == false and purchase_details %}
<section class="container pb-5 mb-md-3 mb-lg-4 mb-xl-5">
<div class="row pb-3">
<div class="col-md-5 mb-4 mb-md-0">
<div class="card bg-dark h-100 p-lg-5">
<div class="card-body p-lg-2">
<h2 class="h1 text-light">{{ site.data[page.lang].translation.faq.title }}</h2>
<p class="fs-xl text-light opacity-70 mb-2">{{ site.data[page.lang].translation.faq.intro }}</p>
</div>
<div class="card-footer border-0 w-100 pt-0 p-4 p-lg-2">
<a class="btn btn-primary btn-lg shadow-primary" href="#buy-item-card"><i class="{{ buyBtnIcon }} me-2"></i> {{ buyTitle }}</a>
</div>
</div>
</div>
<div class="col-md-7">
<div class="accordion" id="faq">
{% for detail in purchase_details %}
<div class="accordion-item border-0 rounded-3 shadow-sm mb-3">
<h3 class="accordion-header">
<button class="accordion-button shadow-none rounded-3" type="button" data-bs-toggle="collapse" data-bs-target="#q-{{ forloop.index }}" aria-expanded="false" aria-controls="q-1">{{ detail.title }}</button>
</h3>
<div class="accordion-collapse collapse" id="q-{{ forloop.index }}" data-bs-parent="#faq">
<div class="accordion-body fs-sm pt-0">
<p>{{ detail.content }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}
<section class="container py-lg-4 py-xl-5 mt-3 mb-5">
<div class="row g-0 bg-dark bg-repeat-0 bg-position-center border rounded-3 overflow-hidden" style="background-image: url(/images/layout/author-pattern.svg);">
<div class="col-md-5 bg-repeat-0 bg-position-top-center bg-size-cover" style="background-image: url({{ developer.image }}); min-height: 350px;"></div>
<div class="col-md-7 py-xl-5 px-4">
<div class="py-5 mx-auto" style="max-width: 530px;">
<div class="fs-xl text-light opacity-50 mb-2">{{ site.data[page.lang].translation.store-offered-by }}</div>
<h2 class="h1 text-light mb-4">{{ developer.name }}</h2>
<p class="text-light opacity-70 pb-4">
{{ developer.description }}
</p>
<div class="mb-4">
{{ site.data[page.lang].translation.contact-developer }}
</div>
<div class="d-flex flex-column flex-sm-row flex-wrap">
{% if developer.homepage %}
<a href="{{ developer.homepage }}" class="btn btn-behance me-sm-4 mb-3 mb-sm-0">
<i class="bx bx-home fs-xl me-2"></i>
Homepage
</a>
{% endif %}
{% if developer.email %}
<a href="mailto:{{ developer.email }}" class="btn btn-blogger me-sm-4 mb-3 mb-sm-0">
<i class="bx bx-envelope fs-xl me-2"></i>
Email
</a>
{% endif %}
{% if developer.github %}
<a href="{{ developer.github }}" class="btn btn-github me-sm-4 mb-3 mb-sm-0">
<i class="bx bxl-github fs-xl me-2"></i>
GitHub
</a>
{% endif %}
<br>
{% if developer.twitter %}
<a href="{{ developer.twitter }}" class="btn btn-twitter me-sm-4 mb-3 mb-sm-0 mt-3">
<i class="bx bxl-twitter fs-xl me-2"></i>
Twitter
</a>
{% endif %}
{% if developer.mastodon %}
<a href="{{ developer.mastodon }}" class="btn btn-messenger me-sm-4 mb-3 mb-sm-0 mt-3">
<i class="bx bxl-mastodon fs-xl me-2"></i>
Mastodon
</a>
{% endif %}
{% if developer.youtube %}
<a href="{{ developer.youtube }}" class="btn btn-youtube me-sm-4 mb-3 mb-sm-0 mt-3">
<i class="bx bxl-youtube fs-xl me-2"></i>
Youtube
</a>
{% endif %}
</div>
</div>
</div>
</div>
</section>
{% comment %}
<h4>All items by {{ developer.name }}</h4>
{% assign products = site.store | where: "lang", page.lang | where: "developer", settings.developer | sort: 'title' %}
{% include store-list.html products=products %}
{% endcomment %}