true, 'author-name' => true, 'category' => true, 'comments' => true, 'date' => true, 'reading-time' => false, ]; } $show_author_avatar = $args['author-avatar'] ?? in_array( 'author-avatar', $blog_meta, true ); $show_author_name = $args['author-name'] ?? in_array( 'author-name', $blog_meta, true ); $show_category = $args['category'] ?? in_array( 'category', $blog_meta, true ); $show_comments = $args['comments'] ?? in_array( 'comments', $blog_meta, true ); $show_date = $args['date'] ?? in_array( 'date', $blog_meta, true ); $show_reading_time = $args['reading-time'] ?? in_array( 'reading-time', $blog_meta, true ); $blogsy_image_animation = Helper::get_option( 'posts_animation' ); $categories = get_the_category(); $post_cls = 'post-wrapper overlay-2' . ( $blogsy_image_animation ? ' has-animation' : '' ) . ''; if ( ! empty( $categories ) ) { $post_cls .= ' term-id-' . $categories[0]->term_id; } ?>