<div class="top_left">

    <div th:if="${theme.config.base_top_set.top_nav_on_web}" class="top_nav top_tool not_mobile">
        <a class="top_nav_btn"><i class="ri-menu-2-line"></i></a>
        <div class="top_menu_box"
            uk-dropdown="mode: click;flip: false;offset: 12;toggle:.top_nav_btn;animation:uk-animation-slide-top-small;animate-out:uk-animation-slide-top-small;delay-hide:5000;boundary: .top_bar;stretch: x;">
            <div class="inner"
                th:with="topMenu = ${#strings.isEmpty(theme.config.base_top_set.top_nav) ? menuFinder.getPrimary() : menuFinder.getByName(theme.config.base_top_set.top_nav)}">
                <div class="menu-top-container" th:if="${not #lists.isEmpty(topMenu)}">
                    <ul id="top_menu" class="menu">
                        <li class="menu-item menu-item-type-post_type menu-item-object-page"
                            th:each="menuItem : ${topMenu.menuItems}">
                            <a th:href="@{${menuItem.status.href}}">
                                <i th:class="${#annotations.getOrDefault(menuItem, 'icon', '')}"></i>
                                <span class="nav_title" th:text="${menuItem.status.displayName}"></span>
                            </a>
                        </li>
                    </ul>
                </div>
                <div th:unless="${not #lists.isEmpty(topMenu)}" class="nav_tips">请前往后台设置顶部菜单</div>
            </div>
        </div>
    </div>

    <div class="toc_nav top_tool icon_color" aria-hidden="true">
        <a class="listree-btn" title="展开目录" aria-label="展开目录" aria-expanded="false">
            <i class="ri-menu-line"></i>
        </a>
    </div>

    <!-- 搜索区域 -->
    <div class="search_mod">
        <div th:if="${pluginFinder.available('PluginSearchWidget')}" class="t_search_on top_tool icon_color">
            <a onclick="SearchWidget.open()"><i class="ri-search-line s_toogle_btn"></i></a>
        </div>
    </div>

    <!-- 回到顶部 -->
    <div class="is_mobile top_tool">
        <a class="tool_top" href="#page" uk-scroll="" data-pjax-state="">
            <i class="ri-skip-up-line tool_top_icon"></i></a>
    </div>
</div>
