fix(user): rebuild badge modal ajax flow

This commit is contained in:
kate522 committed 2026-08-19 15:53:33 +08:00
1 parent 029df27b1d
commit 9c827ff493
14 files changed
+243 -591

No files matched your search

+4
View File
@@ -89,11 +89,15 @@ if (!function_exists('aksrt_get_modal_link')) {
$data_class = (string) ($args['data_class'] ?? 'modal-mini full-sm');
$height = isset($args['height']) ? (int) $args['height'] : 0;
$mobile = !isset($args['mobile_bottom']) || !empty($args['mobile_bottom']);
$cache = !isset($args['cache']) || !empty($args['cache']);
$attrs = ' class="' . esc_attr(trim($class . ' aksrt-modal-link')) . '"';
$attrs .= ' data-aksrt-modal="remote"';
$attrs .= ' data-aksrt-modal-url="' . esc_url($url) . '"';
$attrs .= ' data-aksrt-modal-class="' . esc_attr($data_class) . '"';
if (!$cache) {
$attrs .= ' data-aksrt-modal-cache="false"';
}
if ($height > 0) {
$attrs .= ' data-aksrt-modal-height="' . esc_attr((string) $height) . '"';
}