app/template/unishop/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
  4. http://www.lockon.co.jp/
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  16. #}
  17. {% extends 'default_frame.twig' %}
  18. {% set body_class = 'front_page' %}
  19. {% block javascript %}
  20. <script>
  21. $(function(){
  22.     $('.main_visual').slick({
  23.     centerMode: true,
  24.   centerPadding: '0',
  25.         dots:false,
  26.         arrows:true,
  27.         autoplay: true,
  28.         speed: 500,
  29.     prevArrow: '<div class="slide-arrow prev-arrow"><img src="{{ asset('assets') }}/img/nikke/slick/w_prev.gif"></div>',
  30.     nextArrow: '<div class="slide-arrow next-arrow"><img src="{{ asset('assets') }}/img/nikke/slick/w_next.gif"></div>',
  31.           responsive: [{
  32.                breakpoint: 768,
  33.                     settings: {
  34.   centerPadding: '0px',
  35.     prevArrow: '<div class="slide-arrow prev-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_prev.png"></div>',
  36.     nextArrow: '<div class="slide-arrow next-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_next.png"></div>'
  37.                }
  38.           },{
  39.                breakpoint: 480,
  40.                     settings: {
  41.   centerPadding: '0px',
  42.     prevArrow: '<div class="slide-arrow prev-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_prev.png"></div>',
  43.     nextArrow: '<div class="slide-arrow next-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_next.png"></div>'
  44.                     }
  45.                }
  46.           ]
  47.     });
  48. });
  49. </script>
  50. {% endblock %}
  51. {% block stylesheet %}
  52.     <style type="text/css">
  53.         .main_visual {
  54.             max-width: 1080px;
  55.         }
  56.     </style>
  57. {% endblock %}
  58. {% block main %}
  59. {% if is_granted('ROLE_USER') %}
  60.     <div class="row">
  61.        <div class="col-sm-12" style="padding:0;">
  62.             <div class="main_visual">
  63. {% if app.user.school.school_id == '1' %}<!---立命館中学校--->
  64.                <a href="{{ url('product_list') }}">
  65. <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya01.jpg">
  66. <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya01.jpg">
  67.                 </a>
  68. {% elseif app.user.school.school_id == '2' %}<!---立命館宇治中学校--->
  69.                <a href="{{ url('product_list') }}">
  70. <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya02.jpg">
  71. <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya02.jpg">
  72.                 </a>
  73. {% elseif app.user.school.school_id == '3' %}<!---立命館宇治高等学校--->
  74.                <a href="{{ url('product_list') }}">
  75. <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya03.jpg">
  76. <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya03.jpg">
  77.                 </a>
  78. {% elseif app.user.school.school_id == '4' %}<!---立命館守山中学校--->
  79.                <a href="{{ url('product_list') }}">
  80. <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya04.jpg">
  81. <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya04.jpg">
  82.                 </a>
  83. {% elseif app.user.school.school_id == '5' %}<!---立命館守山高等学校--->
  84.                <a href="{{ url('product_list') }}">
  85. <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya05.jpg">
  86. <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya05.jpg">
  87.                 </a>
  88. {% else %}<!--一般販売ほか-->
  89. <div class="schoolon item_toraya01">
  90.         <img class="item01" src="{{ url('homepage') }}/html/user_data/scid05general/ippan01.png">
  91.         <img class="item02" src="{{ url('homepage') }}/html/user_data/scid05general/ippan02.png">
  92.         <img class="item03" src="{{ url('homepage') }}/html/user_data/scid05general/ippan03.png">
  93.         <img class="item04" src="{{ url('homepage') }}/html/user_data/scid05general/ippan04.png">
  94.         <img class="item05" src="{{ url('homepage') }}/html/user_data/scid05general/ippan05.png">
  95.         <img class="item06" src="{{ url('homepage') }}/html/user_data/scid05general/ippan06.png">
  96. </div>
  97. {% endif %}
  98.             </div>
  99.         </div>
  100.     </div>
  101.     <div id="contents"><div id="main">
  102.     {% else %}
  103.         <div id="contents" class="logout">
  104.             <div class="main_visual logouttop">
  105.                 <div class="imgbox" style="background-image:url({{ url('homepage') }}/html/user_data/main_image_pc_toraya001.jpg);">
  106.                 </div>
  107.             </div>
  108.         <div class="container-fluid inner"><div id="main logout_menu">
  109.             <div class="flex_list_link indexbtn" style="margin:10px 0;">
  110.                 <a class="w32" href="{{ url('user_data', {'route': 'products'}) }}">
  111.                     <img src="{{ url('homepage') }}/html/user_data/index_link_icon/icon_category01setw.png" style="display:block; width:40px; height:auto; margin:0 20px 0 0;">
  112.                     <span>取扱商品</span></a>
  113.                     
  114.                     <a class="w32" href="{{ url('user_data', {'route': 'store_info'}) }}">
  115.                     <img src="{{ url('homepage') }}/html/user_data/index_link_icon/icon_plus_acc1w.png" style="display:block; width:40px; height:auto; margin:0 20px 0 0;">
  116.                     <span>アクセス</span></a>
  117.                     
  118.                     <a class="w32" href="{{ url('user_data', {'route': 'company'}) }}">
  119.                     <img src="{{ url('homepage') }}/html/user_data/index_link_icon/icon_plus_com1w.png" style="display:block; width:40px; height:auto; margin:0 20px 0 0;">
  120.                     <span>会社概要</span></a>
  121.                     
  122.                     <a class="w32" href="{{ url('user_data', {'route': 'commitment_uniform'}) }}">
  123.                     <img src="{{ url('homepage') }}/html/user_data/index_link_icon/icon_plus_care2w.png" style="display:block; width:40px; height:auto; margin:0 20px 0 0;">
  124.                     <span>制服のお手入れ</span></a>
  125.             </div>
  126.     {% endif %}
  127. {% endblock %}