Code formatting

This commit is contained in:
Tetrakern 2023-11-12 14:10:59 +01:00
parent 5803437442
commit c1a09e9fd7
2 changed files with 6 additions and 2 deletions

View File

@ -28,12 +28,14 @@ $posts = array_filter( $posts, function ( $post ) {
// Chapter hidden?
if ( $post->post_type === 'fcn_chapter' ) {
$chapter_hidden = get_post_meta( $post->ID, 'fictioneer_chapter_hidden', true );
return empty( $chapter_hidden ) || $chapter_hidden === '0';
}
// Story hidden?
if ( $post->post_type === 'fcn_story' ) {
$story_hidden = get_post_meta( $post->ID, 'fictioneer_story_hidden', true );
return empty( $story_hidden ) || $story_hidden === '0';
}

View File

@ -110,10 +110,12 @@ $hook_args = array(
the_post();
// Setup
$card_args = ['show_type' => true];
$card_args = array( 'show_type' => true );
// Cached?
if ( fictioneer_caching_active() && ! fictioneer_private_caching_active() ) $card_args['cache'] = true;
if ( fictioneer_caching_active() && ! fictioneer_private_caching_active() ) {
$card_args['cache'] = true;
}
// Echo correct card
fictioneer_echo_card( $card_args );