simple-header.phtml 2.42 KB
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Cache-Control" content="no-siteapp" /> 
        <meta name="renderer" content="webkit">
        <link rel="shortcut icon" href="http://www.yohobuy.com/favicon.ico" type="image/x-icon" />
        <meta name="keywords" content="{{keywords}}">
        <meta name="description" content="{{description}}">
        <title>{{title}}</title>
        <!-- [if (gte IE 6)&(lte IE 8)>
            <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
        <link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">
    </head>
    <body>
        {{# simpleHeader}}
        <div class="simple-header">
            <div class="header-inner clearfix">
                {{# logo}}
                <h1 class="logo">
                    <a href="{{url}}">
                        <img src="{{img}}" alt="">
                    </a>
                </h1>
                {{/ logo}}
                <ul class="header-tool clearfix">
                    {{# tool}}
                    <li {{#if options}}class="tool-options"{{/if}}{{#if loginUrl}}class="login-box"{{/if}}>
                        {{# tell}}
                        <i class="tell-icon iconfont">&#xe61c;</i>
                        {{/ tell}}

                        {{#if url}}
                            <a href="{{url}}">{{title}}</a>
                        {{/if}}
                        
                        {{#unless url}}
                            <span>{{title}}</span>
                        {{/unless}}

                        {{#if options}}
                        <i class="options-icon down iconfont">&#xe604;</i>
                        <i class="options-icon up iconfont">&#xe603;</i>
                        <div class="tool-select">
                            {{# options}}
                            <a href="{{url}}">{{textCn}}</a>
                            {{/ options}}
                        </div>
                        {{/if}}

                        {{# loginInfo}}
                        <a href="{{url}}">{{textCn}}</a>
                        {{/ loginInfo}}
                    </li>
                    {{/ tool}}
                </ul>
            </div>
        </div>
        {{/ simpleHeader}}