:::

4-4 xotpl/nav.tpl

<link rel="stylesheet" type="text/css" media="all" href="<{xoImgUrl}>css/stellarnav.min.css">

<div id="nav">
    <div class="container my-container-width">
        <div class="row">
            <nav class="col">
                <div class="stellarnav">
                    <ul>
                        <!-- 主選單 -->
                        <{if $auto_mainmenu}>
                            <li><a href="#">主選單</a>
                                <ul>
                                    <{foreach from=$main_menu_var item=opt}>
                                        <{includeq file="$xoops_rootpath/themes/$my_theme/xotpl/menu.tpl"}>
                                    <{/foreach}>
                                </ul>
                            </li>
                        <{/if}>

                        <!-- 自訂選單 -->
                        <{foreach from=$menu_var item=opt}>
                            <{includeq file="$xoops_rootpath/themes/$my_theme/xotpl/menu.tpl"}>
                        <{/foreach}>

                        <!-- 會員選單 -->
                        <{if $xoops_isuser}>
                            <li class="float-xl-right">
                                <a href="#">
                                    歡迎:<img src="<{$xoops_avatar}>" style="height: 24px;"> <{$xoops_name}>
                                </a>
                                <ul>
                                    <!-- 管理員 -->
                                    <{if $xoops_isadmin}>
                                        <{foreach from=$admin_menu_var item=opt}>
                                            <{includeq file="$xoops_rootpath/themes/$my_theme/xotpl/menu.tpl"}>
                                        <{/foreach}>
                                    <{/if}>

                                    <!-- 會員 -->
                                    <{foreach from=$user_menu_var item=opt}>
                                        <{includeq file="$xoops_rootpath/themes/$my_theme/xotpl/menu.tpl"}>
                                    <{/foreach}>
                                </ul>
                            </li>
                        <{/if}>
                    </ul>
                </div>
            </nav>
        </div>
    </div>
</div>

<script type="text/javascript" src="<{xoImgUrl}>js/stellarnav.js"></script>
<script type="text/javascript">
    jQuery(document).ready(function ($) {
        jQuery('.stellarnav').stellarNav({
            menuLabel: '選單',
            position: 'left',
            scrollbarFix: true
        });
    });
</script>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1531%26tbsn%3D46

書籍目錄

展開 | 闔起

線上使用者

79人線上 (22人在瀏覽線上書籍)

會員: 0

訪客: 79

更多…