修复粉丝/关注 TAB 的用户列表渲染
This commit is contained in:
1 parent
c6c2c0af6d
commit
84321801a6
7 files changed
+109
-72
No files matched your search
@@ -149,11 +149,16 @@ $messages_url = function_exists('aksrt_get_messages_page_url') ? aksrt_get_messa
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<?php if ($show_follow) : ?>
|
||||
<?php if (is_user_logged_in()) : ?>
|
||||
<button type="button" class="btn-outline btn-sm aksrt-author-hero__follow-btn" data-aksrt-follow="<?php echo (int) $user_id; ?>" title="<?php esc_attr_e('关注该用户', 'aksrt'); ?>">
|
||||
<i class="fa fas fa-heart" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('关注', 'aksrt'); ?></span>
|
||||
</button>
|
||||
<?php if (is_user_logged_in()) : ?>
|
||||
<?php
|
||||
$hero_following = class_exists('\AKSRT\User\Follow')
|
||||
? \AKSRT\User\Follow::get_instance()->is_following(get_current_user_id(), (int) $user_id)
|
||||
: false;
|
||||
?>
|
||||
<button type="button" class="btn-outline btn-sm aksrt-author-hero__follow-btn<?php echo $hero_following ? ' is-following' : ''; ?>" data-aksrt-follow="<?php echo (int) $user_id; ?>" title="<?php echo $hero_following ? esc_attr__('点击取消关注', 'aksrt') : esc_attr__('关注该用户', 'aksrt'); ?>">
|
||||
<i class="fa fas fa-heart" aria-hidden="true"></i>
|
||||
<span><?php echo esc_html($hero_following ? __('已关注', 'aksrt') : __('关注', 'aksrt')); ?></span>
|
||||
</button>
|
||||
<?php else : ?>
|
||||
<a href="<?php echo esc_url(aksrt_get_login_url($home_url)); ?>" class="btn-outline btn-sm aksrt-author-hero__follow-btn">
|
||||
<i class="fa fas fa-heart" aria-hidden="true"></i>
|
||||
|
||||
Reference in new issue
Block a user