setto.basspistol.com/_includes/streamer.html

104 lines
3.8 KiB
HTML
Raw Normal View History

2020-07-28 12:51:23 +02:00
2020-07-24 14:34:09 +02:00
{% if page.collection == 'posts' %}
2020-08-03 21:40:11 +02:00
{% if page.category == 'releases' %}
{% if page.check_this_if_cannot_be_bought == false %}
2020-11-29 23:28:46 +01:00
<section class="streambox" id="support">
2020-08-03 21:40:11 +02:00
<h2>Get this release</h2>
2020-07-24 14:34:09 +02:00
<div class="streamer">
{% for shop in page.stores %}
2020-08-03 21:40:11 +02:00
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
2020-07-24 14:34:09 +02:00
{% endfor %}
</div>
2020-08-03 21:40:11 +02:00
</section>
{% else %}
2020-11-29 23:28:46 +01:00
<section class="streambox" id="support">
2020-08-03 21:40:11 +02:00
<h2>This release can't be obtained</h2>
<p>Stream, follow, like and subscribe!</p>
2020-07-24 14:34:09 +02:00
<div class="streamer">
2020-08-03 21:40:11 +02:00
{% for shop in site.data.stores %}
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
2020-07-28 12:51:23 +02:00
2020-08-03 21:40:11 +02:00
{% endfor %}
</div>
</section>
2020-07-24 14:34:09 +02:00
{% endif %}
2020-08-03 21:40:11 +02:00
{% else %}
{% if page.check_this_if_cannot_be_bought == false %}
2020-11-29 23:28:46 +01:00
<section class="streambox" id="support">
2020-08-03 21:40:11 +02:00
<h2>Get this release</h2>
<div class="streamer">
{% for shop in page.stores %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
{% endfor %}
</div>
</section>
{% else %}
2020-11-29 23:28:46 +01:00
<section class="streambox" id="support">
<h2>Support {{ site.title }}</h2>
<p>Stream, follow, like and subscribe!</p>
<div class="streamer">
{% for shop in site.data.stores %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
{% endfor %}
</div>
</section>
2020-07-28 12:51:23 +02:00
{% endif %}
2020-07-24 14:34:09 +02:00
{% endif %}
2020-08-03 21:40:11 +02:00
{% elsif page.collection == 'tracks' %}
2020-11-29 23:28:46 +01:00
<section class="streambox" id="support">
2020-07-28 12:51:23 +02:00
2020-08-03 21:40:11 +02:00
{% for post in site.posts %}
{% if post.album == page.albumSlug %}
{% if post.check_this_if_cannot_be_bought == false %}
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
<h2>Get this track</h2>
<div class="streamer">
{% for shop in post.stores %}
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
{% endfor %}
</div>
{% else %}
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
<h2>This track can't be obtained</h2>
<p>Stream, follow, like and subscribe!</p>
<div class="streamer">
{% for shop in site.data.stores %}
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
{% endfor %}
</div>
{% break %}
2020-07-24 14:34:09 +02:00
{% endif %}
{% endif %}
{% endfor %}
2020-08-03 21:40:11 +02:00
</section>
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
{% else %}
2020-11-29 23:28:46 +01:00
<section class="streambox" id="support">
2020-08-03 21:40:11 +02:00
<h2>Support {{ site.title }}</h2>
<p>Stream, follow, like and subscribe!</p>
<div class="streamer">
{% for shop in site.data.stores %}
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" title="Stream from {{ shop.name }}" class="icon fab {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
2020-07-24 14:34:09 +02:00
2020-08-03 21:40:11 +02:00
{% endfor %}
</div>
</section>
2020-07-24 14:34:09 +02:00
{% endif %}
2021-05-05 10:25:04 +02:00
<section class="streambox">
2021-09-06 13:36:01 +02:00
<script src="https://liberapay.com/setto/widgets/giving.js"></script>
2021-05-05 10:25:04 +02:00
2021-09-06 13:36:01 +02:00
</section>