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'; // Header get_header( null, array( 'no_index' => 1 ) ); ?>
$current_tab, 'order' => $order === 'desc' ? 'asc' : 'desc' ), $current_url ) . '#main'; ?>

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 ? array( 'tab' => $current_tab ) : null, 'add_fragment' => '#tabs', 'total' => 0 ); ?>
    "bookshelf_{$current_tab}", 'post__in' => $tabs[ $current_tab ]['post_ids'], 'paged' => $current_page, 'order' => $order ), $tabs[ $current_tab ]['empty'], array( '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 ); ?>