var/cache/dev/twig/f1/f146e15319186ae0f14987a4cd168bb8.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. /* Product/list.twig */
  14. class __TwigTemplate_df89c436444538401df3edcb414b75c9 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  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 11
  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""Product/list.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  42.         // line 13
  43.         $context["body_class"] = "product_page";
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  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 15
  53.     public function block_javascript($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""javascript"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 16
  61.         echo "    <script>
  62.         eccube.productsClassCategories = {
  63.             ";
  64.         // line 18
  65.         $context['_parent'] = $context;
  66.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  67.         $context['loop'] = [
  68.           'parent' => $context['_parent'],
  69.           'index0' => 0,
  70.           'index'  => 1,
  71.           'first'  => true,
  72.         ];
  73.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  74.             $length count($context['_seq']);
  75.             $context['loop']['revindex0'] = $length 1;
  76.             $context['loop']['revindex'] = $length;
  77.             $context['loop']['length'] = $length;
  78.             $context['loop']['last'] = === $length;
  79.         }
  80.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  81.             // line 19
  82.             echo "            \"";
  83.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue19), 19$this->source), "js"), "html"nulltrue);
  84.             echo "\": ";
  85.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19$this->source));
  86.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue19) == false)) {
  87.                 echo ", ";
  88.             }
  89.             // line 20
  90.             echo "            ";
  91.             ++$context['loop']['index0'];
  92.             ++$context['loop']['index'];
  93.             $context['loop']['first'] = false;
  94.             if (isset($context['loop']['length'])) {
  95.                 --$context['loop']['revindex0'];
  96.                 --$context['loop']['revindex'];
  97.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  98.             }
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 21
  104.         echo "        };
  105.         \$(function() {
  106.             // 表示件数を変更
  107.             \$('.disp-number').change(function() {
  108.                 var dispNumber = \$(this).val();
  109.                 \$('#disp_number').val(dispNumber);
  110.                 \$('#pageno').val(1);
  111.                 \$(\"#form1\").submit();
  112.             });
  113.             // 並び順を変更
  114.             \$('.order-by').change(function() {
  115.                 var orderBy = \$(this).val();
  116.                 \$('#orderby').val(orderBy);
  117.                 \$('#pageno').val(1);
  118.                 \$(\"#form1\").submit();
  119.             });
  120.             \$('.add-cart').on('click', function(e) {
  121.                 var \$form = \$(this).parents('li').find('form');
  122.                 // 個数フォームのチェック
  123.                 var \$quantity = \$form.parent().find('.quantity');
  124.                 if (\$quantity.val() < 1) {
  125.                     \$quantity[0].setCustomValidity('";
  126.         // line 47
  127.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.invalid_quantity"), "html"nulltrue);
  128.         echo "');
  129.                     setTimeout(function() {
  130.                         loadingOverlay('hide');
  131.                     }, 100);
  132.                     return true;
  133.                 } else {
  134.                     \$quantity[0].setCustomValidity('');
  135.                 }
  136.                 e.preventDefault();
  137.                 \$.ajax({
  138.                     url: \$form.attr('action'),
  139.                     type: \$form.attr('method'),
  140.                     data: \$form.serialize(),
  141.                     dataType: 'json',
  142.                     beforeSend: function(xhr, settings) {
  143.                         // Buttonを無効にする
  144.                         \$('.add-cart').prop('disabled', true);
  145.                     }
  146.                 }).done(function(data) {
  147.                     // レスポンス内のメッセージをalertで表示
  148.                     \$.each(data.messages, function() {
  149.                         \$('#ec-modal-header').text(this);
  150.                     });
  151.                     \$('.ec-modal').show()
  152.                     // カートブロックを更新する
  153.                     \$.ajax({
  154.                         url: '";
  155.         // line 75
  156.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  157.         echo "',
  158.                         type: 'GET',
  159.                         dataType: 'html'
  160.                     }).done(function(html) {
  161.                         \$('.ec-headerRole__cart').html(html);
  162.                     });
  163.                 }).fail(function(data) {
  164.                     alert('";
  165.         // line 82
  166.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_error"), "html"nulltrue);
  167.         echo "');
  168.                 }).always(function(data) {
  169.                     // Buttonを有効にする
  170.                     \$('.add-cart').prop('disabled', false);
  171.                 });
  172.             });
  173.         });
  174.         \$('.ec-modal-wrap').on('click', function(e) {
  175.             // モーダル内の処理は外側にバブリングさせない
  176.             e.stopPropagation();
  177.         });
  178.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  179.             \$('.ec-modal').hide()
  180.         });
  181.     </script>
  182. ";
  183.         
  184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  185.         
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  187.     }
  188.     // line 101
  189.     public function block_stylesheet($context, array $blocks = [])
  190.     {
  191.         $macros $this->macros;
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  196.         // line 102
  197.         echo "    <style>
  198.     
  199. @media only screen and (min-width: 768px) {
  200.     .ec-topicpath {
  201.         padding: 10px 0 5px;
  202.         font-size: 14px;
  203.     }
  204.     }
  205. @media only screen and (min-width: 768px) {
  206.     .ec-searchnavRole .ec-searchnavRole__infos {
  207.         border-top: 1px solid #ccc;
  208.         padding-top: 10px;
  209.     }
  210.     }
  211. .ec-shelfGrid {
  212.             display: flex;
  213.             flex-wrap: wrap;
  214. }
  215. .ec-shelfGrid li{
  216.             width: 100%;
  217. }
  218. @media (min-width: 768px) {
  219. .ec-shelfGrid li{
  220.             width: 50%;
  221. }
  222. }
  223. .product_name{
  224.     color: #596f00; 
  225.     font-size: 20px;
  226.     font-weight: 600;
  227.     margin-top: 10px;
  228.     margin-bottom: 30px;
  229.     padding-top: 8px;
  230.     border-top: 2px solid #abcd03;
  231. }
  232. @media only screen and (min-width: 768px) {
  233. .product_name{
  234.     font-size: 24px;
  235. }
  236. }
  237. .price02-default{
  238.     margin-bottom: 5px;
  239. }
  240. @media only screen and (min-width: 768px) {
  241. .price02-default{
  242.     font-size: 18px;
  243.     margin-bottom: 10px;
  244. }
  245. }
  246. .ec-shelfGrid__item .elementor-button span {
  247.     text-decoration: inherit;
  248.     display: inline-block;
  249. }
  250. .ec-shelfGrid__item .elementor-button {
  251.     display: flex;
  252.     justify-content: center;
  253.     align-items: center;
  254.     margin: 0 auto;
  255.     display: inline-block;
  256.     line-height: 1;
  257.     font-size: 20px;
  258.     font-weight: bold;
  259.     border-radius: 3px;
  260.     color: #fff;
  261.     fill: #fff;
  262.     text-align: center;
  263.     transition: all .3s;
  264.     background-color: #000000;
  265.     width: 100%;
  266.     max-width: 420px;
  267.     max-height: 60px;
  268.     padding-top: 20px;
  269.     padding-bottom: 20px;
  270. }
  271. @media only screen and (max-width: 768px) {
  272.     .ec-shelfGrid__item .elementor-button {
  273.         font-size: 15px;
  274.         padding: 20px 22px;
  275.         width: 100%;
  276.         max-width: 100%;
  277.         height: 100%;
  278.         display: flex;
  279.         justify-content: center;
  280.         align-items: center;
  281.         text-align: center;
  282.     }
  283. }
  284.     </style>
  285.   
  286. ";
  287.         
  288.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  289.         
  290.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  291.     }
  292.     // line 209
  293.     public function block_main($context, array $blocks = [])
  294.     {
  295.         $macros $this->macros;
  296.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  297.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  298.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  299.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  300.         // line 210
  301.         echo "
  302.     <div class=\"ec-role\">
  303.         <div class=\"ec-pageHeader\">
  304.             <h1 class=\"km_pagetitle\">販売中の古墳</h1>
  305.         </div>
  306.     </div>
  307.     ";
  308.         // line 217
  309.         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.'217$this->source); })()), "category_id", [], "any"falsefalsetrue217), "vars", [], "any"falsefalsetrue217), "errors", [], "any"falsefalsetrue217)) > 0)) {
  310.             // line 218
  311.             echo "        <div class=\"ec-searchnavRole\">
  312.             <p class=\"errormsg text-danger\">";
  313.             // line 219
  314.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search__category_not_found"), "html"nulltrue);
  315.             echo "</p>
  316.         </div>
  317.     ";
  318.         } else {
  319.             // line 222
  320.             echo "        <div class=\"ec-searchnavRole\">
  321.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  322.                 ";
  323.             // line 224
  324.             $context['_parent'] = $context;
  325.             $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.'224$this->source); })()));
  326.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  327.                 // line 225
  328.                 echo "                    <input type=\"hidden\" id=\"";
  329.                 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"falsefalsetrue225), "id", [], "any"falsefalsetrue225), 225$this->source), "html"nulltrue);
  330.                 echo "\"
  331.                            name=\"";
  332.                 // line 226
  333.                 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"falsefalsetrue226), "full_name", [], "any"falsefalsetrue226), 226$this->source), "html"nulltrue);
  334.                 echo "\"
  335.                            ";
  336.                 // line 227
  337.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue227), "value", [], "any"falsefalsetrue227))) {
  338.                     echo "value=\"";
  339.                     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"falsefalsetrue227), "value", [], "any"falsefalsetrue227), 227$this->source), "html"nulltrue);
  340.                     echo "\" ";
  341.                 }
  342.                 echo "/>
  343.                 ";
  344.             }
  345.             $_parent $context['_parent'];
  346.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  347.             $context array_intersect_key($context$_parent) + $_parent;
  348.             // line 229
  349.             echo "            </form>
  350.             <div class=\"ec-searchnavRole__topicpath\">
  351.                 <ol class=\"ec-topicpath\">
  352.                     ";
  353.             // line 232
  354.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'232$this->source); })()))) {
  355.                 // line 233
  356.                 echo "                        ";
  357.                 $context['_parent'] = $context;
  358.                 $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.'233$this->source); })()), "path", [], "any"falsefalsetrue233));
  359.                 $context['loop'] = [
  360.                   'parent' => $context['_parent'],
  361.                   'index0' => 0,
  362.                   'index'  => 1,
  363.                   'first'  => true,
  364.                 ];
  365.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  366.                     $length count($context['_seq']);
  367.                     $context['loop']['revindex0'] = $length 1;
  368.                     $context['loop']['revindex'] = $length;
  369.                     $context['loop']['length'] = $length;
  370.                     $context['loop']['last'] = === $length;
  371.                 }
  372.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  373.                     // line 234
  374.                     echo "                            <li class=\"ec-topicpath__item";
  375.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue234)) {
  376.                         echo "--active";
  377.                     }
  378.                     echo "\"><a
  379.                                         href=\"";
  380.                     // line 235
  381.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  382.                     echo "?category_id=";
  383.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue235), 235$this->source), "html"nulltrue);
  384.                     echo "\">";
  385.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue235), 235$this->source), "html"nulltrue);
  386.                     echo "</a>
  387.                             </li>
  388.                         ";
  389.                     ++$context['loop']['index0'];
  390.                     ++$context['loop']['index'];
  391.                     $context['loop']['first'] = false;
  392.                     if (isset($context['loop']['length'])) {
  393.                         --$context['loop']['revindex0'];
  394.                         --$context['loop']['revindex'];
  395.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  396.                     }
  397.                 }
  398.                 $_parent $context['_parent'];
  399.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  400.                 $context array_intersect_key($context$_parent) + $_parent;
  401.                 // line 238
  402.                 echo "                    ";
  403.             }
  404.             // line 239
  405.             echo "                    ";
  406.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'239$this->source); })()), "vars", [], "any"falsefalsetrue239), "value", [], "any"falsefalsetrue239) && 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.'239$this->source); })()), "vars", [], "any"falsefalsetrue239), "value", [], "any"falsefalsetrue239), "name", [], "any"falsefalsetrue239))) {
  407.                 // line 240
  408.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  409.                         <li class=\"ec-topicpath__item\">";
  410.                 // line 241
  411.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search_result__keyword", ["%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.'241$this->source); })()), "vars", [], "any"falsefalsetrue241), "value", [], "any"falsefalsetrue241), "name", [], "any"falsefalsetrue241)]), "html"nulltrue);
  412.                 echo "</li>
  413.                     ";
  414.             }
  415.             // line 243
  416.             echo "                </ol>
  417.             </div>
  418.             <div class=\"ec-searchnavRole__infos\">
  419.                 <div class=\"ec-searchnavRole__counter\">
  420.                     ";
  421.             // line 247
  422.             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.'247$this->source); })()), "totalItemCount", [], "any"falsefalsetrue247) > 0)) {
  423.                 // line 248
  424.                 echo "                        ";
  425.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search_result__detail", ["%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.'248$this->source); })()), "totalItemCount", [], "any"falsefalsetrue248)]);
  426.                 echo "
  427.                     ";
  428.             } else {
  429.                 // line 250
  430.                 echo "                        <span>";
  431.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.search__product_not_found"), "html"nulltrue);
  432.                 echo "</span>
  433.                     ";
  434.             }
  435.             // line 252
  436.             echo "                </div>
  437.                 ";
  438.             // line 253
  439.             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.'253$this->source); })()), "totalItemCount", [], "any"falsefalsetrue253) > 0)) {
  440.                 // line 254
  441.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  442.                         <div class=\"ec-select\">
  443.                             ";
  444.                 // line 256
  445.                 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.'256$this->source); })()), "disp_number", [], "any"falsefalsetrue256), 256$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  446.                 echo "
  447.                             ";
  448.                 // line 257
  449.                 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.'257$this->source); })()), "orderby", [], "any"falsefalsetrue257), 257$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  450.                 echo "
  451.                         </div>
  452.                     </div>
  453.                 ";
  454.             }
  455.             // line 261
  456.             echo "            </div>
  457.         </div>
  458.         ";
  459.             // line 263
  460.             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.'263$this->source); })()), "totalItemCount", [], "any"falsefalsetrue263) > 0)) {
  461.                 // line 264
  462.                 echo "            <div class=\"ec-shelfRole\">
  463.                 <ul class=\"ec-shelfGrid\">
  464.                     ";
  465.                 // line 266
  466.                 $context['_parent'] = $context;
  467.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'266$this->source); })()));
  468.                 $context['loop'] = [
  469.                   'parent' => $context['_parent'],
  470.                   'index0' => 0,
  471.                   'index'  => 1,
  472.                   'first'  => true,
  473.                 ];
  474.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  475.                     $length count($context['_seq']);
  476.                     $context['loop']['revindex0'] = $length 1;
  477.                     $context['loop']['revindex'] = $length;
  478.                     $context['loop']['length'] = $length;
  479.                     $context['loop']['last'] = === $length;
  480.                 }
  481.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  482.                     // line 267
  483.                     echo "                        <li class=\"ec-shelfGrid__item\">
  484.                             
  485.                             
  486.                                 <div class=\"product_name\"> 
  487.                                 <p>";
  488.                     // line 271
  489.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue271), 271$this->source), "html"nulltrue);
  490.                     echo "</p>
  491.                                 </div>
  492.                             
  493.                             
  494.                             <a href=\"";
  495.                     // line 275
  496.                     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"falsefalsetrue275)]), "html"nulltrue);
  497.                     echo "\">
  498.                                 <p class=\"ec-shelfGrid__item-image\">
  499.                                     <img src=\"";
  500.                     // line 277
  501.                     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"falsefalsetrue277), 277$this->source)), "save_image"), "html"nulltrue);
  502.                     echo "\" alt=\"";
  503.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue277), 277$this->source), "html"nulltrue);
  504.                     echo "\" ";
  505.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue277) > 5)) {
  506.                         echo " loading=\"lazy\"";
  507.                     }
  508.                     echo ">
  509.                                 </p>
  510.                                 ";
  511.                     // line 281
  512.                     echo "                                ";
  513.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "kofun_product_type", [], "any"falsefalsetrue281) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "kofun_product_type", [], "any"falsefalsetrue281), "id", [], "any"falsefalsetrue281) == 1))) {
  514.                         // line 282
  515.                         echo "                                    <div class=\"ec-productRole__kofun-address\">
  516.                                         ";
  517.                         // line 283
  518.                         (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "Pref", [], "any"falsetruetrue283), "name", [], "any"truetruetrue283) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "Pref", [], "any"falsetruetrue283), "name", [], "any"falsefalsetrue283)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "Pref", [], "any"falsetruetrue283), "name", [], "any"falsefalsetrue283), "html"nulltrue))) : (print ("")));
  519.                         (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "addr01", [], "any"truetruetrue283) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "addr01", [], "any"falsefalsetrue283)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "addr01", [], "any"falsefalsetrue283), "html"nulltrue))) : (print ("")));
  520.                         (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "addr02", [], "any"truetruetrue283) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "addr02", [], "any"falsefalsetrue283)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "Kofun", [], "any"falsetruetrue283), "addr02", [], "any"falsefalsetrue283), "html"nulltrue))) : (print ("")));
  521.                         echo "
  522.                                     </div>
  523.                                 ";
  524.                     }
  525.                     // line 286
  526.                     echo "
  527.                                 ";
  528.                     // line 287
  529.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue287)) {
  530.                         // line 288
  531.                         echo "                                    <p>";
  532.                         echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue288), 288$this->source));
  533.                         echo "</p>
  534.                                 ";
  535.                     }
  536.                     // line 290
  537.                     echo "                                <p class=\"price02-default\">
  538.                                     ";
  539.                     // line 291
  540.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue291)) {
  541.                         // line 292
  542.                         echo "                                        ";
  543.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue292) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue292))) {
  544.                             // line 293
  545.                             echo "                                            ";
  546.                             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"falsefalsetrue293), 293$this->source)), "html"nulltrue);
  547.                             echo "
  548.                                         ";
  549.                         } else {
  550.                             // line 295
  551.                             echo "                                            ";
  552.                             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"falsefalsetrue295), 295$this->source)), "html"nulltrue);
  553.                             echo " ~ ";
  554.                             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"], "getPrice02IncTaxMax", [], "any"falsefalsetrue295), 295$this->source)), "html"nulltrue);
  555.                             echo "
  556.                                         ";
  557.                         }
  558.                         // line 297
  559.                         echo "                                    ";
  560.                     } else {
  561.                         // line 298
  562.                         echo "                                        ";
  563.                         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"falsefalsetrue298), 298$this->source)), "html"nulltrue);
  564.                         echo "
  565.                                     ";
  566.                     }
  567.                     // line 300
  568.                     echo "                                </p>
  569.                             </a>
  570.                             <a class=\"elementor-button\" href=\"";
  571.                     // line 303
  572.                     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"falsefalsetrue303)]), "html"nulltrue);
  573.                     echo "\">
  574.                                 <span>この古墳墓の詳細を見る</span>
  575.                             </a>
  576.                         </li>
  577.                     ";
  578.                     ++$context['loop']['index0'];
  579.                     ++$context['loop']['index'];
  580.                     $context['loop']['first'] = false;
  581.                     if (isset($context['loop']['length'])) {
  582.                         --$context['loop']['revindex0'];
  583.                         --$context['loop']['revindex'];
  584.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  585.                     }
  586.                 }
  587.                 $_parent $context['_parent'];
  588.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  589.                 $context array_intersect_key($context$_parent) + $_parent;
  590.                 // line 308
  591.                 echo "                </ul>
  592.             </div>
  593.             <div class=\"ec-modal\">
  594.                 <div class=\"ec-modal-overlay\">
  595.                     <div class=\"ec-modal-wrap\">
  596.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  597.                 // line 313
  598.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  599.                 echo "\" alt=\"\"/></span></span>
  600.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  601.                 // line 314
  602.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart_complete"), "html"nulltrue);
  603.                 echo "</div>
  604.                         <div class=\"ec-modal-box\">
  605.                             <div class=\"ec-role\">
  606.                                 <span class=\"ec-inlineBtn--cancel\">";
  607.                 // line 317
  608.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.continue"), "html"nulltrue);
  609.                 echo "</span>
  610.                                 <a href=\"";
  611.                 // line 318
  612.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  613.                 echo "\" class=\"ec-inlineBtn--action\">";
  614.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.go_to_cart"), "html"nulltrue);
  615.                 echo "</a>
  616.                             </div>
  617.                         </div>
  618.                     </div>
  619.                 </div>
  620.             </div>
  621.             <div class=\"ec-pagerRole\">
  622.                 ";
  623.                 // line 325
  624.                 $this->loadTemplate("pager.twig""Product/list.twig"325)->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.'325$this->source); })()), "paginationData", [], "any"falsefalsetrue325)]));
  625.                 // line 326
  626.                 echo "            </div>
  627.         ";
  628.             }
  629.             // line 328
  630.             echo "    ";
  631.         }
  632.         
  633.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  634.         
  635.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  636.     }
  637.     public function getTemplateName()
  638.     {
  639.         return "Product/list.twig";
  640.     }
  641.     public function isTraitable()
  642.     {
  643.         return false;
  644.     }
  645.     public function getDebugInfo()
  646.     {
  647.         return array (  677 => 328,  673 => 326,  671 => 325,  659 => 318,  655 => 317,  649 => 314,  645 => 313,  638 => 308,  619 => 303,  614 => 300,  608 => 298,  605 => 297,  597 => 295,  591 => 293,  588 => 292,  586 => 291,  583 => 290,  577 => 288,  575 => 287,  572 => 286,  564 => 283,  561 => 282,  558 => 281,  546 => 277,  541 => 275,  534 => 271,  528 => 267,  511 => 266,  507 => 264,  505 => 263,  501 => 261,  494 => 257,  490 => 256,  486 => 254,  484 => 253,  481 => 252,  475 => 250,  469 => 248,  467 => 247,  461 => 243,  456 => 241,  453 => 240,  450 => 239,  447 => 238,  426 => 235,  419 => 234,  401 => 233,  399 => 232,  394 => 229,  382 => 227,  378 => 226,  373 => 225,  369 => 224,  365 => 222,  359 => 219,  356 => 218,  354 => 217,  345 => 210,  335 => 209,  224 => 102,  214 => 101,  187 => 82,  177 => 75,  146 => 47,  118 => 21,  104 => 20,  96 => 19,  79 => 18,  75 => 16,  65 => 15,  54 => 11,  52 => 13,  39 => 11,);
  648.     }
  649.     public function getSourceContext()
  650.     {
  651.         return new Source("{#
  652. This file is part of EC-CUBE
  653. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  654. http://www.ec-cube.co.jp/
  655. For the full copyright and license information, please view the LICENSE
  656. file that was distributed with this source code.
  657. #}
  658. {% extends 'default_frame.twig' %}
  659. {% set body_class = 'product_page' %}
  660. {% block javascript %}
  661.     <script>
  662.         eccube.productsClassCategories = {
  663.             {% for Product in pagination %}
  664.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  665.             {% endfor %}
  666.         };
  667.         \$(function() {
  668.             // 表示件数を変更
  669.             \$('.disp-number').change(function() {
  670.                 var dispNumber = \$(this).val();
  671.                 \$('#disp_number').val(dispNumber);
  672.                 \$('#pageno').val(1);
  673.                 \$(\"#form1\").submit();
  674.             });
  675.             // 並び順を変更
  676.             \$('.order-by').change(function() {
  677.                 var orderBy = \$(this).val();
  678.                 \$('#orderby').val(orderBy);
  679.                 \$('#pageno').val(1);
  680.                 \$(\"#form1\").submit();
  681.             });
  682.             \$('.add-cart').on('click', function(e) {
  683.                 var \$form = \$(this).parents('li').find('form');
  684.                 // 個数フォームのチェック
  685.                 var \$quantity = \$form.parent().find('.quantity');
  686.                 if (\$quantity.val() < 1) {
  687.                     \$quantity[0].setCustomValidity('{{ 'front.product.invalid_quantity'|trans }}');
  688.                     setTimeout(function() {
  689.                         loadingOverlay('hide');
  690.                     }, 100);
  691.                     return true;
  692.                 } else {
  693.                     \$quantity[0].setCustomValidity('');
  694.                 }
  695.                 e.preventDefault();
  696.                 \$.ajax({
  697.                     url: \$form.attr('action'),
  698.                     type: \$form.attr('method'),
  699.                     data: \$form.serialize(),
  700.                     dataType: 'json',
  701.                     beforeSend: function(xhr, settings) {
  702.                         // Buttonを無効にする
  703.                         \$('.add-cart').prop('disabled', true);
  704.                     }
  705.                 }).done(function(data) {
  706.                     // レスポンス内のメッセージをalertで表示
  707.                     \$.each(data.messages, function() {
  708.                         \$('#ec-modal-header').text(this);
  709.                     });
  710.                     \$('.ec-modal').show()
  711.                     // カートブロックを更新する
  712.                     \$.ajax({
  713.                         url: '{{ url('block_cart') }}',
  714.                         type: 'GET',
  715.                         dataType: 'html'
  716.                     }).done(function(html) {
  717.                         \$('.ec-headerRole__cart').html(html);
  718.                     });
  719.                 }).fail(function(data) {
  720.                     alert('{{ 'front.product.add_cart_error'|trans }}');
  721.                 }).always(function(data) {
  722.                     // Buttonを有効にする
  723.                     \$('.add-cart').prop('disabled', false);
  724.                 });
  725.             });
  726.         });
  727.         \$('.ec-modal-wrap').on('click', function(e) {
  728.             // モーダル内の処理は外側にバブリングさせない
  729.             e.stopPropagation();
  730.         });
  731.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  732.             \$('.ec-modal').hide()
  733.         });
  734.     </script>
  735. {% endblock %}
  736. {% block stylesheet %}
  737.     <style>
  738.     
  739. @media only screen and (min-width: 768px) {
  740.     .ec-topicpath {
  741.         padding: 10px 0 5px;
  742.         font-size: 14px;
  743.     }
  744.     }
  745. @media only screen and (min-width: 768px) {
  746.     .ec-searchnavRole .ec-searchnavRole__infos {
  747.         border-top: 1px solid #ccc;
  748.         padding-top: 10px;
  749.     }
  750.     }
  751. .ec-shelfGrid {
  752.             display: flex;
  753.             flex-wrap: wrap;
  754. }
  755. .ec-shelfGrid li{
  756.             width: 100%;
  757. }
  758. @media (min-width: 768px) {
  759. .ec-shelfGrid li{
  760.             width: 50%;
  761. }
  762. }
  763. .product_name{
  764.     color: #596f00; 
  765.     font-size: 20px;
  766.     font-weight: 600;
  767.     margin-top: 10px;
  768.     margin-bottom: 30px;
  769.     padding-top: 8px;
  770.     border-top: 2px solid #abcd03;
  771. }
  772. @media only screen and (min-width: 768px) {
  773. .product_name{
  774.     font-size: 24px;
  775. }
  776. }
  777. .price02-default{
  778.     margin-bottom: 5px;
  779. }
  780. @media only screen and (min-width: 768px) {
  781. .price02-default{
  782.     font-size: 18px;
  783.     margin-bottom: 10px;
  784. }
  785. }
  786. .ec-shelfGrid__item .elementor-button span {
  787.     text-decoration: inherit;
  788.     display: inline-block;
  789. }
  790. .ec-shelfGrid__item .elementor-button {
  791.     display: flex;
  792.     justify-content: center;
  793.     align-items: center;
  794.     margin: 0 auto;
  795.     display: inline-block;
  796.     line-height: 1;
  797.     font-size: 20px;
  798.     font-weight: bold;
  799.     border-radius: 3px;
  800.     color: #fff;
  801.     fill: #fff;
  802.     text-align: center;
  803.     transition: all .3s;
  804.     background-color: #000000;
  805.     width: 100%;
  806.     max-width: 420px;
  807.     max-height: 60px;
  808.     padding-top: 20px;
  809.     padding-bottom: 20px;
  810. }
  811. @media only screen and (max-width: 768px) {
  812.     .ec-shelfGrid__item .elementor-button {
  813.         font-size: 15px;
  814.         padding: 20px 22px;
  815.         width: 100%;
  816.         max-width: 100%;
  817.         height: 100%;
  818.         display: flex;
  819.         justify-content: center;
  820.         align-items: center;
  821.         text-align: center;
  822.     }
  823. }
  824.     </style>
  825.   
  826. {% endblock %}
  827. {% block main %}
  828.     <div class=\"ec-role\">
  829.         <div class=\"ec-pageHeader\">
  830.             <h1 class=\"km_pagetitle\">販売中の古墳</h1>
  831.         </div>
  832.     </div>
  833.     {% if search_form.category_id.vars.errors|length > 0 %}
  834.         <div class=\"ec-searchnavRole\">
  835.             <p class=\"errormsg text-danger\">{{ 'front.product.search__category_not_found'|trans }}</p>
  836.         </div>
  837.     {% else %}
  838.         <div class=\"ec-searchnavRole\">
  839.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  840.                 {% for item in search_form %}
  841.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  842.                            name=\"{{ item.vars.full_name }}\"
  843.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  844.                 {% endfor %}
  845.             </form>
  846.             <div class=\"ec-searchnavRole__topicpath\">
  847.                 <ol class=\"ec-topicpath\">
  848.                     {% if Category is not null %}
  849.                         {% for Path in Category.path %}
  850.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  851.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  852.                             </li>
  853.                         {% endfor %}
  854.                     {% endif %}
  855.                     {% if search_form.vars.value and search_form.vars.value.name %}
  856.                         <li class=\"ec-topicpath__divider\">|</li>
  857.                         <li class=\"ec-topicpath__item\">{{ 'front.product.search_result__keyword'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  858.                     {% endif %}
  859.                 </ol>
  860.             </div>
  861.             <div class=\"ec-searchnavRole__infos\">
  862.                 <div class=\"ec-searchnavRole__counter\">
  863.                     {% if pagination.totalItemCount > 0 %}
  864.                         {{ 'front.product.search_result__detail'|trans({ '%count%': pagination.totalItemCount })|raw }}
  865.                     {% else %}
  866.                         <span>{{ 'front.product.search__product_not_found'|trans }}</span>
  867.                     {% endif %}
  868.                 </div>
  869.                 {% if pagination.totalItemCount > 0 %}
  870.                     <div class=\"ec-searchnavRole__actions\">
  871.                         <div class=\"ec-select\">
  872.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  873.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  874.                         </div>
  875.                     </div>
  876.                 {% endif %}
  877.             </div>
  878.         </div>
  879.         {% if pagination.totalItemCount > 0 %}
  880.             <div class=\"ec-shelfRole\">
  881.                 <ul class=\"ec-shelfGrid\">
  882.                     {% for Product in pagination %}
  883.                         <li class=\"ec-shelfGrid__item\">
  884.                             
  885.                             
  886.                                 <div class=\"product_name\"> 
  887.                                 <p>{{ Product.name }}</p>
  888.                                 </div>
  889.                             
  890.                             
  891.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  892.                                 <p class=\"ec-shelfGrid__item-image\">
  893.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  894.                                 </p>
  895.                                 {# 住所 #}
  896.                                 {% if Product.kofun_product_type and Product.kofun_product_type.id == 1 %}
  897.                                     <div class=\"ec-productRole__kofun-address\">
  898.                                         {{ Product.Kofun.Pref.name ?? '' }}{{ Product.Kofun.addr01 ?? '' }}{{ Product.Kofun.addr02 ?? '' }}
  899.                                     </div>
  900.                                 {% endif %}
  901.                                 {% if Product.description_list %}
  902.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  903.                                 {% endif %}
  904.                                 <p class=\"price02-default\">
  905.                                     {% if Product.hasProductClass %}
  906.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  907.                                             {{ Product.getPrice02IncTaxMin|price }}
  908.                                         {% else %}
  909.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  910.                                         {% endif %}
  911.                                     {% else %}
  912.                                         {{ Product.getPrice02IncTaxMin|price }}
  913.                                     {% endif %}
  914.                                 </p>
  915.                             </a>
  916.                             <a class=\"elementor-button\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  917.                                 <span>この古墳墓の詳細を見る</span>
  918.                             </a>
  919.                         </li>
  920.                     {% endfor %}
  921.                 </ul>
  922.             </div>
  923.             <div class=\"ec-modal\">
  924.                 <div class=\"ec-modal-overlay\">
  925.                     <div class=\"ec-modal-wrap\">
  926.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  927.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'front.product.add_cart_complete'|trans }}</div>
  928.                         <div class=\"ec-modal-box\">
  929.                             <div class=\"ec-role\">
  930.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'front.product.continue'|trans }}</span>
  931.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'common.go_to_cart'|trans }}</a>
  932.                             </div>
  933.                         </div>
  934.                     </div>
  935.                 </div>
  936.             </div>
  937.             <div class=\"ec-pagerRole\">
  938.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  939.             </div>
  940.         {% endif %}
  941.     {% endif %}
  942. {% endblock %}""Product/list.twig""/var/www/html/app/template/default/Product/list.twig");
  943.     }
  944.     
  945.     public function checkSecurity()
  946.     {
  947.         static $tags = array("set" => 13"for" => 18"if" => 19"include" => 325);
  948.         static $filters = array("escape" => 19"raw" => 19"trans" => 47"length" => 217"no_image_product" => 277"nl2br" => 288"price" => 293);
  949.         static $functions = array("class_categories_as_json" => 19"url" => 75"form_widget" => 256"asset" => 277);
  950.         try {
  951.             $this->sandbox->checkSecurity(
  952.                 ['set''for''if''include'],
  953.                 ['escape''raw''trans''length''no_image_product''nl2br''price'],
  954.                 ['class_categories_as_json''url''form_widget''asset'],
  955.                 $this->source
  956.             );
  957.         } catch (SecurityError $e) {
  958.             $e->setSourceContext($this->source);
  959.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  960.                 $e->setTemplateLine($tags[$e->getTagName()]);
  961.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  962.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  963.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  964.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  965.             }
  966.             throw $e;
  967.         }
  968.     }
  969. }