feat: add shared placeholder art for projects without a cover
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
8 files changed
+14
-3
No files matched your search
@@ -687,6 +687,7 @@ function chrnx_get_topic_art_asset( string $topic_slug ): string {
|
||||
'about-grunge' => 'about-grunge.png',
|
||||
'placeholder-post' => 'placeholder-post.png',
|
||||
'placeholder-release' => 'placeholder-release.png',
|
||||
'placeholder-project' => 'placeholder-project.png',
|
||||
'projects-grunge' => 'projects-grunge.png',
|
||||
'podcasts' => 'alter-ego-podcasts.png',
|
||||
'life' => 'alter-ego-life.png',
|
||||
@@ -719,5 +720,9 @@ function chrnx_get_topic_art_dimensions( string $topic_slug ): array {
|
||||
return array( 1536, 1536 );
|
||||
}
|
||||
|
||||
if ( 'placeholder-project' === $topic_slug ) {
|
||||
return array( 1534, 1025 );
|
||||
}
|
||||
|
||||
return 'gaming' === $topic_slug ? array( 1024, 1536 ) : array( 1122, 1402 );
|
||||
}
|
||||
Reference in new issue
Block a user