{% extends 'default_frame.twig' %}
{% block javascript %}
{% endblock javascript %}
{% block main %}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
{# ▼ ブロック:DispHtag ▼ #}
{{ include('Block/DispHtag.twig') }}
{# ▲ ブロック:DispHtag ▲ #}
<title>ベースボール・マガジン社 BBM@BOOK CART</title>
<meta name="description" content="ベースボール・マガジン社が運営する総合スポーツサイト。ベースボール・マガジン社発行の書籍・雑誌・スポーツカードなどの新着情報、各競技の技術情報や専門家によるコラムなど、スポーツファンを応援する情報が満載です。">
<meta name="keywords" content="ベースボールマガジン社,BBM">
{# ▼ ブロック:DispHead ▼ #}
{{ include('Block/DispHead.twig') }}
{# ▲ ブロック:DispHead ▲ #}
<link href="{{ asset('css/content.css', 'user_data') }}" rel="stylesheet">
</head>
<body id="s_tennis">
{# ▼ ブロック:DispBtag ▼ #}
{{ include('Block/DispBtag.twig') }}
{# ▲ ブロック:DispBtag ▲ #}
{# ▼ ブロック:DispHeader ▼ #}
{{ include('Block/DispHeader.twig') }}
{# ▲ ブロック:DispHeader ▲ #}
<!--▼ CONTAINER ▼-->
<div id="container" class="clearfix">
{% set Cate2nd = null %}
<!--▼ パンくず ▼-->
<p id="topicpath">
{% if Category is not empty %}
<a href="{{ url('bookcart') }}">ホーム</a> >
{% if Category.hierarchy == 2 %}
{% set Cate2nd = Category %}
{% endif %}
{% for category in Category.parents %}
{% if category.hierarchy > 1 %}
{% if category.hierarchy == 2 %}
{% set Cate2nd = category %}
{% endif %}
<a href="{{ url('product_list', {cateid: category.id}) }}">{{ category.name }}</a> >
{% endif %}
{% endfor %}
<a href="{{ url('product_list', {'cateid': Category.id}) }}">{{ Category.name }}</a>
{% endif %}
</p>
<!--▲ パンくず ▲-->
<!--▼ タイトル画像 ▼-->
{% if Cate2nd and Cate2nd.titleImagePath %}
<h1><a href="{{ url('product_list', {'cateid': Cate2nd.id}) }}"><img src="{{ Cate2nd.titleImagePath }}"></a></h1>
{% endif %}
<!--▲ タイトル画像 ▲-->
<!--▼ 一覧 ▼-->
<div id="contents" class="w810">
{% for Product in pagination %}
{# カテゴリーの最下位 #}
{% set lowcateid = 0 %}
{% set hierarchy = 0 %}
{% for ProductCategory in Product.ProductCategories %}
{% if hierarchy < ProductCategory.Category.hierarchy %}
{% set lowcateid = ProductCategory.Category.id %}
{% endif %}
{% endfor %}
<table border="0" width="750" cellpadding="0" cellspacing="0" class="magazinebox">
<tr>
<td colspan="2"><div class="magtop1"> </div></td>
</tr>
<tr>
<td width="120" valign="top">
{% if Product.linkurl %}
<a href="{{ Product.linkurl }}">
{% else %}
<a href="{{ url('product_detail', {'id': Product.id}) }}">
{% endif %}
<img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" style="width:120px; margin-right:5px;" />
</a>
</td>
<td width="680" rowspan="2" valign="top" class="magbg" style="font-size:120%; line-height: 120%;">
<h3>
{% if Product.linkurl %}
<a href="{{ Product.linkurl }}" style="font-size:14px;">
{% else %}
<a href="{{ url('product_detail', {'id': Product.id}) }}" style="font-size:14px;">
{% endif %}
{{ Product.name|raw|nl2br }}
</a>
</h3>
{{ Product.hatsubaibi }}<br>
{{ Product.teikaref }}
<!-- ▼ 販売価格 ▼ -->
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|number_format }}円(税込)
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}円(税込)
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }}円(税込)
{% endif %}
<!-- ▲ 販売価格 ▲ -->
<!-- ▼ 商品コード ▼ -->
{% if Product.code_min is not empty %}
<br>{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}
{% endif %}
<!-- ▲ 商品コード ▲ -->
{% if Product.description_list %}
<div style="margin-top:8px;">{{ Product.description_list|raw|nl2br }}</div>
{% endif %}
</td>
</tr>
<tr>
<td valign="bottom" align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="{{ url('product_list', {'cateid': lowcateid}) }}">一覧を見る</a></td>
<td><img src="{{ asset('common_img/marker-f.gif', 'user_data') }}" alt="" width="18" height="18" vspace="5"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><div class="magbottom1"> </div></td>
</tr>
</table>
{% endfor %}
<!--▼ページナビ-->
{% include "productpager.twig" with {'pages': pagination.paginationData} %}
<!--▲ページナビ-->
</div>
<!--▲ 一覧 ▲-->
<!--▼ NAV ▼-->
<div id="snav">
<ul class="sbnr">
{% if Banners %}
{% for Banner in Banners %}
{% for cnt in 1..30 %}
{% set cntdsp = '%02d'|format(cnt) %}
{% set image = Banner['image'~cntdsp] %}
{% set link = Banner['link'~cntdsp] %}
{% set blank = Banner['blank'~cntdsp] %}
{% if image %}
{% if blank == 1 %}
{% set dspBlank = 'target="_blank"' %}
{% else %}
{% set dspBlank = '' %}
{% endif %}
<li>
<a href="{{ link }}" {{ dspBlank }}><img src="{{ asset('', 'save_image') }}/visual_{{ Banner.id }}/{{ image }}" width="240"></a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
</ul>
</div>
<!--▲ NAV ▲-->
</div>
<!--▲ CONTAINER ▲-->
<!--▼ GNAVI2 メインメニュ右 ▼-->
<div id="gnavi2" class="panel">
<div id="gnavi2_contents" class="clearfix">
{% if Cate2nd %}
{% for child_category in Cate2nd.children|reverse %}
{% if child_category.dspfl == 1 %}
{% if loop.index0 % 7 == 0 %}
{% if not loop.first %}
</ul>
{% endif %}
<ul class="gnavi2_ul mr40">
{% endif %}
<li><a href="{{ path('product_list', {cateid: child_category.id}) }}">{{ child_category.name }}</a></li>
{% if loop.last %}
</ul>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<!--▲ GNAVI02 メインメニュ右 ▲-->
{# ▼ ブロック:DispFooter ▼ #}
{{ include('Block/DispFooter.twig') }}
{# ▲ ブロック:DispFooter ▲ #}
{# ▼ ブロック:DispFtag ▼ #}
{{ include('Block/DispFtag.twig') }}
{# ▲ ブロック:DispFtag ▲ #}
</body>
</html>
{% endblock %}
{# ▲ main ▲ #}