var/cache/dev/twig/83/83bcdca58169ca6d11102404f569d24d55fafd5922684da8f7d38caf4760111a.php line 40

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