app/template/default/Bookcart/index.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% form_theme search_form 'Form/form_div_layout.twig' %}
  3. {% block javascript %}
  4.     <script>
  5.         $(function() {
  6.             $('.mag_list').each(function(){
  7.                 $(this).find('li').tile(4);
  8.             });
  9.             $('#mainslider').bxSlider({
  10.                 auto: true,
  11.                 controls: false,
  12.                 infiniteLoop: true,
  13.                 speed:700,
  14.                 pause: 7000,
  15.                 slideWidth:1000,
  16.                 minSlides:1,
  17.                 maxSlides:1,
  18.                 slideMargin:24,
  19.                 touchEnabled: false
  20.             });
  21.         });
  22.     </script>
  23. {% endblock javascript %}
  24. {% block main %}
  25. <!DOCTYPE html>
  26. <html>
  27. <head>
  28. <meta charset="UTF-8">
  29. {# ▼ ブロック:DispHtag ▼ #}
  30. {{ include('Block/DispHtag.twig') }}
  31. {# ▲ ブロック:DispHtag ▲ #}
  32. <title>ベースボール・マガジン社 BBM@BOOK CART</title>
  33. <meta name="description" content="ベースボール・マガジン社が運営する総合スポーツサイト。ベースボール・マガジン社発行の書籍・雑誌・スポーツカードなどの新着情報、各競技の技術情報や専門家によるコラムなど、スポーツファンを応援する情報が満載です。">
  34. <meta name="keywords" content="ベースボールマガジン社,BBM">
  35. {# ▼ ブロック:DispHead ▼ #}
  36. {{ include('Block/DispHead.twig') }}
  37. {# ▲ ブロック:DispHead ▲ #}
  38. </head>
  39. <body id="pagetop" class="top">
  40. {# ▼ ブロック:DispBtag ▼ #}
  41. {{ include('Block/DispBtag.twig') }}
  42. {# ▲ ブロック:DispBtag ▲ #}
  43. {# ▼ ブロック:DispHeader ▼ #}
  44. {{ include('Block/DispHeaderTop.twig') }}
  45. {# ▲ ブロック:DispHeader ▲ #}
  46.     <!--▼ MAINIMG ▼-->
  47.     <div id="mainimg">
  48.         <div class="mainimg_bg">
  49.             <!--▼ SLIDER ▼-->
  50.             <ul id="mainslider">
  51.                 {% if BookCartMainVisual %}
  52.                     {% for cnt in 1..30 %}
  53.                         {% set cntdsp = '%02d'|format(cnt) %}
  54.                         {% set image = BookCartMainVisual['image'~cntdsp] %}
  55.                         {% set link = BookCartMainVisual['link'~cntdsp] %}
  56.                         {% set blank = BookCartMainVisual['blank'~cntdsp] %}
  57.                         {% if image %}
  58.                             {% if blank == 1 %}
  59.                                 {% set dspBlank = 'target="_blank"' %}
  60.                             {% else %}
  61.                                 {% set dspBlank = '' %}
  62.                             {% endif %}
  63.                             <li>
  64.                                 <a href="{{ link }}" {{ dspBlank }}><img src="{{ asset('', 'save_image') }}/visual_{{ BookCartMainVisual.id }}/{{ image }}"></a>
  65.                             </li>
  66.                         {% endif %}
  67.                     {% endfor %}
  68.                 {% endif %}
  69.             </ul>
  70.             <!--▲ SLIDER ▲-->
  71.             <div class="slide_l"></div>
  72.             <div class="slide_r"></div>
  73.         </div>
  74.     </div>
  75.     <!--▲ MAINIMG ▲-->
  76.     <!--▼ CONTAINER ▼-->
  77.     <div id="container" class="clearfix">
  78.         <!--▼ CONTENTS ▼-->
  79.         <div id="contents">
  80.             <div class="clearfix mb15">
  81.                 <!--▼ 検索フォーム ▼-->
  82.                 <div style="margin-bottom:5px;">
  83.                     <form method="get" class="searchform" action="{{ path('search_list') }}">
  84.                         <img src="{{ asset('common_img/tit_bloc_search.gif', 'user_data') }}" style="vertical-align: middle;">&nbsp;
  85.                         {{ form_widget(search_form.name, {'id': null, 'attr': {'style': 'width:320px; vertical-align:middle; background-color:#ffffff; border:3px solid #7f9db9; height:30px;', 'placeholder' : '', 'maxlength' :  '200'}} ) }}
  86.                         <button type="submit" class="hover_change_image" style="vertical-align: middle;"><img src="{{ asset('common_img/btn_bloc_search.jpg', 'user_data') }}" alt="検索" /></button>
  87.                     </form>
  88.                 </div>
  89.                 <!--▲ 検索フォーム ▲-->
  90.                 <!--▼ 新着トピックス ▼-->
  91.                 <div id="topics_box">
  92.                     <img src="{{ asset('common_img/title_01.gif', 'user_data') }}" alt="新着トピックス" class="box_title01" />
  93.                     <div class="topics">
  94.                         {% if NewsList2 %}
  95.                             {% for Product in NewsList2 %}
  96.                                 <dl class="carttopics_dl {% if loop.index is odd %}{% else %}bg_gray{% endif %} clearfix">
  97.                                     <dt>{{ Product.orderdate|date('Y年n月j日') }}発売</dt>
  98.                                     <dd>
  99.                                         <a href="{{ url('product_detail', {'id': Product.id}) }}">{{ Product.name }}</a>
  100.                                     </dd>
  101.                                 </dl>
  102.                             {% endfor %}
  103.                         {% endif %}
  104.                     </div>
  105.                 </div>
  106.                 <!--▲ 新着トピックス ▲-->
  107.                 <!--▼ お知らせ ▼-->
  108.                 <div class="top_book">
  109.                     <h3><img src="{{ asset('images/top/annai_head.jpg', 'user_data') }}" width="174" alt="好評発売中" /></h3>
  110.                     <img src="{{ asset('images/top/annai.jpg', 'user_data') }}" alt="案内" width="174" />
  111.                 </div>
  112.                 <!--▲ お知らせ ▲-->
  113.             </div>
  114.             <div class="clearfix mb15">
  115.                 <!--▼ おすすめ商品 ▼-->
  116.                 <h2 class="mb30">おすすめ商品</h2>
  117.                 <ul class="mag_list clearfix">
  118.                     {% if RecommendList %}
  119.                         {% for Product in RecommendList %}
  120.                             <!--▼ ARTICLE ▼-->
  121.                             <li>
  122.                                 <a href="{{ url('product_detail', {'id': Product.id}) }}">
  123.                                     <div class="mag_img">
  124.                                         <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" />
  125.                                     </div>
  126.                                     <div class="mag_txt">
  127.                                         <h4>{{ Product.name }}</h4>
  128.                                         <p>
  129.                                             <!-- ▼ 販売価格 ▼ -->
  130.                                             {% if Product.hasProductClass %}
  131.                                                 {% if Product.getPrice02Min == Product.getPrice02Max %}
  132.                                                     {{ Product.getPrice02IncTaxMin|number_format }}円(税込)
  133.                                                 {% else %}
  134.                                                     {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}円(税込)
  135.                                                 {% endif %}
  136.                                             {% else %}
  137.                                                 {{ Product.getPrice02IncTaxMin|number_format }}円(税込)
  138.                                             {% endif %}
  139.                                             <!-- ▲ 販売価格 ▲ -->
  140.                                         </p>
  141.                                     </div>
  142.                                 </a>
  143.                             </li>
  144.                             <!--▲ ARTICLE ▲-->
  145.                         {% endfor %}
  146.                     {% endif %}
  147.                 </ul>
  148.                 <!--▲ おすすめ商品 ▲-->
  149.                 <!--▼ 売れている商品 ▼-->
  150.                 <h2 class="mb30">売れている商品</h2>
  151.                 <ul class="mag_list clearfix">
  152.                     {% if RankingList %}
  153.                         {% for Product in RankingList %}
  154.                             {% if Product %}
  155.                                 <!--▼ ARTICLE ▼-->
  156.                                 <li>
  157.                                     <a href="{{ url('product_detail', {'id': Product.id}) }}">
  158.                                         <div class="mag_img">
  159.                                             <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" />
  160.                                         </div>
  161.                                         <div class="mag_txt">
  162.                                             <h4>{{ Product.name }}</h4>
  163.                                             <p>
  164.                                                 <!-- ▼ 販売価格 ▼ -->
  165.                                                 {% if Product.hasProductClass %}
  166.                                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  167.                                                         {{ Product.getPrice02IncTaxMin|number_format }}円(税込)
  168.                                                     {% else %}
  169.                                                         {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}円(税込)
  170.                                                     {% endif %}
  171.                                                 {% else %}
  172.                                                     {{ Product.getPrice02IncTaxMin|number_format }}円(税込)
  173.                                                 {% endif %}
  174.                                                 <!-- ▲ 販売価格 ▲ -->
  175.                                             </p>
  176.                                         </div>
  177.                                     </a>
  178.                                 </li>
  179.                                 <!--▲ ARTICLE ▲-->
  180.                             {% endif %}
  181.                         {% endfor %}
  182.                     {% endif %}
  183.                 </ul>
  184.                 <!--▲ 売れている商品 ▲-->
  185.             </div>
  186.         </div>
  187.         <!--▲ CONTENTS ▲-->
  188.         <!--▼ NAV ▼-->
  189.         <div id="snav">
  190.             <ul class="sbnr">
  191.                 {% if BookCartBanner %}
  192.                     {% for cnt in 1..30 %}
  193.                         {% set cntdsp = '%02d'|format(cnt) %}
  194.                         {% set image = BookCartBanner['image'~cntdsp] %}
  195.                         {% set link = BookCartBanner['link'~cntdsp] %}
  196.                         {% set blank = BookCartBanner['blank'~cntdsp] %}
  197.                         {% if image %}
  198.                             {% if blank == 1 %}
  199.                                 {% set dspBlank = 'target="_blank"' %}
  200.                             {% else %}
  201.                                 {% set dspBlank = '' %}
  202.                             {% endif %}
  203.                             <li>
  204.                                 <a href="{{ link }}" {{ dspBlank }}><img src="{{ asset('', 'save_image') }}/visual_{{ BookCartBanner.id }}/{{ image }}" width="240"></a>
  205.                             </li>
  206.                         {% endif %}
  207.                     {% endfor %}
  208.                 {% endif %}
  209.             </ul>
  210.         </div>
  211.         <!--▲ NAV ▲-->
  212.     </div>
  213.     <!--▲ CONTAINER ▲-->
  214. {# ▼ ブロック:DispFooter ▼ #}
  215. {{ include('Block/DispFooter.twig') }}
  216. {# ▲ ブロック:DispFooter ▲ #}
  217. {# ▼ ブロック:DispFtag ▼ #}
  218. {{ include('Block/DispFtag.twig') }}
  219. {# ▲ ブロック:DispFtag ▲ #}
  220. </body>
  221. </html>
  222. {% endblock %}
  223. {# ▲ main ▲ #}