app/template/myufull1/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  4. http://www.lockon.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 javascript %}
  11.   <script>
  12.   $(function() {
  13.     $('.main_visual').slick({
  14.       dots:             true,
  15.       arrows:           false,
  16.       autoplay:         true,
  17.       autoplaySpeed:    4000,
  18.       speed:            500,
  19.       pauseOnDotsHover: true,
  20.     });
  21.     // dotsの変更
  22.     $('.main_visual .slick-dots li button').html('<i class="fas fa-heart" aria-hidden="true"></i>');
  23.   });
  24.   </script>
  25. {% endblock javascript %}
  26. {% block main %}
  27.   <div class="ec-sliderRole">
  28.     <div class="main_visual">
  29.       {% if "now"|date('YmdH') >= "2025040100" %}
  30.         <div class="item slick-slide"><a href="/products/list?category_id=&name=プレミアムナチュレ" target="_blank" title="プレミアムナチュレシリーズ">
  31.           <picture class="full-width mx-auto d-none d-md-block">
  32.             <source srcset="/html/template/myufull1/assets/img/page/product/premium-nature/top_banner_pc2@2x.webp 2x, /html/template/myufull1/assets/img/page/product/premium-nature/top_banner_pc2.webp" type="image/webp">
  33.             <source srcset="/html/template/myufull1/assets/img/page/product/premium-nature/top_banner_pc2@2x.jpg 2x" type="image/jpg">
  34.             <img src="/html/template/myufull1/assets/img/page/product/premium-nature/top_banner_pc2.jpg" alt="プレミアムナチュレシリーズ" loading="lazy" class="img-fluid">
  35.           </picture>
  36.           <picture class="full-width mx-auto d-block d-md-none">
  37.             <source srcset="/html/template/myufull1/assets/img/page/product/premium-nature/top_banner2@2x.webp 2x, /html/template/myufull1/assets/img/page/product/premium-nature/top_banner2.webp" type="image/webp">
  38.             <source srcset="/html/template/myufull1/assets/img/page/product/premium-nature/top_banner2@2x.jpg 2x" type="image/jpg">
  39.             <img src="/html/template/myufull1/assets/img/page/product/premium-nature/top_banner2.jpg" alt="プレミアムナチュレシリーズ" loading="lazy" class="img-fluid">
  40.           </picture>
  41.         </a></div>
  42.       {% endif %}
  43.       {% if "now"|date('YmdH') >= "2024120512" %}
  44.         <div class="item slick-slide"><a href="https://myufull.online/products/detail/233" target="_blank" title="ミューフル天然草ソープ ダマスクローズ チューベローズ">
  45.           <picture class="full-width mx-auto d-none d-md-block">
  46.             <source srcset="/html/template/myufull1/assets/img/page/product/natural-herb-soap/top_pc.webp" type="image/webp">
  47.             <img src="/html/template/myufull1/assets/img/page/product/natural-herb-soap/top_pc.jpg" alt="ミューフル天然草ソープ ダマスクローズ チューベローズ" loading="lazy" class="img-fluid">
  48.           </picture>
  49.           <picture class="full-width mx-auto d-block d-md-none">
  50.             <source srcset="/html/template/myufull1/assets/img/page/product/natural-herb-soap/top_sp.webp" type="image/webp">
  51.             <img src="/html/template/myufull1/assets/img/page/product/natural-herb-soap/top_sp.jpg" alt="ミューフル天然草ソープ ダマスクローズ チューベローズ" loading="lazy" class="img-fluid">
  52.           </picture>
  53.         </a></div>
  54.       {% endif %}
  55.       {% if "now"|date('Ymd') >= "20240801" and "now"|date('Ymd') <= "20240831" %}
  56.         <div class="item slick-slide"><a href="https://myufull.co.jp/wp-content/uploads/2024/07/20240801_innnercare.pdf" target="_blank" title="インナーケアキャンペーン2024 美容ドリンク ミューフルフローラをプレゼント">
  57.           <picture class="full-width mx-auto d-none d-md-block">
  58.             <source srcset="/html/static/assets/img/cp/2024/202408_pc.webp" type="image/webp">
  59.             <img src="/html/static/assets/img/cp/2024/202408_pc.jpg" alt="インナーケアキャンペーン2024 美容ドリンク ミューフルフローラをプレゼント" loading="lazy" class="img-fluid">
  60.           </picture>
  61.           <picture class="full-width mx-auto d-block d-md-none">
  62.             <source srcset="/html/static/assets/img/cp/2024/202408_sp.webp" type="image/webp">
  63.             <img src="/html/static/assets/img/cp/2024/202408_sp.jpg" alt="インナーケアキャンペーン2024 美容ドリンク ミューフルフローラをプレゼント" loading="lazy" class="img-fluid">
  64.           </picture>
  65.         </a></div>
  66.       {% endif %}
  67.       <div class="item slick-slide"><a href="https://myufull.online/products/detail/16" title="髪と地肌をしっとりと洗い上げる、弱酸性のボタニカルシャンプー。 サブナEX ダブルローズ">
  68.         <picture class="full-width mx-auto d-none d-md-block">
  69.           <source srcset="/html/template/myufull1/assets/img/page/product/sabuna-ex-w-rose/top.webp" type="image/webp">
  70.           <img src="/html/template/myufull1/assets/img/page/product/sabuna-ex-w-rose/top.jpg" alt="髪と地肌をしっとりと洗い上げる、弱酸性のボタニカルシャンプー。 サブナEX ダブルローズ" loading="lazy" class="img-fluid">
  71.         </picture>
  72.         <picture class="full-width mx-auto d-block d-md-none">
  73.           <source srcset="/html/template/myufull1/assets/img/page/product/sabuna-ex-w-rose/top_sp.webp" type="image/webp">
  74.           <img src="/html/template/myufull1/assets/img/page/product/sabuna-ex-w-rose/top_sp.jpg" alt="髪と地肌をしっとりと洗い上げる、弱酸性のボタニカルシャンプー。 サブナEX ダブルローズ" loading="lazy" class="img-fluid">
  75.         </picture>
  76.       </a></div>
  77.       {# 
  78.       {% if "now"|date('Ymd') >= "20221118" and "now"|date('Ymd') <= "20230331" %}
  79.         <div class="item slick-slide"><a href="https://tellers.myufull.co.jp/serial/" target="_blank" title="【キャンペーン】あつめてシリアルキャンペーン">
  80.           <picture>
  81.             <source srcset="/html/static/assets/img/cp/2022/11-serial/visual_pc.webp" type="image/webp">
  82.             <img src="/html/static/assets/img/cp/2022/11-serial/visual_pc.jpg" alt="【キャンペーン】あつめてシリアルキャンペーン" loading="lazy" class="img-fluid full-width mx-auto d-none d-md-block">
  83.           </picture>
  84.           <picture>
  85.             <source srcset="/html/static/assets/img/cp/2022/11-serial/visual.webp" type="image/webp">
  86.             <img src="/html/static/assets/img/cp/2022/11-serial/visual.jpg" alt="【キャンペーン】あつめてシリアルキャンペーン" loading="lazy" class="img-fluid full-width mx-auto d-block d-md-none">
  87.           </picture>
  88.         </a></div>
  89.       {% endif %}
  90.       #}
  91.       {# {% if not is_granted('ROLE_USER') %}
  92.         <div class="item slick-slide">
  93.           <a href="{{ url('entry') }}" title="新規会員登録で、もれなく全員に500ポイントプレゼント">
  94.           <picture class="is-desktop__block">
  95.             <source srcset="{{ asset('assets/img/top/slider_500pt_pc.avif') }}" type="image/avif">
  96.             <source srcset="{{ asset('assets/img/top/slider_500pt_pc.webp') }}" type="image/webp">
  97.             <img src="{{ asset('assets/img/top/slider_500pt_pc.jpg') }}" alt="新規会員登録で、もれなく全員に500ポイントプレゼント" loading="lazy">
  98.           </picture>
  99.           <picture class="is-mobile__block">
  100.             <source srcset="{{ asset('assets/img/top/slider_500pt_sp.avif') }}" type="image/avif">
  101.             <source srcset="{{ asset('assets/img/top/slider_500pt_sp.webp') }}" type="image/webp">
  102.             <img src="{{ asset('assets/img/top/slider_500pt_sp.jpg') }}" alt="新規会員登録で、もれなく全員に500ポイントプレゼント" loading="lazy">
  103.           </picture>
  104.           </a>
  105.         </div>
  106.       {% endif %} #}
  107.       <div class="item slick-slide">
  108.         <a href="/subscription" title="安心・便利でお得がいっぱい!定期便。いつでも10%ポイント還元。送料無料。バースデープレゼントなどなど">
  109.           <picture class="is-desktop__block">
  110.             <source srcset="{{ asset('assets/img/top/slider_subscription_pc@2x.jpg') }}?20250401 2x" type="image/jpg">
  111.             <img src="{{ asset('assets/img/top/slider_subscription_pc.jpg') }}?20250401" loading="lazy">
  112.           </picture>
  113.           <picture class="is-mobile__block">
  114.             <source srcset="{{ asset('assets/img/top/slider_subscription.jpg') }}?20250401 2x" type="image/jpg">
  115.             <img src="{{ asset('assets/img/top/slider_subscription.jpg') }}?20250401" loading="lazy">
  116.           </picture>
  117.         </a>
  118.       </div>
  119.       <div class="item slick-slide">
  120.         <a href="https://myufull.co.jp/salons/for-beginners/" title="自分史上最高美肌を叶える「角質新美容」 ミューフル" target="_blank">
  121.           <picture class="is-desktop__block">
  122.             <source srcset="{{ asset('assets/img/top/slider_myufull_official_pc.avif') }}" type="image/avif">
  123.             <source srcset="{{ asset('assets/img/top/slider_myufull_official_pc.webp') }}" type="image/webp">
  124.             <img src="{{ asset('assets/img/top/slider_myufull_official_pc.jpg') }}" alt="自分史上最高美肌を叶える「角質新美容」 ミューフル" loading="lazy">
  125.           </picture>
  126.           <picture class="is-mobile__block">
  127.             <source srcset="{{ asset('assets/img/top/slider_myufull_official_sp.avif') }}" type="image/avif">
  128.             <source srcset="{{ asset('assets/img/top/slider_myufull_official_sp.webp') }}" type="image/webp">
  129.             <img src="{{ asset('assets/img/top/slider_myufull_official_sp.jpg') }}" alt="自分史上最高美肌を叶える「角質新美容」 ミューフル" loading="lazy">
  130.           </picture>
  131.         </a>
  132.       </div>
  133.     </div>
  134.   </div>
  135. {% endblock %}