{% set sidebar_type = 0 %}
{% set sub_title_type = 0 %}
{# 商品一覧からの場合 #}
{% if Category is defined %}
{% if Category is not null %}
{% for Path in Category.path %}
{% if Path.hierarchy == 1 %}
{% if Path.name == '部品' %}
{% set sidebar_type = 1 %}
{% endif %}
{% if Path.name == 'カートリッジ' %}
{% set sidebar_type = 2 %}
{% endif %}
{#{% if Path.name == '浄水器本体' %}#}
{# {% set sidebar_type = 3 %}#}
{#{% endif %}#}
{% if Path.name == 'マルチピュア浄水器商品' %}
{% set sidebar_type = 3 %}
{% endif %}
{% endif %}
{% if Path.hierarchy == 2 %}
{% if Path.name == 'カウンタートップタイプ浄水器' %}
{% set sidebar_type = 3 %}
{% endif %}
{% if Path.name == 'ビルトイン浄水器' %}
{% set sidebar_type = 4 %}
{% endif %}
{% if Path.name == 'レンタル浄水器' %}
{% set sidebar_type = 5 %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{#{{ url(eccube_config.eccube_user_data_route, {'route': 'builtin_select01'}) }}#}
{#{{ path(eccube_config.eccube_user_data_route, {'route': 'builtin_select01'}) }}#}
{% set current_url = path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')) %}
{# 浄水器本体から選ぶ #}
{% if current_url == path(eccube_config.eccube_user_data_route, {'route': 'builtin_select01'}) %}
{% set sidebar_type = 4 %}
{% set sub_title_type = 1 %}
{% endif %}
{# 水栓から選ぶ #}
{% if current_url == path(eccube_config.eccube_user_data_route, {'route': 'builtin_select02'}) %}
{% set sidebar_type = 4 %}
{% set sub_title_type = 1 %}
{% endif %}
{# すでに水栓をお持ちの場合 #}
{% if current_url == path(eccube_config.eccube_user_data_route, {'route': 'builtin_select03'}) %}
{% set sidebar_type = 4 %}
{% set sub_title_type = 0 %}
{% endif %}
<style>
/*全てに適用*/
.bgImg {
{% if sidebar_type == 3 %}
background-size: cover;
/* background-image: url('/html/user_data/img/catch.png');*/
background-image: url('/html/user_data/img/list_header/CounterTop.png');
background-position: center top;
{% endif %}
{% if sidebar_type == 4 %}
background-size: cover;
/* background-image: url('/html/user_data/img/builtin.png');*/
background-image: url('/html/user_data/img/list_header/Buitin.png');
background-position: center top;
{% endif %}
{# 部品の場合 #}
{% if sidebar_type == 1 %}
background-size: cover;
background-image: url('/html/user_data/img/parts.png');
background-position: center center;
{% endif %}
{# カートリッジの場合 #}
{% if sidebar_type == 2 %}
background-size: cover;
background-image: url('/html/user_data/img/cartridge.png');
background-position: center center;
{% endif %}
background-color: #ebf0f0;
text-align: center;
color: #1266ac;
font-size: 30px;
line-height: 1.5;
font-weight: bold;
padding: 30px 0;
margin-bottom: 50px;
/* width: 100%;*/
height: 606px;
{% if sidebar_type > 0 %}
{% endif %}
}
.l_purchase_title h1 {
}
.stit{
font-size: 14px;
color: #000 !important;
}
.stit a {
text-decoration: none;
transition: all 0.8s;
color: #000;
}
/*ウィンドウ幅が767px以上の場合に適用*/
@media screen and (min-width: 767px) {
}
/*ウィンドウ幅が最大767pxまでの場合に適用*/
@media screen and (max-width: 767px) {
}
</style>
<div style="position:relative; top:0px;">
{% if sidebar_type == 3 %}
{#<img style="width:100%" src="/html/user_data/catch3.png">#}
<img style="width:100%" src="/html/user_data/img/list_header/CounterTop.png">
{% endif %}
{% if sidebar_type == 4 %}
{#<img style="width:100%" src="/html/user_data/img/builtin3.png">#}
<img style="width:100%" src="/html/user_data/img/list_header/Buitin.png">
{% endif %}
{# 部品の場合 #}
{% if sidebar_type == 1 %}
<img style="width:100%" src="/html/user_data/img/parts3.png">
{% endif %}
{# カートリッジの場合 #}
{% if sidebar_type == 2 %}
<img style="width:100%" src="/html/user_data/img/cartridge3.png">
{% endif %}
{% if sidebar_type == 5 %}
<img style="width:100%" src="/html/user_data/catch3.png">
{% endif %}
{% if sidebar_type == 0 %}
<img style="width:100%" src="/html/user_data/catch3.png">
{% endif %}
{#<img class="bgImg" style="width:100%" src="/html/user_data/catch3.png">#}
<div style="width:80%;position:absolute; text-align:center; left:50%; top:45%;-ms-transform: translate(-50%,-45%); -webkit-transform: translate(-50%,-45%); transform: translate(-50%,-45%); margin:0; padding:0;">
<p style="color:#707070; font-size:90%;">ONLINE SHOP</p>
{#<h1 style="color:#1266ac; font-size:200%;">マルチピュア浄水器商品一覧#}
<h1 style="color:#1266ac; font-size:200%;">
{% if sidebar_type == 3 %}
カウンタートップ浄水器
{% endif %}
{% if sidebar_type == 4 %}
ビルトイン浄水器
{% endif %}
{# 部品の場合 #}
{% if sidebar_type == 1 %}
部品一覧
{% endif %}
{# カートリッジの場合 #}
{% if sidebar_type == 2 %}
交換カートリッジ
{% endif %}
{% if sidebar_type == 5 %}
レンタル浄水器
{% endif %}
{% if sidebar_type == 0 %}
{% if Category is defined %}
{# 商品一覧からの場合 #}
{% if Category is not null %}
{% for Path in Category.path %}
{% if loop.last %}
{{ Path.name }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if Product is defined %}
{# 商品詳細からの場合 #}
{% if Product.ProductCategories is not empty %}
{% for ProductCategory in Product.ProductCategories %}
{% for Path in ProductCategory.Category.path %}
{% if loop.last %}
{{ Path.name }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
</h1>
{% if sub_title_type == 1 %}
<br />
<h2 style="font-weight:bold;">
キッチンの上に本体を置き、ご自身でお手軽に取り付けられるタイプ
</h2>
{% endif %}
</div>
</div>