side_nav.phtml 1.75 KB
<div class="side-nav">
    {{# sideNav}}
    <ul {{#if @first}}class="first"{{/if}}>
        {{# this}}
        <li class="{{styleClass}}" style="{{#if color}}color:{{color}};{{/if}}">
            {{# url}}
            <a href="{{.}}">
            {{/ url}}
            {{^ url}}
            <a href="javascript:;">
            {{/ url}}
                {{# img}}
                <span class="nav-img" style="background-image: url({{.}})"></span>
                {{/ img}}
                {{^ img}}
                <i class="nav-icon"></i>
                {{/ img}}
                <em>{{textCn}}</em>
                <span class="title">{{textEn}}</span>
                {{# subNav}}
                <span class="enter-subnav iconfont">&#xe614;</span>
                {{/ subNav}}
            </a>
            {{# subNav}}
            <ul class="sub-nav">
                {{# list}}
                <li class="{{# isSelect}}current{{/ isSelect}}" style="background-color:{{bgColor}};{{#if color}}color:{{color}};{{/if}}">
                    {{# url}}
                    <a href="{{.}}">
                    {{/ url}}
                    {{^ url}}
                    <a href="javascript:;">
                    {{/ url}}
                        {{^ back}}
                        <span class="nav-point iconfont">&#xe60c;</span>
                        {{/ back}}
                        {{# back}}
                        <i class="nav-back iconfont">&#xe610;</i>
                        {{/ back}}
                        <em>{{textCn}}</em>
                        <span class="title">{{textEn}}</span>
                    </a>
                </li>
                {{/ list}}
            </ul>
            {{/ subNav}}
        </li>
        {{/ this}}
    </ul>
    {{/sideNav}}
</div>