var/cache/dev/twig/59/5982ee80893018f2064455e3ee39083d05cede76163d2749521c48e27edc5856.php line 16

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_82f47811888f351ab5944c08b27fc4c98026081e44436a66e3e68ededea350c0 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "<style>
  60.     .p-product__title-text {
  61.     color: #807245;
  62. }
  63. .c-button--unelevated.is-secondary {
  64.     background-color: #807245;
  65. }
  66. </style>
  67. ";
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.         
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  72.     }
  73.     // line 26
  74.     public function block_javascript($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  81.         // line 27
  82.         echo "    <script src=\"";
  83.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/eccube.js"), "html"nulltrue);
  84.         echo "\"></script>
  85.     <script>
  86.         eccube.productsClassCategories = {
  87.             ";
  88.         // line 30
  89.         $context['_parent'] = $context;
  90.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'30$this->source); })()));
  91.         $context['loop'] = [
  92.           'parent' => $context['_parent'],
  93.           'index0' => 0,
  94.           'index'  => 1,
  95.           'first'  => true,
  96.         ];
  97.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  98.             $length count($context['_seq']);
  99.             $context['loop']['revindex0'] = $length 1;
  100.             $context['loop']['revindex'] = $length;
  101.             $context['loop']['length'] = $length;
  102.             $context['loop']['last'] = === $length;
  103.         }
  104.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  105.             // line 31
  106.             echo "                \"";
  107.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse31), "js"), "html"nulltrue);
  108.             echo "\": ";
  109.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  110.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse31) == false)) {
  111.                 echo ", ";
  112.             }
  113.             // line 32
  114.             echo "            ";
  115.             ++$context['loop']['index0'];
  116.             ++$context['loop']['index'];
  117.             $context['loop']['first'] = false;
  118.             if (isset($context['loop']['length'])) {
  119.                 --$context['loop']['revindex0'];
  120.                 --$context['loop']['revindex'];
  121.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  122.             }
  123.         }
  124.         $_parent $context['_parent'];
  125.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  126.         $context array_intersect_key($context$_parent) + $_parent;
  127.         // line 33
  128.         echo "        };
  129.         \$(function() {
  130.             // 表示件数を変更
  131.             \$('.disp-number').change(function() {
  132.                 var dispNumber = \$(this).val();
  133.                 \$('#disp_number').val(dispNumber);
  134.                 \$('#pageno').val(1);
  135.                 \$(\"#form1\").submit();
  136.             });
  137.             // 並び順を変更
  138.             \$('.order-by').change(function() {
  139.                 var orderBy = \$(this).val();
  140.                 \$('#orderby').val(orderBy);
  141.                 \$('#pageno').val(1);
  142.                 \$(\"#form1\").submit();
  143.             });
  144.             \$('.add-cart').on('click', function(e) {
  145.                 var \$form = \$(this).parents('li').find('form');
  146.                 // 個数フォームのチェック
  147.                 var \$quantity = \$form.parent().find('.quantity');
  148.                 if (\$quantity.val() < 1) {
  149.                     \$quantity[0].setCustomValidity('";
  150.         // line 59
  151.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  152.         echo "');
  153.                     setTimeout(function() {
  154.                         loadingOverlay('hide');
  155.                     }, 100);
  156.                     return true;
  157.                 } else {
  158.                     \$quantity[0].setCustomValidity('');
  159.                 }
  160.                 e.preventDefault();
  161.                 \$.ajax({
  162.                     url: \$form.attr('action'),
  163.                     type: \$form.attr('method'),
  164.                     data: \$form.serialize(),
  165.                     dataType: 'json',
  166.                     beforeSend: function(xhr, settings) {
  167.                         // Buttonを無効にする
  168.                         \$('.add-cart').prop('disabled', true);
  169.                     }
  170.                 }).done(function(data) {
  171.                     // レスポンス内のメッセージをalertで表示
  172.                     \$.each(data.messages, function() {
  173.                         \$('#js-product__modal-message').html(this);
  174.                     });
  175.                     \$('#p-product__modal-checkbox').prop('checked', true);
  176.                     // カートブロックを更新する
  177.                     \$.ajax({
  178.                         url: '";
  179.         // line 87
  180.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  181.         echo "',
  182.                         type: 'GET',
  183.                         dataType: 'html'
  184.                     }).done(function(html) {
  185.                         \$('#js-header__utility-cart').html(html);
  186.                     });
  187.                 }).fail(function(data) {
  188.                     alert('";
  189.         // line 94
  190.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  191.         echo "');
  192.                 }).always(function(data) {
  193.                     // Buttonを有効にする
  194.                     \$('.add-cart').prop('disabled', false);
  195.                 });
  196.             });
  197.         });
  198.     </script>
  199. ";
  200.         
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  202.         
  203.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  204.     }
  205.     // line 104
  206.     public function block_main($context, array $blocks = [])
  207.     {
  208.         $macros $this->macros;
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  211.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  212.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  213.         // line 105
  214.         echo "
  215.     <section class=\"p-product\">
  216.         <h2 class=\"p-product__title\">
  217.             ";
  218.         // line 108
  219.         if ((twig_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.'108$this->source); })()), "vars", [], "any"falsefalsefalse108), "value", [], "any"falsefalsefalse108) && twig_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.'108$this->source); })()), "vars", [], "any"falsefalsefalse108), "value", [], "any"falsefalsefalse108), "name", [], "any"falsefalsefalse108))) {
  220.             // line 109
  221.             echo "                <span class=\"p-product__title-text\">KEYWORD SEARCH</span>
  222.             ";
  223.         } elseif ( !(null ===         // line 110
  224. (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'110$this->source); })()))) {
  225.             // line 111
  226.             echo "                <span class=\"p-product__title-text\">PRODUCT</span>
  227.             ";
  228.         } else {
  229.             // line 113
  230.             echo "                <span class=\"p-product__title-text\">ALL PRODUCT</span>
  231.             ";
  232.         }
  233.         // line 115
  234.         echo "        </h2>
  235.         <div class=\"p-product__contents\">
  236.             ";
  237.         // line 117
  238.         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.'117$this->source); })()), "category_id", [], "any"falsefalsefalse117), "vars", [], "any"falsefalsefalse117), "errors", [], "any"falsefalsefalse117)) > 0)) {
  239.             // line 118
  240.             echo "                <p>";
  241.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  242.             echo "</p>
  243.             ";
  244.         } else {
  245.             // line 120
  246.             echo "                <div class=\"p-product__search\">
  247.                     <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  248.                         ";
  249.             // line 122
  250.             $context['_parent'] = $context;
  251.             $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.'122$this->source); })()));
  252.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  253.                 // line 123
  254.                 echo "                            <input type=\"hidden\" id=\"";
  255.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse123), "id", [], "any"falsefalsefalse123), "html"nulltrue);
  256.                 echo "\" name=\"";
  257.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse123), "full_name", [], "any"falsefalsefalse123), "html"nulltrue);
  258.                 echo "\" ";
  259.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse123), "value", [], "any"falsefalsefalse123))) {
  260.                     echo "value=\"";
  261.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse123), "value", [], "any"falsefalsefalse123), "html"nulltrue);
  262.                     echo "\" ";
  263.                 }
  264.                 echo "/>
  265.                         ";
  266.             }
  267.             $_parent $context['_parent'];
  268.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  269.             $context array_intersect_key($context$_parent) + $_parent;
  270.             // line 125
  271.             echo "                    </form>
  272.                     <div class=\"p-product__topicpath\">
  273.                         <ul class=\"p-product__topicpath-list u-list-sanitize\">
  274.                             <li class=\"p-product__topicpath-list-item\">
  275.                                 <a class=\"p-product__topicpath-link\" href=\"";
  276.             // line 129
  277.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  278.             echo "\">";
  279.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  280.             echo "</a>
  281.                             </li>
  282.                             ";
  283.             // line 131
  284.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'131$this->source); })()))) {
  285.                 // line 132
  286.                 echo "                                ";
  287.                 $context['_parent'] = $context;
  288.                 $context['_seq'] = twig_ensure_traversable(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.'132$this->source); })()), "path", [], "any"falsefalsefalse132));
  289.                 $context['loop'] = [
  290.                   'parent' => $context['_parent'],
  291.                   'index0' => 0,
  292.                   'index'  => 1,
  293.                   'first'  => true,
  294.                 ];
  295.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  296.                     $length count($context['_seq']);
  297.                     $context['loop']['revindex0'] = $length 1;
  298.                     $context['loop']['revindex'] = $length;
  299.                     $context['loop']['length'] = $length;
  300.                     $context['loop']['last'] = === $length;
  301.                 }
  302.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  303.                     // line 133
  304.                     echo "                                    <li class=\"p-product__topicpath-list-item";
  305.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse133)) {
  306.                         echo " is-active";
  307.                     }
  308.                     echo "\">
  309.                                         <a class=\"p-product__topicpath-link\" href=\"";
  310.                     // line 134
  311.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  312.                     echo "?category_id=";
  313.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse134), "html"nulltrue);
  314.                     echo "\">";
  315.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse134), "html"nulltrue);
  316.                     echo "</a>
  317.                                     </li>
  318.                                 ";
  319.                     ++$context['loop']['index0'];
  320.                     ++$context['loop']['index'];
  321.                     $context['loop']['first'] = false;
  322.                     if (isset($context['loop']['length'])) {
  323.                         --$context['loop']['revindex0'];
  324.                         --$context['loop']['revindex'];
  325.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  326.                     }
  327.                 }
  328.                 $_parent $context['_parent'];
  329.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  330.                 $context array_intersect_key($context$_parent) + $_parent;
  331.                 // line 137
  332.                 echo "                            ";
  333.             }
  334.             // line 138
  335.             echo "                            ";
  336.             if ((twig_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.'138$this->source); })()), "vars", [], "any"falsefalsefalse138), "value", [], "any"falsefalsefalse138) && twig_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.'138$this->source); })()), "vars", [], "any"falsefalsefalse138), "value", [], "any"falsefalsefalse138), "name", [], "any"falsefalsefalse138))) {
  337.                 // line 139
  338.                 echo "                                <li class=\"p-product__topicpath-list-item is-result\">
  339.                                     <p class=\"p-product__topicpath-result\">";
  340.                 // line 140
  341.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%name%の検索結果", ["%name%" => twig_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.'140$this->source); })()), "vars", [], "any"falsefalsefalse140), "value", [], "any"falsefalsefalse140), "name", [], "any"falsefalsefalse140)]), "html"nulltrue);
  342.                 echo "</p>
  343.                                 </li>
  344.                             ";
  345.             }
  346.             // line 143
  347.             echo "                        </ul>
  348.                     </div>
  349.                     <div class=\"p-product__controller\">
  350.                         <p class=\"p-product__controller-result\">
  351.                             ";
  352.             // line 147
  353.             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.'147$this->source); })()), "totalItemCount", [], "any"falsefalsefalse147) > 0)) {
  354.                 // line 148
  355.                 echo "                                ";
  356.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</span>", ["%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.'148$this->source); })()), "totalItemCount", [], "any"falsefalsefalse148)]);
  357.                 echo "
  358.                             ";
  359.             } else {
  360.                 // line 150
  361.                 echo "                                <span class=\"p-product__controller-result--text\">";
  362.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  363.                 echo "</span>
  364.                             ";
  365.             }
  366.             // line 152
  367.             echo "                        </p>
  368.                         ";
  369.             // line 153
  370.             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)) {
  371.                 // line 154
  372.                 echo "                            <div class=\"p-product__controller-actions\">
  373.                                 <div class=\"p-product__controller-actions-item\">
  374.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  375.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  376.                                         <label class=\"c-select__label\" for=\"disp-number\">件数</label>
  377.                                         ";
  378.                 // line 159
  379.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["disp_number_form"]) || array_key_exists("disp_number_form"$context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.'159$this->source); })()), 'widget', ["id" => "disp-number""attr" => ["class" => "c-select__native-control mdc-select__native-control disp-number"]]);
  380.                 echo "
  381.                                         <div class=\"mdc-notched-outline\">
  382.                                             <div class=\"mdc-notched-outline__leading\"></div>
  383.                                             <div class=\"mdc-notched-outline__notch\"></div>
  384.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  385.                                         </div>
  386.                                     </div>
  387.                                 </div>
  388.                                 <div class=\"p-product__controller-actions-item\">
  389.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  390.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  391.                                         <label class=\"c-select__label\" for=\"order-by\">並び順</label>
  392.                                         ";
  393.                 // line 171
  394.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["order_by_form"]) || array_key_exists("order_by_form"$context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.'171$this->source); })()), 'widget', ["id" => "order-by""attr" => ["class" => "c-select__native-control mdc-select__native-control order-by"]]);
  395.                 echo "
  396.                                         <div class=\"mdc-notched-outline\">
  397.                                             <div class=\"mdc-notched-outline__leading\"></div>
  398.                                             <div class=\"mdc-notched-outline__notch\"></div>
  399.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  400.                                         </div>
  401.                                     </div>
  402.                                 </div>
  403.                             </div>
  404.                         ";
  405.             }
  406.             // line 181
  407.             echo "                    </div>
  408.                 </div>
  409.                 ";
  410.             // line 183
  411.             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.'183$this->source); })()), "totalItemCount", [], "any"falsefalsefalse183) > 0)) {
  412.                 // line 184
  413.                 echo "                    <ul class=\"p-product__list u-list-sanitize\">
  414.                         ";
  415.                 // line 185
  416.                 $context['_parent'] = $context;
  417.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'185$this->source); })()));
  418.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  419.                     // line 186
  420.                     echo "                            <li class=\"p-product__list-item\">
  421.                                 <section class=\"c-list-product\">
  422.                                     <a class=\"c-list-product__link\" href=\"";
  423.                     // line 188
  424.                     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"falsefalsefalse188)]), "html"nulltrue);
  425.                     echo "\">
  426.                                         <div class=\"c-list-product__image js-list-product__image\">
  427.                                             <div class=\"c-list-product__image-contents\">
  428.                                                 <img class=\"c-list-product__image-pic\" src=\"";
  429.                     // line 191
  430.                     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"falsefalsefalse191)), "save_image"), "html"nulltrue);
  431.                     echo "\" alt=\"";
  432.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse191), "html"nulltrue);
  433.                     echo "\">
  434.                                             </div>
  435.                                         </div>
  436.                                         <h2 class=\"c-list-product__name js-list-product__name\">";
  437.                     // line 194
  438.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse194), "html"nulltrue);
  439.                     echo "</h2>
  440.                                         <p class=\"c-list-product__price\">
  441.                                             <span class=\"price02-default\">
  442.                                                 ";
  443.                     // line 197
  444.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse197)) {
  445.                         // line 198
  446.                         echo "                                                    ";
  447.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse198) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse198))) {
  448.                             // line 199
  449.                             echo "                                                        ";
  450.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse199)), "html"nulltrue);
  451.                             echo "
  452.                                                     ";
  453.                         } else {
  454.                             // line 201
  455.                             echo "                                                        ";
  456.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse201)), "html"nulltrue);
  457.                             echo " ~ ";
  458.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse201)), "html"nulltrue);
  459.                             echo "
  460.                                                     ";
  461.                         }
  462.                         // line 203
  463.                         echo "                                                ";
  464.                     } else {
  465.                         // line 204
  466.                         echo "                                                    ";
  467.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse204)), "html"nulltrue);
  468.                         echo "
  469.                                                 ";
  470.                     }
  471.                     // line 206
  472.                     echo "                                            </span>
  473.                                         </p>
  474.                                     </a>
  475.                                     ";
  476.                     // line 209
  477.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse209)) {
  478.                         // line 210
  479.                         echo "                                        ";
  480.                         $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["forms"]) || array_key_exists("forms"$context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.'210$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse210), [], "array"falsefalsefalse210);
  481.                         // line 211
  482.                         echo "                                        <form name=\"form";
  483.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse211), "html"nulltrue);
  484.                         echo "\" id=\"productForm";
  485.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse211), "html"nulltrue);
  486.                         echo "\" action=\"";
  487.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse211)]), "html"nulltrue);
  488.                         echo "\" method=\"post\">
  489.                                             <div class=\"c-list-product__form\">
  490.                                                 ";
  491.                         // line 213
  492.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse213)) {
  493.                             // line 214
  494.                             echo "                                                    <div class=\"c-list-product__form-box\">
  495.                                                         <div class=\"c-list-product__form-box-item\">
  496.                                                             <div class=\"c-select mdc-select mdc-select--outlined";
  497.                             // line 216
  498.                             echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'216$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse216))) ? (" mdc-select--invalid") : (""));
  499.                             echo "\">
  500.                                                                 <i class=\"mdc-select__dropdown-icon\"></i>
  501.                                                                 <label class=\"c-select__label\" for=\"";
  502.                             // line 218
  503.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'218$this->source); })()), "children", [], "any"falsefalsefalse218), "classcategory_id1", [], "any"falsefalsefalse218), "vars", [], "any"falsefalsefalse218), "id", [], "any"falsefalsefalse218), "html"nulltrue);
  504.                             echo "\">";
  505.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'218$this->source); })()), "children", [], "any"falsefalsefalse218), "classcategory_id1", [], "any"falsefalsefalse218), "vars", [], "any"falsefalsefalse218), "label", [], "any"falsefalsefalse218), "html"nulltrue);
  506.                             echo "</label>
  507.                                                                 ";
  508.                             // line 219
  509.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'219$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse219), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
  510.                             echo "
  511.                                                                 <div class=\"mdc-notched-outline\">
  512.                                                                     <div class=\"mdc-notched-outline__leading\"></div>
  513.                                                                     <div class=\"mdc-notched-outline__notch\"></div>
  514.                                                                     <div class=\"mdc-notched-outline__trailing\"></div>
  515.                                                                 </div>
  516.                                                             </div>
  517.                                                             ";
  518.                             // line 226
  519.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'226$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse226), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
  520.                             echo "
  521.                                                         </div>
  522.                                                     </div>
  523.                                                     ";
  524.                             // line 229
  525.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse229)) {
  526.                                 // line 230
  527.                                 echo "                                                        <div class=\"c-list-product__form-box\">
  528.                                                             <div class=\"c-list-product__form-box-item\">
  529.                                                                 <div class=\"c-select mdc-select mdc-select--outlined";
  530.                                 // line 232
  531.                                 echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'232$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse232))) ? (" mdc-select--invalid") : (""));
  532.                                 echo "\">
  533.                                                                     <i class=\"mdc-select__dropdown-icon\"></i>
  534.                                                                     <label class=\"c-select__label\" for=\"";
  535.                                 // line 234
  536.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'234$this->source); })()), "children", [], "any"falsefalsefalse234), "classcategory_id2", [], "any"falsefalsefalse234), "vars", [], "any"falsefalsefalse234), "id", [], "any"falsefalsefalse234), "html"nulltrue);
  537.                                 echo "\">";
  538.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'234$this->source); })()), "children", [], "any"falsefalsefalse234), "classcategory_id2", [], "any"falsefalsefalse234), "vars", [], "any"falsefalsefalse234), "label", [], "any"falsefalsefalse234), "html"nulltrue);
  539.                                 echo "</label>
  540.                                                                     ";
  541.                                 // line 235
  542.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'235$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse235), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
  543.                                 echo "
  544.                                                                     <div class=\"mdc-notched-outline\">
  545.                                                                         <div class=\"mdc-notched-outline__leading\"></div>
  546.                                                                         <div class=\"mdc-notched-outline__notch\"></div>
  547.                                                                         <div class=\"mdc-notched-outline__trailing\"></div>
  548.                                                                     </div>
  549.                                                                 </div>
  550.                                                                 ";
  551.                                 // line 242
  552.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'242$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse242), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
  553.                                 echo "
  554.                                                             </div>
  555.                                                         </div>
  556.                                                     ";
  557.                             }
  558.                             // line 246
  559.                             echo "                                                ";
  560.                         }
  561.                         // line 247
  562.                         echo "                                                <div class=\"c-list-product__form-box\">
  563.                                                     <div class=\"c-list-product__form-box-item\">
  564.                                                         <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  565.                                                             ";
  566.                         // line 250
  567.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'250$this->source); })()), "quantity", [], "any"falsefalsefalse250), 'widget', ["attr" => ["class" => "c-text-field__input mdc-text-field__input quantity"]]);
  568.                         echo "
  569.                                                             <div class=\"mdc-notched-outline\">
  570.                                                                 <div class=\"mdc-notched-outline__leading\"></div>
  571.                                                                 <div class=\"mdc-notched-outline__notch\">
  572.                                                                     <label class=\"c-floating-label mdc-floating-label\" for=\"quantity";
  573.                         // line 254
  574.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse254), "html"nulltrue);
  575.                         echo "\">数量</label>
  576.                                                                 </div>
  577.                                                                 <div class=\"mdc-notched-outline__trailing\"></div>
  578.                                                             </div>
  579.                                                         </div>
  580.                                                         ";
  581.                         // line 259
  582.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'259$this->source); })()), "quantity", [], "any"falsefalsefalse259), 'errors');
  583.                         echo "
  584.                                                     </div>
  585.                                                 </div>
  586.                                                 ";
  587.                         // line 262
  588.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'262$this->source); })()), 'rest');
  589.                         echo "
  590.                                             </div>
  591.                                         </form>
  592.                                         <div class=\"c-list-product__actions\">
  593.                                             <div class=\"c-list-product__actions-item\">
  594.                                                 <button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"";
  595.                         // line 267
  596.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse267), "html"nulltrue);
  597.                         echo "\" form=\"productForm";
  598.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse267), "html"nulltrue);
  599.                         echo "\">
  600.                                                     <span class=\"c-button__label mdc-button__label\">";
  601.                         // line 268
  602.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  603.                         echo "</span>
  604.                                                 </button>
  605.                                             </div>
  606.                                         </div>
  607.                                     ";
  608.                     } else {
  609.                         // line 273
  610.                         echo "                                        <div class=\"c-list-product__actions\">
  611.                                             <div class=\"c-list-product__actions-item\">
  612.                                                 <button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
  613.                                                     <span class=\"c-button__label mdc-button__label\">";
  614.                         // line 276
  615.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SOLD OUT"), "html"nulltrue);
  616.                         echo "</span>
  617.                                                 </button>
  618.                                             </div>
  619.                                         </div>
  620.                                     ";
  621.                     }
  622.                     // line 281
  623.                     echo "                                </section>
  624.                             </li>
  625.                         ";
  626.                 }
  627.                 $_parent $context['_parent'];
  628.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  629.                 $context array_intersect_key($context$_parent) + $_parent;
  630.                 // line 284
  631.                 echo "                    </ul>
  632.                     <div class=\"p-product__modal\">
  633.                         <input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
  634.                         <div class=\"p-product__modal-overlay\">
  635.                             <label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
  636.                             <div class=\"p-product__modal-contents\">
  637.                                 <label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
  638.                                     <i class=\"p-product__modal-close-icon material-icons\">close</i>
  639.                                 </label>
  640.                                 <div class=\"p-product__modal-header\">
  641.                                     <p class=\"p-product__modal-message\" id=\"js-product__modal-message\">";
  642.                 // line 294
  643.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  644.                 echo "</p>
  645.                                 </div>
  646.                                 <div class=\"p-product__modal-actions\">
  647.                                     <div class=\"p-product__modal-actions-item\">
  648.                                         <a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"";
  649.                 // line 298
  650.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  651.                 echo "\">
  652.                                             <span class=\"c-button__label mdc-button__label\">";
  653.                 // line 299
  654.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  655.                 echo "</span>
  656.                                         </a>
  657.                                     </div>
  658.                                     <div class=\"p-product__modal-actions-item\">
  659.                                         <label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
  660.                                             <span class=\"c-button__label mdc-button__label\">";
  661.                 // line 304
  662.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  663.                 echo "</span>
  664.                                         </label>
  665.                                     </div>
  666.                                 </div>
  667.                             </div>
  668.                         </div>
  669.                     </div>
  670.                     ";
  671.                 // line 312
  672.                 $this->loadTemplate("pager.twig""Product/list.twig"312)->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.'312$this->source); })()), "paginationData", [], "any"falsefalsefalse312)]));
  673.                 // line 313
  674.                 echo "                ";
  675.             }
  676.             // line 314
  677.             echo "            ";
  678.         }
  679.         // line 315
  680.         echo "        </div>
  681.     </section>
  682. ";
  683.         
  684.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  685.         
  686.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  687.     }
  688.     public function getTemplateName()
  689.     {
  690.         return "Product/list.twig";
  691.     }
  692.     public function isTraitable()
  693.     {
  694.         return false;
  695.     }
  696.     public function getDebugInfo()
  697.     {
  698.         return array (  712 => 315,  709 => 314,  706 => 313,  704 => 312,  693 => 304,  685 => 299,  681 => 298,  674 => 294,  662 => 284,  654 => 281,  646 => 276,  641 => 273,  633 => 268,  627 => 267,  619 => 262,  613 => 259,  605 => 254,  598 => 250,  593 => 247,  590 => 246,  583 => 242,  573 => 235,  567 => 234,  562 => 232,  558 => 230,  556 => 229,  550 => 226,  540 => 219,  534 => 218,  529 => 216,  525 => 214,  523 => 213,  513 => 211,  510 => 210,  508 => 209,  503 => 206,  497 => 204,  494 => 203,  486 => 201,  480 => 199,  477 => 198,  475 => 197,  469 => 194,  461 => 191,  455 => 188,  451 => 186,  447 => 185,  444 => 184,  442 => 183,  438 => 181,  425 => 171,  410 => 159,  403 => 154,  401 => 153,  398 => 152,  392 => 150,  386 => 148,  384 => 147,  378 => 143,  372 => 140,  369 => 139,  366 => 138,  363 => 137,  342 => 134,  335 => 133,  317 => 132,  315 => 131,  308 => 129,  302 => 125,  285 => 123,  281 => 122,  277 => 120,  271 => 118,  269 => 117,  265 => 115,  261 => 113,  257 => 111,  255 => 110,  252 => 109,  250 => 108,  245 => 105,  235 => 104,  216 => 94,  206 => 87,  175 => 59,  147 => 33,  133 => 32,  125 => 31,  108 => 30,  101 => 27,  91 => 26,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  699.     }
  700.     public function getSourceContext()
  701.     {
  702.         return new Source("{#
  703. This file is part of EC-CUBE
  704. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  705. http://www.lockon.co.jp/
  706. For the full copyright and license information, please view the LICENSE
  707. file that was distributed with this source code.
  708. #}
  709. {% extends 'default_frame.twig' %}
  710. {% set body_class = 'product_page' %}
  711. {% block stylesheet %}
  712. <style>
  713.     .p-product__title-text {
  714.     color: #807245;
  715. }
  716. .c-button--unelevated.is-secondary {
  717.     background-color: #807245;
  718. }
  719. </style>
  720. {% endblock %}
  721. {% block javascript %}
  722.     <script src=\"{{ asset('assets/js/eccube.js') }}\"></script>
  723.     <script>
  724.         eccube.productsClassCategories = {
  725.             {% for Product in pagination %}
  726.                 \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  727.             {% endfor %}
  728.         };
  729.         \$(function() {
  730.             // 表示件数を変更
  731.             \$('.disp-number').change(function() {
  732.                 var dispNumber = \$(this).val();
  733.                 \$('#disp_number').val(dispNumber);
  734.                 \$('#pageno').val(1);
  735.                 \$(\"#form1\").submit();
  736.             });
  737.             // 並び順を変更
  738.             \$('.order-by').change(function() {
  739.                 var orderBy = \$(this).val();
  740.                 \$('#orderby').val(orderBy);
  741.                 \$('#pageno').val(1);
  742.                 \$(\"#form1\").submit();
  743.             });
  744.             \$('.add-cart').on('click', function(e) {
  745.                 var \$form = \$(this).parents('li').find('form');
  746.                 // 個数フォームのチェック
  747.                 var \$quantity = \$form.parent().find('.quantity');
  748.                 if (\$quantity.val() < 1) {
  749.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  750.                     setTimeout(function() {
  751.                         loadingOverlay('hide');
  752.                     }, 100);
  753.                     return true;
  754.                 } else {
  755.                     \$quantity[0].setCustomValidity('');
  756.                 }
  757.                 e.preventDefault();
  758.                 \$.ajax({
  759.                     url: \$form.attr('action'),
  760.                     type: \$form.attr('method'),
  761.                     data: \$form.serialize(),
  762.                     dataType: 'json',
  763.                     beforeSend: function(xhr, settings) {
  764.                         // Buttonを無効にする
  765.                         \$('.add-cart').prop('disabled', true);
  766.                     }
  767.                 }).done(function(data) {
  768.                     // レスポンス内のメッセージをalertで表示
  769.                     \$.each(data.messages, function() {
  770.                         \$('#js-product__modal-message').html(this);
  771.                     });
  772.                     \$('#p-product__modal-checkbox').prop('checked', true);
  773.                     // カートブロックを更新する
  774.                     \$.ajax({
  775.                         url: '{{ url('block_cart') }}',
  776.                         type: 'GET',
  777.                         dataType: 'html'
  778.                     }).done(function(html) {
  779.                         \$('#js-header__utility-cart').html(html);
  780.                     });
  781.                 }).fail(function(data) {
  782.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  783.                 }).always(function(data) {
  784.                     // Buttonを有効にする
  785.                     \$('.add-cart').prop('disabled', false);
  786.                 });
  787.             });
  788.         });
  789.     </script>
  790. {% endblock %}
  791. {% block main %}
  792.     <section class=\"p-product\">
  793.         <h2 class=\"p-product__title\">
  794.             {% if search_form.vars.value and search_form.vars.value.name %}
  795.                 <span class=\"p-product__title-text\">KEYWORD SEARCH</span>
  796.             {% elseif Category is not null %}
  797.                 <span class=\"p-product__title-text\">PRODUCT</span>
  798.             {% else %}
  799.                 <span class=\"p-product__title-text\">ALL PRODUCT</span>
  800.             {% endif %}
  801.         </h2>
  802.         <div class=\"p-product__contents\">
  803.             {% if search_form.category_id.vars.errors|length > 0 %}
  804.                 <p>{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  805.             {% else %}
  806.                 <div class=\"p-product__search\">
  807.                     <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  808.                         {% for item in search_form %}
  809.                             <input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  810.                         {% endfor %}
  811.                     </form>
  812.                     <div class=\"p-product__topicpath\">
  813.                         <ul class=\"p-product__topicpath-list u-list-sanitize\">
  814.                             <li class=\"p-product__topicpath-list-item\">
  815.                                 <a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  816.                             </li>
  817.                             {% if Category is not null %}
  818.                                 {% for Path in Category.path %}
  819.                                     <li class=\"p-product__topicpath-list-item{% if loop.last %} is-active{% endif %}\">
  820.                                         <a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  821.                                     </li>
  822.                                 {% endfor %}
  823.                             {% endif %}
  824.                             {% if search_form.vars.value and search_form.vars.value.name %}
  825.                                 <li class=\"p-product__topicpath-list-item is-result\">
  826.                                     <p class=\"p-product__topicpath-result\">{{ '%name%の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</p>
  827.                                 </li>
  828.                             {% endif %}
  829.                         </ul>
  830.                     </div>
  831.                     <div class=\"p-product__controller\">
  832.                         <p class=\"p-product__controller-result\">
  833.                             {% if pagination.totalItemCount > 0 %}
  834.                                 {{ '<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  835.                             {% else %}
  836.                                 <span class=\"p-product__controller-result--text\">{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  837.                             {% endif %}
  838.                         </p>
  839.                         {% if pagination.totalItemCount > 0 %}
  840.                             <div class=\"p-product__controller-actions\">
  841.                                 <div class=\"p-product__controller-actions-item\">
  842.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  843.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  844.                                         <label class=\"c-select__label\" for=\"disp-number\">件数</label>
  845.                                         {{ form_widget(disp_number_form, {'id': 'disp-number', 'attr': {'class': 'c-select__native-control mdc-select__native-control disp-number'}}) }}
  846.                                         <div class=\"mdc-notched-outline\">
  847.                                             <div class=\"mdc-notched-outline__leading\"></div>
  848.                                             <div class=\"mdc-notched-outline__notch\"></div>
  849.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  850.                                         </div>
  851.                                     </div>
  852.                                 </div>
  853.                                 <div class=\"p-product__controller-actions-item\">
  854.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  855.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  856.                                         <label class=\"c-select__label\" for=\"order-by\">並び順</label>
  857.                                         {{ form_widget(order_by_form, {'id': 'order-by', 'attr': {'class': 'c-select__native-control mdc-select__native-control order-by'}}) }}
  858.                                         <div class=\"mdc-notched-outline\">
  859.                                             <div class=\"mdc-notched-outline__leading\"></div>
  860.                                             <div class=\"mdc-notched-outline__notch\"></div>
  861.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  862.                                         </div>
  863.                                     </div>
  864.                                 </div>
  865.                             </div>
  866.                         {% endif %}
  867.                     </div>
  868.                 </div>
  869.                 {% if pagination.totalItemCount > 0 %}
  870.                     <ul class=\"p-product__list u-list-sanitize\">
  871.                         {% for Product in pagination %}
  872.                             <li class=\"p-product__list-item\">
  873.                                 <section class=\"c-list-product\">
  874.                                     <a class=\"c-list-product__link\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  875.                                         <div class=\"c-list-product__image js-list-product__image\">
  876.                                             <div class=\"c-list-product__image-contents\">
  877.                                                 <img class=\"c-list-product__image-pic\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\">
  878.                                             </div>
  879.                                         </div>
  880.                                         <h2 class=\"c-list-product__name js-list-product__name\">{{ Product.name }}</h2>
  881.                                         <p class=\"c-list-product__price\">
  882.                                             <span class=\"price02-default\">
  883.                                                 {% if Product.hasProductClass %}
  884.                                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  885.                                                         {{ Product.getPrice02IncTaxMin|price }}
  886.                                                     {% else %}
  887.                                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  888.                                                     {% endif %}
  889.                                                 {% else %}
  890.                                                     {{ Product.getPrice02IncTaxMin|price }}
  891.                                                 {% endif %}
  892.                                             </span>
  893.                                         </p>
  894.                                     </a>
  895.                                     {% if Product.stock_find %}
  896.                                         {% set form = forms[Product.id] %}
  897.                                         <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  898.                                             <div class=\"c-list-product__form\">
  899.                                                 {% if form.classcategory_id1 is defined %}
  900.                                                     <div class=\"c-list-product__form-box\">
  901.                                                         <div class=\"c-list-product__form-box-item\">
  902.                                                             <div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id1) ? ' mdc-select--invalid' }}\">
  903.                                                                 <i class=\"mdc-select__dropdown-icon\"></i>
  904.                                                                 <label class=\"c-select__label\" for=\"{{ form.children.classcategory_id1.vars.id }}\">{{ form.children.classcategory_id1.vars.label }}</label>
  905.                                                                 {{ form_widget(form.classcategory_id1, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
  906.                                                                 <div class=\"mdc-notched-outline\">
  907.                                                                     <div class=\"mdc-notched-outline__leading\"></div>
  908.                                                                     <div class=\"mdc-notched-outline__notch\"></div>
  909.                                                                     <div class=\"mdc-notched-outline__trailing\"></div>
  910.                                                                 </div>
  911.                                                             </div>
  912.                                                             {{ form_errors(form.classcategory_id1, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
  913.                                                         </div>
  914.                                                     </div>
  915.                                                     {% if form.classcategory_id2 is defined %}
  916.                                                         <div class=\"c-list-product__form-box\">
  917.                                                             <div class=\"c-list-product__form-box-item\">
  918.                                                                 <div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id2) ? ' mdc-select--invalid' }}\">
  919.                                                                     <i class=\"mdc-select__dropdown-icon\"></i>
  920.                                                                     <label class=\"c-select__label\" for=\"{{ form.children.classcategory_id2.vars.id }}\">{{ form.children.classcategory_id2.vars.label }}</label>
  921.                                                                     {{ form_widget(form.classcategory_id2, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
  922.                                                                     <div class=\"mdc-notched-outline\">
  923.                                                                         <div class=\"mdc-notched-outline__leading\"></div>
  924.                                                                         <div class=\"mdc-notched-outline__notch\"></div>
  925.                                                                         <div class=\"mdc-notched-outline__trailing\"></div>
  926.                                                                     </div>
  927.                                                                 </div>
  928.                                                                 {{ form_errors(form.classcategory_id2, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
  929.                                                             </div>
  930.                                                         </div>
  931.                                                     {% endif %}
  932.                                                 {% endif %}
  933.                                                 <div class=\"c-list-product__form-box\">
  934.                                                     <div class=\"c-list-product__form-box-item\">
  935.                                                         <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  936.                                                             {{ form_widget(form.quantity, {'attr': {'class': 'c-text-field__input mdc-text-field__input quantity' }}) }}
  937.                                                             <div class=\"mdc-notched-outline\">
  938.                                                                 <div class=\"mdc-notched-outline__leading\"></div>
  939.                                                                 <div class=\"mdc-notched-outline__notch\">
  940.                                                                     <label class=\"c-floating-label mdc-floating-label\" for=\"quantity{{ Product.id }}\">数量</label>
  941.                                                                 </div>
  942.                                                                 <div class=\"mdc-notched-outline__trailing\"></div>
  943.                                                             </div>
  944.                                                         </div>
  945.                                                         {{ form_errors(form.quantity) }}
  946.                                                     </div>
  947.                                                 </div>
  948.                                                 {{ form_rest(form) }}
  949.                                             </div>
  950.                                         </form>
  951.                                         <div class=\"c-list-product__actions\">
  952.                                             <div class=\"c-list-product__actions-item\">
  953.                                                 <button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  954.                                                     <span class=\"c-button__label mdc-button__label\">{{ 'カートに入れる'|trans }}</span>
  955.                                                 </button>
  956.                                             </div>
  957.                                         </div>
  958.                                     {% else %}
  959.                                         <div class=\"c-list-product__actions\">
  960.                                             <div class=\"c-list-product__actions-item\">
  961.                                                 <button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
  962.                                                     <span class=\"c-button__label mdc-button__label\">{{ 'SOLD OUT'|trans }}</span>
  963.                                                 </button>
  964.                                             </div>
  965.                                         </div>
  966.                                     {% endif %}
  967.                                 </section>
  968.                             </li>
  969.                         {% endfor %}
  970.                     </ul>
  971.                     <div class=\"p-product__modal\">
  972.                         <input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
  973.                         <div class=\"p-product__modal-overlay\">
  974.                             <label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
  975.                             <div class=\"p-product__modal-contents\">
  976.                                 <label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
  977.                                     <i class=\"p-product__modal-close-icon material-icons\">close</i>
  978.                                 </label>
  979.                                 <div class=\"p-product__modal-header\">
  980.                                     <p class=\"p-product__modal-message\" id=\"js-product__modal-message\">{{ 'カートに追加しました。'|trans }}</p>
  981.                                 </div>
  982.                                 <div class=\"p-product__modal-actions\">
  983.                                     <div class=\"p-product__modal-actions-item\">
  984.                                         <a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"{{ url('cart') }}\">
  985.                                             <span class=\"c-button__label mdc-button__label\">{{ 'カートへ進む'|trans }}</span>
  986.                                         </a>
  987.                                     </div>
  988.                                     <div class=\"p-product__modal-actions-item\">
  989.                                         <label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
  990.                                             <span class=\"c-button__label mdc-button__label\">{{ 'お買い物を続ける'|trans }}</span>
  991.                                         </label>
  992.                                     </div>
  993.                                 </div>
  994.                             </div>
  995.                         </div>
  996.                     </div>
  997.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  998.                 {% endif %}
  999.             {% endif %}
  1000.         </div>
  1001.     </section>
  1002. {% endblock %}""Product/list.twig""/home/admin/meldia-mp/web/meldia_mp_shop/app/template/meldiastore/Product/list.twig");
  1003.     }
  1004. }