feat(ip-geo): full-chain IP 归属地 on comments, user home, center, post
This commit is contained in:
1 parent
1f2ca3ac8f
commit
ac7ff8d4f2
13 files changed
+457
-33
No files matched your search
@@ -94,6 +94,15 @@ $is_self = is_user_logged_in() && get_current_user_id() === $author_id;
|
||||
<?php if ($show_time) : ?>
|
||||
<span class="icon-circle" title="<?php echo esc_attr($abs_fmt); ?>" data-toggle="tooltip"><?php echo esc_html($time_text); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
// Article detail IP 归属地 (extension display: post).
|
||||
$post_city = function_exists('aksrt_get_post_author_city_badge_html')
|
||||
? aksrt_get_post_author_city_badge_html($author_id, 'badg badg-sm')
|
||||
: '';
|
||||
if ($post_city !== '') {
|
||||
echo $post_city; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
?>
|
||||
<?php if ($show_bio) : ?>
|
||||
<?php $bio = trim((string) get_the_author_meta('description')); ?>
|
||||
<?php if ($bio !== '') : ?>
|
||||
|
||||
Reference in new issue
Block a user