Files
chrnx-dev-wp/patterns/home-projects.php
T
chrnxandClaude Opus 5 20c47c927a feat: give releases and tracks their own pages
Albums were three hardcoded cards. An album is a chrnx_release term
now, with cover, status and listening links; its archive is the album
page with an ordered tracklist. A song is a post carrying lyrics and
notes, its track number, and the audio.

The player is a native audio element, no library and no JavaScript.
Platform icons render only when a URL exists, so nothing points at a
service the release is not on yet.

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

28 lines
1.7 KiB
PHP

<?php
/**
* Title: Home projects
* Slug: chrnx/home-projects
* Categories: chrnx-home, chrnx-projects
* Description: Selected areas of public work without fabricated metrics or links.
* Inserter: yes
*
* @package CHRNX
*/
?>
<!-- wp:group {"tagName":"section","className":"chrnx-home-projects","layout":{"type":"constrained"}} -->
<section class="wp-block-group chrnx-home-projects">
<!-- 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( 'projects-grunge', 'chrnx-character-stage__backdrop' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?><?php echo chrnx_get_topic_portrait_markup( 'research', '', 'chrnx-character-stage__secondary-art' ); // 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 --><h2 class="wp-block-heading"><?php echo esc_html__( 'Selected work', 'chrnx' ); ?></h2><!-- /wp:heading -->
<!-- wp:chrnx/selected-work /-->
</div>
<!-- /wp:group -->
<!-- wp:html --><div class="chrnx-character-stage__art"><?php echo chrnx_get_topic_portrait_markup( 'code', '', 'chrnx-section-portrait' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Helper returns escaped, allowlisted markup. ?></div><!-- /wp:html -->
</div>
<!-- /wp:group -->
</section>
<!-- /wp:group -->