feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -74,12 +74,12 @@ if (!function_exists('aksrt_get_posts_meta_items_html')) :
|
||||
: get_comments_link($post_id);
|
||||
$count = (int) get_comments_number($post_id);
|
||||
$html .= '<span class="item meta-comm"><a rel="nofollow" href="' . esc_attr($href) . '" title="' . esc_attr__('去评论', 'aksrt') . '">'
|
||||
. '<i class="fa fa-comment-o" aria-hidden="true"></i> ' . esc_html((string) $count) . '</a></span>';
|
||||
. '<i class="fa fas fa-comment" aria-hidden="true"></i> ' . esc_html((string) $count) . '</a></span>';
|
||||
}
|
||||
|
||||
$views = function_exists('aksrt_get_post_views') ? (int) aksrt_get_post_views($post_id) : 0;
|
||||
$views_label = function_exists('aksrt_format_number') ? aksrt_format_number($views) : number_format_i18n($views);
|
||||
$html .= '<span class="item meta-view"><i class="fa fa-eye" aria-hidden="true"></i> ' . esc_html((string) $views_label) . '</span>';
|
||||
$html .= '<span class="item meta-view"><i class="fa fas fa-eye" aria-hidden="true"></i> ' . esc_html((string) $views_label) . '</span>';
|
||||
|
||||
$like_on = true;
|
||||
if (class_exists('\AKSRT\Settings\Settings')) {
|
||||
@@ -88,7 +88,7 @@ if (!function_exists('aksrt_get_posts_meta_items_html')) :
|
||||
}
|
||||
if ($like_on && $post->post_type === 'post') {
|
||||
$likes = function_exists('aksrt_get_post_likes') ? (int) aksrt_get_post_likes($post_id) : 0;
|
||||
$html .= '<span class="item meta-like"><i class="fa fa-heart-o" aria-hidden="true"></i> ' . esc_html((string) $likes) . '</span>';
|
||||
$html .= '<span class="item meta-like"><i class="fa fas fa-heart" aria-hidden="true"></i> ' . esc_html((string) $likes) . '</span>';
|
||||
}
|
||||
|
||||
return $html;
|
||||
@@ -131,16 +131,16 @@ if (!function_exists('aksrt_get_single_meta_box')) :
|
||||
|
||||
$more .= '<div class="clearfix ml6 post-drop-meta">';
|
||||
$more .= '<button type="button" class="but cir post-drop-meta__toggle" aria-haspopup="true" aria-expanded="false" aria-label="' . esc_attr__('更多', 'aksrt') . '">';
|
||||
$more .= '<i class="fa fa-ellipsis-h" aria-hidden="true"></i></button>';
|
||||
$more .= '<i class="fa fas fa-ellipsis-h" aria-hidden="true"></i></button>';
|
||||
$more .= '<div class="post-drop-meta__menu" aria-hidden="true">';
|
||||
if ($edit_link) {
|
||||
$more .= '<a href="' . esc_url($edit_link) . '" class="post-drop-meta__item"><i class="fa fa-edit" aria-hidden="true"></i><span>' . esc_html__('编辑文章', 'aksrt') . '</span></a>';
|
||||
$more .= '<a href="' . esc_url($edit_link) . '" class="post-drop-meta__item"><i class="fa fas fa-edit" aria-hidden="true"></i><span>' . esc_html__('编辑文章', 'aksrt') . '</span></a>';
|
||||
}
|
||||
$more .= '<button type="button" class="post-drop-meta__item" data-share-copy data-share-url="' . esc_url((string) $permalink) . '"><i class="fa fa-link" aria-hidden="true"></i><span>' . esc_html__('复制链接', 'aksrt') . '</span></button>';
|
||||
$more .= '<button type="button" class="post-drop-meta__item" data-share-copy data-share-url="' . esc_url((string) $permalink) . '"><i class="fa fas fa-link" aria-hidden="true"></i><span>' . esc_html__('复制链接', 'aksrt') . '</span></button>';
|
||||
if (is_user_logged_in()) {
|
||||
$more .= '<button type="button" class="post-drop-meta__item" data-aksrt-report=\'{"target_type":"post","target_id":' . (int) $post_id . '}\'><i class="fa fa-flag" aria-hidden="true"></i><span>' . esc_html__('举报', 'aksrt') . '</span></button>';
|
||||
$more .= '<button type="button" class="post-drop-meta__item" data-aksrt-report=\'{"target_type":"post","target_id":' . (int) $post_id . '}\'><i class="fa fas fa-flag" aria-hidden="true"></i><span>' . esc_html__('举报', 'aksrt') . '</span></button>';
|
||||
} else {
|
||||
$more .= '<a href="' . esc_url($login_url) . '" class="post-drop-meta__item"><i class="fa fa-flag" aria-hidden="true"></i><span>' . esc_html__('登录后举报', 'aksrt') . '</span></a>';
|
||||
$more .= '<a href="' . esc_url($login_url) . '" class="post-drop-meta__item"><i class="fa fas fa-flag" aria-hidden="true"></i><span>' . esc_html__('登录后举报', 'aksrt') . '</span></a>';
|
||||
}
|
||||
$more .= '</div></div>';
|
||||
|
||||
@@ -214,7 +214,7 @@ if (!function_exists('aksrt_get_single_article_tags_html')) :
|
||||
$cat_html = aksrt_get_colored_term_tags(
|
||||
$cats,
|
||||
'but ml6 radius',
|
||||
'<i class="fa fa-folder-open-o" aria-hidden="true"></i> ',
|
||||
'<i class="fa fas fa-folder-open" aria-hidden="true"></i> ',
|
||||
['c-blue', 'c-yellow', 'c-green', 'c-purple', 'c-red']
|
||||
);
|
||||
|
||||
@@ -379,7 +379,7 @@ if (!function_exists('aksrt_resolve_allow_view_rule')) :
|
||||
$data['not_html'] = aksrt_get_allow_view_deny_shell(
|
||||
__('内容已隐藏,请登录后查看', 'aksrt'),
|
||||
'<div class="text-center em09 mt20"><p class="separator muted-3-color mb20">' . esc_html__('登录后继续查看', 'aksrt') . '</p>'
|
||||
. '<p><a href="' . esc_url($login_url) . '" class="but jb-blue padding-lg"><i class="fa fa-fw fa-sign-in" aria-hidden="true"></i>' . esc_html__('登录', 'aksrt') . '</a></p></div>'
|
||||
. '<p><a href="' . esc_url($login_url) . '" class="but jb-blue padding-lg"><i class="fa fas fa-fw fa-sign-in-alt" aria-hidden="true"></i>' . esc_html__('登录', 'aksrt') . '</a></p></div>'
|
||||
);
|
||||
} else {
|
||||
$data['allow_reason'] = __('您已登录,可查看此内容', 'aksrt');
|
||||
@@ -450,7 +450,7 @@ if (!function_exists('aksrt_get_allow_view_deny_shell')) :
|
||||
function aksrt_get_allow_view_deny_shell(string $title, string $body_html): string {
|
||||
return '<div class="zib-widget text-center allow-view-deny">'
|
||||
. '<div class="box-body">'
|
||||
. '<p class="em12 muted-2-color mb10"><i class="fa fa-lock fa-2x" aria-hidden="true"></i></p>'
|
||||
. '<p class="em12 muted-2-color mb10"><i class="fa fas fa-lock fa-2x" aria-hidden="true"></i></p>'
|
||||
. '<h3 class="em12">' . esc_html($title) . '</h3>'
|
||||
. $body_html
|
||||
. '</div></div>';
|
||||
@@ -502,7 +502,7 @@ if (!function_exists('aksrt_render_related_graphic_card')) :
|
||||
$html .= '<div class="abs-center left-bottom graphic-text">';
|
||||
$html .= '<div class="text1 text-ellipsis">' . esc_html($title) . '</div>';
|
||||
$html .= '<div class="text3 muted-2-color em09"><span class="item">' . esc_html($time) . '</span>';
|
||||
$html .= '<span class="item pull-right"><i class="fa fa-eye" aria-hidden="true"></i> ' . esc_html((string) $views_label) . '</span></div>';
|
||||
$html .= '<span class="item pull-right"><i class="fa fas fa-eye" aria-hidden="true"></i> ' . esc_html((string) $views_label) . '</span></div>';
|
||||
$html .= '</div></div></a></div></div>';
|
||||
return $html;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user