app/template/default/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'front_page' %}
  10. {% block stylesheet %}
  11.     <style>
  12.     </style>
  13. {% endblock %}
  14. {% block javascript %}
  15.     <script>
  16.     </script>
  17. {% endblock javascript %}
  18. {% block main %}
  19.     <article id="top">
  20.         <section class="visual">
  21.             <div class="text">
  22.                 <h2>LIFE TIME<br>GEAR<br> SUPPLY</h2>
  23.                 <div class="pc">
  24.                     <p>SLAPSは、バイク、自転車、クルマ、キャンプなど</p>
  25.                     <p>幅広いアウトドアアクティビティを中心に</p>
  26.                     <p>魅力的な商品を厳選して提供するネットショップです。</p>
  27.                 </div><!-- /pc -->
  28.                 <div class="sp">
  29.                     <p>SLAPSは、バイク、自転車、キャンプなど、</p>
  30.                     <p>幅広いアウトドアアクティビティを中心に、</p>
  31.                     <p>魅力的なアイテムを厳選してご提供しています。</p>
  32.                 </div><!-- /pc -->
  33.             </div><!-- /text -->
  34.         </section><!-- /visual -->
  35.         <section class="news" style="display: none">
  36.             <header>
  37.                 <h3>NEWS</h3>
  38.                 <div class="news-list">
  39.                     <ul>
  40.                         <li>
  41.                             <article>
  42.                                 <time></time>
  43.                                 <h4></h4>
  44.                             </article>
  45.                         </li>
  46.                     </ul>
  47.                 </div><!-- /news-list -->
  48.             </header>
  49.         </section><!-- /news -->
  50.         <section class="item">
  51.             <div class="content">
  52.                 <header>
  53.                     <h2>ALL PRODUCTS</h2>
  54.                 </header>
  55.                 {% set recommend_products = repository('Plugin\\Recommend42\\Entity\\RecommendProduct').getRecommendProduct %}
  56.                 <!-- ▼item_list▼ -->
  57.                 <div class="item-list">
  58.                     <ul>
  59.                         {% for RecommendProduct in recommend_products %}
  60.                             <li class="ec-shelfGrid__item">
  61.                                 <article>
  62.                                     <a href="{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}">
  63.                                         <div class="image">
  64.                                             <img src="{{ asset(RecommendProduct.Product.mainFileName, "save_image") }}">
  65.                                         </div><!-- /image -->
  66.                                         <div class="text">
  67.                                             {{ RecommendProduct.comment|raw|purify }}
  68.                                             <span class="price">
  69.                                         {% if RecommendProduct.Product.hasProductClass %}
  70.                                             {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  71.                                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  72.                                             {% else %}
  73.                                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
  74.                                             {% endif %}
  75.                                         {% else %}
  76.                                             {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  77.                                         {% endif %}
  78.                                     </span><!-- /price -->
  79.                                             <span class="button">ITEM PAGE</span>
  80.                                         </div><!-- /text -->
  81.                                     </a>
  82.                                 </article>
  83.                             </li>
  84.                         {% endfor %}
  85.                     </ul>
  86.                 </div><!--/item-list -->
  87.                 <!-- ▲item_list▲ -->
  88.             </div><!-- /content -->
  89.         </section>
  90.         <section class="sns" style="display: none;">
  91.             <header>
  92.                 <h2>INSTAGRAM</h2>
  93.             </header>
  94.             インスタのフィードが入る
  95.         </section><!-- /sns -->
  96.     </article><!-- /top -->
  97. {% endblock %}