Files
chrnx-dev-wp/inc/assets.php
T
chrnx 76917decd0 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.
2026-08-27 20:24:39 -05:00

41 lines
765 B
PHP

<?php
/**
* Frontend assets.
*
* @package CHRNX
*/
/**
* Enqueue the minimal frontend stylesheet.
*/
function chrnx_enqueue_assets() {
wp_enqueue_style(
'chrnx-base',
get_theme_file_uri( 'assets/css/base.css' ),
array(),
CHRNX_VERSION
);
wp_enqueue_style(
'chrnx-layout',
get_theme_file_uri( 'assets/css/layout.css' ),
array( 'chrnx-base' ),
CHRNX_VERSION
);
wp_enqueue_style(
'chrnx-components',
get_theme_file_uri( 'assets/css/components.css' ),
array( 'chrnx-layout' ),
CHRNX_VERSION
);
if ( is_singular( 'post' ) ) {
wp_enqueue_script(
'chrnx-track-share',
get_theme_file_uri( 'assets/js/track-share.js' ),
array(),
CHRNX_VERSION,
true
);
}
}
add_action( 'wp_enqueue_scripts', 'chrnx_enqueue_assets' );