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
+11
-21
@@ -15,8 +15,6 @@ $blog_name = function_exists('aksrt_get_site_logo_text') ? aksrt_ge
|
||||
$has_settings = class_exists('\AKSRT\Settings\Settings');
|
||||
$search_placeholder = function_exists('aksrt_get_search_placeholder') ? aksrt_get_search_placeholder() : __('开启精彩搜索', 'aksrt');
|
||||
$search_hot_keywords = function_exists('aksrt_get_search_hot_keywords') ? aksrt_get_search_hot_keywords() : [];
|
||||
$search_history_enabled = function_exists('aksrt_search_history_enabled') ? aksrt_search_history_enabled() : true;
|
||||
$search_suggest_enabled = function_exists('aksrt_search_suggestions_enabled') ? aksrt_search_suggestions_enabled() : false;
|
||||
|
||||
// 联系图标 / 社交链接(legacy contacts list — fallback for more icons)
|
||||
$footer_contacts = $has_settings ? \AKSRT\Settings\Settings::get_footer_contacts() : [];
|
||||
@@ -221,7 +219,7 @@ if ($_footer_conter === '') {
|
||||
<div class="footer-contact mt10<?php echo esc_attr($_contact_xs_cls); ?>">
|
||||
<?php if (!empty($footer_contact_ext['wechat_img'])) : ?>
|
||||
<a class="toggle-radius hover-show nowave" href="javascript:;" title="<?php esc_attr_e('微信', 'aksrt'); ?>">
|
||||
<i class="fab fa-weixin" aria-hidden="true"></i>
|
||||
<i class="fa fab fa-weixin" aria-hidden="true"></i>
|
||||
<div class="hover-show-con footer-wechat-img">
|
||||
<img style="box-shadow: 0 5px 10px rgba(0,0,0,.2); border-radius:4px;" height="100" src="<?php echo esc_url($footer_contact_ext['wechat_img']); ?>" alt="<?php esc_attr_e('微信', 'aksrt'); ?>">
|
||||
</div>
|
||||
@@ -229,17 +227,17 @@ if ($_footer_conter === '') {
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($footer_contact_ext['qq'])) : ?>
|
||||
<a class="toggle-radius" target="_blank" rel="noopener noreferrer" title="<?php esc_attr_e('QQ', 'aksrt'); ?>" href="<?php echo esc_url('https://wpa.qq.com/msgrd?v=3&uin=' . rawurlencode((string) $footer_contact_ext['qq']) . '&site=qq&menu=yes'); ?>">
|
||||
<i class="fab fa-qq" aria-hidden="true"></i>
|
||||
<i class="fa fab fa-qq" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($footer_contact_ext['weibo'])) : ?>
|
||||
<a class="toggle-radius" target="_blank" rel="noopener noreferrer" title="<?php esc_attr_e('微博', 'aksrt'); ?>" href="<?php echo esc_url($footer_contact_ext['weibo']); ?>">
|
||||
<i class="fab fa-weibo" aria-hidden="true"></i>
|
||||
<i class="fa fab fa-weibo" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($footer_contact_ext['email'])) : ?>
|
||||
<a class="toggle-radius" title="<?php esc_attr_e('邮箱', 'aksrt'); ?>" href="<?php echo esc_url('mailto:' . $footer_contact_ext['email']); ?>">
|
||||
<i class="fas fa-envelope" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-envelope" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php foreach ((array) ($footer_contact_ext['more'] ?? []) as $more_item) :
|
||||
@@ -254,7 +252,7 @@ if ($_footer_conter === '') {
|
||||
? aksrt_brand_icon($m_icon)
|
||||
: '';
|
||||
if ($m_icon_html === '') {
|
||||
$m_icon_html = '<i class="fas fa-heart" aria-hidden="true"></i>';
|
||||
$m_icon_html = '<i class="fa fas fa-heart" aria-hidden="true"></i>';
|
||||
}
|
||||
if ($m_img !== '') :
|
||||
?>
|
||||
@@ -276,7 +274,7 @@ if ($_footer_conter === '') {
|
||||
$c_label = $contact['title'] ?? ($contact['label'] ?? (function_exists('aksrt_icon_key_to_name') ? aksrt_icon_key_to_name($c_icon) : ''));
|
||||
$c_icon_html = function_exists('aksrt_brand_icon') ? aksrt_brand_icon((string) $c_icon) : '';
|
||||
if ($c_icon_html === '') {
|
||||
$c_icon_html = '<i class="fas fa-globe" aria-hidden="true"></i>';
|
||||
$c_icon_html = '<i class="fa fas fa-globe" aria-hidden="true"></i>';
|
||||
}
|
||||
?>
|
||||
<a class="toggle-radius" href="<?php echo esc_url($c_url); ?>" target="_blank" rel="noopener noreferrer" title="<?php echo esc_attr($c_label); ?>" aria-label="<?php echo esc_attr($c_label); ?>">
|
||||
@@ -354,7 +352,7 @@ if ($floating_enabled) :
|
||||
<div id="float-right-btns" class="<?php echo esc_attr($floating_classes); ?>">
|
||||
<?php foreach ($floating_items as $item) :
|
||||
$item_type = $item['type'] ?? 'custom';
|
||||
$item_icon = $item['icon'] ?? 'fas fa-circle';
|
||||
$item_icon = $item['icon'] ?? 'fa fas fa-circle';
|
||||
$item_text = $item['text'] ?? '';
|
||||
$item_url = $item['link'] ?? '#';
|
||||
$item_target = !empty($item['new_window']) ? ' target="_blank" rel="noopener noreferrer"' : '';
|
||||
@@ -389,8 +387,8 @@ if ($floating_enabled) :
|
||||
$item_class .= ' theme-toggle-btn';
|
||||
?>
|
||||
<a href="#" class="<?php echo esc_attr($item_class); ?>" role="button" data-action="toggle-theme" aria-label="<?php echo esc_attr($item_text ?: __('切换主题', 'aksrt')); ?>"<?php echo $style_attr; ?>>
|
||||
<i class="fas fa-sun float-btn__icon-sun" aria-hidden="true"></i>
|
||||
<i class="fas fa-moon float-btn__icon-moon" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-sun float-btn__icon-sun" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-moon float-btn__icon-moon" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php elseif ($item_type === 'pay_vip') :
|
||||
$vip_html = function_exists('aksrt_get_float_pay_vip_html') ? aksrt_get_float_pay_vip_html($item) : '';
|
||||
@@ -438,7 +436,7 @@ if ($floating_enabled) :
|
||||
<div class="float-add-menu">
|
||||
<?php foreach ($add_items as $sub) :
|
||||
$sub_url = $sub['url'] ?? '#';
|
||||
$sub_icon = $sub['icon'] ?? 'fas fa-plus';
|
||||
$sub_icon = $sub['icon'] ?? 'fa fas fa-plus';
|
||||
$sub_text = $sub['text'] ?? '';
|
||||
?>
|
||||
<a href="<?php echo esc_url($sub_url); ?>" class="float-add-menu__item">
|
||||
@@ -496,7 +494,7 @@ if ($floating_enabled) :
|
||||
foreach ($tabbar_items as $tab_item) :
|
||||
$tab_type = sanitize_key((string) ($tab_item['type'] ?? 'custom'));
|
||||
$tab_text = (string) ($tab_item['text'] ?? '');
|
||||
$tab_icon = (string) ($tab_item['icon'] ?? 'fas fa-circle');
|
||||
$tab_icon = (string) ($tab_item['icon'] ?? 'fa fas fa-circle');
|
||||
$tab_href = home_url('/');
|
||||
if ($tab_type === 'category') {
|
||||
$tab_href = get_post_type_archive_link('post') ?: home_url('/');
|
||||
@@ -519,14 +517,6 @@ if ($floating_enabled) :
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
// Global search panel (desktop header button + mobile tabbar search).
|
||||
$aksrt_search_panel = AKSRT_DIR . '/templates/parts/search-panel.php';
|
||||
if (is_readable($aksrt_search_panel)) {
|
||||
include $aksrt_search_panel;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 弹窗登录/注册模板(仅未登录用户)
|
||||
if (!is_user_logged_in() && file_exists(AKSRT_DIR . '/templates/parts/modal-auth.php')) {
|
||||
|
||||
Reference in new issue
Block a user