<!-- 页脚模块 -->
<div class="footer_nav" th:fragment="footer-nav">
    <div class="footer_menu">
        <div class="inner">
            <div class="left item">
                <th:block th:replace="~{modules/footer-nav :: menu(${theme.config.base_footer_set.footer_fpush.footmenu_left})}"></th:block>
            </div>
            <div class="center" sec:authorize="isAuthenticated()" th:if="${pluginFinder.available('PluginMoments')}">
                <a class="mobile_edit" uk-toggle="target: #create_post_box" tabindex="0" aria-expanded="false">
                    <i class="ri-add-line"></i>
                </a>
            </div>
            <div class="right item">
                <th:block th:replace="~{modules/footer-nav :: menu(${theme.config.base_footer_set.footer_fpush.footmenu_right})}"></th:block>
            </div>
        </div>
    </div>


    <div th:if="${theme.config.music.bgm_open}" class="footer_nav_box">
        <div class="inner footer_player uk-grid-collapse" uk-grid>
            <div class="left uk-width-1-3@m uk-visible@m">
                <div class="left_inner">

                </div>
            </div>
            <div class="right uk-width-2-3@m">
                <div class="right_inner">
                    <div class="bgm_box">
                        <th:block th:replace="~{modules/widgets/music}"/>
                    </div>
                </div>

            </div>

        </div>
    </div>
</div>

<th:block th:fragment="menu(footmenus)" th:if="${not #lists.isEmpty(footmenus)}">
    <th:block th:each="footmenu : ${footmenus}">
        <li th:if="${footmenu.fmenu_type == 'normal'}">
            <a th:href="${#strings.isEmpty(footmenu.link)? '/' : footmenu.link}" th:target="${footmenu.open_new}"><i
                    th:class="${#strings.isEmpty(footmenu.icon)? 'ri-home-4-fill': footmenu.icon}"></i><span
                    class="title">[[${footmenu.title}]]</span></a>
        </li>
        <li th:if="${footmenu.fmenu_type == 'dark'}" class="t_dark">
            <a><i th:class="${#strings.isEmpty(footmenu.icon)? 'ri-contrast-2-line': footmenu.icon}"></i><span
                    class="title">[[${footmenu.title}]]</span></a>
        </li>
        <li th:if="${footmenu.fmenu_type == 'top'}">
            <a href="#page" uk-scroll><i
                    th:class="${#strings.isEmpty(footmenu.icon)? 'ri-arrow-up-circle-fill': footmenu.icon}"></i><span
                    class="title">[[${footmenu.title}]]</span></a>
        </li>
        <li th:if="${footmenu.fmenu_type == 'search' && pluginFinder.available('PluginSearchWidget')}">
            <a onclick="SearchWidget.open()"><i
                    th:class="${#strings.isEmpty(footmenu.icon)? 'ri-search-2-fill': footmenu.icon}"></i><span
                    class="title">[[${footmenu.title}]]</span></a>
        </li>
    </th:block>
</th:block>