var/cache/dev/twig/78/78f9a34f595ce05514c8a340cabd5fbb.php line 42

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__12e3675cc30ec61b82a59cb82d6f8b3a */
  14. class __TwigTemplate_2aad449b05c573dbcc2842b528affff8 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 131
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__12e3675cc30ec61b82a59cb82d6f8b3a"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__12e3675cc30ec61b82a59cb82d6f8b3a"));
  42.         // line 133
  43.         $context["body_class"] = "product_page";
  44.         // line 131
  45.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__12e3675cc30ec61b82a59cb82d6f8b3a"131);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 1
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 2
  61.         echo "        <style>
  62.             .ec-blockBtn--action {
  63.                 background-color: #E65F6E;
  64.                 border-radius: 5px;
  65.             }
  66.             .ec-blockBtn--cancel {
  67.                 border-radius: 5px;
  68.             }
  69.             .freeze {
  70.                 position: absolute;
  71.                 top: 5px;
  72.                 left: 5px;
  73.                 width: 40px;
  74.                 line-height: 1em;
  75.                 padding: 5px 0;
  76.                 background-color: #00B0EC;
  77.                 color: white;
  78.                 text-align: center;
  79.                 font-size: 10px;
  80.                 font-weight: 700;
  81.                 border-radius: 5px;
  82.                 margin-bottom: 5px;
  83.             }
  84.             .original {
  85.                 position: absolute;
  86.                 top: 5px;
  87.                 left: 50px;
  88.                 width: 60px;
  89.                 line-height: 1em;
  90.                 padding: 5px 0;
  91.                 background-color: #fff100;
  92.                 color: black;
  93.                 text-align: center;
  94.                 font-size: 10px;
  95.                 font-weight: 700;
  96.                 border-radius: 5px;
  97.                 margin-bottom: 5px;
  98.             }
  99.             .ec-select {
  100.                 margin-bottom: 5px;
  101.             }
  102.             .ec-select select {
  103.                 font-size: 12px;
  104.             }
  105.             .ec-shelfRole img.product_image {
  106.                 float: left;
  107.                 width: 40%;
  108.                 object-fit: cover;
  109.                 height: 120px;
  110.             }
  111.             .product_info {
  112.                 width: 60%; float: inline-end; padding-left: 5px;
  113.             }
  114.             .product_hr {
  115.                 width: 100%; color: #DDDDDD;
  116.             }
  117.             .about_shikomel {
  118.                 font-size: 14px; letter-spacing: normal; color: black; max-width: 120px; float: inline-end; display: none; font-weight: bold;
  119.             }
  120.             .restock_date {
  121.                 font-size: 13px; 
  122.                 color: #E65F6E;
  123.                 font-weight: 600;    
  124.             }
  125.             /* PC(画面幅768px以上)の場合 */
  126.             @media screen and (min-width: 768px) {
  127.                 .ec-shelfGrid {
  128.                     margin-left: 0px;
  129.                     margin-right: 0px;
  130.                 }
  131.                 .ec-shelfRole img.product_image {
  132.                     width: 100%;
  133.                     height: auto;
  134.                 }
  135.                 .product_li {
  136.                     width: 25%;
  137.                     margin-bottom: 15px;
  138.                 }
  139.                 .product_li:nth-of-type(4n + 1) {
  140.                     padding-left: 0px;
  141.                     padding-right: 14px;
  142.                 }
  143.                 .product_li:nth-of-type(4n + 2) {
  144.                     padding-left: 0px;
  145.                     padding-right: 7px;
  146.                 }
  147.                 .product_li:nth-of-type(4n + 3) {
  148.                     padding-left: 7px;
  149.                     padding-right: 0px;
  150.                 }
  151.                 .product_li:nth-of-type(4n + 4) {
  152.                     padding-left: 14px;
  153.                     padding-right: 0px;
  154.                 }
  155.                 .product_info {
  156.                     width: 100%;
  157.                     padding-left: 0px;
  158.                     margin-top: 10px;
  159.                 }
  160.                 .product_hr {
  161.                     display: none;
  162.                 }
  163.                 .about_shikomel {
  164.                     display: block;
  165.                 }
  166.             }
  167.         </style>
  168.     ";
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.         
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173.     }
  174.     // line 135
  175.     public function block_javascript($context, array $blocks = [])
  176.     {
  177.         $macros $this->macros;
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  182.         // line 136
  183.         echo "        <script>
  184.             eccube.productsClassCategories = {
  185.                 ";
  186.         // line 138
  187.         $context['_parent'] = $context;
  188.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'138$this->source); })()));
  189.         $context['loop'] = [
  190.           'parent' => $context['_parent'],
  191.           'index0' => 0,
  192.           'index'  => 1,
  193.           'first'  => true,
  194.         ];
  195.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  196.             $length count($context['_seq']);
  197.             $context['loop']['revindex0'] = $length 1;
  198.             $context['loop']['revindex'] = $length;
  199.             $context['loop']['length'] = $length;
  200.             $context['loop']['last'] = === $length;
  201.         }
  202.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  203.             // line 139
  204.             echo "                \"";
  205.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue139), 139$this->source), "js"), "html"nulltrue);
  206.             echo "\": ";
  207.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 139$this->source));
  208.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue139) == false)) {
  209.                 echo ", ";
  210.             }
  211.             // line 140
  212.             echo "                ";
  213.             ++$context['loop']['index0'];
  214.             ++$context['loop']['index'];
  215.             $context['loop']['first'] = false;
  216.             if (isset($context['loop']['length'])) {
  217.                 --$context['loop']['revindex0'];
  218.                 --$context['loop']['revindex'];
  219.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  220.             }
  221.         }
  222.         $_parent $context['_parent'];
  223.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  224.         $context array_intersect_key($context$_parent) + $_parent;
  225.         // line 141
  226.         echo "            };
  227.             ";
  228.         // line 143
  229.         $context["current_domain"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'143$this->source); })()), "request", [], "any"falsefalsetrue143), "getHost", [], "method"falsefalsetrue143);
  230.         // line 144
  231.         echo "
  232.             ";
  233.         // line 145
  234.         $context["is_prod"] = twig_in_filter("web-order.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'145$this->source); })()));
  235.         // line 146
  236.         echo "            ";
  237.         $context["is_stg"] = twig_in_filter("web-order-stg.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain"$context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.'146$this->source); })()));
  238.         // line 147
  239.         echo "
  240.             \$(function() {
  241.                 // 表示件数を変更
  242.                 \$('.disp-number').change(function() {
  243.                     var dispNumber = \$(this).val();
  244.                     \$('#disp_number').val(dispNumber);
  245.                     \$('#pageno').val(1);
  246.                     \$(\"#form1\").submit();
  247.                 });
  248.                 // 並び順を変更
  249.                 \$('.order-by').change(function() {
  250.                     var orderBy = \$(this).val();
  251.                     \$('#orderby').val(orderBy);
  252.                     \$('#pageno').val(1);
  253.                     \$(\"#form1\").submit();
  254.                 });
  255.                 \$('.add-cart').on('click', function(e) {
  256.                     var \$form = \$(this).parents('li').find('form');
  257.                     var cartid = \$(this).attr(\"data-cartid\");
  258.                     // 個数フォームのチェック
  259.                     var \$quantity = \$form.parent().find('.quantity');
  260.                     if (\$quantity.val() < 1) {
  261.                         \$quantity[0].setCustomValidity('";
  262.         // line 174
  263.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  264.         echo "');
  265.                         setTimeout(function() {
  266.                             loadingOverlay('hide');
  267.                         }, 100);
  268.                         return true;
  269.                     } else {
  270.                         \$quantity[0].setCustomValidity('');
  271.                     }
  272.                     e.preventDefault();
  273.                     \$.ajax({
  274.                         url: \$form.attr('action'),
  275.                         type: \$form.attr('method'),
  276.                         data: \$form.serialize(),
  277.                         dataType: 'json',
  278.                         beforeSend: function(xhr, settings) {
  279.                             // Buttonを無効にする
  280.                             \$('.add-cart').prop('disabled', true);
  281.                         }
  282.                     }).done(function(data) {
  283.                         // レスポンス内のメッセージをalertで表示
  284.                         \$.each(data.messages, function() {
  285.                             
  286.     var \$cartBtn = \$('div.ec-modal-overlay').find('a.ec-inlineBtn--action');
  287.     \$cartBtn.removeAttr('disabled');
  288.     \$cartBtn.off('click');
  289.     // responseを判別
  290.     if(data.product_id !== undefined) {
  291.         var product_id = data.product_id;
  292.         var under_quantity = data.under_quantity;
  293.         // 最低購入数を下回る場合は、選択数量を最低購入数に変更
  294.         if(\$('#quantity' + product_id).length) {
  295.             \$('#quantity' + product_id).val(under_quantity);
  296.         } else {
  297.             \$('#quantity').val(under_quantity);
  298.         }
  299.         // カートに進むボタンを無効化
  300.         \$cartBtn.attr('disabled', 'disabled');
  301.         \$cartBtn.on('click', function() {
  302.             return false;
  303.         })
  304.     }
  305.     \$('#ec-modal-header').text(this);
  306.                         });
  307.                         \$('.ec-modal').show()
  308.                         // カートブロックを更新する
  309.                         \$.ajax({
  310.                             url: '";
  311.         // line 229
  312.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  313.         echo "',
  314.                             type: 'GET',
  315.                             dataType: 'html'
  316.                         }).done(function(html) {
  317.                             \$('.ec-headerRole__cart').html(html);
  318.                         });
  319.                         \$.ajax({
  320.                             url: '";
  321.         // line 237
  322.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("modal_cart");
  323.         echo "',
  324.                             type: 'GET',
  325.                             dataType: 'html'
  326.                         }).done(function(html) {
  327.                             \$('.ec-Modalfooter__cart').html(html);
  328.                         });
  329.                         \$.ajax({
  330.                             url: '";
  331.         // line 245
  332.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("header_cart_icon");
  333.         echo "',
  334.                             type: 'GET',
  335.                             dataType: 'html'
  336.                         }).done(function(html) {
  337.                             console.log(html)
  338.                             \$('.cart_icon_outer').html(html);
  339.                         });
  340.                         ";
  341.         // line 253
  342.         if ((isset($context["is_prod"]) || array_key_exists("is_prod"$context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.'253$this->source); })())) {
  343.             // line 254
  344.             echo "
  345.                             fbq('track', 'AddToCart', {
  346.                                 content_type: \"Product\",
  347.                                 content_ids: cartid,
  348.                                 contents:
  349.                                     [{
  350.                                         id: cartid,
  351.                                         quantity: 1
  352.                                     }],
  353.                                 content_name: \"\",
  354.                                 currency: \"JPY\",
  355.                                 value: 50,
  356.                             });
  357.                             fbq('trackCustom', 'ce_add_to_cart', {
  358.                                 content_type: \"Product\",
  359.                                 content_ids: cartid,
  360.                                 contents:
  361.                                     [{
  362.                                         id: cartid,
  363.                                         quantity: 1
  364.                                     }],
  365.                                 content_name: \"\",
  366.                                 currency: \"JPY\",
  367.                                 value: 50,
  368.                             });
  369.                             window.dataLayer.push({
  370.                                 event: 'ce_add_to_cart',
  371.                                 custom_event_name: 'ce_add_to_cart',
  372.                                 custom_product_id: cartid,
  373.                                 custom_product_name: '',
  374.                                 custom_quantity: 1,
  375.                                 custom_customer_id: '',
  376.                                 custom_user_agent: \$(\"#user_agent\").val(),
  377.                                 custom_is_ig: \$(\"#is_ig\").val(),
  378.                                 custom_is_line: \$(\"#is_line\").val(),
  379.                                 custom_referer: \$(\"#referer\").val(),
  380.                                 custom_real_ip: \$(\"#real_ip\").val(),
  381.                             });
  382.                             _lt('send', 'cv', {
  383.                                 type: 'add_to_cart'
  384.                             },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  385.                         ";
  386.         }
  387.         // line 300
  388.         echo "
  389.                     }).fail(function(data) {
  390.                         alert('";
  391.         // line 302
  392.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  393.         echo "');
  394.                     }).always(function(data) {
  395.                         // Buttonを有効にする
  396.                         \$('.add-cart').prop('disabled', false);
  397.                     });
  398.                 });
  399.             });
  400.             \$('.ec-modal-wrap').on('click', function(e) {
  401.                 // モーダル内の処理は外側にバブリングさせない
  402.                 e.stopPropagation();
  403.             });
  404.             \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  405.                 \$('.ec-modal').hide()
  406.             });
  407.             // Lineバナークリックイベント
  408.             \$('#line_link_list').on('click', function(event) {
  409.                 const currentPageUrl = window.location.href;
  410.                 fbq('trackCustom', 'ce_click_line_btn', {
  411.                     content_type: \"ClickLineBtn\",
  412.                     content_name: currentPageUrl,
  413.                     value: 50
  414.                 });
  415.                 window.dataLayer.push({
  416.                     event: 'ce_click_line_btn',
  417.                     custom_event_name: 'ce_click_line_btn',
  418.                     custom_page_url: currentPageUrl,
  419.                     custom_customer_id: '',
  420.                     custom_user_agent: \$(\"#user_agent\").val(),
  421.                     custom_is_ig: \$(\"#is_ig\").val(),
  422.                     custom_is_line: \$(\"#is_line\").val(),
  423.                     custom_referer: \$(\"#referer\").val(),
  424.                     custom_real_ip: \$(\"#real_ip\").val(),
  425.                 });
  426.                 _lt('send', 'cv', {
  427.                     type: 'ce_click_line_btn'
  428.                 },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  429.             });
  430.         </script>
  431.     ";
  432.         
  433.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  434.         
  435.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  436.     }
  437.     // line 348
  438.     public function block_main($context, array $blocks = [])
  439.     {
  440.         $macros $this->macros;
  441.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  442.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  443.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  444.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  445.         // line 349
  446.         echo "        ";
  447.         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.'349$this->source); })()), "category_id", [], "any"falsefalsetrue349), "vars", [], "any"falsefalsetrue349), "errors", [], "any"falsefalsetrue349)) > 0)) {
  448.             // line 350
  449.             echo "            <div class=\"ec-searchnavRole\">
  450.                 <p class=\"errormsg text-danger\">";
  451.             // line 351
  452.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  453.             echo "</p>
  454.             </div>
  455.         ";
  456.         } else {
  457.             // line 354
  458.             echo "            <div class=\"ec-searchnavRole\">
  459.                 <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  460.                     ";
  461.             // line 356
  462.             $context['_parent'] = $context;
  463.             $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.'356$this->source); })()));
  464.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  465.                 // line 357
  466.                 echo "                        <input type=\"hidden\" id=\"";
  467.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue357), "id", [], "any"falsefalsetrue357), 357$this->source), "html"nulltrue);
  468.                 echo "\"
  469.                             name=\"";
  470.                 // line 358
  471.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue358), "full_name", [], "any"falsefalsetrue358), 358$this->source), "html"nulltrue);
  472.                 echo "\"
  473.                             ";
  474.                 // line 359
  475.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue359), "value", [], "any"falsefalsetrue359))) {
  476.                     echo "value=\"";
  477.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue359), "value", [], "any"falsefalsetrue359), 359$this->source), "html"nulltrue);
  478.                     echo "\" ";
  479.                 }
  480.                 echo "/>
  481.                     ";
  482.             }
  483.             $_parent $context['_parent'];
  484.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  485.             $context array_intersect_key($context$_parent) + $_parent;
  486.             // line 361
  487.             echo "                </form>
  488.                 <div class=\"ec-searchnavRole__topicpath\" style=\"\">
  489.                     <ol class=\"ec-topicpath\" style=\"border-top: none; border-bottom: 1px solid #ccc;\">
  490.                         <div class=\"about_shikomel\">
  491.                             <a href=\"https://shikomel.com/\" style=\"color: #337AB7;\" target=\"_blank\">
  492.                                 シコメルとは
  493.                                 <i class=\"far fa-question-circle\" style=\"margin-left: 5px;\"></i>
  494.                             </a>
  495.                         </div>
  496.                         ";
  497.             // line 371
  498.             echo "                        ";
  499.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'371$this->source); })()))) {
  500.                 // line 372
  501.                 echo "                            <div class=\"\" style=\"font-size: 11px; letter-spacing: normal; color: black;\">
  502.                                 <div><a href=\"";
  503.                 // line 373
  504.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  505.                 echo "\" style=\"color: #337ab7;\">ホーム</a> > ";
  506.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'373$this->source); })()), "name", [], "any"falsefalsetrue373), 373$this->source), "html"nulltrue);
  507.                 echo "</div>
  508.                             </div>
  509.                         ";
  510.             } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 375
  511. (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'375$this->source); })()), "vars", [], "any"falsefalsetrue375), "value", [], "any"falsefalsetrue375) && 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.'375$this->source); })()), "vars", [], "any"falsefalsetrue375), "value", [], "any"falsefalsetrue375), "name", [], "any"falsefalsetrue375))) {
  512.                 // line 376
  513.                 echo "                            <div class=\"\" style=\"font-size: 11px; letter-spacing: normal; color: black;\">
  514.                                 <div><a href=\"";
  515.                 // line 377
  516.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  517.                 echo "\" style=\"color: #337ab7;\">ホーム</a> > ";
  518.                 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.'377$this->source); })()), "vars", [], "any"falsefalsetrue377), "value", [], "any"falsefalsetrue377), "name", [], "any"falsefalsetrue377)]), "html"nulltrue);
  519.                 echo "</div>
  520.                             </div>
  521.                         ";
  522.             } else {
  523.                 // line 380
  524.                 echo "                            <div class=\"\" style=\"font-size: 11px; letter-spacing: normal; color: black; max-width: 900px;\">
  525.                                 <div><a href=\"";
  526.                 // line 381
  527.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  528.                 echo "\" style=\"color: #337ab7;\">ホーム</a> > 全ての商品</div>
  529.                             </div>
  530.                         ";
  531.             }
  532.             // line 384
  533.             echo "                    </ol>
  534.                 </div>
  535.                 <div class=\"cu-ec-searchnavRole__infos\" style=\"margin-top: 10px; display: block;\">
  536.                     ";
  537.             // line 387
  538.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'387$this->source); })()))) {
  539.                 // line 388
  540.                 echo "                        ";
  541.                 $context['_parent'] = $context;
  542.                 $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.'388$this->source); })()), "path", [], "any"falsefalsetrue388));
  543.                 $context['loop'] = [
  544.                   'parent' => $context['_parent'],
  545.                   'index0' => 0,
  546.                   'index'  => 1,
  547.                   'first'  => true,
  548.                 ];
  549.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  550.                     $length count($context['_seq']);
  551.                     $context['loop']['revindex0'] = $length 1;
  552.                     $context['loop']['revindex'] = $length;
  553.                     $context['loop']['length'] = $length;
  554.                     $context['loop']['last'] = === $length;
  555.                 }
  556.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  557.                     // line 389
  558.                     echo "                            <div class=\"ec-topicpath__item";
  559.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue389)) {
  560.                         echo "--active";
  561.                     }
  562.                     echo "\">
  563.                                 <a href=\"";
  564.                     // line 390
  565.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  566.                     echo "?category_id=";
  567.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue390), 390$this->source), "html"nulltrue);
  568.                     echo "\" style=\"color: black; font-weight: bold; font-size: 14px;\">";
  569.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue390), 390$this->source), "html"nulltrue);
  570.                     echo "</a>
  571.                             </div>
  572.                         ";
  573.                     ++$context['loop']['index0'];
  574.                     ++$context['loop']['index'];
  575.                     $context['loop']['first'] = false;
  576.                     if (isset($context['loop']['length'])) {
  577.                         --$context['loop']['revindex0'];
  578.                         --$context['loop']['revindex'];
  579.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  580.                     }
  581.                 }
  582.                 $_parent $context['_parent'];
  583.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  584.                 $context array_intersect_key($context$_parent) + $_parent;
  585.                 // line 393
  586.                 echo "                    ";
  587.             } elseif ((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.'393$this->source); })()), "vars", [], "any"falsefalsetrue393), "value", [], "any"falsefalsetrue393) && 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.'393$this->source); })()), "vars", [], "any"falsefalsetrue393), "value", [], "any"falsefalsetrue393), "name", [], "any"falsefalsetrue393))) {
  588.                 // line 394
  589.                 echo "                        <div class=\"ec-topicpath__item\" style=\"color: black; font-weight: bold; font-size: 16px;\">";
  590.                 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.'394$this->source); })()), "vars", [], "any"falsefalsetrue394), "value", [], "any"falsefalsetrue394), "name", [], "any"falsefalsetrue394)]), "html"nulltrue);
  591.                 echo "</div>
  592.                     ";
  593.             } else {
  594.                 // line 396
  595.                 echo "                        <div class=\"ec-topicpath__item\" style=\"color: black; font-weight: bold; font-size: 16px;\">全ての商品</div>
  596.                     ";
  597.             }
  598.             // line 398
  599.             echo "                    <div class=\"ec-searchnavRole__counter\" style=\"margin-top: 10px; margin-bottom: 0px; width: 100%;\">
  600.                         ";
  601.             // line 399
  602.             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.'399$this->source); })()), "totalItemCount", [], "any"falsefalsetrue399) > 0)) {
  603.                 // line 400
  604.                 echo "                            ";
  605.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\" style=\"font-size: 13px; font-weight: 500; float: left; line-height: 32px;\">%count%件</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.'400$this->source); })()), "totalItemCount", [], "any"falsefalsetrue400)]);
  606.                 echo "
  607.                             ";
  608.                 // line 401
  609.                 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.'401$this->source); })()), "totalItemCount", [], "any"falsefalsetrue401) > 0)) {
  610.                     // line 402
  611.                     echo "                                <div class=\"ec-searchnavRole__actions\" style=\"width: 100%;\">
  612.                                     <div class=\"ec-select\">
  613.                                         ";
  614.                     // line 405
  615.                     echo "                                        ";
  616.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'405$this->source); })()), "orderby", [], "any"falsefalsetrue405), 405$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  617.                     echo "
  618.                                     </div>
  619.                                 </div>
  620.                             ";
  621.                 }
  622.                 // line 409
  623.                 echo "                        ";
  624.             } else {
  625.                 // line 410
  626.                 echo "                            <span>";
  627.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  628.                 echo "</span>
  629.                         ";
  630.             }
  631.             // line 412
  632.             echo "                    </div>
  633.                 </div>
  634.             </div>
  635.             ";
  636.             // line 415
  637.             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.'415$this->source); })()), "totalItemCount", [], "any"falsefalsetrue415) > 0)) {
  638.                 // line 416
  639.                 echo "                <div class=\"ec-shelfRole\">
  640.                     <ul class=\"ec-shelfGrid\">
  641.                         ";
  642.                 // line 418
  643.                 $context['_parent'] = $context;
  644.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'418$this->source); })()));
  645.                 $context['loop'] = [
  646.                   'parent' => $context['_parent'],
  647.                   'index0' => 0,
  648.                   'index'  => 1,
  649.                   'first'  => true,
  650.                 ];
  651.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  652.                     $length count($context['_seq']);
  653.                     $context['loop']['revindex0'] = $length 1;
  654.                     $context['loop']['revindex'] = $length;
  655.                     $context['loop']['length'] = $length;
  656.                     $context['loop']['last'] = === $length;
  657.                 }
  658.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  659.                     // line 419
  660.                     echo "                            <li class=\"product_li\">
  661.                                 <a href=\"";
  662.                     // line 420
  663.                     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"falsefalsetrue420)]), "html"nulltrue);
  664.                     echo "\">
  665.                                     <div class=\"ec-shelfGrid__item-image\" style=\"margin-bottom: 5px; position: relative; text-align: left;\">
  666.                                         <div>
  667.                                             <img class=\"product_image\" src=\"";
  668.                     // line 423
  669.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsetrue423), 423$this->source)), "save_image"), "html"nulltrue);
  670.                     echo "\" alt=\"";
  671.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue423), 423$this->source), "html"nulltrue);
  672.                     echo "\" ";
  673.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue423) > 5)) {
  674.                         echo " loading=\"lazy\"";
  675.                     }
  676.                     echo ">
  677.                                             ";
  678.                     // line 424
  679.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "is_freeze", [], "any"falsefalsetrue424) == "1")) {
  680.                         // line 425
  681.                         echo "                                            <span class=\"freeze\">冷凍</span>
  682.                                             ";
  683.                     }
  684.                     // line 427
  685.                     echo "                                        </div>
  686.                                         <div class=\"product_info\">
  687.                                             ";
  688.                     // line 430
  689.                     echo "                                            <p class=\"product_info__name\">";
  690.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue430), 430$this->source), "html"nulltrue);
  691.                     echo "</p>
  692.                                             ";
  693.                     // line 432
  694.                     echo "                                            ";
  695.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue432)) {
  696.                         // line 433
  697.                         echo "                                                <p class=\"product_info__description\">";
  698.                         echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue433), 433$this->source));
  699.                         echo "</p>
  700.                                             ";
  701.                     }
  702.                     // line 435
  703.                     echo "                                            ";
  704.                     // line 436
  705.                     echo "                                            <div>
  706.                                                 <span class=\"product_info__unitCost\">";
  707.                     // line 437
  708.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "cost_per_unit", [], "any"falsefalsetrue437), 437$this->source), "html"nulltrue);
  709.                     echo "</span>
  710.                                                 ";
  711.                     // line 438
  712.                     if (twig_get_attribute($this->env$this->source$context["Product"], "cost_per_unit_gram", [], "any"falsefalsetrue438)) {
  713.                         // line 439
  714.                         echo "                                                <span class=\"product_info__gramCost\">(";
  715.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "cost_per_unit_gram", [], "any"falsefalsetrue439), 439$this->source), "html"nulltrue);
  716.                         echo ")</span>
  717.                                                 ";
  718.                     }
  719.                     // line 441
  720.                     echo "                                            </div>
  721.                                             ";
  722.                     // line 443
  723.                     if ( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Max", [], "any"falsefalsetrue443))) {
  724.                         // line 444
  725.                         echo "                                                <span class=\"ec-productRole__priceRegularPrice\" style=\"font-size: 12px;\">通常価格:</span><span class=\"ec-productRole__priceRegularPrice\" style=\"font-size: 14px; text-decoration: line-through;\">";
  726.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsetrue444), 444$this->source)), "html"nulltrue);
  727.                         echo "(<span style=\"font-size: 14px;\">";
  728.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getStandardText", [], "any"falsefalsetrue444), 444$this->source), "html"nulltrue);
  729.                         echo "</span>)</span>
  730.                                                 <p style=\"font-size: 12px; margin: 2px 0px;\" class=\"price02-default\">
  731.                                                     →";
  732.                         // line 446
  733.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue446), 446$this->source)), "html"nulltrue);
  734.                         echo "(<span style=\"font-size: 14px;\">";
  735.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getStandardText", [], "any"falsefalsetrue446), 446$this->source), "html"nulltrue);
  736.                         echo "</span>)
  737.                                                 </p>
  738.                                             ";
  739.                     } else {
  740.                         // line 449
  741.                         echo "                                            <p style=\"font-size: 12px; margin: 2px 0px;\" class=\"price02-default\">
  742.                                                 ";
  743.                         // line 450
  744.                         if ( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getStandardText", [], "any"falsefalsetrue450))) {
  745.                             // line 451
  746.                             echo "                                                    ";
  747.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue451), 451$this->source)), "html"nulltrue);
  748.                             echo "(<span style=\"font-size: 12px;\">";
  749.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getStandardText", [], "any"falsefalsetrue451), 451$this->source), "html"nulltrue);
  750.                             echo "</span>)
  751.                                                 ";
  752.                         } else {
  753.                             // line 453
  754.                             echo "                                                    ";
  755.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue453), 453$this->source)), "html"nulltrue);
  756.                             echo "
  757.                                                 ";
  758.                         }
  759.                         // line 455
  760.                         echo "                                            </p>
  761.                                             ";
  762.                     }
  763.                     // line 457
  764.                     echo "                                            ";
  765.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue457)) {
  766.                         // line 458
  767.                         echo "                                                ";
  768.                         $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.'458$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue458), [], "array"falsefalsetrue458);
  769.                         // line 459
  770.                         echo "                                                <form name=\"form";
  771.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue459), 459$this->source), "html"nulltrue);
  772.                         echo "\" id=\"productForm";
  773.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue459), 459$this->source), "html"nulltrue);
  774.                         echo "\" action=\"";
  775.                         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"falsefalsetrue459)]), "html"nulltrue);
  776.                         echo "\" method=\"post\">
  777.                                                     <div class=\"ec-productRole__actions\">
  778.                                                         <div class=\"ec-numberInput\" style=\"display: none;\"><span>";
  779.                         // line 461
  780.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  781.                         echo "</span>
  782.                                                             ";
  783.                         // line 462
  784.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'462$this->source); })()), "quantity", [], "any"falsefalsetrue462), 462$this->source), 'widget', ["attr" => ["class" => "quantity"]]);
  785.                         echo "
  786.                                                             ";
  787.                         // line 463
  788.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'463$this->source); })()), "quantity", [], "any"falsefalsetrue463), 463$this->source), 'errors');
  789.                         echo "
  790.                                                         </div>
  791.                                                     </div>
  792.                                                     ";
  793.                         // line 466
  794.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'466$this->source); })()), 466$this->source), 'rest');
  795.                         echo "
  796.                                                 </form>
  797.                                                 <div class=\"ec-productRole__btn\">
  798.                                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  799.                         // line 469
  800.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue469), 469$this->source), "html"nulltrue);
  801.                         echo "\" form=\"productForm";
  802.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue469), 469$this->source), "html"nulltrue);
  803.                         echo "\" style=\"height: 38px; font-weight: bold; line-height: 38px; font-size: 14px;\">
  804.                                                         ";
  805.                         // line 470
  806.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加"), "html"nulltrue);
  807.                         echo "
  808.                                                     </button>
  809.                                                 </div>
  810.                                             ";
  811.                     } else {
  812.                         // line 474
  813.                         echo "                                                <div class=\"ec-productRole__btn\">
  814.                                                     <button type=\"button\" class=\"ec-blockBtn--cancel\" disabled=\"disabled\" style=\"height: 35px; font-weight: 500; line-height: normal; font-size: 14px;\">
  815.                                                         ";
  816.                         // line 476
  817.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("只今品切れ中です"), "html"nulltrue);
  818.                         echo "
  819.                                                     </button>
  820.                                                     ";
  821.                         // line 478
  822.                         if (twig_get_attribute($this->env$this->source$context["Product"], "restock_date", [], "any"falsefalsetrue478)) {
  823.                             // line 479
  824.                             echo "                                                        <div>
  825.                                                             <span class=\"restock_date\">※";
  826.                             // line 480
  827.                             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "restock_date", [], "any"falsefalsetrue480), 480$this->source), "Y年n月j日"), "html"nulltrue);
  828.                             echo "に入荷予定</span>
  829.                                                         </div>
  830.                                                     ";
  831.                         }
  832.                         // line 483
  833.                         echo "                                                </div>
  834.                                             ";
  835.                     }
  836.                     // line 485
  837.                     echo "                                        </div>
  838.                                     </div>
  839.                                 </a>
  840.                             </li>
  841.                             <hr class=\"product_hr\">
  842.                         ";
  843.                     ++$context['loop']['index0'];
  844.                     ++$context['loop']['index'];
  845.                     $context['loop']['first'] = false;
  846.                     if (isset($context['loop']['length'])) {
  847.                         --$context['loop']['revindex0'];
  848.                         --$context['loop']['revindex'];
  849.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  850.                     }
  851.                 }
  852.                 $_parent $context['_parent'];
  853.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  854.                 $context array_intersect_key($context$_parent) + $_parent;
  855.                 // line 491
  856.                 echo "                    </ul>
  857.                 </div>
  858.                 <div class=\"ec-modal\">
  859.                     <div class=\"ec-modal-overlay\">
  860.                         <div class=\"ec-modal-wrap\">
  861.                             <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  862.                 // line 496
  863.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  864.                 echo "\" alt=\"\"/></span></span>
  865.                             <div id=\"ec-modal-header\" class=\"text-center\">";
  866.                 // line 497
  867.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  868.                 echo "</div>
  869.                             ";
  870.                 // line 503
  871.                 echo "                            <div class=\"ec-modal-box\">
  872.                                 <div class=\"ec-role\">
  873.                                     <span class=\"ec-inlineBtn--cancel\">";
  874.                 // line 505
  875.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  876.                 echo "</span>
  877.                                     <a href=\"";
  878.                 // line 506
  879.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  880.                 echo "\" class=\"ec-inlineBtn--action\">";
  881.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  882.                 echo "</a>
  883.                                 </div>
  884.                             </div>
  885.                         </div>
  886.                     </div>
  887.                 </div>
  888.                 <div class=\"ec-pagerRole\">
  889.                     ";
  890.                 // line 513
  891.                 $this->loadTemplate("pager.twig""__string_template__12e3675cc30ec61b82a59cb82d6f8b3a"513)->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.'513$this->source); })()), "paginationData", [], "any"falsefalsetrue513)]));
  892.                 // line 514
  893.                 echo "                </div>
  894.             ";
  895.             }
  896.             // line 516
  897.             echo "        ";
  898.         }
  899.         // line 517
  900.         echo "    ";
  901.         
  902.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  903.         
  904.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  905.     }
  906.     public function getTemplateName()
  907.     {
  908.         return "__string_template__12e3675cc30ec61b82a59cb82d6f8b3a";
  909.     }
  910.     public function isTraitable()
  911.     {
  912.         return false;
  913.     }
  914.     public function getDebugInfo()
  915.     {
  916.         return array (  973 => 517,  970 => 516,  966 => 514,  964 => 513,  952 => 506,  948 => 505,  944 => 503,  940 => 497,  936 => 496,  929 => 491,  910 => 485,  906 => 483,  900 => 480,  897 => 479,  895 => 478,  890 => 476,  886 => 474,  879 => 470,  873 => 469,  867 => 466,  861 => 463,  857 => 462,  853 => 461,  843 => 459,  840 => 458,  837 => 457,  833 => 455,  827 => 453,  819 => 451,  817 => 450,  814 => 449,  806 => 446,  798 => 444,  796 => 443,  792 => 441,  786 => 439,  784 => 438,  780 => 437,  777 => 436,  775 => 435,  769 => 433,  766 => 432,  761 => 430,  757 => 427,  753 => 425,  751 => 424,  741 => 423,  735 => 420,  732 => 419,  715 => 418,  711 => 416,  709 => 415,  704 => 412,  698 => 410,  695 => 409,  687 => 405,  683 => 402,  681 => 401,  676 => 400,  674 => 399,  671 => 398,  667 => 396,  661 => 394,  658 => 393,  637 => 390,  630 => 389,  612 => 388,  610 => 387,  605 => 384,  599 => 381,  596 => 380,  588 => 377,  585 => 376,  583 => 375,  576 => 373,  573 => 372,  570 => 371,  559 => 361,  547 => 359,  543 => 358,  538 => 357,  534 => 356,  530 => 354,  524 => 351,  521 => 350,  518 => 349,  508 => 348,  453 => 302,  449 => 300,  401 => 254,  399 => 253,  388 => 245,  377 => 237,  366 => 229,  308 => 174,  279 => 147,  276 => 146,  274 => 145,  271 => 144,  269 => 143,  265 => 141,  251 => 140,  243 => 139,  226 => 138,  222 => 136,  212 => 135,  75 => 2,  65 => 1,  54 => 131,  52 => 133,  39 => 131,);
  917.     }
  918.     public function getSourceContext()
  919.     {
  920.         return new Source("    {% block stylesheet %}
  921.         <style>
  922.             .ec-blockBtn--action {
  923.                 background-color: #E65F6E;
  924.                 border-radius: 5px;
  925.             }
  926.             .ec-blockBtn--cancel {
  927.                 border-radius: 5px;
  928.             }
  929.             .freeze {
  930.                 position: absolute;
  931.                 top: 5px;
  932.                 left: 5px;
  933.                 width: 40px;
  934.                 line-height: 1em;
  935.                 padding: 5px 0;
  936.                 background-color: #00B0EC;
  937.                 color: white;
  938.                 text-align: center;
  939.                 font-size: 10px;
  940.                 font-weight: 700;
  941.                 border-radius: 5px;
  942.                 margin-bottom: 5px;
  943.             }
  944.             .original {
  945.                 position: absolute;
  946.                 top: 5px;
  947.                 left: 50px;
  948.                 width: 60px;
  949.                 line-height: 1em;
  950.                 padding: 5px 0;
  951.                 background-color: #fff100;
  952.                 color: black;
  953.                 text-align: center;
  954.                 font-size: 10px;
  955.                 font-weight: 700;
  956.                 border-radius: 5px;
  957.                 margin-bottom: 5px;
  958.             }
  959.             .ec-select {
  960.                 margin-bottom: 5px;
  961.             }
  962.             .ec-select select {
  963.                 font-size: 12px;
  964.             }
  965.             .ec-shelfRole img.product_image {
  966.                 float: left;
  967.                 width: 40%;
  968.                 object-fit: cover;
  969.                 height: 120px;
  970.             }
  971.             .product_info {
  972.                 width: 60%; float: inline-end; padding-left: 5px;
  973.             }
  974.             .product_hr {
  975.                 width: 100%; color: #DDDDDD;
  976.             }
  977.             .about_shikomel {
  978.                 font-size: 14px; letter-spacing: normal; color: black; max-width: 120px; float: inline-end; display: none; font-weight: bold;
  979.             }
  980.             .restock_date {
  981.                 font-size: 13px; 
  982.                 color: #E65F6E;
  983.                 font-weight: 600;    
  984.             }
  985.             /* PC(画面幅768px以上)の場合 */
  986.             @media screen and (min-width: 768px) {
  987.                 .ec-shelfGrid {
  988.                     margin-left: 0px;
  989.                     margin-right: 0px;
  990.                 }
  991.                 .ec-shelfRole img.product_image {
  992.                     width: 100%;
  993.                     height: auto;
  994.                 }
  995.                 .product_li {
  996.                     width: 25%;
  997.                     margin-bottom: 15px;
  998.                 }
  999.                 .product_li:nth-of-type(4n + 1) {
  1000.                     padding-left: 0px;
  1001.                     padding-right: 14px;
  1002.                 }
  1003.                 .product_li:nth-of-type(4n + 2) {
  1004.                     padding-left: 0px;
  1005.                     padding-right: 7px;
  1006.                 }
  1007.                 .product_li:nth-of-type(4n + 3) {
  1008.                     padding-left: 7px;
  1009.                     padding-right: 0px;
  1010.                 }
  1011.                 .product_li:nth-of-type(4n + 4) {
  1012.                     padding-left: 14px;
  1013.                     padding-right: 0px;
  1014.                 }
  1015.                 .product_info {
  1016.                     width: 100%;
  1017.                     padding-left: 0px;
  1018.                     margin-top: 10px;
  1019.                 }
  1020.                 .product_hr {
  1021.                     display: none;
  1022.                 }
  1023.                 .about_shikomel {
  1024.                     display: block;
  1025.                 }
  1026.             }
  1027.         </style>
  1028.     {% endblock %}
  1029.     {% extends 'default_frame.twig' %}
  1030.     {% set body_class = 'product_page' %}
  1031.     {% block javascript %}
  1032.         <script>
  1033.             eccube.productsClassCategories = {
  1034.                 {% for Product in pagination %}
  1035.                 \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  1036.                 {% endfor %}
  1037.             };
  1038.             {% set current_domain = app.request.getHost() %}
  1039.             {% set is_prod = 'web-order.shikomel.com' in current_domain %}
  1040.             {% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
  1041.             \$(function() {
  1042.                 // 表示件数を変更
  1043.                 \$('.disp-number').change(function() {
  1044.                     var dispNumber = \$(this).val();
  1045.                     \$('#disp_number').val(dispNumber);
  1046.                     \$('#pageno').val(1);
  1047.                     \$(\"#form1\").submit();
  1048.                 });
  1049.                 // 並び順を変更
  1050.                 \$('.order-by').change(function() {
  1051.                     var orderBy = \$(this).val();
  1052.                     \$('#orderby').val(orderBy);
  1053.                     \$('#pageno').val(1);
  1054.                     \$(\"#form1\").submit();
  1055.                 });
  1056.                 \$('.add-cart').on('click', function(e) {
  1057.                     var \$form = \$(this).parents('li').find('form');
  1058.                     var cartid = \$(this).attr(\"data-cartid\");
  1059.                     // 個数フォームのチェック
  1060.                     var \$quantity = \$form.parent().find('.quantity');
  1061.                     if (\$quantity.val() < 1) {
  1062.                         \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  1063.                         setTimeout(function() {
  1064.                             loadingOverlay('hide');
  1065.                         }, 100);
  1066.                         return true;
  1067.                     } else {
  1068.                         \$quantity[0].setCustomValidity('');
  1069.                     }
  1070.                     e.preventDefault();
  1071.                     \$.ajax({
  1072.                         url: \$form.attr('action'),
  1073.                         type: \$form.attr('method'),
  1074.                         data: \$form.serialize(),
  1075.                         dataType: 'json',
  1076.                         beforeSend: function(xhr, settings) {
  1077.                             // Buttonを無効にする
  1078.                             \$('.add-cart').prop('disabled', true);
  1079.                         }
  1080.                     }).done(function(data) {
  1081.                         // レスポンス内のメッセージをalertで表示
  1082.                         \$.each(data.messages, function() {
  1083.                             
  1084.     var \$cartBtn = \$('div.ec-modal-overlay').find('a.ec-inlineBtn--action');
  1085.     \$cartBtn.removeAttr('disabled');
  1086.     \$cartBtn.off('click');
  1087.     // responseを判別
  1088.     if(data.product_id !== undefined) {
  1089.         var product_id = data.product_id;
  1090.         var under_quantity = data.under_quantity;
  1091.         // 最低購入数を下回る場合は、選択数量を最低購入数に変更
  1092.         if(\$('#quantity' + product_id).length) {
  1093.             \$('#quantity' + product_id).val(under_quantity);
  1094.         } else {
  1095.             \$('#quantity').val(under_quantity);
  1096.         }
  1097.         // カートに進むボタンを無効化
  1098.         \$cartBtn.attr('disabled', 'disabled');
  1099.         \$cartBtn.on('click', function() {
  1100.             return false;
  1101.         })
  1102.     }
  1103.     \$('#ec-modal-header').text(this);
  1104.                         });
  1105.                         \$('.ec-modal').show()
  1106.                         // カートブロックを更新する
  1107.                         \$.ajax({
  1108.                             url: '{{ url('block_cart') }}',
  1109.                             type: 'GET',
  1110.                             dataType: 'html'
  1111.                         }).done(function(html) {
  1112.                             \$('.ec-headerRole__cart').html(html);
  1113.                         });
  1114.                         \$.ajax({
  1115.                             url: '{{ url('modal_cart') }}',
  1116.                             type: 'GET',
  1117.                             dataType: 'html'
  1118.                         }).done(function(html) {
  1119.                             \$('.ec-Modalfooter__cart').html(html);
  1120.                         });
  1121.                         \$.ajax({
  1122.                             url: '{{ url('header_cart_icon') }}',
  1123.                             type: 'GET',
  1124.                             dataType: 'html'
  1125.                         }).done(function(html) {
  1126.                             console.log(html)
  1127.                             \$('.cart_icon_outer').html(html);
  1128.                         });
  1129.                         {% if is_prod %}
  1130.                             fbq('track', 'AddToCart', {
  1131.                                 content_type: \"Product\",
  1132.                                 content_ids: cartid,
  1133.                                 contents:
  1134.                                     [{
  1135.                                         id: cartid,
  1136.                                         quantity: 1
  1137.                                     }],
  1138.                                 content_name: \"\",
  1139.                                 currency: \"JPY\",
  1140.                                 value: 50,
  1141.                             });
  1142.                             fbq('trackCustom', 'ce_add_to_cart', {
  1143.                                 content_type: \"Product\",
  1144.                                 content_ids: cartid,
  1145.                                 contents:
  1146.                                     [{
  1147.                                         id: cartid,
  1148.                                         quantity: 1
  1149.                                     }],
  1150.                                 content_name: \"\",
  1151.                                 currency: \"JPY\",
  1152.                                 value: 50,
  1153.                             });
  1154.                             window.dataLayer.push({
  1155.                                 event: 'ce_add_to_cart',
  1156.                                 custom_event_name: 'ce_add_to_cart',
  1157.                                 custom_product_id: cartid,
  1158.                                 custom_product_name: '',
  1159.                                 custom_quantity: 1,
  1160.                                 custom_customer_id: '',
  1161.                                 custom_user_agent: \$(\"#user_agent\").val(),
  1162.                                 custom_is_ig: \$(\"#is_ig\").val(),
  1163.                                 custom_is_line: \$(\"#is_line\").val(),
  1164.                                 custom_referer: \$(\"#referer\").val(),
  1165.                                 custom_real_ip: \$(\"#real_ip\").val(),
  1166.                             });
  1167.                             _lt('send', 'cv', {
  1168.                                 type: 'add_to_cart'
  1169.                             },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  1170.                         {% endif %}
  1171.                     }).fail(function(data) {
  1172.                         alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1173.                     }).always(function(data) {
  1174.                         // Buttonを有効にする
  1175.                         \$('.add-cart').prop('disabled', false);
  1176.                     });
  1177.                 });
  1178.             });
  1179.             \$('.ec-modal-wrap').on('click', function(e) {
  1180.                 // モーダル内の処理は外側にバブリングさせない
  1181.                 e.stopPropagation();
  1182.             });
  1183.             \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1184.                 \$('.ec-modal').hide()
  1185.             });
  1186.             // Lineバナークリックイベント
  1187.             \$('#line_link_list').on('click', function(event) {
  1188.                 const currentPageUrl = window.location.href;
  1189.                 fbq('trackCustom', 'ce_click_line_btn', {
  1190.                     content_type: \"ClickLineBtn\",
  1191.                     content_name: currentPageUrl,
  1192.                     value: 50
  1193.                 });
  1194.                 window.dataLayer.push({
  1195.                     event: 'ce_click_line_btn',
  1196.                     custom_event_name: 'ce_click_line_btn',
  1197.                     custom_page_url: currentPageUrl,
  1198.                     custom_customer_id: '',
  1199.                     custom_user_agent: \$(\"#user_agent\").val(),
  1200.                     custom_is_ig: \$(\"#is_ig\").val(),
  1201.                     custom_is_line: \$(\"#is_line\").val(),
  1202.                     custom_referer: \$(\"#referer\").val(),
  1203.                     custom_real_ip: \$(\"#real_ip\").val(),
  1204.                 });
  1205.                 _lt('send', 'cv', {
  1206.                     type: 'ce_click_line_btn'
  1207.                 },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  1208.             });
  1209.         </script>
  1210.     {% endblock %}
  1211.     {% block main %}
  1212.         {% if search_form.category_id.vars.errors|length > 0 %}
  1213.             <div class=\"ec-searchnavRole\">
  1214.                 <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  1215.             </div>
  1216.         {% else %}
  1217.             <div class=\"ec-searchnavRole\">
  1218.                 <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  1219.                     {% for item in search_form %}
  1220.                         <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  1221.                             name=\"{{ item.vars.full_name }}\"
  1222.                             {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  1223.                     {% endfor %}
  1224.                 </form>
  1225.                 <div class=\"ec-searchnavRole__topicpath\" style=\"\">
  1226.                     <ol class=\"ec-topicpath\" style=\"border-top: none; border-bottom: 1px solid #ccc;\">
  1227.                         <div class=\"about_shikomel\">
  1228.                             <a href=\"https://shikomel.com/\" style=\"color: #337AB7;\" target=\"_blank\">
  1229.                                 シコメルとは
  1230.                                 <i class=\"far fa-question-circle\" style=\"margin-left: 5px;\"></i>
  1231.                             </a>
  1232.                         </div>
  1233.                         {# パンくず #}
  1234.                         {% if Category is not null %}
  1235.                             <div class=\"\" style=\"font-size: 11px; letter-spacing: normal; color: black;\">
  1236.                                 <div><a href=\"{{ url('homepage') }}\" style=\"color: #337ab7;\">ホーム</a> > {{ Category.name }}</div>
  1237.                             </div>
  1238.                         {% elseif search_form.vars.value and search_form.vars.value.name %}
  1239.                             <div class=\"\" style=\"font-size: 11px; letter-spacing: normal; color: black;\">
  1240.                                 <div><a href=\"{{ url('homepage') }}\" style=\"color: #337ab7;\">ホーム</a> > {{ '「%name%」に一致する商品一覧'|trans({ '%name%': search_form.vars.value.name }) }}</div>
  1241.                             </div>
  1242.                         {% else %}
  1243.                             <div class=\"\" style=\"font-size: 11px; letter-spacing: normal; color: black; max-width: 900px;\">
  1244.                                 <div><a href=\"{{ url('homepage') }}\" style=\"color: #337ab7;\">ホーム</a> > 全ての商品</div>
  1245.                             </div>
  1246.                         {% endif %}
  1247.                     </ol>
  1248.                 </div>
  1249.                 <div class=\"cu-ec-searchnavRole__infos\" style=\"margin-top: 10px; display: block;\">
  1250.                     {% if Category is not null %}
  1251.                         {% for Path in Category.path %}
  1252.                             <div class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\">
  1253.                                 <a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\" style=\"color: black; font-weight: bold; font-size: 14px;\">{{ Path.name }}</a>
  1254.                             </div>
  1255.                         {% endfor %}
  1256.                     {% elseif search_form.vars.value and search_form.vars.value.name %}
  1257.                         <div class=\"ec-topicpath__item\" style=\"color: black; font-weight: bold; font-size: 16px;\">{{ '「%name%」に一致する商品一覧'|trans({ '%name%': search_form.vars.value.name }) }}</div>
  1258.                     {% else %}
  1259.                         <div class=\"ec-topicpath__item\" style=\"color: black; font-weight: bold; font-size: 16px;\">全ての商品</div>
  1260.                     {% endif %}
  1261.                     <div class=\"ec-searchnavRole__counter\" style=\"margin-top: 10px; margin-bottom: 0px; width: 100%;\">
  1262.                         {% if pagination.totalItemCount > 0 %}
  1263.                             {{ '<span class=\"ec-font-bold\" style=\"font-size: 13px; font-weight: 500; float: left; line-height: 32px;\">%count%件</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1264.                             {% if pagination.totalItemCount > 0 %}
  1265.                                 <div class=\"ec-searchnavRole__actions\" style=\"width: 100%;\">
  1266.                                     <div class=\"ec-select\">
  1267.                                         {# {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }} #}
  1268.                                         {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  1269.                                     </div>
  1270.                                 </div>
  1271.                             {% endif %}
  1272.                         {% else %}
  1273.                             <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1274.                         {% endif %}
  1275.                     </div>
  1276.                 </div>
  1277.             </div>
  1278.             {% if pagination.totalItemCount > 0 %}
  1279.                 <div class=\"ec-shelfRole\">
  1280.                     <ul class=\"ec-shelfGrid\">
  1281.                         {% for Product in pagination %}
  1282.                             <li class=\"product_li\">
  1283.                                 <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1284.                                     <div class=\"ec-shelfGrid__item-image\" style=\"margin-bottom: 5px; position: relative; text-align: left;\">
  1285.                                         <div>
  1286.                                             <img class=\"product_image\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1287.                                             {% if Product.is_freeze == \"1\" %}
  1288.                                             <span class=\"freeze\">冷凍</span>
  1289.                                             {% endif %}
  1290.                                         </div>
  1291.                                         <div class=\"product_info\">
  1292.                                             {# 商品名 #}
  1293.                                             <p class=\"product_info__name\">{{ Product.name }}</p>
  1294.                                             {# 商品説明_一覧 #}
  1295.                                             {% if Product.description_list %}
  1296.                                                 <p class=\"product_info__description\">{{ Product.description_list|raw|nl2br }}</p>
  1297.                                             {% endif %}
  1298.                                             {# gあたり単価 #}
  1299.                                             <div>
  1300.                                                 <span class=\"product_info__unitCost\">{{ Product.cost_per_unit }}</span>
  1301.                                                 {% if Product.cost_per_unit_gram %}
  1302.                                                 <span class=\"product_info__gramCost\">({{ Product.cost_per_unit_gram }})</span>
  1303.                                                 {% endif %}
  1304.                                             </div>
  1305.                                             {% if Product.getPrice01Max is not null %}
  1306.                                                 <span class=\"ec-productRole__priceRegularPrice\" style=\"font-size: 12px;\">通常価格:</span><span class=\"ec-productRole__priceRegularPrice\" style=\"font-size: 14px; text-decoration: line-through;\">{{ Product.getPrice01IncTaxMin|price }}(<span style=\"font-size: 14px;\">{{ Product.getStandardText }}</span>)</span>
  1307.                                                 <p style=\"font-size: 12px; margin: 2px 0px;\" class=\"price02-default\">
  1308.                                                     →{{ Product.getPrice02IncTaxMin|price }}(<span style=\"font-size: 14px;\">{{ Product.getStandardText }}</span>)
  1309.                                                 </p>
  1310.                                             {% else %}
  1311.                                             <p style=\"font-size: 12px; margin: 2px 0px;\" class=\"price02-default\">
  1312.                                                 {% if Product.getStandardText is not null %}
  1313.                                                     {{ Product.getPrice02IncTaxMin|price }}(<span style=\"font-size: 12px;\">{{ Product.getStandardText }}</span>)
  1314.                                                 {% else %}
  1315.                                                     {{ Product.getPrice02IncTaxMin|price }}
  1316.                                                 {% endif %}
  1317.                                             </p>
  1318.                                             {% endif %}
  1319.                                             {% if Product.stock_find %}
  1320.                                                 {% set form = forms[Product.id] %}
  1321.                                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1322.                                                     <div class=\"ec-productRole__actions\">
  1323.                                                         <div class=\"ec-numberInput\" style=\"display: none;\"><span>{{ '数量'|trans }}</span>
  1324.                                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  1325.                                                             {{ form_errors(form.quantity) }}
  1326.                                                         </div>
  1327.                                                     </div>
  1328.                                                     {{ form_rest(form) }}
  1329.                                                 </form>
  1330.                                                 <div class=\"ec-productRole__btn\">
  1331.                                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\" style=\"height: 38px; font-weight: bold; line-height: 38px; font-size: 14px;\">
  1332.                                                         {{ 'カートに追加'|trans }}
  1333.                                                     </button>
  1334.                                                 </div>
  1335.                                             {% else %}
  1336.                                                 <div class=\"ec-productRole__btn\">
  1337.                                                     <button type=\"button\" class=\"ec-blockBtn--cancel\" disabled=\"disabled\" style=\"height: 35px; font-weight: 500; line-height: normal; font-size: 14px;\">
  1338.                                                         {{ '只今品切れ中です'|trans }}
  1339.                                                     </button>
  1340.                                                     {% if Product.restock_date %}
  1341.                                                         <div>
  1342.                                                             <span class=\"restock_date\">※{{ Product.restock_date|date('Y年n月j日') }}に入荷予定</span>
  1343.                                                         </div>
  1344.                                                     {% endif %}
  1345.                                                 </div>
  1346.                                             {% endif %}
  1347.                                         </div>
  1348.                                     </div>
  1349.                                 </a>
  1350.                             </li>
  1351.                             <hr class=\"product_hr\">
  1352.                         {% endfor %}
  1353.                     </ul>
  1354.                 </div>
  1355.                 <div class=\"ec-modal\">
  1356.                     <div class=\"ec-modal-overlay\">
  1357.                         <div class=\"ec-modal-wrap\">
  1358.                             <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1359.                             <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1360.                             {# <a href=\"https://liff.line.me/2006048095-AboZKM5Z/landing?follow=%40417jidxq&lp=sUu5Yu&liff_id=2006048095-AboZKM5Z\" id=\"line_link_list\">
  1361.                                 <div style=\"margin: auto; text-align: center; margin-top: 20px;\">
  1362.                                     <img src=\"{{ asset('assets/img/common/line_banner_float_3000.webp', 'user_data') }}\" alt=\"Line Banner\" style=\"margin: auto; width: 180px;\">
  1363.                                 </div>
  1364.                             </a> #}
  1365.                             <div class=\"ec-modal-box\">
  1366.                                 <div class=\"ec-role\">
  1367.                                     <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1368.                                     <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1369.                                 </div>
  1370.                             </div>
  1371.                         </div>
  1372.                     </div>
  1373.                 </div>
  1374.                 <div class=\"ec-pagerRole\">
  1375.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1376.                 </div>
  1377.             {% endif %}
  1378.         {% endif %}
  1379.     {% endblock %}
  1380. ""__string_template__12e3675cc30ec61b82a59cb82d6f8b3a""");
  1381.     }
  1382.     
  1383.     public function checkSecurity()
  1384.     {
  1385.         static $tags = array("set" => 133"for" => 138"if" => 139"include" => 513);
  1386.         static $filters = array("escape" => 139"raw" => 139"trans" => 174"length" => 349"no_image_product" => 423"nl2br" => 433"price" => 444"date" => 480);
  1387.         static $functions = array("class_categories_as_json" => 139"url" => 229"form_widget" => 405"asset" => 423"form_errors" => 463"form_rest" => 466);
  1388.         try {
  1389.             $this->sandbox->checkSecurity(
  1390.                 ['set''for''if''include'],
  1391.                 ['escape''raw''trans''length''no_image_product''nl2br''price''date'],
  1392.                 ['class_categories_as_json''url''form_widget''asset''form_errors''form_rest']
  1393.             );
  1394.         } catch (SecurityError $e) {
  1395.             $e->setSourceContext($this->source);
  1396.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1397.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1398.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1399.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1400.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1401.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1402.             }
  1403.             throw $e;
  1404.         }
  1405.     }
  1406. }