var/cache/dev/twig/63/63fe43423ada1a4300b237f29cad130c.php line 80

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/list.twig */
  14. class __TwigTemplate_52df181c1a94016f68cbb25277368ac4 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'title' => [$this'block_title'],
  25.             'main_head' => [$this'block_main_head'],
  26.             'main' => [$this'block_main'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  41.         // line 13
  42.         $context["body_class"] = "product_page";
  43.         // line 77
  44.         $context["catIds"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'77$this->source); })()), "request", [], "any"falsefalsefalse77), "get", [=> "category_ids"], "method"falsefalsefalse77);
  45.         // line 78
  46.         $context["cid"] = "";
  47.         // line 79
  48.         $context["cnt"] = 0;
  49.         // line 80
  50.         $context['_parent'] = $context;
  51.         $context['_seq'] = twig_ensure_traversable((isset($context["catIds"]) || array_key_exists("catIds"$context) ? $context["catIds"] : (function () { throw new RuntimeError('Variable "catIds" does not exist.'80$this->source); })()));
  52.         foreach ($context['_seq'] as $context["_key"] => $context["catId"]) {
  53.             // line 81
  54.             if (($context["catId"] != "")) {
  55.                 // line 82
  56.                 $context["cnt"] = ((isset($context["cnt"]) || array_key_exists("cnt"$context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.'82$this->source); })()) + 1);
  57.                 // line 83
  58.                 $context["cid"] = $context["catId"];
  59.             }
  60.         }
  61.         $_parent $context['_parent'];
  62.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['catId'], $context['_parent'], $context['loop']);
  63.         $context array_intersect_key($context$_parent) + $_parent;
  64.         // line 86
  65.         if (((isset($context["cnt"]) || array_key_exists("cnt"$context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.'86$this->source); })()) == 1)) {
  66.             // line 87
  67.             $context["Category"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> (isset($context["cid"]) || array_key_exists("cid"$context) ? $context["cid"] : (function () { throw new RuntimeError('Variable "cid" does not exist.'87$this->source); })())], "method"falsefalsefalse87);
  68.         }
  69.         // line 11
  70.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  71.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.     }
  77.     // line 15
  78.     public function block_javascript($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  85.         // line 16
  86.         echo "<script>
  87. // 検索後パラメータをフォームにセット
  88.     function getParam(name, url) {
  89.         if (!url) url = window.location.href;
  90.         name = name.replace(/[\\[\\]]/g, \"\\\\\$&\");
  91.         var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|\$)\"),
  92.             results = regex.exec(url);
  93.         if (!results) return null;
  94.         if (!results[2]) return '';
  95.         return decodeURIComponent(results[2].replace(/\\+/g, \" \"));
  96.     }
  97.     //商品名 or 型番入力検索
  98.     \$(\"input[name='name']\").val(getParam('name'));
  99.     //電源
  100.     var tag = getParam('tag');
  101.     if (tag) {
  102.     var tagId='tag_id_' + tag ;
  103.         var sel = document.querySelector('[data-id=\"' + tagId + '\"]');
  104.         sel.selected = true;
  105.     }
  106.     var urlParams = new URLSearchParams(window.location.search);
  107.     var categoryIds = urlParams.getAll('category_ids[]');
  108.     //カテゴリ
  109.     for (i = 0; i < categoryIds.length; i++) {
  110.         if (categoryIds[i]!=\"\") {
  111.             var cat='category_id_' + categoryIds[i] ;
  112.             var sel = document.querySelector('[data-id=\"' + cat + '\"]');
  113.             var type = sel.getAttribute(\"type\");
  114.             if (type==\"radio\") {
  115.                 sel.checked= true;;
  116.             }else{
  117.                 sel.selected = true;
  118.             }
  119.         }
  120.     }
  121.     /*eccube.productsClassCategories = {
  122.         ";
  123.         // line 52
  124.         $context['_parent'] = $context;
  125.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'52$this->source); })()));
  126.         $context['loop'] = [
  127.           'parent' => $context['_parent'],
  128.           'index0' => 0,
  129.           'index'  => 1,
  130.           'first'  => true,
  131.         ];
  132.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  133.             $length count($context['_seq']);
  134.             $context['loop']['revindex0'] = $length 1;
  135.             $context['loop']['revindex'] = $length;
  136.             $context['loop']['length'] = $length;
  137.             $context['loop']['last'] = === $length;
  138.         }
  139.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  140.             // line 53
  141.             echo "        \"";
  142.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse53), "js"), "html"nulltrue);
  143.             echo "\": ";
  144.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  145.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse53) == false)) {
  146.                 echo ", ";
  147.             }
  148.             // line 54
  149.             echo "        ";
  150.             ++$context['loop']['index0'];
  151.             ++$context['loop']['index'];
  152.             $context['loop']['first'] = false;
  153.             if (isset($context['loop']['length'])) {
  154.                 --$context['loop']['revindex0'];
  155.                 --$context['loop']['revindex'];
  156.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  157.             }
  158.         }
  159.         $_parent $context['_parent'];
  160.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  161.         $context array_intersect_key($context$_parent) + $_parent;
  162.         // line 55
  163.         echo "    };*/
  164.     \$(function() {
  165.         // 表示件数を変更
  166.         \$('.disp-number').change(function() {
  167.             var dispNumber = \$(this).val();
  168.             \$('#disp_number').val(dispNumber);
  169.             \$('#pageno').val(1);
  170.             \$(\"#form1\").submit();
  171.         });
  172.         // 並び順を変更
  173.         \$('.order-by').change(function() {
  174.             var orderBy = \$(this).val();
  175.             \$('#orderby').val(orderBy);
  176.             \$('#pageno').val(1);
  177.             \$(\"#form1\").submit();
  178.         });
  179.     });
  180. </script>
  181. ";
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.     }
  187.     // line 90
  188.     public function block_title($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  195.         // line 91
  196.         echo "<h1 class=\"c-title-06\">
  197. <span class=\"s-text\">
  198. ";
  199.         // line 93
  200.         if (((isset($context["cnt"]) || array_key_exists("cnt"$context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.'93$this->source); })()) == 1)) {
  201.             // line 94
  202.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'94$this->source); })()), "name", [], "any"falsefalsefalse94), "html"nulltrue);
  203.             echo "のエアコン商品一覧";
  204.         } else {
  205.             // line 96
  206.             echo "エアコン商品一覧
  207. ";
  208.         }
  209.         // line 98
  210.         echo "</span>
  211. </h1>
  212. ";
  213.         
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215.         
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  217.     }
  218.     // line 102
  219.     public function block_main_head($context, array $blocks = [])
  220.     {
  221.         $macros $this->macros;
  222.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  223.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_head"));
  224.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  225.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_head"));
  226.         // line 103
  227.         if (((isset($context["cnt"]) || array_key_exists("cnt"$context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.'103$this->source); })()) == 1)) {
  228.             // line 104
  229.             echo "<div class=\"c-section\">
  230.     <div class=\"c-media-01\">
  231.         ";
  232.             // line 106
  233.             if (twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'106$this->source); })()), "category_image", [], "any"falsefalsefalse106)) {
  234.                 // line 107
  235.                 echo "        <figure class=\"s-image\">
  236.         <div class=\"s-image__in\">
  237.         <img src=\"";
  238.                 // line 109
  239.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'109$this->source); })()), "category_image", [], "any"falsefalsefalse109)), "save_image"), "html"nulltrue);
  240.                 echo "\" alt=\"";
  241.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'109$this->source); })()), "name", [], "any"falsefalsefalse109), "html"nulltrue);
  242.                 echo "\">
  243.         </div>
  244.         </figure>
  245.         ";
  246.             }
  247.             // line 113
  248.             echo "        <div class=\"s-content\">
  249.         <h2 class=\"s-title\">";
  250.             // line 114
  251.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'114$this->source); })()), "name", [], "any"falsefalsefalse114), "html"nulltrue);
  252.             echo "の業務用エアコンの特長</h2>
  253.         ";
  254.             // line 115
  255.             if (((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'115$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'115$this->source); })()), "free_area", [], "any"falsefalsefalse115))) {
  256.                 // line 116
  257.                 echo "        <div class=\"s-text\">
  258.             ";
  259.                 // line 117
  260.                 echo twig_include($this->env$contexttwig_template_from_string($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'117$this->source); })()), "free_area", [], "any"falsefalsefalse117)));
  261.                 echo "
  262.         </div>
  263.         ";
  264.             }
  265.             // line 120
  266.             echo "        </div>
  267.     </div>
  268. </div>
  269. ";
  270.         }
  271.         
  272.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  273.         
  274.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  275.     }
  276.     // line 126
  277.     public function block_main($context, array $blocks = [])
  278.     {
  279.         $macros $this->macros;
  280.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  281.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  282.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  284.         // line 127
  285.         echo "
  286. <div class=\"c-section\">
  287.     <h3 class=\"c-title-07\"><span class=\"s-text\">";
  288.         // line 130
  289.         if (((isset($context["cnt"]) || array_key_exists("cnt"$context) ? $context["cnt"] : (function () { throw new RuntimeError('Variable "cnt" does not exist.'130$this->source); })()) == 1)) {
  290.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'130$this->source); })()), "name", [], "any"falsefalsefalse130), "html"nulltrue);
  291.             echo "のエアコン";
  292.         }
  293.         echo "商品一覧</span></h3>
  294.     ";
  295.         // line 131
  296.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'131$this->source); })()), "category_id", [], "any"falsefalsefalse131), "vars", [], "any"falsefalsefalse131), "errors", [], "any"falsefalsefalse131)) > 0)) {
  297.             // line 132
  298.             echo "    <div class=\"ec-searchnavRole\">
  299.         <p class=\"errormsg text-danger\">";
  300.             // line 133
  301.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  302.             echo "</p>
  303.     </div>
  304.     ";
  305.         } else {
  306.             // line 136
  307.             echo "    <div class=\"ec-searchnavRole\">
  308.         <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  309.             ";
  310.             // line 138
  311.             $context['_parent'] = $context;
  312.             $context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'138$this->source); })()));
  313.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  314.                 // line 139
  315.                 echo "                ";
  316.                 // line 140
  317.                 echo "                ";
  318.                 if (twig_test_iterable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse140), "value", [], "any"falsefalsefalse140))) {
  319.                     // line 141
  320.                     echo "                    ";
  321.                     $context['_parent'] = $context;
  322.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse141), "value", [], "any"falsefalsefalse141));
  323.                     foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
  324.                         // line 142
  325.                         echo "                    <input type=\"hidden\" id=\"";
  326.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse142), "id", [], "any"falsefalsefalse142), "html"nulltrue);
  327.                         echo "\"
  328.             name=\"";
  329.                         // line 143
  330.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse143), "full_name", [], "any"falsefalsefalse143), "html"nulltrue);
  331.                         echo "[]\" value=\"";
  332.                         echo twig_escape_filter($this->env$context["val"], "html"nulltrue);
  333.                         echo "\"/>
  334.                     ";
  335.                     }
  336.                     $_parent $context['_parent'];
  337.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
  338.                     $context array_intersect_key($context$_parent) + $_parent;
  339.                     // line 145
  340.                     echo "                ";
  341.                 } else {
  342.                     // line 146
  343.                     echo "                    <input type=\"hidden\" id=\"";
  344.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse146), "id", [], "any"falsefalsefalse146), "html"nulltrue);
  345.                     echo "\"
  346.             name=\"";
  347.                     // line 147
  348.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse147), "full_name", [], "any"falsefalsefalse147), "html"nulltrue);
  349.                     echo "\"
  350.             ";
  351.                     // line 148
  352.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse148), "value", [], "any"falsefalsefalse148))) {
  353.                         echo "value=\"";
  354.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse148), "value", [], "any"falsefalsefalse148), "html"nulltrue);
  355.                         echo "\" ";
  356.                     }
  357.                     echo "/>
  358.                 ";
  359.                 }
  360.                 // line 150
  361.                 echo "            ";
  362.             }
  363.             $_parent $context['_parent'];
  364.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  365.             $context array_intersect_key($context$_parent) + $_parent;
  366.             // line 151
  367.             echo "        </form>
  368.         <div class=\"p-products-list-head\">
  369.         ";
  370.             // line 153
  371.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'153$this->source); })()), "totalItemCount", [], "any"falsefalsefalse153) > 0)) {
  372.                 // line 154
  373.                 echo "            <div class=\"c-total-wrap\">
  374.             ";
  375.                 // line 155
  376.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<p class=\"c-total-num\"><span class=\"s-main font-en\">%count%</span><span class=\"s-sub\">件</span></p>の商品がございます", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'155$this->source); })()), "totalItemCount", [], "any"falsefalsefalse155)]);
  377.                 echo "
  378.             </div>
  379.             <div class=\"c-change-num\">
  380.             <span class=\"s-text\">表示件数</span>
  381.             ";
  382.                 // line 159
  383.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'159$this->source); })()), "disp_number", [], "any"falsefalsefalse159), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  384.                 echo "
  385.             </div>
  386.         ";
  387.             } else {
  388.                 // line 162
  389.                 echo "            <div class=\"c-total-wrap\"><span>";
  390.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  391.                 echo "</span></div>
  392.         ";
  393.             }
  394.             // line 164
  395.             echo "        </div>
  396.     </div>
  397.     ";
  398.             // line 166
  399.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'166$this->source); })()), "totalItemCount", [], "any"falsefalsefalse166) > 0)) {
  400.                 // line 167
  401.                 echo "    <div class=\"ec-shelfRole\">
  402.         <ul class=\"p-products-list\">
  403.         ";
  404.                 // line 169
  405.                 $context['_parent'] = $context;
  406.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'169$this->source); })()));
  407.                 $context['loop'] = [
  408.                   'parent' => $context['_parent'],
  409.                   'index0' => 0,
  410.                   'index'  => 1,
  411.                   'first'  => true,
  412.                 ];
  413.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  414.                     $length count($context['_seq']);
  415.                     $context['loop']['revindex0'] = $length 1;
  416.                     $context['loop']['revindex'] = $length;
  417.                     $context['loop']['length'] = $length;
  418.                     $context['loop']['last'] = === $length;
  419.                 }
  420.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  421.                     // line 170
  422.                     echo "            ";
  423.                     $context["CatId"] = "";
  424.                     // line 171
  425.                     echo "            ";
  426.                     $context["CatMaker"] = "";
  427.                     // line 172
  428.                     echo "            ";
  429.                     $context["CatSeriesId"] = "";
  430.                     // line 173
  431.                     echo "            ";
  432.                     $context["CatShape"] = "";
  433.                     // line 174
  434.                     echo "            ";
  435.                     $context["CatPower"] = "";
  436.                     // line 175
  437.                     echo "            ";
  438.                     $context["TagPower1"] = "";
  439.                     // line 176
  440.                     echo "            ";
  441.                     $context["TagPower2"] = "";
  442.                     // line 177
  443.                     echo "            ";
  444.                     $context["ProductCode"] = "";
  445.                     // line 178
  446.                     echo "            ";
  447.                     $context["HiddenFlag"] = "0";
  448.                     // line 179
  449.                     echo "            ";
  450.                     // line 180
  451.                     echo "            ";
  452.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse180))) {
  453.                         // line 181
  454.                         echo "                ";
  455.                         $context['_parent'] = $context;
  456.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse181));
  457.                         foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  458.                             // line 182
  459.                             echo "                    ";
  460.                             if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse182), "getParent", [], "any"falsefalsefalse182))) {
  461.                                 // line 183
  462.                                 echo "                        ";
  463.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse183), "getParent", [], "any"falsefalsefalse183), "id", [], "any"falsefalsefalse183) == 1)) {
  464.                                     // line 184
  465.                                     echo "                            ";
  466.                                     $context["CatMaker"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse184), "name", [], "any"falsefalsefalse184);
  467.                                     // line 185
  468.                                     echo "                            ";
  469.                                     $context["CatId"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse185), "id", [], "any"falsefalsefalse185);
  470.                                     // line 186
  471.                                     echo "                        ";
  472.                                 }
  473.                                 // line 187
  474.                                 echo "                        ";
  475.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse187), "getParent", [], "any"falsefalsefalse187), "id", [], "any"falsefalsefalse187) == 51)) {
  476.                                     // line 188
  477.                                     echo "                            ";
  478.                                     $context["CatShape"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse188), "id", [], "any"falsefalsefalse188);
  479.                                     // line 189
  480.                                     echo "                        ";
  481.                                 }
  482.                                 // line 190
  483.                                 echo "                        ";
  484.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse190), "getParent", [], "any"falsefalsefalse190), "id", [], "any"falsefalsefalse190) == 61)) {
  485.                                     // line 191
  486.                                     echo "                            ";
  487.                                     $context["CatPower"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse191), "id", [], "any"falsefalsefalse191);
  488.                                     // line 192
  489.                                     echo "                        ";
  490.                                 }
  491.                                 // line 193
  492.                                 echo "                    ";
  493.                             }
  494.                             // line 194
  495.                             echo "                    ";
  496.                             if ( !twig_test_empty((isset($context["CatId"]) || array_key_exists("CatId"$context) ? $context["CatId"] : (function () { throw new RuntimeError('Variable "CatId" does not exist.'194$this->source); })()))) {
  497.                                 // line 195
  498.                                 echo "                        ";
  499.                                 if ( !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse195), "getParent", [], "any"falsefalsefalse195))) {
  500.                                     // line 196
  501.                                     echo "                            ";
  502.                                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse196), "getParent", [], "any"falsefalsefalse196), "id", [], "any"falsefalsefalse196) == (isset($context["CatId"]) || array_key_exists("CatId"$context) ? $context["CatId"] : (function () { throw new RuntimeError('Variable "CatId" does not exist.'196$this->source); })()))) {
  503.                                         // line 197
  504.                                         echo "                                ";
  505.                                         $context["CatSeriesId"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse197), "id", [], "any"falsefalsefalse197);
  506.                                         // line 198
  507.                                         echo "                                ";
  508.                                         $context["Category"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> (isset($context["CatSeriesId"]) || array_key_exists("CatSeriesId"$context) ? $context["CatSeriesId"] : (function () { throw new RuntimeError('Variable "CatSeriesId" does not exist.'198$this->source); })())], "method"falsefalsefalse198);
  509.                                         // line 199
  510.                                         echo "                                ";
  511.                                         $context["HiddenFlag"] = twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'199$this->source); })()), "hidden_flag", [], "any"falsefalsefalse199);
  512.                                         // line 200
  513.                                         echo "                            ";
  514.                                     }
  515.                                     // line 201
  516.                                     echo "                        ";
  517.                                 }
  518.                                 // line 202
  519.                                 echo "                    ";
  520.                             }
  521.                             // line 203
  522.                             echo "                ";
  523.                         }
  524.                         $_parent $context['_parent'];
  525.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  526.                         $context array_intersect_key($context$_parent) + $_parent;
  527.                         // line 204
  528.                         echo "            ";
  529.                     }
  530.                     // line 205
  531.                     echo "            ";
  532.                     // line 206
  533.                     echo "            ";
  534.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasTag", [=> 1], "method"falsefalsefalse206)) {
  535.                         // line 207
  536.                         echo "            ";
  537.                         $context["PageTag"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Tag"), "find", [=> "1"], "method"falsefalsefalse207);
  538.                         // line 208
  539.                         echo "            ";
  540.                         $context["TagPower1"] = twig_get_attribute($this->env$this->source, (isset($context["PageTag"]) || array_key_exists("PageTag"$context) ? $context["PageTag"] : (function () { throw new RuntimeError('Variable "PageTag" does not exist.'208$this->source); })()), "name", [], "any"falsefalsefalse208);
  541.                         // line 209
  542.                         echo "            ";
  543.                     }
  544.                     // line 210
  545.                     echo "            ";
  546.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasTag", [=> 2], "method"falsefalsefalse210)) {
  547.                         // line 211
  548.                         echo "            ";
  549.                         $context["PageTag"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Tag"), "find", [=> "2"], "method"falsefalsefalse211);
  550.                         // line 212
  551.                         echo "            ";
  552.                         $context["TagPower2"] = twig_get_attribute($this->env$this->source, (isset($context["PageTag"]) || array_key_exists("PageTag"$context) ? $context["PageTag"] : (function () { throw new RuntimeError('Variable "PageTag" does not exist.'212$this->source); })()), "name", [], "any"falsefalsefalse212);
  553.                         // line 213
  554.                         echo "            ";
  555.                     }
  556.                     // line 214
  557.                     echo "            ";
  558.                     // line 215
  559.                     echo "            ";
  560.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsefalse215))) {
  561.                         // line 216
  562.                         echo "            ";
  563.                         $context["ProductCode"] = twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsefalse216);
  564.                         // line 217
  565.                         echo "            ";
  566.                     }
  567.                     // line 218
  568.                     echo "
  569.             <li class=\"p-products-item\">
  570.                 <figure class=\"s-image\">
  571.                     ";
  572.                     // line 222
  573.                     echo "\t\t\t\t\t<a href=\"";
  574.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse222)]), "html"nulltrue);
  575.                     echo "\">
  576.                     <img src=\"";
  577.                     // line 223
  578.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse223)), "save_image"), "html"nulltrue);
  579.                     echo "\" alt=\"";
  580.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse223), "html"nulltrue);
  581.                     echo "\" ";
  582.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse223) > 5)) {
  583.                         echo " loading=\"lazy\"";
  584.                     }
  585.                     echo ">
  586.                     </a>
  587.                 </figure>
  588.                 <div class=\"s-content\">
  589.                     ";
  590.                     // line 228
  591.                     echo "\t\t\t\t\t<h4 class=\"s-title\"><a href=\"";
  592.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse228)]), "html"nulltrue);
  593.                     echo "\">";
  594.                     echo twig_escape_filter($this->env, (isset($context["CatMaker"]) || array_key_exists("CatMaker"$context) ? $context["CatMaker"] : (function () { throw new RuntimeError('Variable "CatMaker" does not exist.'228$this->source); })()), "html"nulltrue);
  595.                     echo " ";
  596.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse228), "html"nulltrue);
  597.                     echo "</a></h4>
  598.                     <table class=\"c-table-04\">
  599.                         <tr>
  600.                         <th class=\"s-col1\">型番</th>
  601.                         <th class=\"s-col2\">定価(税込)</th>
  602.                         <th class=\"s-col3\">販売価格(税込)</th>
  603.                         </tr>
  604.                         <tr>
  605.                         <td>
  606.                         ";
  607.                     // line 237
  608.                     echo twig_escape_filter($this->env, (isset($context["ProductCode"]) || array_key_exists("ProductCode"$context) ? $context["ProductCode"] : (function () { throw new RuntimeError('Variable "ProductCode" does not exist.'237$this->source); })()), "html"nulltrue);
  609.                     echo "
  610.                         </td>
  611.                         <td>
  612.                             <p class=\"p-products-text01\"><span class=\"s-main font-en\">
  613.                         ";
  614.                     // line 241
  615.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsefalse241)), "html"nulltrue);
  616.                     echo "
  617.                             </span>円</p>
  618.                         </td>
  619.                         <td>
  620.                             <div class=\"p-products-list-price02-wrap\">
  621.                             ";
  622.                     // line 246
  623.                     $context["price01"] = twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsefalse246);
  624.                     // line 247
  625.                     echo "                            ";
  626.                     $context["price02"] = twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse247);
  627.                     // line 248
  628.                     echo "                            ";
  629.                     if (((isset($context["price01"]) || array_key_exists("price01"$context) ? $context["price01"] : (function () { throw new RuntimeError('Variable "price01" does not exist.'248$this->source); })()) != "")) {
  630.                         // line 249
  631.                         echo "                                <p class=\"p-products-label01\"><span class=\"font-en\">
  632.                                 <span class=\"s-main\">
  633.                                 ";
  634.                         // line 251
  635.                         $context["price03"] = ((- ((isset($context["price02"]) || array_key_exists("price02"$context) ? $context["price02"] : (function () { throw new RuntimeError('Variable "price02" does not exist.'251$this->source); })()) / (isset($context["price01"]) || array_key_exists("price01"$context) ? $context["price01"] : (function () { throw new RuntimeError('Variable "price01" does not exist.'251$this->source); })()))) * twig_round(1001"ceil"));
  636.                         // line 252
  637.                         echo "                                ";
  638.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env, (isset($context["price03"]) || array_key_exists("price03"$context) ? $context["price03"] : (function () { throw new RuntimeError('Variable "price03" does not exist.'252$this->source); })()), 1"."","), "html"nulltrue);
  639.                         echo "
  640.                                 </span>%</span><br class=\"no-pc\">割引</p>
  641.                             ";
  642.                     }
  643.                     // line 255
  644.                     echo "                                <p class=\"p-products-text02\"><span class=\"s-main font-en\">
  645.                                 ";
  646.                     // line 256
  647.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse256)), "html"nulltrue);
  648.                     echo "
  649.                                 </span>円</p>
  650.                             </div>
  651.                         </td>
  652.                         </tr>
  653.                     </table>
  654.                 </div>
  655.             </li>
  656.             ";
  657.                     ++$context['loop']['index0'];
  658.                     ++$context['loop']['index'];
  659.                     $context['loop']['first'] = false;
  660.                     if (isset($context['loop']['length'])) {
  661.                         --$context['loop']['revindex0'];
  662.                         --$context['loop']['revindex'];
  663.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  664.                     }
  665.                 }
  666.                 $_parent $context['_parent'];
  667.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  668.                 $context array_intersect_key($context$_parent) + $_parent;
  669.                 // line 266
  670.                 echo "        </ul>
  671.     </div>
  672.     <div class=\"ec-pagerRole\">
  673.         ";
  674.                 // line 270
  675.                 $this->loadTemplate("pager.twig""Product/list.twig"270)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'270$this->source); })()), "paginationData", [], "any"falsefalsefalse270)]));
  676.                 // line 271
  677.                 echo "    </div>
  678.     ";
  679.             }
  680.             // line 273
  681.             echo "    ";
  682.         }
  683.         // line 274
  684.         echo "</div>
  685. ";
  686.         
  687.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  688.         
  689.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  690.     }
  691.     public function getTemplateName()
  692.     {
  693.         return "Product/list.twig";
  694.     }
  695.     public function isTraitable()
  696.     {
  697.         return false;
  698.     }
  699.     public function getDebugInfo()
  700.     {
  701.         return array (  718 => 274,  715 => 273,  711 => 271,  709 => 270,  703 => 266,  679 => 256,  676 => 255,  669 => 252,  667 => 251,  663 => 249,  660 => 248,  657 => 247,  655 => 246,  647 => 241,  640 => 237,  623 => 228,  610 => 223,  605 => 222,  600 => 218,  597 => 217,  594 => 216,  591 => 215,  589 => 214,  586 => 213,  583 => 212,  580 => 211,  577 => 210,  574 => 209,  571 => 208,  568 => 207,  565 => 206,  563 => 205,  560 => 204,  554 => 203,  551 => 202,  548 => 201,  545 => 200,  542 => 199,  539 => 198,  536 => 197,  533 => 196,  530 => 195,  527 => 194,  524 => 193,  521 => 192,  518 => 191,  515 => 190,  512 => 189,  509 => 188,  506 => 187,  503 => 186,  500 => 185,  497 => 184,  494 => 183,  491 => 182,  486 => 181,  483 => 180,  481 => 179,  478 => 178,  475 => 177,  472 => 176,  469 => 175,  466 => 174,  463 => 173,  460 => 172,  457 => 171,  454 => 170,  437 => 169,  433 => 167,  431 => 166,  427 => 164,  421 => 162,  415 => 159,  408 => 155,  405 => 154,  403 => 153,  399 => 151,  393 => 150,  384 => 148,  380 => 147,  375 => 146,  372 => 145,  362 => 143,  357 => 142,  352 => 141,  349 => 140,  347 => 139,  343 => 138,  339 => 136,  333 => 133,  330 => 132,  328 => 131,  321 => 130,  316 => 127,  306 => 126,  292 => 120,  286 => 117,  283 => 116,  281 => 115,  277 => 114,  274 => 113,  265 => 109,  261 => 107,  259 => 106,  255 => 104,  253 => 103,  243 => 102,  231 => 98,  227 => 96,  223 => 94,  221 => 93,  217 => 91,  207 => 90,  177 => 55,  163 => 54,  155 => 53,  138 => 52,  100 => 16,  90 => 15,  79 => 11,  76 => 87,  74 => 86,  67 => 83,  65 => 82,  63 => 81,  59 => 80,  57 => 79,  55 => 78,  53 => 77,  51 => 13,  38 => 11,);
  702.     }
  703.     public function getSourceContext()
  704.     {
  705.         return new Source("{#
  706. This file is part of EC-CUBE
  707. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  708. http://www.ec-cube.co.jp/
  709. For the full copyright and license information, please view the LICENSE
  710. file that was distributed with this source code.
  711. #}
  712. {% extends 'default_frame.twig' %}
  713. {% set body_class = 'product_page' %}
  714. {% block javascript %}
  715. <script>
  716. // 検索後パラメータをフォームにセット
  717.     function getParam(name, url) {
  718.         if (!url) url = window.location.href;
  719.         name = name.replace(/[\\[\\]]/g, \"\\\\\$&\");
  720.         var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|\$)\"),
  721.             results = regex.exec(url);
  722.         if (!results) return null;
  723.         if (!results[2]) return '';
  724.         return decodeURIComponent(results[2].replace(/\\+/g, \" \"));
  725.     }
  726.     //商品名 or 型番入力検索
  727.     \$(\"input[name='name']\").val(getParam('name'));
  728.     //電源
  729.     var tag = getParam('tag');
  730.     if (tag) {
  731.     var tagId='tag_id_' + tag ;
  732.         var sel = document.querySelector('[data-id=\"' + tagId + '\"]');
  733.         sel.selected = true;
  734.     }
  735.     var urlParams = new URLSearchParams(window.location.search);
  736.     var categoryIds = urlParams.getAll('category_ids[]');
  737.     //カテゴリ
  738.     for (i = 0; i < categoryIds.length; i++) {
  739.         if (categoryIds[i]!=\"\") {
  740.             var cat='category_id_' + categoryIds[i] ;
  741.             var sel = document.querySelector('[data-id=\"' + cat + '\"]');
  742.             var type = sel.getAttribute(\"type\");
  743.             if (type==\"radio\") {
  744.                 sel.checked= true;;
  745.             }else{
  746.                 sel.selected = true;
  747.             }
  748.         }
  749.     }
  750.     /*eccube.productsClassCategories = {
  751.         {% for Product in pagination %}
  752.         \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  753.         {% endfor %}
  754.     };*/
  755.     \$(function() {
  756.         // 表示件数を変更
  757.         \$('.disp-number').change(function() {
  758.             var dispNumber = \$(this).val();
  759.             \$('#disp_number').val(dispNumber);
  760.             \$('#pageno').val(1);
  761.             \$(\"#form1\").submit();
  762.         });
  763.         // 並び順を変更
  764.         \$('.order-by').change(function() {
  765.             var orderBy = \$(this).val();
  766.             \$('#orderby').val(orderBy);
  767.             \$('#pageno').val(1);
  768.             \$(\"#form1\").submit();
  769.         });
  770.     });
  771. </script>
  772. {% endblock %}
  773. {% set catIds = app.request.get('category_ids') %}
  774. {% set cid = \"\" %}
  775. {% set cnt = 0 %}
  776. {% for catId in catIds %}
  777. {% if catId !=\"\" %}
  778. {% set cnt = cnt + 1 %}
  779. {% set cid = catId %}
  780. {% endif %}
  781. {% endfor %}
  782. {% if cnt == 1 %}
  783. {% set Category = repository('Eccube\\\\Entity\\\\Category').find(cid) %}
  784. {% endif %}
  785. {% block title %}
  786. <h1 class=\"c-title-06\">
  787. <span class=\"s-text\">
  788. {% if cnt == 1 %}
  789. {{ Category.name }}のエアコン商品一覧{# カテゴリーページ #}
  790. {% else %}
  791. エアコン商品一覧
  792. {% endif %}
  793. </span>
  794. </h1>
  795. {% endblock %}
  796. {% block main_head %}
  797. {% if cnt == 1 %}
  798. <div class=\"c-section\">
  799.     <div class=\"c-media-01\">
  800.         {% if Category.category_image %}
  801.         <figure class=\"s-image\">
  802.         <div class=\"s-image__in\">
  803.         <img src=\"{{ asset(Category.category_image|no_image_product, 'save_image') }}\" alt=\"{{ Category.name }}\">
  804.         </div>
  805.         </figure>
  806.         {% endif %}
  807.         <div class=\"s-content\">
  808.         <h2 class=\"s-title\">{{ Category.name }}の業務用エアコンの特長</h2>
  809.         {% if Category and Category.free_area %}
  810.         <div class=\"s-text\">
  811.             {{ include(template_from_string(Category. free_area)) }}
  812.         </div>
  813.         {% endif %}
  814.         </div>
  815.     </div>
  816. </div>
  817. {% endif %}
  818. {% endblock %}
  819. {% block main %}
  820. <div class=\"c-section\">
  821.     <h3 class=\"c-title-07\"><span class=\"s-text\">{% if cnt == 1 %}{{ Category.name }}のエアコン{% endif %}商品一覧</span></h3>
  822.     {% if search_form.category_id.vars.errors|length > 0 %}
  823.     <div class=\"ec-searchnavRole\">
  824.         <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  825.     </div>
  826.     {% else %}
  827.     <div class=\"ec-searchnavRole\">
  828.         <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  829.             {% for item in search_form %}
  830.                 {# タグの複数検索に対応 @see https://umebius.com/eccube/product_list_tag_search/ #}
  831.                 {% if item.vars.value is iterable %}
  832.                     {% for val in item.vars.value %}
  833.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  834.             name=\"{{ item.vars.full_name }}[]\" value=\"{{ val }}\"/>
  835.                     {% endfor %}
  836.                 {% else %}
  837.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  838.             name=\"{{ item.vars.full_name }}\"
  839.             {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  840.                 {% endif %}
  841.             {% endfor %}
  842.         </form>
  843.         <div class=\"p-products-list-head\">
  844.         {% if pagination.totalItemCount > 0 %}
  845.             <div class=\"c-total-wrap\">
  846.             {{ '<p class=\"c-total-num\"><span class=\"s-main font-en\">%count%</span><span class=\"s-sub\">件</span></p>の商品がございます'|trans({ '%count%': pagination.totalItemCount })|raw }}
  847.             </div>
  848.             <div class=\"c-change-num\">
  849.             <span class=\"s-text\">表示件数</span>
  850.             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  851.             </div>
  852.         {% else %}
  853.             <div class=\"c-total-wrap\"><span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span></div>
  854.         {% endif %}
  855.         </div>
  856.     </div>
  857.     {% if pagination.totalItemCount > 0 %}
  858.     <div class=\"ec-shelfRole\">
  859.         <ul class=\"p-products-list\">
  860.         {% for Product in pagination %}
  861.             {% set CatId = '' %}
  862.             {% set CatMaker = '' %}{# メーカー #}
  863.             {% set CatSeriesId = '' %}{# シリーズID #}
  864.             {% set CatShape = '' %}{# 形状 #}
  865.             {% set CatPower = '' %}{# 馬力 #}
  866.             {% set TagPower1 = '' %}{# 電源1 #}
  867.             {% set TagPower2 = '' %}{# 電源2 #}
  868.             {% set ProductCode = '' %}{# 型番 #}
  869.             {% set HiddenFlag = '0' %}{# 非表示フラグ #}
  870.             {# カテゴリ #}
  871.             {% if Product.ProductCategories is not empty %}
  872.                 {% for ProductCategory in Product.ProductCategories %}
  873.                     {% if ProductCategory.Category.getParent is not null %}
  874.                         {% if ProductCategory.Category.getParent.id == 1 %}
  875.                             {% set CatMaker = ProductCategory.Category.name %}{# メーカー #}
  876.                             {% set CatId = ProductCategory.Category.id %}
  877.                         {% endif %}
  878.                         {% if ProductCategory.Category.getParent.id == 51 %}
  879.                             {% set CatShape = ProductCategory.Category.id %}{# 形状 #}
  880.                         {% endif %}
  881.                         {% if ProductCategory.Category.getParent.id == 61 %}
  882.                             {% set CatPower = ProductCategory.Category.id %}{# 馬力 #}
  883.                         {% endif %}
  884.                     {% endif %}
  885.                     {% if CatId is not empty %}
  886.                         {% if ProductCategory.Category.getParent is not null %}
  887.                             {% if ProductCategory.Category.getParent.id == CatId %}
  888.                                 {% set CatSeriesId = ProductCategory.Category.id %}{# シリーズID #}
  889.                                 {%  set Category = repository('Eccube\\\\Entity\\\\Category').find(CatSeriesId) %}
  890.                                 {%  set HiddenFlag = Category.hidden_flag %}
  891.                             {% endif %}
  892.                         {% endif %}
  893.                     {% endif %}
  894.                 {% endfor %}
  895.             {% endif %}
  896.             {# タグ:電源 #}
  897.             {% if Product.hasTag(1) %}
  898.             {% set PageTag = repository('Eccube\\\\Entity\\\\Tag').find('1') %}
  899.             {% set TagPower1 = PageTag.name %}{# 電源1 #}
  900.             {% endif %}
  901.             {% if Product.hasTag(2) %}
  902.             {% set PageTag = repository('Eccube\\\\Entity\\\\Tag').find('2') %}
  903.             {% set TagPower2 = PageTag.name %}{# 電源2 #}
  904.             {% endif %}
  905.             {# 型番 #}
  906.             {% if Product.code_min is not empty %}
  907.             {% set ProductCode = Product.code_min %}{# 型番 #}
  908.             {% endif %}
  909.             <li class=\"p-products-item\">
  910.                 <figure class=\"s-image\">
  911.                     {# <a href=\"{{ url('product_detail', {'id': Product.id}) }}?shape={{ CatShape }}&power={{ CatPower }}\"> #}
  912. \t\t\t\t\t<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  913.                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  914.                     </a>
  915.                 </figure>
  916.                 <div class=\"s-content\">
  917.                     {# <h4 class=\"s-title\"><a href=\"{{ url('product_detail', {'id': Product.id}) }}?shape={{ CatShape }}&power={{ CatPower }}\">{{ CatMaker }} {{ Product.name }}</a></h4> #}
  918. \t\t\t\t\t<h4 class=\"s-title\"><a href=\"{{ url('product_detail', {'id': Product.id}) }}\">{{ CatMaker }} {{ Product.name }}</a></h4>
  919.                     <table class=\"c-table-04\">
  920.                         <tr>
  921.                         <th class=\"s-col1\">型番</th>
  922.                         <th class=\"s-col2\">定価(税込)</th>
  923.                         <th class=\"s-col3\">販売価格(税込)</th>
  924.                         </tr>
  925.                         <tr>
  926.                         <td>
  927.                         {{ ProductCode }}
  928.                         </td>
  929.                         <td>
  930.                             <p class=\"p-products-text01\"><span class=\"s-main font-en\">
  931.                         {{ Product.getPrice01IncTaxMin|number_format }}
  932.                             </span>円</p>
  933.                         </td>
  934.                         <td>
  935.                             <div class=\"p-products-list-price02-wrap\">
  936.                             {% set price01 = Product.getPrice01IncTaxMin %}
  937.                             {% set price02 = Product.getPrice02IncTaxMin %}
  938.                             {% if price01 != '' %}
  939.                                 <p class=\"p-products-label01\"><span class=\"font-en\">
  940.                                 <span class=\"s-main\">
  941.                                 {% set price03 = (1-(price02 / price01))*100|round(1, 'ceil') %}
  942.                                 {{ price03|number_format(1, '.', ',') }}
  943.                                 </span>%</span><br class=\"no-pc\">割引</p>
  944.                             {% endif %}
  945.                                 <p class=\"p-products-text02\"><span class=\"s-main font-en\">
  946.                                 {{ Product.getPrice02IncTaxMin|number_format }}
  947.                                 </span>円</p>
  948.                             </div>
  949.                         </td>
  950.                         </tr>
  951.                     </table>
  952.                 </div>
  953.             </li>
  954.             {% endfor %}
  955.         </ul>
  956.     </div>
  957.     <div class=\"ec-pagerRole\">
  958.         {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  959.     </div>
  960.     {% endif %}
  961.     {% endif %}
  962. </div>
  963. {% endblock %}
  964. ""Product/list.twig""/home/airconwork/airconwork.co.jp/public_html/app/template/airconwork/Product/list.twig");
  965.     }
  966. }