app/template/kaorime/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 main %}
  11.     <div class="top">
  12.         <!-- KV -->
  13.         <div class="top-kv">
  14.             <ul class="slider">
  15.                 <li><img src="{{ asset('assets/img/top/KV_03.png')}}" alt="我が家の香り芽1週間"></li>
  16.                 <li><a href="/products/detail/61"><img src="{{ asset('assets/img/top/KV_02.jpg')}}" alt="香り芽で食べ比べ そふとふりかけおすすめ8選"></a></li>
  17.                 <li><a href="/products/detail/59"><img src="{{ asset('assets/img/top/KV_05.png')}}" alt="しそひじき オンラインショップ限定!"></a></li>
  18.             </ul>
  19.         </div>
  20.         <!-- /KV -->
  21.         <!-- CONTENTS -->
  22.         <div class="l-container l-2ColumnContainer">
  23.             <!-- MAIN-CONTENTS -->
  24.             <div class="l-main">
  25.                 <!-- RANKING -->
  26.                 <section class="top-ranking marginTop0">
  27.                     <h2 class="top-h2-t02">商品ランキング <span class="itemEn">Ranking</span></h2>
  28.                     <div class="mod-productsBoxContainer">
  29.                         <!-- BOX -->
  30.                         <article class="mod-productsBox">
  31.                             <a href="/products/detail/21" class="mod-productsBoxInner">
  32.                                 <span class="boxImg">
  33.                                   <span class="boxImgInner">
  34.                                     <img src="{{ asset('assets/img/top/rank1.png')}}" alt="" class="imgObjectFitCover" loading="lazy">
  35.                                   </span>
  36.                                 </span>
  37.                                 <div class="boxData">
  38.                                     <h3 class="name">芽かぶ和風スープ 65g</h3>
  39.                                     <p class="price">¥432<span class="tax">(税込)</span></p>
  40.                                 </div>
  41.                             </a>
  42.                         </article>
  43.                         <!-- /BOX -->
  44.                         <!-- BOX -->
  45.                         <article class="mod-productsBox">
  46.                             <a href="/products/detail/22" class="mod-productsBoxInner">
  47.                                 <span class="boxImg">
  48.                                   <span class="boxImgInner">
  49.                                     <img src="{{ asset('assets/img/top/rank2.png')}}" alt="" class="imgObjectFitCover" loading="lazy">
  50.                                   </span>
  51.                                 </span>
  52.                                 <div class="boxData">
  53.                                     <h3 class="name">和風わかめスープ 80g</h3>
  54.                                     <p class="price">¥432<span class="tax">(税込)</span></p>
  55.                                 </div>
  56.                             </a>
  57.                         </article>
  58.                         <!-- /BOX -->
  59.                         <!-- BOX -->
  60.                         <article class="mod-productsBox">
  61.                             <a href="/products/detail/57" class="mod-productsBoxInner">
  62.                                 <span class="boxImg">
  63.                                   <span class="boxImgInner">
  64.                                     <img src="{{ asset('assets/img/top/shisohijiki.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  65.                                   </span>
  66.                                 </span>
  67.                                 <div class="boxData">
  68.                                     <h3 class="name">しそ入りひじきふりかけ 130g</h3>
  69.                                     <p class="price">¥540<span class="tax">(税込)</span></p>
  70.                                 </div>
  71.                             </a>
  72.                         </article>
  73.                         <!-- /BOX -->
  74.                         <!-- BOX -->
  75.                         <article class="mod-productsBox">
  76.                             <a href="/products/detail/18" class="mod-productsBoxInner">
  77.                                 <span class="boxImg">
  78.                                   <span class="boxImgInner">
  79.                                     <img src="{{ asset('assets/img/top/rank4.png')}}" alt="" class="imgObjectFitCover" loading="lazy">
  80.                                   </span>
  81.                                 </span>
  82.                                 <div class="boxData">
  83.                                     <h3 class="name">わかめごはん 110g</h3>
  84.                                     <p class="price">¥432<span class="tax">(税込)</span></p>
  85.                                 </div>
  86.                             </a>
  87.                         </article>
  88.                         <!-- /BOX -->
  89.                     </div>
  90.                 </section>
  91.                 <!-- /RANKING -->
  92.                 <!-- CATEGORY -->
  93.                 <section class="top-pCategory marginTop70">
  94.                     <h2 class="top-h2-t02">商品カテゴリー <span class="itemEn">Category</span></h2>
  95.                     <div class="top-pCategoryCardContainer">
  96.                         <!-- CARD -->
  97.                         <article class="top-pCategoryCard">
  98.                             <a href="/products/list?category_id=7" class="top-pCategoryCardInner">
  99.                                 <div class="boxImg">
  100.                                   <span class="boxImgInner">
  101.                                     <img src="{{ asset('assets/img/top/category_img_01.jpg')}}" alt="わかめふりかけの写真" class="imgObjectFitCover"
  102.                                          loading="lazy">
  103.                                   </span>
  104.                                 </div>
  105.                                 <div class="boxData">
  106.                                     <h3 class="name">わかめふりかけ</h3>
  107.                                     <p class="detail">わかめをもっと手軽に食べていただけるよう、質や味にもこだわって作った自慢の逸品です。</p>
  108.                                 </div>
  109.                             </a>
  110.                         </article>
  111.                         <!-- /CARD -->
  112.                         <!-- CARD -->
  113.                         <article class="top-pCategoryCard">
  114.                             <a href="/products/list?category_id=8" class="top-pCategoryCardInner">
  115.                                 <div class="boxImg">
  116.                                   <span class="boxImgInner">
  117.                                     <img src="{{ asset('assets/img/top/category_img_02.jpg')}}" alt="ひじきふりかけの写真" class="imgObjectFitCover"
  118.                                          loading="lazy">
  119.                                   </span>
  120.                                 </div>
  121.                                 <div class="boxData">
  122.                                     <h3 class="name">ひじきふりかけ</h3>
  123.                                     <p class="detail">海藻類の中でも特に栄養価の高いひじきを使った身体思いのふりかけです。<br>ソフトタイプでやわらかく、食べやすさと、おいしさにこだわった逸品です。</p>
  124.                                 </div>
  125.                             </a>
  126.                         </article>
  127.                         <!-- /CARD -->
  128.                         <!-- CARD -->
  129.                         <article class="top-pCategoryCard">
  130.                             <a href="/products/list?category_id=9" class="top-pCategoryCardInner">
  131.                                 <div class="boxImg">
  132.                                   <span class="boxImgInner">
  133.                                     <img src="{{ asset('assets/img/top/category_img_03.jpg')}}" alt="わかめごはんの写真" class="imgObjectFitCover" loading="lazy">
  134.                                   </span>
  135.                                 </div>
  136.                                 <div class="boxData">
  137.                                     <h3 class="name">わかめごはん</h3>
  138.                                     <p class="detail">炊き上がったご飯にまぜるだけで、手軽にわかめごはんが召し上がれます。</p>
  139.                                 </div>
  140.                             </a>
  141.                         </article>
  142.                         <!-- /CARD -->
  143.                         <!-- CARD -->
  144.                         <article class="top-pCategoryCard">
  145.                             <a href="/products/list?category_id=10" class="top-pCategoryCardInner">
  146.                                 <span class="boxImg">
  147.                                   <span class="boxImgInner">
  148.                                     <img src="{{ asset('assets/img/top/category_img_04.jpg')}}" alt="わかめスープの写真" class="imgObjectFitCover" loading="lazy">
  149.                                   </span>
  150.                                 </span>
  151.                                 <div class="boxData">
  152.                                     <h3 class="name">わかめスープ</h3>
  153.                                     <p class="detail">独自の製法でわかめの葉自体に味を施し、深い味わいに。<br>出汁とわかめの味わいが食欲をそそる、本格わかめスープです。</p>
  154.                                 </div>
  155.                             </a>
  156.                         </article>
  157.                         <!-- /CARD -->
  158.                         <!-- CARD -->
  159.                         <article class="top-pCategoryCard">
  160.                             <a href="/products/list?category_id=11" class="top-pCategoryCardInner">
  161.                                 <span class="boxImg">
  162.                                   <span class="boxImgInner">
  163.                                     <img src="{{ asset('assets/img/top/category_img_05.jpg')}}" alt="お茶漬けの写真" class="imgObjectFitCover" loading="lazy">
  164.                                   </span>
  165.                                 </span>
  166.                                 <div class="boxData">
  167.                                     <h3 class="name">お茶漬け</h3>
  168.                                     <p class="detail">わかめ本来の「緑」が鮮やかなお茶漬けです。<br>磯の香りとあられのこうばしさを合わせて、風味豊かに仕上げました。</p>
  169.                                 </div>
  170.                             </a>
  171.                         </article>
  172.                         <!-- /CARD -->
  173.                     </div>
  174.                 </section>
  175.                 <!-- /CATEGORY -->
  176.                 <!-- RECOMMEND -->
  177.                 <section class="top-recommend marginTop70">
  178.                     <h2 class="top-h2-t02">おすすめの商品 <span class="itemEn">Recommend</span></h2>
  179.                     <div class="mod-productsBoxContainer">
  180.                         {% if Layout.MainBottom %}
  181.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  182.                         {% endif %}
  183.                     </div>
  184.                 </section>
  185.                 <!-- /RECOMMEND -->
  186.                 <!-- PICK-BNR -->
  187.                 <ul class="top-pickBnrContainer marginTop60">
  188.                     <li>
  189.                         <img src="{{ asset('assets/img/top/banner_02.png')}}" alt="送料一律300円のゆうパケット便" class="imgFit" width="396" height="124"
  190.                              loading="lazy">
  191.                     </li>
  192.                     <li>
  193.                         <a href="/products/detail/61">
  194.                         <img src="{{ asset('assets/img/top/banner_03.jpg')}}" alt="香り芽で食べ比べ そふとふりかけおすすめ8選" class="imgFit" width="396" height="124"
  195.                              loading="lazy">
  196.                         </a>
  197.                     </li>
  198.                      <li>
  199.                          <a href="/products/detail/59">
  200.                          <img src="{{ asset('assets/img/top/banner_05.png')}}" alt="しそひじき オンラインショップ限定!" class="imgFit" width="396" height="124"
  201.                              loading="lazy">
  202.                          </a>
  203.                     </li>
  204.                </ul>
  205.                 <!-- /PICK-BNR -->
  206.                 <!-- REASON -->
  207.                 <section class="top-reason">
  208.                     <h2 class="top-h2-t01">Kaorimeのごはんのおともが<br>「からだにいい」理由</h2>
  209.                     <div class="top-reasonBoxContainer">
  210.                         <!-- BOX -->
  211.                         <section class="top-reasonBox">
  212.                             <div class="boxImg">
  213.                                 <span class="boxImgInner">
  214.                                   <img src="{{ asset('assets/img/top/reason1.png')}}" alt="良質産地韓国「東海岸」で採れたひじき" class="imgObjectFitCover"
  215.                                        loading="lazy">
  216.                                 </span>
  217.                             </div>
  218.                             <h3 class="itemHl">良質産地韓国「東海岸」で<br><span class="itemShrink">採れたひじき</span></h3>
  219.                         </section>
  220.                         <!-- /BOX -->
  221.                         <!-- BOX -->
  222.                         <section class="top-reasonBox">
  223.                             <div class="boxImg">
  224.                                 <span class="boxImgInner">
  225.                                   <img src="{{ asset('assets/img/top/reason2.png')}}" alt="着色料不使用の無添加へのこだわり" class="imgObjectFitCover" loading="lazy">
  226.                                 </span>
  227.                             </div>
  228.                             <h3 class="itemHl">着色料不使用の<br class="dn-pc">無添加へのこだわり</h3>
  229.                         </section>
  230.                         <!-- /BOX -->
  231.                         <!-- BOX -->
  232.                         <section class="top-reasonBox">
  233.                             <div class="boxImg">
  234.                                 <span class="boxImgInner">
  235.                                   <img src="{{ asset('assets/img/top/reason3.png')}}" alt="栄養豊富な海中で育ったわかめは、低カロリーで栄養分がとても豊富" class="imgObjectFitCover" loading="lazy">
  236.                                 </span>
  237.                             </div>
  238.                             <h3 class="itemHl">栄養豊富な海中で育ったわかめは、低カロリーで栄養分がとても豊富</h3>
  239.                         </section>
  240.                         <!-- /BOX -->
  241.                     </div>
  242.                     <a href="https://kaorime.co.jp/" class="mod-btn-02 mod-btn-external" target="_blank">公式サイトでもっと見る</a>
  243.                 </section>
  244.                 <!-- /REASON -->
  245.                 {#
  246.                 <!-- PICK-BNR-SLIDE -->
  247.                 <div class="top-pickBnrSlide">
  248.                     <ul class="slider">
  249.                         <li>
  250.                             <a href="#">
  251.                                 <img src="{{ asset('assets/img/top/pick_slide_banner_01.jpg')}}" alt="こだわりのスープギフト" width="770" height="241"
  252.                                      loading="lazy">
  253.                             </a>
  254.                         </li>
  255.                         <li>
  256.                             <img src="{{ asset('assets/img/top/pick_slide_banner_dummy.jpg')}}" alt="" width="770" height="241" loading="lazy">
  257.                         </li>
  258.                         <li>
  259.                             <img src="{{ asset('assets/img/top/pick_slide_banner_dummy.jpg')}}" alt="" width="770" height="241" loading="lazy">
  260.                         </li>
  261.                         <li>
  262.                             <img src="{{ asset('assets/img/top/pick_slide_banner_dummy.jpg')}}" alt="" width="770" height="241" loading="lazy">
  263.                         </li>
  264.                     </ul>
  265.                 </div>
  266.                 <!-- /PICK-BNR-SLIDE -->
  267.                 #}
  268.                 {#
  269.                 <!-- RECIPE・COLUMN -->
  270.                 <div class="top-recipeColumnGroup">
  271.                     <!-- RECIPE -->
  272.                     <section class="top-recipe">
  273.                         <h2 class="top-h2-t02">ひろがるレシピ <span class="itemEn">Recipe</span></h2>
  274.                         <!-- CARD -->
  275.                         <article class="top-recipeCard">
  276.                             <a href="#" class="top-recipeCardInner">
  277.                                 <div class="boxImg">
  278.                       <span class="boxImgInner">
  279.                         <img src="{{ asset('assets/img/top/recipe_img_01.jpg')}}" alt="じゃことわかめ入り卵焼きの写真" class="imgObjectFitCover"
  280.                              loading="lazy">
  281.                       </span>
  282.                                     <span class="boxImgProduct">
  283.                         <img src="{{ asset('assets/img/top/recipe_product_img_01.png')}}" alt="香り芽本舗ちりめん入わかめふりかけの写真" class="imgFit"
  284.                              width="60" height="80" loading="lazy">
  285.                       </span>
  286.                                 </div>
  287.                                 <div class="boxData">
  288.                                     <h3 class="recipeName">じゃことわかめ入り卵焼き</h3>
  289.                                     <span class="nameHl">利用商品</span>
  290.                                     <p class="name">香り芽本舗<br>ちりめん入わかめふりかけ</p>
  291.                                 </div>
  292.                             </a>
  293.                         </article>
  294.                         <!-- /CARD -->
  295.                         <!-- CARD -->
  296.                         <article class="top-recipeCard">
  297.                             <a href="#" class="top-recipeCardInner">
  298.                                 <div class="boxImg">
  299.                       <span class="boxImgInner">
  300.                         <img src="{{ asset('assets/img/top/recipe_img_02.jpg')}}" alt="わかめ入りペペロンチーノの写真" class="imgObjectFitCover"
  301.                              loading="lazy">
  302.                       </span>
  303.                                     <span class="boxImgProduct">
  304.                         <img src="{{ asset('assets/img/top/recipe_product_img_01.png')}}" alt="香り芽本舗ちりめん入わかめふりかけの写真" class="imgFit"
  305.                              width="60" height="80" loading="lazy">
  306.                       </span>
  307.                                 </div>
  308.                                 <div class="boxData">
  309.                                     <h3 class="recipeName">わかめ入りペペロンチーノ</h3>
  310.                                     <span class="nameHl">利用商品</span>
  311.                                     <p class="name">香り芽本舗<br>ちりめん入わかめふりかけ</p>
  312.                                 </div>
  313.                             </a>
  314.                         </article>
  315.                         <!-- /CARD -->
  316.                         <!-- CARD -->
  317.                         <article class="top-recipeCard">
  318.                             <a href="#" class="top-recipeCardInner">
  319.                                 <div class="boxImg">
  320.                       <span class="boxImgInner">
  321.                         <img src="{{ asset('assets/img/top/recipe_img_03.jpg')}}" alt="3種類のきゅうりとわかめのしそ風味浅漬けの写真" class="imgObjectFitCover"
  322.                              loading="lazy">
  323.                       </span>
  324.                                     <span class="boxImgProduct">
  325.                         <img src="{{ asset('assets/img/top/recipe_product_img_02.png')}}" alt="香り芽本舗ちりめん入わかめふりかけの写真" class="imgFit"
  326.                              width="60" height="80" loading="lazy">
  327.                       </span>
  328.                                 </div>
  329.                                 <div class="boxData">
  330.                                     <h3 class="recipeName">3種類のきゅうりとわかめのしそ風味浅漬け</h3>
  331.                                     <span class="nameHl">利用商品</span>
  332.                                     <p class="name">香り芽本舗<br>ちりめん入わかめふりかけ</p>
  333.                                 </div>
  334.                             </a>
  335.                         </article>
  336.                         <!-- /CARD -->
  337.                         <!-- BTN -->
  338.                         <a href="#" class="mod-btn-02 mod-btn-external">もっと見る</a>
  339.                         <!-- /BTN -->
  340.                     </section>
  341.                     <!-- /RECIPE -->
  342.                     <!-- COLUMN -->
  343.                     <section class="top-column">
  344.                         <h2 class="top-h2-t02">コラム <span class="itemEn">Column</span></h2>
  345.                         <div id="column-container"></div>
  346.                         <!-- BTN -->
  347.                         <a href="#" class="mod-btn-02 mod-btn-external">もっと見る</a>
  348.                         <!-- /BTN -->
  349.                     </section>
  350.                     <!-- /COLUMN -->
  351.                 </div>
  352.                 <!-- /RECIPE・COLUMN -->
  353.                 #}
  354.                 {#
  355.                 <!-- VOICE -->
  356.             <section class="top-voice">
  357.                 <h2 class="top-h2-t02">お客様の声 <span class="itemEn">Customer’s voice</span></h2>
  358.                 <div class="swiperContainer">
  359.                     <div id="swiper" class="swiper">
  360.                         <div class="swiper-wrapper">
  361.                             <!-- CARD -->
  362.                             <article class="top-voiceCard swiper-slide">
  363.                                 <a href="#" class="top-voiceCardInner">
  364.                                     <div class="boxImg">
  365.                       <span class="boxImgInner">
  366.                         <img src="{{ asset('assets/img/top/products_img_01.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  367.                       </span>
  368.                                         <p class="name">ちりめん入…</p>
  369.                                     </div>
  370.                                     <div class="boxData">
  371.                                         <div class="reviewStarGroup">
  372.                                             <span class="reviewStar starON">★</span>
  373.                                             <span class="reviewStar starON">★</span>
  374.                                             <span class="reviewStar starON">★</span>
  375.                                             <span class="reviewStar starON">★</span>
  376.                                             <span class="reviewStar starON">★</span>
  377.                                         </div>
  378.                                         <h3 class="reviewName">お名前</h3>
  379.                                         <p class="reviewComment">コメントが入ります。テキストテキストテキストテキストテキスト…</p>
  380.                                     </div>
  381.                                 </a>
  382.                             </article>
  383.                             <!-- /CARD -->
  384.                             <!-- CARD -->
  385.                             <article class="top-voiceCard swiper-slide">
  386.                                 <a href="#" class="top-voiceCardInner">
  387.                                     <div class="boxImg">
  388.                       <span class="boxImgInner">
  389.                         <img src="{{ asset('assets/img/top/products_img_01.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  390.                       </span>
  391.                                         <p class="name">ちりめん入…</p>
  392.                                     </div>
  393.                                     <div class="boxData">
  394.                                         <div class="reviewStarGroup">
  395.                                             <span class="reviewStar starON">★</span>
  396.                                             <span class="reviewStar starON">★</span>
  397.                                             <span class="reviewStar starON">★</span>
  398.                                             <span class="reviewStar starON">★</span>
  399.                                             <span class="reviewStar starOFF">★</span>
  400.                                         </div>
  401.                                         <h3 class="reviewName">お名前</h3>
  402.                                         <p class="reviewComment">コメントが入ります。テキストテキストテキストテキストテキスト…</p>
  403.                                     </div>
  404.                                 </a>
  405.                             </article>
  406.                             <!-- /CARD -->
  407.                             <!-- CARD -->
  408.                             <article class="top-voiceCard swiper-slide">
  409.                                 <a href="#" class="top-voiceCardInner">
  410.                                     <div class="boxImg">
  411.                       <span class="boxImgInner">
  412.                         <img src="{{ asset('assets/img/top/products_img_01.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  413.                       </span>
  414.                                         <p class="name">ちりめん入…</p>
  415.                                     </div>
  416.                                     <div class="boxData">
  417.                                         <div class="reviewStarGroup">
  418.                                             <span class="reviewStar starON">★</span>
  419.                                             <span class="reviewStar starON">★</span>
  420.                                             <span class="reviewStar starON">★</span>
  421.                                             <span class="reviewStar starOFF">★</span>
  422.                                             <span class="reviewStar starOFF">★</span>
  423.                                         </div>
  424.                                         <h3 class="reviewName">お名前</h3>
  425.                                         <p class="reviewComment">コメントが入ります。テキストテキストテキストテキストテキスト…</p>
  426.                                     </div>
  427.                                 </a>
  428.                             </article>
  429.                             <!-- /CARD -->
  430.                             <!-- CARD -->
  431.                             <article class="top-voiceCard swiper-slide">
  432.                                 <a href="#" class="top-voiceCardInner">
  433.                                     <div class="boxImg">
  434.                       <span class="boxImgInner">
  435.                         <img src="{{ asset('assets/img/top/products_img_01.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  436.                       </span>
  437.                                         <p class="name">ちりめん入…</p>
  438.                                     </div>
  439.                                     <div class="boxData">
  440.                                         <div class="reviewStarGroup">
  441.                                             <span class="reviewStar starON">★</span>
  442.                                             <span class="reviewStar starON">★</span>
  443.                                             <span class="reviewStar starON">★</span>
  444.                                             <span class="reviewStar starON">★</span>
  445.                                             <span class="reviewStar starON">★</span>
  446.                                         </div>
  447.                                         <h3 class="reviewName">お名前</h3>
  448.                                         <p class="reviewComment">コメントが入ります。テキストテキストテキストテキストテキスト…</p>
  449.                                     </div>
  450.                                 </a>
  451.                             </article>
  452.                             <!-- /CARD -->
  453.                             <!-- CARD -->
  454.                             <article class="top-voiceCard swiper-slide">
  455.                                 <a href="#" class="top-voiceCardInner">
  456.                                     <div class="boxImg">
  457.                       <span class="boxImgInner">
  458.                         <img src="{{ asset('assets/img/top/products_img_01.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  459.                       </span>
  460.                                         <p class="name">ちりめん入…</p>
  461.                                     </div>
  462.                                     <div class="boxData">
  463.                                         <div class="reviewStarGroup">
  464.                                             <span class="reviewStar starON">★</span>
  465.                                             <span class="reviewStar starON">★</span>
  466.                                             <span class="reviewStar starON">★</span>
  467.                                             <span class="reviewStar starON">★</span>
  468.                                             <span class="reviewStar starON">★</span>
  469.                                         </div>
  470.                                         <h3 class="reviewName">お名前</h3>
  471.                                         <p class="reviewComment">コメントが入ります。テキストテキストテキストテキストテキスト…</p>
  472.                                     </div>
  473.                                 </a>
  474.                             </article>
  475.                             <!-- /CARD -->
  476.                             <!-- CARD -->
  477.                             <article class="top-voiceCard swiper-slide">
  478.                                 <a href="#" class="top-voiceCardInner">
  479.                                     <div class="boxImg">
  480.                       <span class="boxImgInner">
  481.                         <img src="{{ asset('assets/img/top/products_img_01.jpg')}}" alt="" class="imgObjectFitCover" loading="lazy">
  482.                       </span>
  483.                                         <p class="name">ちりめん入…</p>
  484.                                     </div>
  485.                                     <div class="boxData">
  486.                                         <div class="reviewStarGroup">
  487.                                             <span class="reviewStar starON">★</span>
  488.                                             <span class="reviewStar starON">★</span>
  489.                                             <span class="reviewStar starON">★</span>
  490.                                             <span class="reviewStar starON">★</span>
  491.                                             <span class="reviewStar starON">★</span>
  492.                                         </div>
  493.                                         <h3 class="reviewName">お名前</h3>
  494.                                         <p class="reviewComment">コメントが入ります。テキストテキストテキストテキストテキスト…</p>
  495.                                     </div>
  496.                                 </a>
  497.                             </article>
  498.                             <!-- /CARD -->
  499.                         </div>
  500.                         <div class="swiper-scrollbar"></div>
  501.                     </div>
  502.                     <div class="swiper-button-prev"></div>
  503.                     <div class="swiper-button-next"></div>
  504.                 </div>
  505.             </section>
  506.             <!-- /VOICE -->
  507.                 #}
  508.             </div>
  509.             <!-- /MAIN-CONTENTS -->
  510.             <!-- SIDE-CONTENTS -->
  511.             {{ include('Block/side_menu.twig') }}
  512.             <!-- /SIDE-CONTENTS -->
  513.         </div>
  514.         <!-- /CONTENTS -->
  515.     </div>
  516.     {#
  517.     <script>
  518.         /**
  519.          * コラム・レシピの記事を取得する
  520.          * クロスドメイン対策のため、自サーバー内のPHPを迂回する。
  521.          */
  522.         $(function() {
  523.             $.ajax({
  524.                 type: 'GET',
  525.                 url:'/get_feed.php?t=column',
  526.                 dataType: 'xml',
  527.                 success: function(xml) {
  528.                     $(xml).find("item").each(function(i){
  529.                         if ( i >=5  ) {    //表示件数の設定 満たしたら処理を抜ける
  530.                             return false;
  531.                         }
  532.                         /* 記事タイトル */
  533.                         let item_title=$(this).find("title").text();
  534.                         /*リンク*/
  535.                         let item_link=$(this).find("link").text();
  536.                         /* 日付処理 */
  537.                         let item_postDate = $(this).find("pubDate").text();
  538.                         //日付の変換
  539.                         let dateStr = new Date(item_postDate);
  540.                         // 年の取得
  541.                         let year = dateStr.getFullYear();
  542.                         // 月の取得
  543.                         let month = dateStr.getMonth() + 1;
  544.                         // 日の取得
  545.                         let day = dateStr.getDate();
  546.                         /* 画像サムネイル */
  547.                         let item_description = $(this).find("description").text();
  548.                         //画像の取得、文字列「src="xxxx"」を抜き出す。
  549.                         var result = item_description.match(/(src=)["|'](.*?)["|']+/g);
  550.                         let imgUrl = "";//TODO:ここにロゴマークなどno imageをいれる
  551.                         if(result[0]){ //最初の1つをサムネイルとして使う。
  552.                             imgUrl = result[0].replace('"', '');
  553.                             imgUrl = imgUrl.replace('src=', '');
  554.                         }
  555.                         //出力HTML生成
  556.                         let article = '<article class="top-columnCard">'+
  557.                             '<a href="'+item_link+'" class="top-columnCardInner">'+
  558.                             '<div class="boxImg">'+
  559.                             '<span class="boxImgInner">'+
  560.                             '<img src="https://kaorime.co.jp'+imgUrl+'" alt="" class="imgObjectFitCover" loading="lazy">'+
  561.                             '</span>'+
  562.                             ' </div>'+
  563.                             '<div class="boxData">'+
  564.                             '<time class="itemDate">'+year+'年'+month+'月'+day+'日</time>'+
  565.                             '<h3 class="title">'+item_title+'</h3>'+
  566.                             '</div>'+
  567.                             '</a>'+
  568.                             '</article>';
  569.                         /* HTML生成 */
  570.                         if(item_title!="") {
  571.                             $("div#column-container").append(article);
  572.                         }
  573.                     });
  574.                 },
  575.                 fail: function() {
  576.                 }
  577.             });
  578.         });
  579.     </script>
  580.     #}
  581. {% endblock %}