side_nav.phtml 1.81 KB
<div class="side-nav">
    {{# sideNav}}
    <ul {{#if @first}}class="first"{{/if}}>
        {{# this}}
        <li class="{{styleClass}}">
            {{#if url}}
            <a href="{{url}}" style="{{#if color}}color:{{color}};{{/if}}">
            {{else}}
            <a href="javascript:;" style="{{#if color}}color:{{color}};{{/if}}">
            {{/if}}
                {{# 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 url}}
                        <a href="{{url}}" style="{{#if color}}color:{{color}};{{/if}}">
                    {{else}}
                        <a href="javascript:;" style="{{#if color}}color:{{color}};{{/if}}">
                    {{/if}}
                        {{^ 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>