app/template/default/Product/catelist.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% block javascript %}
  3. {% endblock javascript %}
  4. {% block main %}
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. {# ▼ ブロック:DispHtag ▼ #}
  10. {{ include('Block/DispHtag.twig') }}
  11. {# ▲ ブロック:DispHtag ▲ #}
  12. <title>ベースボール・マガジン社 BBM@BOOK CART</title>
  13. <meta name="description" content="ベースボール・マガジン社が運営する総合スポーツサイト。ベースボール・マガジン社発行の書籍・雑誌・スポーツカードなどの新着情報、各競技の技術情報や専門家によるコラムなど、スポーツファンを応援する情報が満載です。">
  14. <meta name="keywords" content="ベースボールマガジン社,BBM">
  15. {# ▼ ブロック:DispHead ▼ #}
  16. {{ include('Block/DispHead.twig') }}
  17. {# ▲ ブロック:DispHead ▲ #}
  18. <link href="{{ asset('css/content.css', 'user_data') }}" rel="stylesheet">
  19. </head>
  20. <body id="s_tennis">
  21. {# ▼ ブロック:DispBtag ▼ #}
  22. {{ include('Block/DispBtag.twig') }}
  23. {# ▲ ブロック:DispBtag ▲ #}
  24. {# ▼ ブロック:DispHeader ▼ #}
  25. {{ include('Block/DispHeader.twig') }}
  26. {# ▲ ブロック:DispHeader ▲ #}
  27.     <!--▼ CONTAINER ▼-->
  28.     <div id="container" class="clearfix">
  29.         {% set Cate2nd = null %}
  30.         <!--▼ パンくず ▼-->
  31.         <p id="topicpath">
  32.             {% if Category is not empty %}
  33.                 <a href="{{ url('bookcart') }}">ホーム</a>&nbsp;&gt&nbsp;
  34.                 {% if Category.hierarchy == 2 %}
  35.                     {% set Cate2nd = Category %}
  36.                 {% endif %}
  37.                 {% for category in Category.parents %}
  38.                     {% if category.hierarchy > 1 %}
  39.                         {% if category.hierarchy == 2 %}
  40.                             {% set Cate2nd = category %}
  41.                         {% endif %}
  42.                         <a href="{{ url('product_list', {cateid: category.id}) }}">{{ category.name }}</a>&nbsp;&gt;&nbsp;
  43.                     {% endif %}
  44.                 {% endfor %}
  45.                 <a href="{{ url('product_list', {'cateid': Category.id}) }}">{{ Category.name }}</a>
  46.             {% endif %}
  47.         </p>
  48.         <!--▲ パンくず ▲-->
  49.         <!--▼ タイトル画像 ▼-->
  50.         {% if Cate2nd and Cate2nd.titleImagePath %}
  51.             <h1><a href="{{ url('product_list', {'cateid': Cate2nd.id}) }}"><img src="{{ Cate2nd.titleImagePath }}"></a></h1>
  52.         {% endif %}
  53.         <!--▲ タイトル画像 ▲-->
  54.         <!--▼ 一覧 ▼-->
  55.         <div id="contents" class="w810">
  56.             {% for Product in pagination %}
  57.                 {# カテゴリーの最下位 #}
  58.                 {% set lowcateid = 0 %}
  59.                 {% set hierarchy = 0 %}
  60.                 {% for ProductCategory in Product.ProductCategories %}
  61.                     {% if hierarchy < ProductCategory.Category.hierarchy %}
  62.                         {% set lowcateid = ProductCategory.Category.id %}
  63.                     {% endif %}
  64.                 {% endfor %}
  65.                 <table border="0" width="750" cellpadding="0" cellspacing="0" class="magazinebox">
  66.                     <tr>
  67.                         <td colspan="2"><div class="magtop1">&nbsp;</div></td>
  68.                     </tr>
  69.                     <tr>
  70.                         <td width="120" valign="top">
  71.                             {% if Product.linkurl %}
  72.                                   <a href="{{ Product.linkurl }}">
  73.                               {% else %}
  74.                                   <a href="{{ url('product_detail', {'id': Product.id}) }}">
  75.                               {% endif %}
  76.                               <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" style="width:120px; margin-right:5px;" />
  77.                             </a>
  78.                         </td>
  79.                         <td width="680" rowspan="2" valign="top" class="magbg" style="font-size:120%; line-height: 120%;">
  80.                             <h3>
  81.                             {% if Product.linkurl %}
  82.                                 <a href="{{ Product.linkurl }}" style="font-size:14px;">
  83.                             {% else %}
  84.                                 <a href="{{ url('product_detail', {'id': Product.id}) }}" style="font-size:14px;">
  85.                             {% endif %}
  86.                                     {{ Product.name|raw|nl2br }}
  87.                                 </a>
  88.                             </h3>
  89.                             {{ Product.hatsubaibi }}<br>
  90.                             {{ Product.teikaref }}&nbsp;
  91.                             <!-- ▼ 販売価格 ▼ -->
  92.                             {% if Product.hasProductClass %}
  93.                                 {% if Product.getPrice02Min == Product.getPrice02Max %}
  94.                                     {{ Product.getPrice02IncTaxMin|number_format }}円(税込)
  95.                                 {% else %}
  96.                                     {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}円(税込)
  97.                                 {% endif %}
  98.                             {% else %}
  99.                                 {{ Product.getPrice02IncTaxMin|number_format }}円(税込)
  100.                             {% endif %}
  101.                             <!-- ▲ 販売価格 ▲ -->
  102.                             <!-- ▼ 商品コード ▼ -->
  103.                             {% if Product.code_min is not empty %}
  104.                                 <br>{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}
  105.                             {% endif %}
  106.                             <!-- ▲ 商品コード ▲ -->
  107.                             {% if Product.description_list %}
  108.                                 <div style="margin-top:8px;">{{ Product.description_list|raw|nl2br }}</div>
  109.                             {% endif %}
  110.                         </td>
  111.                     </tr>
  112.                     <tr>
  113.                         <td valign="bottom" align="center">
  114.                             <table border="0" cellpadding="0" cellspacing="0">
  115.                                 <tr>
  116.                                     <td><a href="{{ url('product_list', {'cateid': lowcateid}) }}">一覧を見る</a></td>
  117.                                     <td><img src="{{ asset('common_img/marker-f.gif', 'user_data') }}" alt="" width="18" height="18" vspace="5"></td>
  118.                                 </tr>
  119.                             </table>
  120.                         </td>
  121.                     </tr>
  122.                     <tr>
  123.                         <td colspan="2"><div class="magbottom1">&nbsp;</div></td>
  124.                     </tr>
  125.                 </table>
  126.             {% endfor %}
  127.             <!--▼ページナビ-->
  128.             {% include "productpager.twig" with {'pages': pagination.paginationData} %}
  129.             <!--▲ページナビ-->
  130.         </div>
  131.         <!--▲ 一覧 ▲-->
  132.         <!--▼ NAV ▼-->
  133.         <div id="snav">
  134.             <ul class="sbnr">
  135.                 {% if Banners %}
  136.                     {% for Banner in Banners %}
  137.                         {% for cnt in 1..30 %}
  138.                             {% set cntdsp = '%02d'|format(cnt) %}
  139.                             {% set image = Banner['image'~cntdsp] %}
  140.                             {% set link = Banner['link'~cntdsp] %}
  141.                             {% set blank = Banner['blank'~cntdsp] %}
  142.                             {% if image %}
  143.                                 {% if blank == 1 %}
  144.                                     {% set dspBlank = 'target="_blank"' %}
  145.                                 {% else %}
  146.                                     {% set dspBlank = '' %}
  147.                                 {% endif %}
  148.                                 <li>
  149.                                     <a href="{{ link }}" {{ dspBlank }}><img src="{{ asset('', 'save_image') }}/visual_{{ Banner.id }}/{{ image }}" width="240"></a>
  150.                                 </li>
  151.                             {% endif %}
  152.                         {% endfor %}
  153.                     {% endfor %}
  154.                 {% endif %}
  155.             </ul>
  156.         </div>
  157.         <!--▲ NAV ▲-->
  158.     </div>
  159.     <!--▲ CONTAINER ▲-->
  160.     <!--▼ GNAVI2 メインメニュ右 ▼-->
  161.     <div id="gnavi2" class="panel">
  162.         <div id="gnavi2_contents" class="clearfix">
  163.             {% if Cate2nd %}
  164.                 {% for child_category in Cate2nd.children|reverse %}
  165.                     {% if child_category.dspfl == 1 %}
  166.                         {% if loop.index0 % 7 == 0 %}
  167.                             {% if not loop.first %}
  168.                                 </ul>
  169.                             {% endif %}
  170.                             <ul class="gnavi2_ul mr40">
  171.                         {% endif %}
  172.                         <li><a href="{{ path('product_list', {cateid: child_category.id}) }}">{{ child_category.name }}</a></li>
  173.                         {% if loop.last %}
  174.                             </ul>
  175.                         {% endif %}
  176.                     {% endif %}
  177.                 {% endfor %}
  178.             {% endif %}
  179.         </div>
  180.     </div>
  181.     <!--▲ GNAVI02 メインメニュ右 ▲-->
  182. {# ▼ ブロック:DispFooter ▼ #}
  183. {{ include('Block/DispFooter.twig') }}
  184. {# ▲ ブロック:DispFooter ▲ #}
  185. {# ▼ ブロック:DispFtag ▼ #}
  186. {{ include('Block/DispFtag.twig') }}
  187. {# ▲ ブロック:DispFtag ▲ #}
  188. </body>
  189. </html>
  190. {% endblock %}
  191. {# ▲ main ▲ #}