feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
@@ -33,14 +33,14 @@ $root_page = get_post($root_id);
|
||||
<aside class="aksrt-doc-sidebar" role="navigation" aria-label="<?php esc_attr_e('文档导航', 'aksrt'); ?>">
|
||||
<div class="aksrt-doc-sidebar__header">
|
||||
<a href="<?php echo esc_url(get_permalink($root_id)); ?>" class="aksrt-doc-sidebar__root">
|
||||
<i class="fas fa-book aksrt-doc-sidebar__root-icon"></i>
|
||||
<i class="fa fas fa-book aksrt-doc-sidebar__root-icon"></i>
|
||||
<span><?php echo esc_html($root_page->post_title ?? __('文档', 'aksrt')); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="aksrt-doc-sidebar__search">
|
||||
<input type="text" class="aksrt-doc-sidebar__search-input" placeholder="<?php esc_attr_e('搜索文档...', 'aksrt'); ?>" aria-label="<?php esc_attr_e('搜索文档', 'aksrt'); ?>">
|
||||
<i class="fas fa-search aksrt-doc-sidebar__search-icon"></i>
|
||||
<i class="fa fas fa-search aksrt-doc-sidebar__search-icon"></i>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($doc_pages)) : ?>
|
||||
@@ -67,7 +67,7 @@ $root_page = get_post($root_id);
|
||||
<li class="<?php echo esc_attr($li_class); ?>" style="<?php echo $depth > 0 ? 'padding-left:' . ($depth * 16) . 'px;' : ''; ?>">
|
||||
<a href="<?php echo esc_url(get_permalink($dp->ID)); ?>" class="aksrt-doc-sidebar__link<?php echo $is_current ? ' is-active' : ''; ?>">
|
||||
<?php if ($has_children) : ?>
|
||||
<i class="fas fa-chevron-<?php echo $is_open ? 'down' : 'right'; ?> aksrt-doc-sidebar__toggle" aria-hidden="true"></i>
|
||||
<i class="fa fas fa-chevron-<?php echo $is_open ? 'down' : 'right'; ?> aksrt-doc-sidebar__toggle" aria-hidden="true"></i>
|
||||
<?php endif; ?>
|
||||
<span><?php echo esc_html($dp->post_title); ?></span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user