var/cache/dev/twig/72/723b2e6bc1f2d05c02b47cf43344d45d.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* __string_template__1bcf926165da21a48fbf83479eb452e8 */
  14. class __TwigTemplate_fa0ac6364caa6a5fc5a04ac174689f7b 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 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__1bcf926165da21a48fbf83479eb452e8"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__1bcf926165da21a48fbf83479eb452e8"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__1bcf926165da21a48fbf83479eb452e8"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "<script>
  59.     // 並び順を変更
  60.     function fnChangeOrderBy(orderby) {
  61.     eccube.setValue('orderby', orderby);
  62.     eccube.setValue('pageno', 1);
  63.     eccube.submitForm();
  64. }
  65.     // 表示件数を変更
  66.     function fnChangeDispNumber(dispNumber) {
  67.     eccube.setValue('disp_number', dispNumber);
  68.     eccube.setValue('pageno', 1);
  69.     eccube.submitForm();
  70. }
  71.     // 商品表示BOXの高さを揃える
  72.     \$(window).load(function() {
  73.     \$('.product_item').matchHeight();
  74. });
  75.     // 表示件数を非表示にする
  76.     \$('#result_info_box__disp_menu').hide();
  77. </script>
  78. ";
  79.         
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81.         
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83.     }
  84.     // line 40
  85.     public function block_main($context, array $blocks = [])
  86.     {
  87.         $macros $this->macros;
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  92.         // line 41
  93.         echo "
  94.     <!-- ▼ 検索窓 for SP -->
  95.     <div id=\"search\" class=\"search my-search\">
  96.     </div>
  97.     <!-- ▲ 検索窓 for SP -->
  98.     ";
  99.         // line 48
  100.         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.'48$this->source); })()), "category_id", [], "any"falsefalsefalse48), "vars", [], "any"falsefalsefalse48), "errors", [], "any"falsefalsefalse48)) == 0)) {
  101.             // line 49
  102.             echo "        <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  103.             ";
  104.             // line 50
  105.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'50$this->source); })()))) {
  106.                 // line 51
  107.                 echo "                ";
  108.                 $context['_parent'] = $context;
  109.                 $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.'51$this->source); })()), "path", [], "any"falsefalsefalse51));
  110.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  111.                     // line 52
  112.                     echo "                    <input type=\"hidden\" name=\"category_id\" value=\"";
  113.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse52), "html"nulltrue);
  114.                     echo "\">
  115.                 ";
  116.                 }
  117.                 $_parent $context['_parent'];
  118.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  119.                 $context array_intersect_key($context$_parent) + $_parent;
  120.                 // line 54
  121.                 echo "            ";
  122.             }
  123.             // line 55
  124.             echo "            <input type=\"hidden\" id=\"mode\" name=\"mode\" />
  125.             <input type=\"hidden\" id=\"name\" name=\"name\" maxlength=\"50\" />
  126.             <input type=\"hidden\" id=\"pageno\" name=\"pageno\" value=\"1\" />
  127.             <input type=\"hidden\" value=\"100\" id=\"disp_number\" name=\"disp_number\" />
  128.             <input type=\"hidden\" value=\"1\" id=\"orderby\" name=\"orderby\" />
  129.             ";
  130.             // line 62
  131.             echo "        </form>
  132.         <!-- ▼topicpath▼ -->
  133.         <div id=\"topicpath\" class=\"row\">
  134.             <ol id=\"list_header_menu\">
  135.                 <li><a href=\"";
  136.             // line 66
  137.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  138.             echo "\">全商品</a></li>
  139.                 ";
  140.             // line 67
  141.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'67$this->source); })()))) {
  142.                 // line 68
  143.                 echo "                    ";
  144.                 $context['_parent'] = $context;
  145.                 $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.'68$this->source); })()), "path", [], "any"falsefalsefalse68));
  146.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  147.                     // line 69
  148.                     echo "                        <li><a href=\"";
  149.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  150.                     echo "?category_id=";
  151.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse69), "html"nulltrue);
  152.                     echo "\">";
  153.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse69), "html"nulltrue);
  154.                     echo "</a></li>
  155.                     ";
  156.                 }
  157.                 $_parent $context['_parent'];
  158.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  159.                 $context array_intersect_key($context$_parent) + $_parent;
  160.                 // line 71
  161.                 echo "                ";
  162.             }
  163.             // line 72
  164.             echo "                ";
  165.             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.'72$this->source); })()), "vars", [], "any"falsefalsefalse72), "value", [], "any"falsefalsefalse72), "name", [], "any"falsefalsefalse72)) {
  166.                 // line 73
  167.                 echo "                    <li>「";
  168.                 echo twig_escape_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.'73$this->source); })()), "vars", [], "any"falsefalsefalse73), "value", [], "any"falsefalsefalse73), "name", [], "any"falsefalsefalse73), "html"nulltrue);
  169.                 echo "」の検索結果</li>
  170.                 ";
  171.             }
  172.             // line 75
  173.             echo "            </ol>
  174.         </div>
  175.         <!-- ▲topicpath▲ -->
  176.         <div id=\"result_info_box\" class=\"row\">
  177.             <form name=\"page_navi_top\" id=\"page_navi_top\" action=\"?\">
  178.                 ";
  179.             // line 80
  180.             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.'80$this->source); })()), "totalItemCount", [], "any"falsefalsefalse80) > 0)) {
  181.                 // line 81
  182.                 echo "                    <p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong><span id=\"productscount\">";
  183.                 echo twig_escape_filter($this->envtwig_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.'81$this->source); })()), "totalItemCount", [], "any"falsefalsefalse81), "html"nulltrue);
  184.                 echo "</span>件</strong>の商品がみつかりました。
  185.                     </p>
  186.                     <div id=\"result_info_box__menu_box\" class=\"col-sm-6 no-padding\">
  187.                         <ul id=\"result_info_box__menu\" class=\"pagenumberarea clearfix\">
  188.                             <li id=\"result_info_box__disp_menu\">
  189.                                 ";
  190.                 // line 87
  191.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'87$this->source); })()), "disp_number", [], "any"falsefalsefalse87), 'widget', ["id" => """attr" => ["onchange" => "javascript:fnChangeDispNumber(this.value);"]]);
  192.                 echo "
  193.                             </li>
  194.                             <li id=\"result_info_box__order_menu\">
  195.                                 ";
  196.                 // line 90
  197.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'90$this->source); })()), "orderby", [], "any"falsefalsefalse90), 'widget', ["id" => """attr" => ["onchange" => "javascript:fnChangeOrderBy(this.value);""class" => "form-control"]]);
  198.                 echo "
  199.                             </li>
  200.                         </ul>
  201.                     </div>
  202.                     ";
  203.                 // line 95
  204.                 $context['_parent'] = $context;
  205.                 $context['_seq'] = twig_ensure_traversable(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.'95$this->source); })()), "disp_number", [], "any"falsefalsefalse95), "getIterator", [], "any"falsefalsefalse95));
  206.                 foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  207.                     // line 96
  208.                     echo "                        ";
  209.                     if (preg_match("[^plg*]"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse96), "name", [], "any"falsefalsefalse96))) {
  210.                         // line 97
  211.                         echo "                            ";
  212.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
  213.                         echo "
  214.                             ";
  215.                         // line 98
  216.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
  217.                         echo "
  218.                             ";
  219.                         // line 99
  220.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
  221.                         echo "
  222.                         ";
  223.                     }
  224.                     // line 101
  225.                     echo "                    ";
  226.                 }
  227.                 $_parent $context['_parent'];
  228.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  229.                 $context array_intersect_key($context$_parent) + $_parent;
  230.                 // line 102
  231.                 echo "
  232.                     ";
  233.                 // line 103
  234.                 $context['_parent'] = $context;
  235.                 $context['_seq'] = twig_ensure_traversable(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.'103$this->source); })()), "orderby", [], "any"falsefalsefalse103), "getIterator", [], "any"falsefalsefalse103));
  236.                 foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  237.                     // line 104
  238.                     echo "                        ";
  239.                     if (preg_match("[^plg*]"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse104), "name", [], "any"falsefalsefalse104))) {
  240.                         // line 105
  241.                         echo "                            ";
  242.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
  243.                         echo "
  244.                             ";
  245.                         // line 106
  246.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
  247.                         echo "
  248.                             ";
  249.                         // line 107
  250.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
  251.                         echo "
  252.                         ";
  253.                     }
  254.                     // line 109
  255.                     echo "                    ";
  256.                 }
  257.                 $_parent $context['_parent'];
  258.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  259.                 $context array_intersect_key($context$_parent) + $_parent;
  260.                 // line 110
  261.                 echo "                ";
  262.             } else {
  263.                 // line 111
  264.                 echo "                    <p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong style=\"display: none;\"><span id=\"productscount\">";
  265.                 echo twig_escape_filter($this->envtwig_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.'111$this->source); })()), "totalItemCount", [], "any"falsefalsefalse111), "html"nulltrue);
  266.                 echo "</span>件</strong>お探しの商品は見つかりませんでした。</p>
  267.                 ";
  268.             }
  269.             // line 113
  270.             echo "            </form>
  271.         </div>
  272.         <!-- ▼item_list▼ -->
  273.         <div id=\"item_list\">
  274.             <div class=\"row no-padding\">
  275.                 ";
  276.             // line 119
  277.             $context['_parent'] = $context;
  278.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'119$this->source); })()));
  279.             foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  280.                 // line 120
  281.                 echo "                    <div id=\"result_list_box--";
  282.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse120), "html"nulltrue);
  283.                 echo "\" class=\"col-lg-2 col-md-3 col-sm-4\">
  284.                         <div id=\"result_list__item--";
  285.                 // line 121
  286.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse121), "html"nulltrue);
  287.                 echo "\" class=\"product_item\">
  288.                             <a href=\"";
  289.                 // line 122
  290.                 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"falsefalsefalse122)]), "html"nulltrue);
  291.                 echo "\">
  292.                                 <div id=\"result_list__image--";
  293.                 // line 123
  294.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse123), "html"nulltrue);
  295.                 echo "\" class=\"item_photo\">
  296.                                     <img src=\"";
  297.                 // line 124
  298.                 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"falsefalsefalse124)), "save_image"), "html"nulltrue);
  299.                 echo "\">
  300.                                     ";
  301.                 // line 125
  302.                 if ( !twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse125)) {
  303.                     // line 126
  304.                     echo "                                        <span class=\"soldout text-danger\" style=\"line-height:1; letter-spacing: 0px;\">SOLD OUT</span>
  305.                                     ";
  306.                 }
  307.                 // line 128
  308.                 echo "                                    ";
  309.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductTag", [], "any"falsefalsefalse128))) {
  310.                     // line 129
  311.                     echo "                                        <!--▼商品タグ-->
  312.                                         <div class=\"list_tag_box product_tag\">
  313.                                             ";
  314.                     // line 131
  315.                     $context['_parent'] = $context;
  316.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductTag", [], "any"falsefalsefalse131));
  317.                     foreach ($context['_seq'] as $context["_key"] => $context["ProductTag"]) {
  318.                         // line 132
  319.                         echo "                                                <span class=\"product_tag_list list_tag_";
  320.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductTag"], "Tag", [], "any"falsefalsefalse132), "id", [], "any"falsefalsefalse132), "html"nulltrue);
  321.                         echo "\">";
  322.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ProductTag"], "Tag", [], "any"falsefalsefalse132), "html"nulltrue);
  323.                         echo "</span>
  324.                                             ";
  325.                     }
  326.                     $_parent $context['_parent'];
  327.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductTag'], $context['_parent'], $context['loop']);
  328.                     $context array_intersect_key($context$_parent) + $_parent;
  329.                     // line 134
  330.                     echo "                                        </div>
  331.                                         <!--▲商品タグ-->
  332.                                     ";
  333.                 }
  334.                 // line 137
  335.                 echo "                                </div>
  336.                                 <dl id=\"result_list__detail--";
  337.                 // line 138
  338.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse138), "html"nulltrue);
  339.                 echo "\" class=\"item_detail\">
  340.                                     <dt id=\"result_list__name--";
  341.                 // line 139
  342.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse139), "html"nulltrue);
  343.                 echo "\" class=\"item_name\">";
  344.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse139), "html"nulltrue);
  345.                 echo "</dt>
  346.                                     ";
  347.                 // line 141
  348.                 if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse141)) {
  349.                     // line 142
  350.                     echo "                                        <dd id=\"result_list__description_list--";
  351.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse142), "html"nulltrue);
  352.                     echo "\" class=\"item_comment\">";
  353.                     echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse142));
  354.                     echo "</dd>
  355.                                     ";
  356.                 }
  357.                 // line 144
  358.                 echo "
  359.                                     ";
  360.                 // line 145
  361.                 $context["flag"] = false;
  362.                 // line 146
  363.                 echo "
  364.                                     ";
  365.                 // line 147
  366.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse147))) {
  367.                     // line 148
  368.                     echo "                                        ";
  369.                     $context['_parent'] = $context;
  370.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse148));
  371.                     foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  372.                         // line 149
  373.                         echo "                                            ";
  374.                         if (((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "Category", [], "any"falsefalsefalse149), "id", [], "any"falsefalsefalse149) == 148) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "Category", [], "any"falsefalsefalse149), "id", [], "any"falsefalsefalse149) == 133)) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "Category", [], "any"falsefalsefalse149), "id", [], "any"falsefalsefalse149) == 144)) || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "Category", [], "any"falsefalsefalse149), "id", [], "any"falsefalsefalse149) == 116))) {
  375.                             // line 150
  376.                             echo "                                                ";
  377.                             $context["flag"] = true;
  378.                             // line 151
  379.                             echo "                                            ";
  380.                         }
  381.                         // line 152
  382.                         echo "                                        ";
  383.                     }
  384.                     $_parent $context['_parent'];
  385.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  386.                     $context array_intersect_key($context$_parent) + $_parent;
  387.                     // line 153
  388.                     echo "                                    ";
  389.                 }
  390.                 // line 154
  391.                 echo "
  392.                                     ";
  393.                 // line 155
  394.                 if ((((isset($context["flag"]) || array_key_exists("flag"$context) ? $context["flag"] : (function () { throw new RuntimeError('Variable "flag" does not exist.'155$this->source); })()) != true) && (isset($context["discount_flag"]) || array_key_exists("discount_flag"$context) ? $context["discount_flag"] : (function () { throw new RuntimeError('Variable "discount_flag" does not exist.'155$this->source); })()))) {
  395.                     // line 156
  396.                     echo "                                        ";
  397.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  398.                         // line 157
  399.                         echo "                                            <span style=\"color:red;\">[";
  400.                         echo twig_escape_filter($this->env, (isset($context["discount_ratio"]) || array_key_exists("discount_ratio"$context) ? $context["discount_ratio"] : (function () { throw new RuntimeError('Variable "discount_ratio" does not exist.'157$this->source); })()), "html"nulltrue);
  401.                         echo "%割引対象商品です]</span>
  402.                                         ";
  403.                     } elseif (                    // line 158
  404. (isset($context["nonmember_flag"]) || array_key_exists("nonmember_flag"$context) ? $context["nonmember_flag"] : (function () { throw new RuntimeError('Variable "nonmember_flag" does not exist.'158$this->source); })())) {
  405.                         // line 159
  406.                         echo "                                            <span style=\"color:red;\">[";
  407.                         echo twig_escape_filter($this->env, (isset($context["nonmember_ratio"]) || array_key_exists("nonmember_ratio"$context) ? $context["nonmember_ratio"] : (function () { throw new RuntimeError('Variable "nonmember_ratio" does not exist.'159$this->source); })()), "html"nulltrue);
  408.                         echo "%割引対象商品です]</span>
  409.                                         ";
  410.                     }
  411.                     // line 161
  412.                     echo "                                    ";
  413.                 }
  414.                 // line 162
  415.                 echo "
  416.                                     ";
  417.                 // line 163
  418.                 if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse163)) {
  419.                     // line 164
  420.                     echo "                                        ";
  421.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse164) == (isset($context["getPrice02IncTaxMax"]) || array_key_exists("getPrice02IncTaxMax"$context) ? $context["getPrice02IncTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02IncTaxMax" does not exist.'164$this->source); })()))) {
  422.                         // line 165
  423.                         echo "                                            <dd id=\"result_list__price02_inc_tax--";
  424.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse165), "html"nulltrue);
  425.                         echo "\" class=\"item_price\">
  426.                                                 ";
  427.                         // line 166
  428.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse166)), "html"nulltrue);
  429.                         echo "<span class=\"small\"><small>(税込)</small></span>
  430.                                             </dd>
  431.                                         ";
  432.                     } elseif (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(                    // line 168
  433. (isset($context["getPrice02IncTaxMax"]) || array_key_exists("getPrice02IncTaxMax"$context) ? $context["getPrice02IncTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02IncTaxMax" does not exist.'168$this->source); })())) != "¥ 0")) {
  434.                         // line 169
  435.                         echo "                                            <dd id=\"result_list__price02_inc_tax--";
  436.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse169), "html"nulltrue);
  437.                         echo "\" class=\"item_price\">
  438.                                                 ";
  439.                         // line 170
  440.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02xMin", [], "any"falsefalsefalse170)), "html"nulltrue);
  441.                         echo " ~ ";
  442.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02IncTaxMax"]) || array_key_exists("getPrice02IncTaxMax"$context) ? $context["getPrice02IncTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02IncTaxMax" does not exist.'170$this->source); })())), "html"nulltrue);
  443.                         echo "<span class=\"small\"><small>(税込)</small></span>
  444.                                             </dd>
  445.                                         ";
  446.                     }
  447.                     // line 173
  448.                     echo "                                    ";
  449.                 } else {
  450.                     // line 174
  451.                     echo "                                        <span class=\"tax_management-sale_price tax_management_id_";
  452.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse174), "html"nulltrue);
  453.                     echo "\"></span><small>(税込)</small>
  454.                                         ";
  455.                     // line 178
  456.                     echo "                                    ";
  457.                 }
  458.                 // line 179
  459.                 echo "                                </dl>
  460.                             </a>
  461.                         </div>
  462.                     </div>
  463.                 ";
  464.             }
  465.             $_parent $context['_parent'];
  466.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  467.             $context array_intersect_key($context$_parent) + $_parent;
  468.             // line 184
  469.             echo "            </div>
  470.         </div>
  471.         <!-- ▲item_list▲ -->
  472.         ";
  473.             // line 188
  474.             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.'188$this->source); })()), "totalItemCount", [], "any"falsefalsefalse188) > 0)) {
  475.                 // line 189
  476.                 echo "            ";
  477.                 $this->loadTemplate("pager.twig""__string_template__1bcf926165da21a48fbf83479eb452e8"189)->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.'189$this->source); })()), "paginationData", [], "any"falsefalsefalse189)]));
  478.                 // line 190
  479.                 echo "        ";
  480.             }
  481.             // line 191
  482.             echo "    ";
  483.         } else {
  484.             // line 192
  485.             echo "        <p class=\"errormsg text-danger\">ご指定のカテゴリは存在しません。</p>
  486.     ";
  487.         }
  488.         
  489.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  490.         
  491.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  492.     }
  493.     public function getTemplateName()
  494.     {
  495.         return "__string_template__1bcf926165da21a48fbf83479eb452e8";
  496.     }
  497.     public function isTraitable()
  498.     {
  499.         return false;
  500.     }
  501.     public function getDebugInfo()
  502.     {
  503.         return array (  514 => 192,  511 => 191,  508 => 190,  505 => 189,  503 => 188,  497 => 184,  487 => 179,  484 => 178,  479 => 174,  476 => 173,  468 => 170,  463 => 169,  461 => 168,  456 => 166,  451 => 165,  448 => 164,  446 => 163,  443 => 162,  440 => 161,  434 => 159,  432 => 158,  427 => 157,  424 => 156,  422 => 155,  419 => 154,  416 => 153,  410 => 152,  407 => 151,  404 => 150,  401 => 149,  396 => 148,  394 => 147,  391 => 146,  389 => 145,  386 => 144,  378 => 142,  376 => 141,  369 => 139,  365 => 138,  362 => 137,  357 => 134,  346 => 132,  342 => 131,  338 => 129,  335 => 128,  331 => 126,  329 => 125,  325 => 124,  321 => 123,  317 => 122,  313 => 121,  308 => 120,  304 => 119,  296 => 113,  290 => 111,  287 => 110,  281 => 109,  276 => 107,  272 => 106,  267 => 105,  264 => 104,  260 => 103,  257 => 102,  251 => 101,  246 => 99,  242 => 98,  237 => 97,  234 => 96,  230 => 95,  222 => 90,  216 => 87,  206 => 81,  204 => 80,  197 => 75,  191 => 73,  188 => 72,  185 => 71,  172 => 69,  167 => 68,  165 => 67,  161 => 66,  155 => 62,  147 => 55,  144 => 54,  135 => 52,  130 => 51,  128 => 50,  125 => 49,  123 => 48,  114 => 41,  104 => 40,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  504.     }
  505.     public function getSourceContext()
  506.     {
  507.         return new Source("{#
  508. This file is part of EC-CUBE
  509. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  510. http://www.ec-cube.co.jp/
  511. For the full copyright and license information, please view the LICENSE
  512. file that was distributed with this source code.
  513. #}
  514. {% extends 'default_frame.twig' %}
  515. {% set body_class = 'product_page' %}
  516. {% block javascript %}
  517. <script>
  518.     // 並び順を変更
  519.     function fnChangeOrderBy(orderby) {
  520.     eccube.setValue('orderby', orderby);
  521.     eccube.setValue('pageno', 1);
  522.     eccube.submitForm();
  523. }
  524.     // 表示件数を変更
  525.     function fnChangeDispNumber(dispNumber) {
  526.     eccube.setValue('disp_number', dispNumber);
  527.     eccube.setValue('pageno', 1);
  528.     eccube.submitForm();
  529. }
  530.     // 商品表示BOXの高さを揃える
  531.     \$(window).load(function() {
  532.     \$('.product_item').matchHeight();
  533. });
  534.     // 表示件数を非表示にする
  535.     \$('#result_info_box__disp_menu').hide();
  536. </script>
  537. {% endblock %}
  538. {% block main %}
  539.     <!-- ▼ 検索窓 for SP -->
  540.     <div id=\"search\" class=\"search my-search\">
  541.     </div>
  542.     <!-- ▲ 検索窓 for SP -->
  543.     {% if search_form.category_id.vars.errors|length == 0 %}
  544.         <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  545.             {% if Category is not null %}
  546.                 {% for Path in Category.path %}
  547.                     <input type=\"hidden\" name=\"category_id\" value=\"{{ Path.id }}\">
  548.                 {% endfor %}
  549.             {% endif %}
  550.             <input type=\"hidden\" id=\"mode\" name=\"mode\" />
  551.             <input type=\"hidden\" id=\"name\" name=\"name\" maxlength=\"50\" />
  552.             <input type=\"hidden\" id=\"pageno\" name=\"pageno\" value=\"1\" />
  553.             <input type=\"hidden\" value=\"100\" id=\"disp_number\" name=\"disp_number\" />
  554.             <input type=\"hidden\" value=\"1\" id=\"orderby\" name=\"orderby\" />
  555.             {# {{ form_widget(search_form) }} #}
  556.         </form>
  557.         <!-- ▼topicpath▼ -->
  558.         <div id=\"topicpath\" class=\"row\">
  559.             <ol id=\"list_header_menu\">
  560.                 <li><a href=\"{{ url('product_list') }}\">全商品</a></li>
  561.                 {% if Category is not null %}
  562.                     {% for Path in Category.path %}
  563.                         <li><a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a></li>
  564.                     {% endfor %}
  565.                 {% endif %}
  566.                 {% if search_form.vars.value.name %}
  567.                     <li>「{{ search_form.vars.value.name }}」の検索結果</li>
  568.                 {% endif %}
  569.             </ol>
  570.         </div>
  571.         <!-- ▲topicpath▲ -->
  572.         <div id=\"result_info_box\" class=\"row\">
  573.             <form name=\"page_navi_top\" id=\"page_navi_top\" action=\"?\">
  574.                 {% if pagination.totalItemCount > 0 %}
  575.                     <p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong><span id=\"productscount\">{{ pagination.totalItemCount }}</span>件</strong>の商品がみつかりました。
  576.                     </p>
  577.                     <div id=\"result_info_box__menu_box\" class=\"col-sm-6 no-padding\">
  578.                         <ul id=\"result_info_box__menu\" class=\"pagenumberarea clearfix\">
  579.                             <li id=\"result_info_box__disp_menu\">
  580.                                 {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'onchange': \"javascript:fnChangeDispNumber(this.value);\"}}) }}
  581.                             </li>
  582.                             <li id=\"result_info_box__order_menu\">
  583.                                 {{ form_widget(search_form.orderby, {'id': '', 'attr': {'onchange': \"javascript:fnChangeOrderBy(this.value);\", 'class': 'form-control'}}) }}
  584.                             </li>
  585.                         </ul>
  586.                     </div>
  587.                     {% for f in search_form.disp_number.getIterator %}
  588.                         {% if f.vars.name matches '[^plg*]' %}
  589.                             {{ form_label(f) }}
  590.                             {{ form_widget(f) }}
  591.                             {{ form_errors(f) }}
  592.                         {% endif %}
  593.                     {% endfor %}
  594.                     {% for f in search_form.orderby.getIterator %}
  595.                         {% if f.vars.name matches '[^plg*]' %}
  596.                             {{ form_label(f) }}
  597.                             {{ form_widget(f) }}
  598.                             {{ form_errors(f) }}
  599.                         {% endif %}
  600.                     {% endfor %}
  601.                 {% else %}
  602.                     <p id=\"result_info_box__item_count\" class=\"intro col-sm-6\"><strong style=\"display: none;\"><span id=\"productscount\">{{ pagination.totalItemCount }}</span>件</strong>お探しの商品は見つかりませんでした。</p>
  603.                 {% endif %}
  604.             </form>
  605.         </div>
  606.         <!-- ▼item_list▼ -->
  607.         <div id=\"item_list\">
  608.             <div class=\"row no-padding\">
  609.                 {% for Product in pagination %}
  610.                     <div id=\"result_list_box--{{ Product.id }}\" class=\"col-lg-2 col-md-3 col-sm-4\">
  611.                         <div id=\"result_list__item--{{ Product.id }}\" class=\"product_item\">
  612.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  613.                                 <div id=\"result_list__image--{{ Product.id }}\" class=\"item_photo\">
  614.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
  615.                                     {% if not Product.stock_find %}
  616.                                         <span class=\"soldout text-danger\" style=\"line-height:1; letter-spacing: 0px;\">SOLD OUT</span>
  617.                                     {% endif %}
  618.                                     {% if Product.ProductTag is not empty %}
  619.                                         <!--▼商品タグ-->
  620.                                         <div class=\"list_tag_box product_tag\">
  621.                                             {% for ProductTag in Product.ProductTag %}
  622.                                                 <span class=\"product_tag_list list_tag_{{ ProductTag.Tag.id }}\">{{ ProductTag.Tag }}</span>
  623.                                             {% endfor %}
  624.                                         </div>
  625.                                         <!--▲商品タグ-->
  626.                                     {% endif %}
  627.                                 </div>
  628.                                 <dl id=\"result_list__detail--{{ Product.id }}\" class=\"item_detail\">
  629.                                     <dt id=\"result_list__name--{{ Product.id }}\" class=\"item_name\">{{ Product.name }}</dt>
  630.                                     {% if Product.description_list %}
  631.                                         <dd id=\"result_list__description_list--{{ Product.id }}\" class=\"item_comment\">{{ Product.description_list|raw|nl2br }}</dd>
  632.                                     {% endif %}
  633.                                     {% set flag = false %}
  634.                                     {% if Product.ProductCategories is not empty %}
  635.                                         {% for category in Product.ProductCategories %}
  636.                                             {% if category.Category.id == 148 or category.Category.id == 133 or category.Category.id == 144 or category.Category.id == 116 %}
  637.                                                 {% set flag = true %}
  638.                                             {% endif %}
  639.                                         {% endfor %}
  640.                                     {% endif %}
  641.                                     {% if flag != true and discount_flag %}
  642.                                         {% if is_granted('ROLE_USER') %}
  643.                                             <span style=\"color:red;\">[{{ discount_ratio }}%割引対象商品です]</span>
  644.                                         {% elseif nonmember_flag %}
  645.                                             <span style=\"color:red;\">[{{ nonmember_ratio }}%割引対象商品です]</span>
  646.                                         {% endif %}
  647.                                     {% endif %}
  648.                                     {% if Product.hasProductClass %}
  649.                                         {% if Product.getPrice02IncTaxMin == getPrice02IncTaxMax %}
  650.                                             <dd id=\"result_list__price02_inc_tax--{{ Product.id }}\" class=\"item_price\">
  651.                                                 {{ Product.getPrice02IncTaxMin|price }}<span class=\"small\"><small>(税込)</small></span>
  652.                                             </dd>
  653.                                         {% elseif getPrice02IncTaxMax|price != '¥ 0' %}
  654.                                             <dd id=\"result_list__price02_inc_tax--{{ Product.id }}\" class=\"item_price\">
  655.                                                 {{ Product.getPrice02xMin|price }} ~ {{ getPrice02IncTaxMax|price }}<span class=\"small\"><small>(税込)</small></span>
  656.                                             </dd>
  657.                                         {% endif %}
  658.                                     {% else %}
  659.                                         <span class=\"tax_management-sale_price tax_management_id_{{Product.id}}\"></span><small>(税込)</small>
  660.                                         {#
  661.                                         <dd id=\"result_list__price02_inc_tax--{{ Product.id }}\" class=\"item_price\">{{ Product.getPrice02IncTaxMin|price }}<span class=\"small\"><small>(税込)</small></span></dd>
  662.                                         #}
  663.                                     {% endif %}
  664.                                 </dl>
  665.                             </a>
  666.                         </div>
  667.                     </div>
  668.                 {% endfor %}
  669.             </div>
  670.         </div>
  671.         <!-- ▲item_list▲ -->
  672.         {% if pagination.totalItemCount > 0 %}
  673.             {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  674.         {% endif %}
  675.     {% else %}
  676.         <p class=\"errormsg text-danger\">ご指定のカテゴリは存在しません。</p>
  677.     {% endif %}
  678. {% endblock %}
  679. ""__string_template__1bcf926165da21a48fbf83479eb452e8""");
  680.     }
  681. }