basspistol.com/_includes/streamer.html

89 lines
3.1 KiB
HTML
Raw Normal View History

2020-07-28 12:37:08 +02:00
2020-07-09 10:15:00 +02:00
{% if page.collection == 'posts' %}
2020-09-08 18:07:38 +02:00
{% if page.category == 'releases' %}
{% if page.check_this_if_cannot_be_bought == false %}
<section class="streambox">
<h2>Get this release</h2>
2020-07-09 10:15:00 +02:00
<div class="streamer">
{% for shop in page.stores %}
2020-09-08 18:07:38 +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-09 10:15:00 +02:00
{% endfor %}
</div>
2020-09-08 18:07:38 +02:00
</section>
{% else %}
<section class="streambox">
<h2>This release can't be obtained</h2>
<p>Stream, follow, like and subscribe!</p>
2020-07-09 10:15:00 +02:00
<div class="streamer">
2020-09-08 18:07:38 +02:00
{% for shop in site.data.stores %}
2020-07-09 10:15:00 +02:00
2020-09-08 18:07:38 +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:48:49 +02:00
2020-09-08 18:07:38 +02:00
{% endfor %}
</div>
</section>
2020-07-10 16:54:16 +02:00
{% endif %}
2020-09-08 18:07:38 +02:00
{% else %}
{% if page.check_this_if_cannot_be_bought == false %}
<section class="streambox">
<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-07-28 12:48:49 +02:00
{% endif %}
{% endif %}
2020-09-08 18:07:38 +02:00
{% elsif page.collection == 'tracks' %}
<section class="streambox">
2020-07-09 10:15:00 +02:00
2020-09-08 18:07:38 +02:00
{% for post in site.posts %}
{% if post.album == page.albumSlug %}
{% if post.check_this_if_cannot_be_bought == false %}
2020-07-09 10:15:00 +02:00
2020-09-08 18:07:38 +02:00
<h2>Get this track</h2>
<div class="streamer">
{% for shop in post.stores %}
2020-07-09 10:15:00 +02:00
2020-09-08 18:07:38 +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-09 10:15:00 +02:00
2020-09-08 18:07:38 +02:00
{% endfor %}
</div>
{% else %}
2020-07-09 10:15:00 +02:00
2020-09-08 18:07:38 +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-10 14:16:59 +02:00
2020-09-08 18:07:38 +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-10 14:16:59 +02:00
2020-09-08 18:07:38 +02:00
{% endfor %}
</div>
{% break %}
2020-07-28 12:48:49 +02:00
2020-07-09 10:15:00 +02:00
{% endif %}
{% endif %}
{% endfor %}
2020-09-08 18:07:38 +02:00
</section>
2020-07-28 12:48:49 +02:00
2020-09-08 18:07:38 +02:00
{% else %}
<section class="streambox">
<h2>Support {{ site.title }}</h2>
<p>Stream, follow, like and subscribe!</p>
<div class="streamer">
{% for shop in site.data.stores %}
2020-07-28 12:48:49 +02:00
2020-09-08 18:07:38 +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:48:49 +02:00
2020-09-08 18:07:38 +02:00
{% endfor %}
</div>
</section>
2020-07-09 10:15:00 +02:00
{% endif %}