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: '20px',
  25.         dots:false,
  26.         arrows:true,
  27.         autoplay: false,
  28.         speed: 1000,
  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 main %}
  52. {% if is_granted('ROLE_USER') %}
  53.     <div class="row">
  54.        <div class="col-sm-12">
  55.             <div class="main_visual">
  56.                <a href="{{ url('product_list') }}">
  57.                     {% if app.user.school.school_id == '1' %}<!--大宰府学業院中-->
  58.                   <img class="pc" src="{{ url('homepage') }}html/user_data/main_image_pc01_sc01_2.jpg">
  59.                   <img class="sp" src="{{ url('homepage') }}html/user_data/main_image_sp01_sc01_2.jpg">
  60.                     {% elseif app.user.school.school_id == '2' %}<!--大宰府西中-->
  61.                   <img class="pc" src="{{ asset('assets/img/nikke/main_image_pc01_sc02.jpg') }}">
  62.                   <img class="sp" src="{{ asset('assets/img/nikke/main_image_sp01_sc02.jpg') }}">
  63.                     {% elseif app.user.school.school_id == '3' %}<!--大宰府中-->
  64.                   <img class="pc" src="{{ asset('assets/img/nikke/main_image_pc01_sc03.jpg') }}">
  65.                   <img class="sp" src="{{ asset('assets/img/nikke/main_image_sp01_sc03.jpg') }}">
  66.                     {% elseif app.user.school.school_id == '4' %}<!--大宰府東中-->
  67.                   <img class="pc" src="{{ url('homepage') }}html/user_data/main_image_pc01_sc04_2.jpg">
  68.                   <img class="sp" src="{{ url('homepage') }}html/user_data/main_image_sp01_sc04_2.jpg">
  69.                     {% elseif app.user.school.school_id == '5' %}<!--武蔵台高校-->
  70.                   <img class="pc" src="{{ asset('assets/img/nikke/main_image_pc01_sc05.jpg') }}">
  71.                   <img class="sp" src="{{ asset('assets/img/nikke/main_image_sp01_sc05.jpg') }}">
  72.                     {% else %}
  73.                   <img class="pc" src="{{ asset('assets/img/nikke/main_image_01b.jpg') }}">
  74.                   <img class="sp" src="{{ asset('assets/img/nikke/main_image_sp_01b.jpg') }}">
  75.                     {% endif %}
  76.                 </a>
  77.                <a href="{{ url(eccube_config.eccube_user_data_route, {'route': 'commitment_uniform'}) }}" class="item">
  78.                   <img class="pc" src="{{ url('homepage') }}html/user_data/main_image_pc_blue01.jpg">
  79.                   <img class="sp" src="{{ url('homepage') }}html/user_data/main_image_sp_blue01.jpg">
  80.                   </a>
  81.             </div>
  82.         </div>
  83.     </div>
  84.     <div id="contents"><div id="main">
  85.     {% else %}
  86.         <div id="contents" class="logout">
  87.             <div class="main_visual logouttop">
  88.                 <div>
  89.                   <img class="pc" src="{{ url('homepage') }}html/user_data/tokyolad_top2pc.jpg">
  90.                   <img class="sp" src="{{ url('homepage') }}html/user_data/tokyolad_top2sp.jpg">
  91.                 </div>
  92.                <a href="{{ url(eccube_config.eccube_user_data_route, {'route': 'commitment_uniform'}) }}" class="item">
  93.                   <img class="pc" src="{{ url('homepage') }}html/user_data/tokyolad_top1pc.jpg">
  94.                   <img class="sp" src="{{ url('homepage') }}html/user_data/tokyolad_top1sp.jpg">
  95.                   </a>
  96.             </div>
  97.         <div class="container-fluid inner"><div id="main">
  98.     {% endif %}
  99. {% endblock %}