You've already forked wp-fedistream
38 lines
1.5 KiB
Twig
38 lines
1.5 KiB
Twig
|
|
{# Taxonomy archive template (Genre, Mood) #}
|
||
|
|
<div class="fedistream-archive fedistream-archive--taxonomy">
|
||
|
|
<header class="fedistream-archive__header">
|
||
|
|
<h1 class="fedistream-archive__title">
|
||
|
|
{% if taxonomy_name %}{{ taxonomy_name }}: {% endif %}{{ term.name }}
|
||
|
|
</h1>
|
||
|
|
{% if term.description %}
|
||
|
|
<div class="fedistream-archive__description">{{ term.description }}</div>
|
||
|
|
{% endif %}
|
||
|
|
</header>
|
||
|
|
|
||
|
|
{% if posts is not empty %}
|
||
|
|
<div class="fedistream-grid fedistream-grid--mixed">
|
||
|
|
{% for post in posts %}
|
||
|
|
{% if post.post_type == 'fedistream_artist' %}
|
||
|
|
{% include 'partials/card-artist.twig' with { post: post } %}
|
||
|
|
{% elseif post.post_type == 'fedistream_album' %}
|
||
|
|
{% include 'partials/card-album.twig' with { post: post } %}
|
||
|
|
{% elseif post.post_type == 'fedistream_track' %}
|
||
|
|
{% include 'partials/card-track.twig' with { post: post } %}
|
||
|
|
{% elseif post.post_type == 'fedistream_playlist' %}
|
||
|
|
{% include 'partials/card-playlist.twig' with { post: post } %}
|
||
|
|
{% endif %}
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{% if pagination %}
|
||
|
|
<nav class="fedistream-pagination">
|
||
|
|
{{ pagination|raw }}
|
||
|
|
</nav>
|
||
|
|
{% endif %}
|
||
|
|
{% else %}
|
||
|
|
<div class="fedistream-empty">
|
||
|
|
<p>{{ __('No content found in this category.', 'wp-fedistream') }}</p>
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
</div>
|