fcntr( 'follows' ), 'post_ids' => array_keys( $follows['data'] ), 'classes' => [], 'empty' => __( 'You are not following any stories.', 'fictioneer' ) ); } // Reminders? if ( get_option( 'fictioneer_enable_reminders' ) ) { $reminders = fictioneer_load_reminders( $user ); // Add to tabs $tabs['reminders'] = array( 'name' => fcntr( 'reminders' ), 'post_ids' => array_keys( $reminders['data'] ), 'classes' => [], 'empty' => __( 'You have not marked any stories to be read later.', 'fictioneer' ) ); } // Checkmarks? if ( get_option( 'fictioneer_enable_checkmarks' ) ) { $checkmarks = fictioneer_load_checkmarks( $user ); // Add to tabs $tabs['finished'] = array( 'name' => __( 'Finished', 'fictioneer' ), 'post_ids' => fictioneer_get_finished_checkmarks( $checkmarks ), 'classes' => [], 'empty' => __( 'You have not marked any stories as finished.', 'fictioneer' ) ); } // Return home if nothing to display if ( count( $tabs ) < 1 ) { wp_redirect( home_url() ); exit(); } // 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'; ?>
$current_tab, 'order' => ['desc' => 'asc', 'asc' => 'desc'][ $order ] ), $current_url ) . '#main'; // Pagination $current_page = get_query_var( 'pg', 1 ); $max_pages = 1; ?>

1 ) : ?>
$value ) : ?> ()
add_query_arg( 'pg', '%#%' ), 'format' => '?pg=%#%', 'current' => max( 1, $current_page ), 'prev_text' => fcntr( 'previous' ), 'next_text' => fcntr( 'next' ), 'add_args' => $current_tab ? ['tab' => $current_tab] : null, 'add_fragment' => '#tabs', 'total' => 0 ); ?>
    $tabs[ $current_tab ]['post_ids'], 'paged' => $current_page, 'order' => $order ), $tabs[ $current_tab ]['empty'], ['show_latest' => 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 ''; } ?>
'page', 'post_id' => get_the_ID(), 'breadcrumbs' => array( [fcntr( 'frontpage' ), get_home_url()], [fcntr( 'account' ), $profile_link] ) ); // Add current breadcrumb $footer_args['breadcrumbs'][] = $this_breadcrumb; // Get footer with breadcrumbs get_footer( null, $footer_args ); ?>