feat(editorial): widen sections and add local track pages

Unify the editorial canvas across section pages, keep release tracks out of Journal, and give each song a listening surface with audio, metadata, platform links, sharing, and optional featured art. Document and seed the local The No Names fixture without changing production data.
This commit is contained in:
chrnx committed 2026-08-27 20:24:39 -05:00
1 parent 135b462bd2
commit 76917decd0
23 files changed
+770 -50

No files matched your search

+9 -4
View File
@@ -10,10 +10,11 @@ if ( ! chrnx_is_eligible_editorial_post( $chrnx_post_id ) ) {
return;
}
$chrnx_release = chrnx_get_track_release( $chrnx_post_id );
$chrnx_player = chrnx_get_track_player_markup( $chrnx_post_id );
$chrnx_links = chrnx_get_track_links( $chrnx_post_id );
$chrnx_number = absint( get_post_meta( $chrnx_post_id, 'chrnx_track_number', true ) );
$chrnx_release = chrnx_get_track_release( $chrnx_post_id );
$chrnx_player = chrnx_get_track_player_markup( $chrnx_post_id );
$chrnx_links = chrnx_get_track_links( $chrnx_post_id );
$chrnx_number = absint( get_post_meta( $chrnx_post_id, 'chrnx_track_number', true ) );
$chrnx_description = (string) get_post_meta( $chrnx_post_id, 'chrnx_track_description', true );
// Nothing invented: without any track data this block stays silent.
if ( null === $chrnx_release && '' === $chrnx_player && empty( $chrnx_links ) ) {
@@ -42,5 +43,9 @@ $chrnx_release_link = null !== $chrnx_release ? get_term_link( $chrnx_release )
</p>
<?php endif; ?>
<?php echo chrnx_get_platform_links_markup( $chrnx_links, 'chrnx-platform-links' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<?php if ( '' !== trim( $chrnx_description ) ) : ?>
<p class="chrnx-track-meta__description"><?php echo esc_html( $chrnx_description ); ?></p>
<?php endif; ?>
<button class="chrnx-track-meta__share" type="button" data-chrnx-share data-share-title="<?php echo esc_attr( get_the_title( $chrnx_post_id ) ); ?>" data-share-url="<?php echo esc_url( get_permalink( $chrnx_post_id ) ); ?>"><?php echo esc_html__( 'Compartir', 'chrnx' ); ?></button>
</div>
</section>