You've already forked wp-fedistream
feat: Initial release v0.1.0
WP FediStream - Stream music over ActivityPub Features: - Custom post types: Artist, Album, Track, Playlist - Custom taxonomies: Genre, Mood, License - User roles: Artist, Label - Admin dashboard with statistics - Frontend templates and shortcodes - Audio player with queue management - ActivityPub integration with actor support - WooCommerce product types for albums/tracks - User library with favorites and history - Notification system (in-app and email) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
37
templates/archive/taxonomy.twig
Normal file
37
templates/archive/taxonomy.twig
Normal file
@@ -0,0 +1,37 @@
|
||||
{# 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>
|
||||
Reference in New Issue
Block a user