$user_id, 'page' => $credits_page, 'per_page' => 10 ] );
} else {
$log = [ 'items' => [], 'total' => 0 ];
}
if ( ! empty( $log['items'] ) ) :
?>
= 0 ? 'is-positive' : 'is-negative';
?>
0 ? '+' : '' ) . $delta ); ?>
1 ) {
aksrt_render_profile_pagination( $total_pages, $credits_page, 'credits_page' );
}
?>
>
get_frontend_bindings_data($user_id);
$user_email = $target_user->user_email ?: '';
$binding_name_map = [
'github' => 'GitHub',
'gitee' => 'Gitee',
'qq' => 'QQ',
'google' => 'Google',
];
$binding_rows = [];
foreach ( (array) ( $oauth_data['bindings'] ?? [] ) as $binding ) {
$key = $binding['key'] ?? '';
if ( ! $key ) continue;
$binding_rows[ $key ] = [
'key' => $key,
'name' => $binding_name_map[ $key ] ?? ( $binding['name'] ?? ucfirst( $key ) ),
'icon' => $binding['icon'] ?? '',
'is_bound' => true,
'url' => '',
];
}
foreach ( (array) ( $oauth_data['available'] ?? [] ) as $binding ) {
$key = $binding['key'] ?? '';
if ( ! $key ) continue;
$binding_rows[ $key ] = [
'key' => $key,
'name' => $binding_name_map[ $key ] ?? ( $binding['name'] ?? ucfirst( $key ) ),
'icon' => $binding['icon'] ?? '',
'is_bound' => false,
'url' => $binding['url'] ?? '',
];
}
?>