var/cache/dev/twig/21/2136ed5ec4eac34f6f4a3e4d2bf00e3958591c2b5157cf0a2d079bbab3319824.php line 72

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