app/template/kaiino/Block/order_by_sale.twig line 1

Open in your IDE?
  1. {% block stylesheet %}
  2.   
  3. {% endblock %}
  4. {% block javascript %}
  5. <script>
  6.     {% set arrowLeft = asset('assets/icon/slick-arrow-left-white.svg') %}
  7.     {% set arrowRight = asset('assets/icon/slick-arrow-right-white.svg') %}
  8.     
  9.     $(function() {
  10.         $('#slide_ranking').slick({
  11.             slidesToShow: 4,
  12.             dots: false,
  13.             arrows: true,
  14.             autoplay: false,
  15.             speed: 300,
  16.             infinite: false,
  17.             appendArrows: $('#ranking_arrows'),
  18.             prevArrow: '<button type="button" class="btn"><img src="{{ arrowLeft }}" alt=""></button>',
  19.             nextArrow: '<button type="button" class="btn btn-juliet"><img src="{{ arrowRight }}" alt=""></button>',
  20.             responsive: [{
  21.                 breakpoint: 768,
  22.                 settings: {
  23.                   slidesToShow: 2
  24.                 }
  25.             }]
  26.         });
  27.     });
  28.         
  29. </script>
  30. {% endblock javascript %}
  31. {% if Products|length %}
  32. <div class="ec-role">
  33.     <div class="ec-rankingRole ec-contentRole">
  34.         <div class="ec-secHeading">
  35.             <div>
  36.                 <span class="ec-secHeading__en">{{ 'RANKING'|trans }}</span>
  37.                 <img src="{{ asset('assets/icon/slash.svg') }}" alt="" class="ec-slash is-pc">
  38.                 <span class="ec-secHeading__ja">{{ 'ランキング'|trans }}</span>
  39.             </div>
  40.             <div class="ranking-arrows content-arrows" id="ranking_arrows"></div>
  41.         </div>
  42.         <div class="ec-rankingRole__List" id="slide_ranking">
  43.           {% for Product in Products %}
  44.             {{ include('Product/list_single_slide_item.twig') }}
  45.           {% endfor %}
  46.             
  47.         </div>
  48.     </div>
  49. </div>
  50. {% endif %}