Files
chrnxandClaude Opus 5 49047f1337 feat: link a podcast show to where it is heard
Releases already had platform links; shows had none, so the Podcasts
page could not point at Spotify or Apple. chrnx_show terms take a
Spotify, Apple Podcasts and RSS URL now, rendered above the latest
episode and only when a URL exists.

The platform helper takes its definitions as an argument rather than
always reading the release set: a podcast lives on Apple Podcasts, not
Apple Music, and labelling it wrong would send people to the wrong
service.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 20:21:01 -05:00

32 lines
2.1 KiB
PHP

<?php
/**
* Title: Podcast landing
* Slug: chrnx/podcast-landing
* Categories: chrnx-podcasts
* Description: Layered Podcast introduction with a latest conversation and empty discovery and archive regions.
* Inserter: yes
*
* @package CHRNX
*/
?>
<!-- wp:group {"tagName":"section","className":"chrnx-podcast-landing","layout":{"type":"constrained"}} -->
<section class="wp-block-group chrnx-podcast-landing">
<!-- wp:group {"className":"chrnx-character-stage","layout":{"type":"constrained"}} -->
<div class="wp-block-group chrnx-character-stage">
<!-- wp:html --><div class="chrnx-character-stage__atmosphere" aria-hidden="true"><?php echo chrnx_get_atmosphere_markup( 'podcast-frequency', 'chrnx-character-stage__frequency' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
<!-- wp:group {"className":"chrnx-character-stage__content","layout":{"type":"constrained"}} -->
<div class="wp-block-group chrnx-character-stage__content">
<!-- wp:heading {"level":2} --><h2 class="wp-block-heading"><?php echo esc_html__( 'Podcasts', 'chrnx' ); ?></h2><!-- /wp:heading -->
<!-- wp:paragraph --><p><?php echo esc_html__( 'Conversations about the work behind software, research, music, and games.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
<!-- wp:html --><div class="chrnx-character-stage__art"><?php echo chrnx_get_topic_portrait_markup( 'podcasts', '', 'chrnx-podcast-landing__art chrnx-section-portrait' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
</div>
<!-- /wp:group -->
<!-- wp:chrnx/show-links {"show":"silicon-ranch"} /-->
<!-- wp:chrnx/latest-podcast /-->
<!-- wp:group {"metadata":{"name":"chrnx/podcast-show-discovery"},"layout":{"type":"constrained"}} --><div class="wp-block-group"></div><!-- /wp:group -->
<!-- wp:group {"metadata":{"name":"chrnx/podcast-archive"},"layout":{"type":"constrained"}} --><div class="wp-block-group"></div><!-- /wp:group -->
</section>
<!-- /wp:group -->