{#
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: '20px',
dots:false,
arrows:true,
autoplay: false,
speed: 1000,
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 main %}
{% if is_granted('ROLE_USER') %}
<div class="row">
<div class="col-sm-12">
<div class="main_visual">
<a href="{{ url('product_list') }}">
{% if app.user.school.school_id == '1' %}<!--大宰府学業院中-->
<img class="pc" src="{{ url('homepage') }}html/user_data/main_image_pc01_sc01_2.jpg">
<img class="sp" src="{{ url('homepage') }}html/user_data/main_image_sp01_sc01_2.jpg">
{% elseif app.user.school.school_id == '2' %}<!--大宰府西中-->
<img class="pc" src="{{ asset('assets/img/nikke/main_image_pc01_sc02.jpg') }}">
<img class="sp" src="{{ asset('assets/img/nikke/main_image_sp01_sc02.jpg') }}">
{% elseif app.user.school.school_id == '3' %}<!--大宰府中-->
<img class="pc" src="{{ asset('assets/img/nikke/main_image_pc01_sc03.jpg') }}">
<img class="sp" src="{{ asset('assets/img/nikke/main_image_sp01_sc03.jpg') }}">
{% elseif app.user.school.school_id == '4' %}<!--大宰府東中-->
<img class="pc" src="{{ url('homepage') }}html/user_data/main_image_pc01_sc04_2.jpg">
<img class="sp" src="{{ url('homepage') }}html/user_data/main_image_sp01_sc04_2.jpg">
{% elseif app.user.school.school_id == '5' %}<!--武蔵台高校-->
<img class="pc" src="{{ asset('assets/img/nikke/main_image_pc01_sc05.jpg') }}">
<img class="sp" src="{{ asset('assets/img/nikke/main_image_sp01_sc05.jpg') }}">
{% else %}
<img class="pc" src="{{ asset('assets/img/nikke/main_image_01b.jpg') }}">
<img class="sp" src="{{ asset('assets/img/nikke/main_image_sp_01b.jpg') }}">
{% endif %}
</a>
<a href="{{ url(eccube_config.eccube_user_data_route, {'route': 'commitment_uniform'}) }}" class="item">
<img class="pc" src="{{ url('homepage') }}html/user_data/main_image_pc_blue01.jpg">
<img class="sp" src="{{ url('homepage') }}html/user_data/main_image_sp_blue01.jpg">
</a>
</div>
</div>
</div>
<div id="contents"><div id="main">
{% else %}
<div id="contents" class="logout">
<div class="main_visual logouttop">
<div>
<img class="pc" src="{{ url('homepage') }}html/user_data/tokyolad_top2pc.jpg">
<img class="sp" src="{{ url('homepage') }}html/user_data/tokyolad_top2sp.jpg">
</div>
<a href="{{ url(eccube_config.eccube_user_data_route, {'route': 'commitment_uniform'}) }}" class="item">
<img class="pc" src="{{ url('homepage') }}html/user_data/tokyolad_top1pc.jpg">
<img class="sp" src="{{ url('homepage') }}html/user_data/tokyolad_top1sp.jpg">
</a>
</div>
<div class="container-fluid inner"><div id="main">
{% endif %}
{% endblock %}