Code formatting
This commit is contained in:
parent
5803437442
commit
c1a09e9fd7
@ -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';
|
||||
}
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user