feat(ip-geo): full-chain IP 归属地 on comments, user home, center, post

This commit is contained in:
kate522 committed 2026-07-25 14:39:47 +08:00
1 parent 1f2ca3ac8f
commit ac7ff8d4f2
13 files changed
+457 -33

No files matched your search

@@ -49,7 +49,7 @@ extract($context, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="uc-header__meta">
<div class="uc-header__meta desc user-identity flex ac hh">
<span class="uc-header__meta-item" title="<?php esc_attr_e('用户名', 'aksrt'); ?>">
<i class="fas fa-user" aria-hidden="true"></i> <?php echo esc_html($target_user->user_login); ?>
</span>
@@ -58,6 +58,15 @@ extract($context, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_
<i class="fas fa-envelope" aria-hidden="true"></i> <?php echo esc_html($target_user->user_email); ?>
</span>
<?php endif; ?>
<?php
// IP 归属地 (zibll user_page_header_desc + user_city_s).
$uc_city = function_exists('aksrt_get_user_city_badge_html')
? aksrt_get_user_city_badge_html((int) $user_id, 'user_center', 'badg')
: '';
if ($uc_city !== '') {
echo $uc_city; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
?>
</div>
</div>
<div class="uc-header__actions">