$tab ) : ?>
>

$contact ) : ?>
>

__( '已发布', 'aksrt' ), 'draft' => __( '草稿', 'aksrt' ), 'pending' => __( '待审', 'aksrt' ), 'private' => __( '私密', 'aksrt' ), 'all' => __( '全部', 'aksrt' ), ]; ?>
$status_text ) : $count_for_chip = ( 'all' === $status_key ) ? $post_count : ( $user_status_counts[ $status_key ] ?? 0 ); if ( 'publish' !== $status_key && 'all' !== $status_key && $count_for_chip < 1 ) { continue; } $chip_url = add_query_arg( [ 'tab' => 'posts', 'post_status' => $status_key, 'posts_page' => 1, ], remove_query_arg( [ 'posts_page' ] ) ); $chip_active = ( $post_status_filter === $status_key ); ?>
$user_id, 'post_status' => ( 'all' === $post_status_filter ) ? [ 'publish', 'draft', 'pending', 'private' ] : $post_status_filter, 'posts_per_page' => $per_page, 'paged' => $posts_page, 'no_found_rows' => false, 'update_post_meta_cache' => false, 'update_post_term_cache' => true, ]; $q = new WP_Query( $ps_args ); if ( $q->have_posts() ) : ?>
have_posts() ) : $q->the_post(); $st = get_post_status(); $status_label = ''; if ( 'publish' !== $st ) { $st_map = [ 'draft' => __( '草稿', 'aksrt' ), 'pending' => __( '待审', 'aksrt' ), 'private' => __( '私密', 'aksrt' ), 'future' => __( '定时', 'aksrt' ), ]; $status_label = $st_map[ $st ] ?? $st; } set_query_var( 'aksrt_profile_item_status', $status_label ); $edit_link = get_edit_post_link(); set_query_var( 'aksrt_profile_item_action', $edit_link ? [ 'type' => 'edit', 'url' => $edit_link, 'label' => __( '编辑', 'aksrt' ), ] : [] ); get_template_part( 'templates/parts/content', 'profile-list-item' ); endwhile; ?>
max_num_pages, $posts_page, 'posts_page' ); ?>
>

$user_id, 'number' => $per_page, 'offset' => ( $comments_page - 1 ) * $per_page, 'status' => 'approve', 'update_comment_meta_cache' => false, ] ); if ( $cs ) : ?>
>

'post', 'post_status' => 'publish', 'post__in' => $favorite_post_ids, 'orderby' => 'post__in', 'posts_per_page' => $per_page, 'paged' => $favorites_page, 'ignore_sticky_posts' => true, 'no_found_rows' => false, 'update_post_meta_cache' => false, ] ); if ( $favorites_query->have_posts() ) : ?>
have_posts() ) : $favorites_query->the_post(); set_query_var( 'aksrt_profile_item_action', [ 'type' => 'unfavorite', 'url' => '#', 'label' => __( '取消收藏', 'aksrt' ), ] ); set_query_var( 'aksrt_profile_item_status', '' ); get_template_part( 'templates/parts/content', 'profile-list-item' ); endwhile; ?>
max_num_pages, $favorites_page, 'favorites_page' ); ?>
>

get_recent_signins($user_id, 30); $signin_dates = array_map(function ($entry) { return $entry['signin_date'] ?? ''; }, $signin_log); $signin_dates = array_filter($signin_dates); } ?>