app/template/default/Page/sub-category.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 = 'product_page' %}
  10. {% block stylesheet %}
  11.     <link rel="stylesheet" type="text/css" href="{{ asset('assets/css/common.min.css') }}?20231227">
  12.     <link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="dns-prefetch" rel="stylesheet">
  13.     <link rel="stylesheet" rel="dns-prefetch" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  14.     <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@1,700&display=swap" rel="dns-prefetch" rel="stylesheet">
  15. {% endblock %}
  16. {% block javascript %}
  17.     <script type="text/javascript" src="/javascripts/jquery.fbt.js?20200715_01"></script>
  18.     <script type="text/javascript">
  19.         // add karte use ajax to optimize ttfp index
  20.         $(document).ready(function() {
  21.             $.ajax({
  22.                 type: "POST",
  23.                 url: "{{ url('karte_page_sub_category') }}",
  24.                 data: {
  25.                     "listUrl": "{{ app.request.pathinfo }}",
  26.                     "mcName": "{{ mcName ?? '' }}",
  27.                     "ct": "{{ ct ?? '' }}",
  28.                     "mcMcName": "{{ mcMcName ?? '' }}",
  29.                     "isMobile" : {{ isMobile ? 1 : 0 }},
  30.                 },
  31.                 dataType: 'json'
  32.             }).done(function(response) {
  33.                 if (response && response.data && response.data.script) {
  34.                     var script = JSON.parse(response.data.script);
  35.                     script = script.replace(/\\\//g, "/");
  36.                     $('body').append(script);
  37.                 }
  38.             });
  39.         });
  40.         $(function() {
  41.             $(window).on('scroll', function(e) {
  42.                 var $this = $('.fbnr,.fbnr2');
  43.                 var scrollTop = $(window).scrollTop();
  44.                 if (scrollTop >= 200) {
  45.                     $this.addClass('fixed');
  46.                 } else {
  47.                     $this.removeClass('fixed');
  48.                 }
  49.             });
  50.             var currentURL = window.location.href;
  51.             if (currentURL.includes("contact/fax/")) {
  52.                 $('a:contains("コチラ")').on('click', function (e) {
  53.                     var fromUrl = window.location.href;
  54.                     $.ajax({
  55.                         type: "POST",
  56.                         url: "{{ url('karte_download_fax_form') }}",
  57.                         data: {
  58.                             fromUrl: fromUrl
  59.                         },
  60.                         dataType: 'json'
  61.                     }).done(function(response) {
  62.                         if (response && response.data && response.data.script) {
  63.                             var script = JSON.parse(response.data.script);
  64.                             script = script.replace(/\\\//g, "/");
  65.                             $('body').append(script);
  66.                         }
  67.                     });
  68.                 });
  69.             }
  70.         });
  71. </script>
  72. {% endblock %}
  73. {% block lm_after_contents_top %}
  74.     <div class="clearfix">{% include 'Page/Parts/fixed-header.twig' with { category: category } only %}</div>
  75.     <div class="clearfix">{% include 'Page/Parts/upper-column.twig' with { category: category } only %}</div>
  76. {% endblock %}
  77. {% block main %}
  78.     <div>
  79.         <div class="clearfix">{% include 'Page/Parts/title.twig' with { category: category } only %}</div>
  80.         <div class="clearfix">{% include 'Page/Parts/title-content.twig' with { category: category } only %}</div>
  81.         <div class="clearfix">{% include 'Page/Parts/top-contents.twig' with { category: category } only %}</div>
  82.         {% if not category.isNoShowDb %}
  83.             {#
  84.             <div class="clearfix">{% include 'Page/Parts/item-list.twig' with { category: category } only %}</div>
  85.             #}
  86.             <div class="clearfix">{% include 'Block/lm_category_item_list.twig' %}</div>
  87.         {% endif %}
  88.         {% if not category.isItemSeries %}
  89.             <div class="clearfix">{% include 'Page/Parts/related-page-list.twig' with { category: category } only %}</div>
  90.         {% endif %}
  91.         <div class="clearfix">{% include 'Page/Parts/related-column-list.twig' with { category: category } only %}</div>
  92.         {% if category.isItemSeries %}
  93.             <div class="clearfix">{% include 'Page/Parts/related-page-list.twig' with { category: category } only %}</div>
  94.         {% endif %}
  95.         <div class="clearfix">{% include 'Page/Parts/comment.twig' with { category: category } only %}</div>
  96.         <div class="clearfix">{% include 'Page/Parts/bottom-contents.twig' with { category: category } only %}</div>
  97.         {#
  98.         <div class="clearfix">{% include 'Page/Parts/review-list.twig' with { category: category } only %}</div>
  99.         #}
  100.         <div class="clearfix">{% include 'Page/Parts/small-footer.twig' with { category: category } only %}</div>
  101.         <div class="clearfix">{% include 'Page/Parts/foot-links.twig' with { category: category } only %}</div>
  102.         <div id="pagetop" style="display:block;">
  103.             <a href="#header">
  104.                 <img src="https://img0.land-mark.biz/ut_img/public_images/top/top-jump-btn.jpg" alt="ページTOPへ">
  105.             </a>
  106.         </div>
  107.     </div>
  108. {% endblock %}
  109. {% block lm_before_contents_bottom %}
  110.     <div class="clearfix">{% include 'Page/Parts/large-footer.twig' with { category: category } only %}</div>
  111. {% endblock %}