feat(credits): check-in details modal + history; oneline/tilt widgets

Add zibll-like check-in details remote modal (REST/AJAX), history
endpoint, header details link, and keep oneline posts + tilt showcase
widgets from this batch.
This commit is contained in:
kate522 committed 2026-07-19 00:48:46 +08:00
1 parent 3efcc440c4
commit be4f23fd6f
5 files changed
+331 -6

No files matched your search

+17 -2
View File
@@ -39,17 +39,32 @@ if (!function_exists('aksrt_header_user_checkin_btn')) :
$signed = false;
}
$details = '';
if (function_exists('aksrt_get_remote_modal_link')) {
$details = aksrt_get_remote_modal_link([
'tag' => 'a',
'class' => 'aksrt-header-checkin-details muted-2-color em09 mt6 block text-center',
'text' => __('签到详情', 'aksrt'),
'query_arg' => ['action' => 'aksrt_checkin_details_modal'],
'data_class' => 'modal-mini full-sm',
'height' => 420,
'mobile_bottom' => true,
]);
}
if ($signed) {
return '<button type="button" class="but block c-yellow aksrt-header-checkin is-done" disabled>'
. '<i class="fa fa-calendar-check-o" aria-hidden="true"></i> '
. esc_html__('今日已签到', 'aksrt')
. '</button>';
. '</button>'
. $details;
}
return '<button type="button" class="but block c-yellow aksrt-header-checkin" data-aksrt-checkin="1">'
. '<i class="fa fa-calendar-check-o" aria-hidden="true"></i> '
. esc_html__('签到领取今日奖励', 'aksrt')
. '</button>';
. '</button>'
. $details;
}
endif;