feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
@@ -67,19 +67,19 @@ $pm_url = ($pm_enabled && $messages_url !== '')
|
||||
<?php if ($follower_count > 0) : ?>
|
||||
<div class="aksrt-author-hero__cover-metas" aria-label="<?php esc_attr_e('主页数据', 'aksrt'); ?>">
|
||||
<span class="aksrt-author-hero__cover-meta" title="<?php esc_attr_e('粉丝', 'aksrt'); ?>">
|
||||
<i class="fas fa-heart" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-heart" aria-hidden="true"></i>
|
||||
<?php echo esc_html((string) $follower_count); ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($has_more_details || ($show_report && !$is_own)) : ?>
|
||||
<div class="aksrt-cover-menu aksrt-cover-menu--author" data-aksrt-menu>
|
||||
<button type="button" class="aksrt-cover-menu__trigger" aria-haspopup="true" aria-expanded="false" aria-label="<?php esc_attr_e('个人主页操作', 'aksrt'); ?>"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></button>
|
||||
<button type="button" class="aksrt-cover-menu__trigger" aria-haspopup="true" aria-expanded="false" aria-label="<?php esc_attr_e('个人主页操作', 'aksrt'); ?>"><i class="fa fas fa-ellipsis-h" aria-hidden="true"></i></button>
|
||||
<div class="aksrt-cover-menu__panel" role="menu" hidden>
|
||||
<?php if ($has_more_details) : ?><button type="button" role="menuitem" data-aksrt-profile-details><i class="fas fa-address-card" aria-hidden="true"></i><?php esc_html_e('更多资料', 'aksrt'); ?></button><?php endif; ?>
|
||||
<?php if ($has_more_details) : ?><button type="button" role="menuitem" data-aksrt-profile-details><i class="fa fas fa-address-card" aria-hidden="true"></i><?php esc_html_e('更多资料', 'aksrt'); ?></button><?php endif; ?>
|
||||
<?php if ($show_report && !$is_own) : ?>
|
||||
<?php if (is_user_logged_in()) : ?><button type="button" role="menuitem" data-aksrt-report='{"target_type":"user","target_id":<?php echo (int) $user_id; ?>}'><i class="far fa-flag" aria-hidden="true"></i><?php esc_html_e('举报用户', 'aksrt'); ?></button>
|
||||
<?php else : ?><a role="menuitem" href="<?php echo esc_url(aksrt_get_login_url($home_url)); ?>"><i class="far fa-flag" aria-hidden="true"></i><?php esc_html_e('举报用户', 'aksrt'); ?></a><?php endif; ?>
|
||||
<?php if (is_user_logged_in()) : ?><button type="button" role="menuitem" data-aksrt-report='{"target_type":"user","target_id":<?php echo (int) $user_id; ?>}'><i class="fa fas fa-flag" aria-hidden="true"></i><?php esc_html_e('举报用户', 'aksrt'); ?></button>
|
||||
<?php else : ?><a role="menuitem" href="<?php echo esc_url(aksrt_get_login_url($home_url)); ?>"><i class="fa fas fa-flag" aria-hidden="true"></i><?php esc_html_e('举报用户', 'aksrt'); ?></a><?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -141,12 +141,12 @@ $pm_url = ($pm_enabled && $messages_url !== '')
|
||||
<div class="aksrt-author-hero__actions">
|
||||
<?php if ($is_own) : ?>
|
||||
<a href="<?php echo esc_url(aksrt_get_user_center_url()); ?>" class="btn-primary btn-sm">
|
||||
<i class="fas fa-user" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-user" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('用户中心', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php if ($show_message && $messages_url !== '') : ?>
|
||||
<a href="<?php echo esc_url($messages_url); ?>" class="btn-ghost btn-sm">
|
||||
<i class="fas fa-bell" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-bell" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('消息', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
@@ -154,12 +154,12 @@ $pm_url = ($pm_enabled && $messages_url !== '')
|
||||
<?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="far fa-heart" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-heart" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('关注', '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="far fa-heart" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-heart" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('登录后关注', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
@@ -168,12 +168,12 @@ $pm_url = ($pm_enabled && $messages_url !== '')
|
||||
<?php if ($show_message && $pm_url !== '') : ?>
|
||||
<?php if (is_user_logged_in()) : ?>
|
||||
<a href="<?php echo esc_url($pm_url); ?>" class="btn-primary btn-sm">
|
||||
<i class="fas fa-comment" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-comment" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('私信', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<a href="<?php echo esc_url(aksrt_get_login_url($home_url)); ?>" class="btn-primary btn-sm">
|
||||
<i class="fas fa-comment" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-comment" aria-hidden="true"></i>
|
||||
<span><?php esc_html_e('私信', 'aksrt'); ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user