fix: optimize CHRNX editorial media
This commit is contained in:
14 files changed
+252
-46
No files matched your search
+8
-7
@@ -624,13 +624,14 @@ function chrnx_get_related_post_ids( int $post_id, int $limit = 3 ): array {
|
||||
*/
|
||||
function chrnx_get_topic_art_asset( string $topic_slug ): string {
|
||||
$mapping = array(
|
||||
'research' => 'alter-ego-research.png',
|
||||
'code' => 'alter-ego-code.png',
|
||||
'literature' => 'alter-ego-literature.png',
|
||||
'music' => 'the-no-names-musician-cutout.png',
|
||||
'podcasts' => 'alter-ego-podcasts.png',
|
||||
'life' => 'alter-ego-life.png',
|
||||
'gaming' => 'alter-ego-gaming.png',
|
||||
'research' => 'alter-ego-research.png',
|
||||
'code' => 'alter-ego-code.png',
|
||||
'literature' => 'alter-ego-literature.png',
|
||||
'music' => 'the-no-names-musician-cutout.png',
|
||||
'music-collage' => 'the-no-names-collage.jpeg',
|
||||
'podcasts' => 'alter-ego-podcasts.png',
|
||||
'life' => 'alter-ego-life.png',
|
||||
'gaming' => 'alter-ego-gaming.png',
|
||||
);
|
||||
return isset( $mapping[ $topic_slug ] ) ? 'assets/images/' . $mapping[ $topic_slug ] : '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user