app/template/unishop/index.twig line 1

Open in your IDE?
  1. {#
    This file is part of EC-CUBE
    
    Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
    
    http://www.lockon.co.jp/
    
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    #}
    {% extends 'default_frame.twig' %}
    
    {% set body_class = 'front_page' %}
    
    {% block javascript %}
    <script>
    $(function(){
        $('.main_visual').slick({
        centerMode: true,
      centerPadding: '0',
            dots:false,
            arrows:true,
            autoplay: true,
            speed: 500,
        prevArrow: '<div class="slide-arrow prev-arrow"><img src="{{ asset('assets') }}/img/nikke/slick/w_prev.gif"></div>',
        nextArrow: '<div class="slide-arrow next-arrow"><img src="{{ asset('assets') }}/img/nikke/slick/w_next.gif"></div>',
              responsive: [{
                   breakpoint: 768,
                        settings: {
      centerPadding: '0px',
        prevArrow: '<div class="slide-arrow prev-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_prev.png"></div>',
        nextArrow: '<div class="slide-arrow next-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_next.png"></div>'
                   }
              },{
                   breakpoint: 480,
                        settings: {
      centerPadding: '0px',
        prevArrow: '<div class="slide-arrow prev-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_prev.png"></div>',
        nextArrow: '<div class="slide-arrow next-arrow"><img src="{{ asset('assets') }}/img/unishop/slick/w_next.png"></div>'
                        }
                   }
              ]
        });
    });
    </script>
    {% endblock %}
    
    {% block stylesheet %}
        <style type="text/css">
            .main_visual {
                max-width: 1080px;
            }
        </style>
    {% endblock %}
    
    {% block main %}
    {% if is_granted('ROLE_USER') %}
        <div class="row">
           <div class="col-sm-12" style="padding:0;">
                <div class="main_visual">
    {% if app.user.school.school_id == '1' %}<!---立命館中学校--->
                   <a href="{{ url('product_list') }}">
    <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya01.jpg">
    <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya01.jpg">
                    </a>
    {% elseif app.user.school.school_id == '2' %}<!---立命館宇治中学校--->
                   <a href="{{ url('product_list') }}">
    <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya02.jpg">
    <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya02.jpg">
                    </a>
    {% elseif app.user.school.school_id == '3' %}<!---立命館宇治高等学校--->
                   <a href="{{ url('product_list') }}">
    <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya03.jpg">
    <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya03.jpg">
                    </a>
    {% elseif app.user.school.school_id == '4' %}<!---立命館守山中学校--->
                   <a href="{{ url('product_list') }}">
    <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya04.jpg">
    <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya04.jpg">
                    </a>
    {% elseif app.user.school.school_id == '5' %}<!---立命館守山高等学校--->
                   <a href="{{ url('product_list') }}">
    <img class="pc" src="{{ url('homepage') }}/html/user_data/main_image_pc01_toraya05.jpg">
    <img class="sp" src="{{ url('homepage') }}/html/user_data/main_image_sp01_toraya05.jpg">
                    </a>
    {% else %}<!--一般販売ほか-->
    <div class="schoolon item_toraya01">
            <img class="item01" src="{{ url('homepage') }}/html/user_data/scid05general/ippan01.png">
            <img class="item02" src="{{ url('homepage') }}/html/user_data/scid05general/ippan02.png">
            <img class="item03" src="{{ url('homepage') }}/html/user_data/scid05general/ippan03.png">
            <img class="item04" src="{{ url('homepage') }}/html/user_data/scid05general/ippan04.png">
            <img class="item05" src="{{ url('homepage') }}/html/user_data/scid05general/ippan05.png">
            <img class="item06" src="{{ url('homepage') }}/html/user_data/scid05general/ippan06.png">
    </div>
    {% endif %}
                </div>
            </div>
        </div>
        <div id="contents"><div id="main">
        {% else %}
            <div id="contents" class="logout">
                <div class="main_visual logouttop">
                    <div class="imgbox" style="background-image:url({{ url('homepage') }}/html/user_data/main_image_pc_toraya001.jpg);">
                    </div>
                </div>
            <div class="container-fluid inner"><div id="main logout_menu">
                <div class="flex_list_link indexbtn" style="margin:10px 0;">
                    <a class="w32" href="{{ url('user_data', {'route': 'products'}) }}">
                        <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;">
                        <span>取扱商品</span></a>
                        
                        <a class="w32" href="{{ url('user_data', {'route': 'store_info'}) }}">
                        <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;">
                        <span>アクセス</span></a>
                        
                        <a class="w32" href="{{ url('user_data', {'route': 'company'}) }}">
                        <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;">
                        <span>会社概要</span></a>
                        
                        <a class="w32" href="{{ url('user_data', {'route': 'commitment_uniform'}) }}">
                        <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;">
                        <span>制服のお手入れ</span></a>
                </div>
        {% endif %}
    {% endblock %}