删除私信分支链路
This commit is contained in:
1 parent
1c5c6d86bb
commit
c6c2c0af6d
39 files changed
+32
-1465
No files matched your search
@@ -19,7 +19,6 @@ $page = max(1, isset($_GET['follow_page']) ? (int) $_GET['follow_page'] : 1);
|
||||
$result = $follow
|
||||
? ($active_list === 'following' ? $follow->get_following((int) $user_id, $page, 20) : $follow->get_followers((int) $user_id, $page, 20))
|
||||
: ['items' => [], 'total_pages' => 1];
|
||||
$messages_enabled = !empty($messages_url);
|
||||
?>
|
||||
<div class="widget-card uc-follow-management">
|
||||
<div class="profile-list-header">
|
||||
@@ -39,17 +38,15 @@ $messages_enabled = !empty($messages_url);
|
||||
</div>
|
||||
<?php if (!empty($result['items'])) : ?>
|
||||
<div class="uc-follow-management__list">
|
||||
<?php foreach ($result['items'] as $item) :
|
||||
$member_id = (int) ($item['user_id'] ?? 0);
|
||||
$home_url = function_exists('aksrt_get_user_home_url') ? aksrt_get_user_home_url($member_id) : '';
|
||||
$message_url = $messages_enabled ? add_query_arg('msg_type', 'conversation', $messages_url) : '';
|
||||
?>
|
||||
<?php foreach ($result['items'] as $item) :
|
||||
$member_id = (int) ($item['user_id'] ?? 0);
|
||||
$home_url = function_exists('aksrt_get_user_home_url') ? aksrt_get_user_home_url($member_id) : '';
|
||||
?>
|
||||
<div class="uc-follow-management__item" data-follow-user="<?php echo esc_attr((string) $member_id); ?>">
|
||||
<a href="<?php echo esc_url($home_url); ?>" class="uc-follow-management__avatar"><?php echo get_avatar($member_id, 48, '', (string) ($item['display_name'] ?? '')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></a>
|
||||
<div class="uc-follow-management__identity"><a href="<?php echo esc_url($home_url); ?>"><?php echo esc_html((string) ($item['display_name'] ?? '')); ?></a><span><?php echo esc_html(sprintf(__('关注于 %s', 'aksrt'), get_date_from_gmt((string) ($item['created_at'] ?? ''), get_option('date_format')))); ?></span></div>
|
||||
<div class="uc-follow-management__actions">
|
||||
<a class="btn-ghost btn-sm" href="<?php echo esc_url($home_url); ?>"><?php esc_html_e('主页', 'aksrt'); ?></a>
|
||||
<?php if ($messages_enabled) : ?><a class="btn-ghost btn-sm" href="<?php echo esc_url($message_url); ?>"><?php esc_html_e('私信', 'aksrt'); ?></a><?php endif; ?>
|
||||
<?php if ($active_list === 'following') : ?><button type="button" class="btn-outline btn-sm is-following" data-aksrt-follow="<?php echo esc_attr((string) $member_id); ?>"><i class="fa fas fa-heart" aria-hidden="true"></i><span><?php esc_html_e('已关注', 'aksrt'); ?></span></button><?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user