0 ? $author_page : false; $author_statistics = fictioneer_get_author_statistics( $author_id ); $max_pages = 1; $tabs = []; // Stories tab $tabs['stories'] = array( 'name' => __( 'Stories', 'fictioneer' ), 'query_args' => array( 'fictioneer_query_name' => 'author_stories', 'post_type' => 'fcn_story', 'author' => $author_id, 'orderby' => 'modified', 'paged' => $current_page, 'order' => $order ), 'classes' => [], 'empty' => __( 'No stories published yet.', 'fictioneer' ) ); // Chapters tab $tabs['chapters'] = array( 'name' => __( 'Chapters', 'fictioneer' ), 'query_args' => array( 'fictioneer_query_name' => 'author_chapters', 'post_type' => 'fcn_chapter', 'author' => $author_id, 'paged' => $current_page, 'order' => $order ), 'classes' => [], 'empty' => __( 'No chapters published yet.', 'fictioneer' ) ); // Recommendations tab if ( user_can( $author_id, 'publish_fcn_recommendations' ) ) { $tabs['recommendations'] = array( 'name' => __( 'Recommendations', 'fictioneer' ), 'query_args' => array( 'fictioneer_query_name' => 'author_recommendations', 'post_type' => 'fcn_recommendation', 'author' => $author_id, 'paged' => $current_page, 'order' => $order ), 'classes' => [], 'empty' => __( 'No recommendations published yet.', 'fictioneer' ) ); } // Use first tab if queried tab is not available if ( ! array_key_exists( $current_tab, $tabs ) ) { $current_tab = array_key_first( $tabs ); } // Select tab $tabs[ $current_tab ]['classes'][] = '_current'; ?>
display_name; $title = empty( $title ) ? $author->display_name : $title; $order_link = add_query_arg( array( 'tab' => $current_tab, 'order' => $order === 'desc' ? 'asc' : 'desc' ), $current_url ) . '#main'; ?>

user_description ) ) : ?>
user_description ) ) { echo $author->user_description; } ?>
$value ) : ?>
add_query_arg( 'pg', '%#%' ), 'format' => '?pg=%#%', 'current' => max( 1, $current_page ), 'prev_text' => fcntr( 'previous' ), 'next_text' => fcntr( 'next' ), 'add_args' => $current_tab ? array( 'tab' => $current_tab ) : null, 'add_fragment' => '#tabs', 'total' => 0 ); ?>
    true ) ); // Output list echo $list_items['html']; // Update pagination arguments $pag_args['total'] = $list_items['query']->max_num_pages ?? 1; // Output pagination if ( $pag_args['total'] > 1 ) { echo ''; } ?>
null, 'post_id' => null, 'template' => 'author.php', 'breadcrumbs' => array( [fcntr( 'frontpage' ), get_home_url()], [__( 'Author', 'fictioneer' ), null], [$author->display_name, null] ) ); // Get footer with breadcrumbs get_footer( null, $footer_args ); ?>