templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}森地客定制 | 骑享自由{% endblock %}</title>
  6.         <link href="{{ asset('css/basic.css') }}" rel="stylesheet"/>
  7.         <link href="{{ asset('css/layout.css') }}" rel="stylesheet"/>
  8. {#        <link href="https://static.wildto.com/santic/oversear/css/basic_20201120.css" rel="stylesheet"/>#}
  9. {#        <link href="https://static.wildto.com/santic/oversear/css/layout1120.css" rel="stylesheet"/>#}
  10.         <link href="{{ asset('fonts/iconfont.css') }}" rel="stylesheet"/>
  11.         <link href="{{ asset('css/swiper.css') }}" rel="stylesheet"/>
  12.         <script src="{{ asset('js/jquery-2.0.3.min.js') }}"></script>
  13.         <script>
  14.             (function (win, doc) {
  15.                 win.addEventListener('resize', change, false);
  16.                 function change() {
  17.                     var clientWidth = doc.documentElement.clientWidth;
  18.                     doc.documentElement.style.fontSize = doc.documentElement.clientWidth * 16 / 1920 + 'px';
  19.                 }
  20.                 change();
  21.             })(window, document);
  22.         </script>
  23.         {% block stylesheets %}{% endblock %}
  24.     </head>
  25.     <body>
  26.     <div class="header">
  27.         <div class="headerBg"></div>
  28. {#        <div class="headerText">santic.com</div>#}
  29.         <div class="headerContent clearfix">
  30.             <a href="/">
  31.                 <img src="https://static.wildto.com/custrom/common/santic-logo-l.png" alt="logo">
  32.             </a>
  33.         </div>
  34.         <div class="tabs">
  35.             <div class="tabsContent clearfix" onmouseleave="mouseTabOver()">
  36.                 <ul class="leftTab clearfix fl">
  37.                     {% set i = 0 %}
  38.                     {% for category,attr in nav %}
  39.                     <li  class="fl tabLi" onmouseenter="mouseTabEnter({{ i }})">
  40.                         <a href="javascript:;">{{ attr.name }}</a>
  41.                     </li>
  42.                     {% set i = i+1 %}
  43.                     {% endfor %}
  44.                 </ul>
  45.                 <div class="chlList transition_dom" id="transition_dom">
  46.                     {% for category,subCategorys in nav %}
  47.                     <div class="tabA">
  48.                         {% for sub,name in subCategorys.sub %}
  49.                         <div>
  50.                             <a target=“_blank” href="{{ path('list', { 'category':category, 'sub':sub }) }}">
  51.                                 {{ name }}
  52.                             </a>
  53.                         </div>
  54.                         {% endfor %}
  55.                     </div>
  56.                     {% endfor %}
  57.                 </div>
  58.             </div>
  59.         </div>
  60.         <div id="bannerMask"></div>
  61.         <div class="login_content org_login">
  62.             <div class="icon_content clearfix">
  63.                 <span class="fl iconfont icon-sousuo" id="searchIconHeader" style="margin-top:-2px;"></span>
  64.                 <span class="fl" id="searchIconClose" style="margin-top:-2px;">
  65.                     <svg width="16px" height="16px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
  66. <title>Group 2</title>
  67. <g fill-rule="evenodd">
  68. <path d="M14.50609703.3639614l1.41421356 1.41421357L1.77817497 15.92031059.3639614 14.50609703z"></path>
  69. <path d="M.3639614 1.77817497L1.77817498.3639614 15.9203106 14.50609702l-1.41421356 1.41421356z"></path>
  70. </g>
  71. </svg>
  72.                 </span>
  73.                 <span class="iconfont icon-yonghu1 fl mouse-click curP" style="margin-top:-2px;" id="showUser"></span>
  74. {#                <span class="iconfont icon-gouwuche curP fl" id="cartBtn" style="margin-top:-2px;"></span>#}
  75.             </div>
  76.             <div class="view_content" id="userLoginView">
  77.                 <div class="tabS1"></div>
  78.                 <div class="tabS2"></div>
  79.                 {% if is_granted('ROLE_USER') %}
  80.                     <ul class="login_play">
  81.                         <li>{{ app.user.oEmail }}</li>
  82.                         <li><a href="{{ path('app_logout') }}">Sign out</a></li>
  83.                     </ul>
  84.                 {% else %}
  85.                     <ul v-if="showLogin" class="login_play">
  86.                         <li><a href="{{ path('app_login') }}">Sign in</a></li>
  87.                         <li><a href="{{ path('register') }}">Register</a></li>
  88.                     </ul>
  89.                 {% endif %}
  90.             </div>
  91.         </div>
  92.     </div>
  93.         {{ include('common/_searchCommon.html.twig') }}
  94.         {% block body %}{% endblock %}
  95.         {% block javascripts %}{% endblock %}
  96.         <div class="footer">
  97.             <div class="getEmail">
  98.                 <div class="title">订阅森地客产品期刊</div>
  99.                 <div class="emailCenter">
  100.                     <div class="email">
  101.                         <p>邮箱地址</p>
  102.                         <input type="text" name="email" placeholder="请输入您的邮箱" id="ftEmailInput">
  103.                     </div>
  104.                     <div class="type">
  105.                         <p>选择订阅内容</p>
  106. {#                        <input type="text" placeholder="Menswear">#}
  107.                         <select class="selectView" id="newsletter-preference" name="newsletter-preference">
  108.                             <option value="Menswear" selected="">
  109.                                 男士</option>
  110.                             <option value="Womenswear">
  111.                                 女士</option>
  112.                         </select>
  113.                     </div>
  114.                 </div>
  115.                 <div class="sub" id="footerEBtn">订阅</div>
  116.             </div>
  117.             <div class="subSuccess">
  118.                 感谢订阅!
  119.             </div>
  120.         </div>
  121.         <div class="cartMask" id="cartMask"></div>
  122.         {{ include('common/_shoppingCart.html.twig') }}
  123.     </body>
  124.     <script src="{{ asset('js/common.js') }}"></script>
  125.     <script>
  126.         $('#footerEBtn').on('click',function(){
  127.             if($(this).hasClass('activeEFooter')){
  128.                 var email = $('input[name="email"]').val();
  129.                 var type = $('#newsletter-preference').val();
  130.                 var url = '{{ path('subscribe') }}?email='+email+'&type='+type;
  131.                 $.get(url, function(result){
  132.                         $('.getEmail').hide();
  133.                         $('.subSuccess').show();
  134.                 });
  135.             }
  136.         })
  137.     </script>
  138.     {% block endjavascripts %}
  139.     {% endblock %}
  140. {#    <script src="https://static.wildto.com/santic/oversear/js/common1120.js"></script>#}
  141. </html>