var/cache/dev/twig/63/6313245846661024561645903c634ef5af863566714252fd2e92cd96798c4e9e.php line 54

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__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54 */
  14. class __TwigTemplate_54d2bdc938600153cc188d058bf062073a8b095b135ca64bad0326f07a87c07a extends \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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"));
  39.         // line 13
  40.         $macros["stars"] = $this->macros["stars"] = $this;
  41.         // line 22
  42.         $context["body_class"] = "product_page";
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 25
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 26
  60.         echo "<script src=\"/html/template/default/assets/js/review.js\"></script>
  61.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js\"></script>
  62.     <script>
  63.         \$(document).on('click', '[data-toggle=\"lightbox\"]', function(event) {
  64.                         event.preventDefault();
  65.                         \$(this).ekkoLightbox();
  66.                     });
  67.         \$(function() {
  68.             const yougo_area = document.getElementById('product_review_area');
  69.             const yougo_parts = document.getElementsByClassName('product_review_part');
  70.             const input = document.getElementById('product_review_word');
  71.             function setHightlight(){
  72.                 const sword = input.value;
  73.                 if(sword==''){return}
  74.                 const regexp = new RegExp(`(?<=>)[^<>]*?(\${sword})[^<>]*?(?=<)`,'gi');
  75.                 const regexp2 = new RegExp(sword,'gi');
  76.                 [...yougo_parts].forEach(part=>{
  77.                 //console.log(part.textContent)
  78.                     if(part.textContent.indexOf(sword)==-1){
  79.                         part.classList.add('hide');
  80.                     }else{
  81.                         part.innerHTML=part.innerHTML.replace(regexp,function(){
  82.                             return arguments[0].replace(regexp2,`<span class=\"highlight\">\${sword}</span>`);
  83.                         });
  84.                     }
  85.                 });
  86.             }
  87.             \$('#product_review_word').change(function(){
  88.                 reset();
  89.                 return setHightlight();
  90.             })
  91.             input.addEventListener('input',()=>{
  92.                 reset();
  93.                 return setHightlight();
  94.             });
  95.             function reset(){
  96.             //console.log('reset');
  97.                 [...document.getElementsByClassName('highlight')].forEach(el=>{
  98.                     el.outerHTML=el.textContent;
  99.                 });
  100.                 [...document.getElementsByClassName('hide')].forEach(el=>{
  101.                     el.classList.remove('hide');
  102.                 });
  103.             }
  104.             setHightlight();
  105.             
  106.             
  107.             \$('.orderby-link').click(function(){
  108.                 var txt = \$(this).text();
  109.                 \$('#orderby-name').text(txt)
  110.             })
  111.             \$('.category-link').click(function(){
  112.                 var txt = \$(this).text();
  113.                 \$('#category-name').text(txt)
  114.             })
  115.         });
  116.         \$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
  117.             \$('.ec-modal').hide()
  118.         });
  119.     </script>
  120. ";
  121.         
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  123.         
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  125.     }
  126.     // line 100
  127.     public function block_main($context, array $blocks = [])
  128.     {
  129.         $macros $this->macros;
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  132.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  134.         // line 101
  135.         echo "    
  136.     <article id=\"new-review-page\" class=\"info_item_review\">
  137.         <div class=\"mlr10\">
  138.             <h2 class=\"review-header-title\">商品レビュー/一覧</h2>                  
  139.                 <hr class=\"solid\"></hr>
  140.                 <div class=\"review-form-row\">
  141.                     <span class=\"review-form-label\" >並び順:</span>
  142.                     <div class=\"review-form-orderby dropdown\">
  143.                         <button class=\"review-form-btn btn btn-default dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\">
  144.                             <span class=\"dropdown-label\" id=\"orderby-name\">
  145.                             ";
  146.         // line 115
  147.         echo twig_escape_filter($this->env, (isset($context["orderby_name"]) || array_key_exists("orderby_name"$context) ? $context["orderby_name"] : (function () { throw new RuntimeError('Variable "orderby_name" does not exist.'115$this->source); })()), "html"nulltrue);
  148.         echo "                            
  149.                             </span>
  150.                             <span class=\"caret\"></span>
  151.                         </button>
  152.                         <ul class=\"dropdown-menu\" role=\"menu\">
  153.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=1&category_id=";
  154.         // line 120
  155.         echo twig_escape_filter($this->env, (isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'120$this->source); })()), "html"nulltrue);
  156.         echo "&keyword=";
  157.         echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'120$this->source); })()), "html"nulltrue);
  158.         echo "\">新着順</a></li>
  159.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=2&category_id=";
  160.         // line 121
  161.         echo twig_escape_filter($this->env, (isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'121$this->source); })()), "html"nulltrue);
  162.         echo "&keyword=";
  163.         echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'121$this->source); })()), "html"nulltrue);
  164.         echo "\">評価の高い順</a></li>
  165.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=3&category_id=";
  166.         // line 122
  167.         echo twig_escape_filter($this->env, (isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'122$this->source); })()), "html"nulltrue);
  168.         echo "&keyword=";
  169.         echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'122$this->source); })()), "html"nulltrue);
  170.         echo "\">評価の低い順</a></li>
  171.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=4&category_id=";
  172.         // line 123
  173.         echo twig_escape_filter($this->env, (isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'123$this->source); })()), "html"nulltrue);
  174.         echo "&keyword=";
  175.         echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'123$this->source); })()), "html"nulltrue);
  176.         echo "\">参考になったの多い順</a></li>
  177.                         </ul>
  178.                     </div>
  179.                     <div class=\"review-form-filter dropdown\">
  180.                         <button class=\"review-form-btn btn btn-default dropdown-toggle review-form-filter-btn\" type=\"button\" data-toggle=\"dropdown\">
  181.                             <span class=\"dropdown-label\" id=\"category-name\">";
  182.         // line 128
  183.         echo twig_escape_filter($this->env, (isset($context["category_name"]) || array_key_exists("category_name"$context) ? $context["category_name"] : (function () { throw new RuntimeError('Variable "category_name" does not exist.'128$this->source); })()), "html"nulltrue);
  184.         echo "</span>
  185.                             <span class=\"caret\"></span>
  186.                         </button>
  187.                         <ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\">
  188.                             <li role=\"presentation\"><a class=\"category-link\" href=\"?category_id=&orderby=";
  189.         // line 132
  190.         echo twig_escape_filter($this->env, (isset($context["orderby"]) || array_key_exists("orderby"$context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.'132$this->source); })()), "html"nulltrue);
  191.         echo "&keyword=";
  192.         echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'132$this->source); })()), "html"nulltrue);
  193.         echo "\">すべて</a></li>
  194.                             ";
  195.         // line 133
  196.         $context['_parent'] = $context;
  197.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'133$this->source); })()));
  198.         foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  199.             // line 134
  200.             echo "                                <li role=\"presentation\"><a class=\"category-link\" href=\"?category_id=";
  201.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "id", [], "any"falsefalsefalse134), "html"nulltrue);
  202.             echo "&orderby=";
  203.             echo twig_escape_filter($this->env, (isset($context["orderby"]) || array_key_exists("orderby"$context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.'134$this->source); })()), "html"nulltrue);
  204.             echo "&keyword=";
  205.             echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'134$this->source); })()), "html"nulltrue);
  206.             echo "\">";
  207.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "name", [], "any"falsefalsefalse134), "html"nulltrue);
  208.             echo "</a></li>
  209.                             ";
  210.         }
  211.         $_parent $context['_parent'];
  212.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  213.         $context array_intersect_key($context$_parent) + $_parent;
  214.         // line 136
  215.         echo "                        </ul>
  216.                     </div>
  217.                 </div>
  218.             <form action=\"/review_list\">
  219.                 <input type=\"hidden\" name=\"category_id\" value=\"";
  220.         // line 142
  221.         echo twig_escape_filter($this->env, (isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'142$this->source); })()), "html"nulltrue);
  222.         echo "\">
  223.                 <input type=\"hidden\" name=\"orderby\" value=\"";
  224.         // line 143
  225.         echo twig_escape_filter($this->env, (isset($context["orderby"]) || array_key_exists("orderby"$context) ? $context["orderby"] : (function () { throw new RuntimeError('Variable "orderby" does not exist.'143$this->source); })()), "html"nulltrue);
  226.         echo "\">
  227.                 <div class=\"review-form-row\">
  228.                     <div class=\"input-group\">
  229.                         <input type=\"text\" class=\"form-control\" id=\"product_review_word\" name=\"keyword\" placeholder=\"キーワードを入力して検索\" value=\"";
  230.         // line 146
  231.         echo twig_escape_filter($this->env, (isset($context["keyword"]) || array_key_exists("keyword"$context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.'146$this->source); })()), "html"nulltrue);
  232.         echo "\">
  233.                         <span class=\"input-group-btn\">
  234.                             <button type=\"submit\" class=\"btn btn-defaul review-form-search-btn\" style=\"height:33px;width:44px;\"><i class=\"fas fa-search\"></i></button>
  235.                         </span>
  236.                     </div>
  237.                 </div>
  238.             </form>
  239.         <hr style=\"border-style:dashed\">
  240.         <section>
  241.                 <div class=\"reviewbox\" id=\"product-review-area\">
  242.                 ";
  243.         // line 162
  244.         $context['_parent'] = $context;
  245.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'162$this->source); })()));
  246.         foreach ($context['_seq'] as $context["_key"] => $context["Review"]) {
  247.             // line 163
  248.             echo "                    ";
  249.             $context["Product"] = twig_get_attribute($this->env$this->source$context["Review"], "Product", [], "any"falsefalsefalse163);
  250.             // line 164
  251.             echo "                    <div class=\"product_review_part\">           
  252.                         <div class=\"review-box review-flexbox\">
  253.                             <div class=\"review-prod-img\">
  254.                             <a href=\"";
  255.             // line 167
  256.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'167$this->source); })()), "id", [], "any"falsefalsefalse167), "slug" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'167$this->source); })()), "slug", [], "any"falsefalsefalse167)]), "html"nulltrue);
  257.             echo "\">
  258.                                 <p class=\"ec-shelfGrid__item-image\">
  259.                                     ";
  260.             // line 170
  261.             echo "                                    <img alt=\"";
  262.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'170$this->source); })()), "name", [], "any"falsefalsefalse170), "html"nulltrue);
  263.             echo "\" src=\"";
  264.             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getR2ImageUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'170$this->source); })()), "main_list_image", [], "any"falsefalsefalse170)), "upload/save_image"), "html"nulltrue);
  265.             echo "\">
  266.                                 </p>
  267.                             </a>
  268.                             </div>
  269.                             <div class=\"review-prod-doc\">
  270.                                 <a href=\"";
  271.             // line 176
  272.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'176$this->source); })()), "id", [], "any"falsefalsefalse176), "slug" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'176$this->source); })()), "slug", [], "any"falsefalsefalse176)]), "html"nulltrue);
  273.             echo "\">
  274.                                     <h3>";
  275.             // line 177
  276.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Review"], "Product", [], "any"falsefalsefalse177), "name", [], "any"falsefalsefalse177), "html"nulltrue);
  277.             echo "</h3>
  278.                                 </a>
  279.                                 <p>
  280.                                 ";
  281.             // line 180
  282.             $context["counter"] = 0;
  283.             // line 181
  284.             echo "                                ";
  285.             $context['_parent'] = $context;
  286.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'181$this->source); })()), "productCategories", [], "any"falsefalsefalse181));
  287.             foreach ($context['_seq'] as $context["_key"] => $context["product_category"]) {
  288.                 // line 182
  289.                 echo "                                    ";
  290.                 if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product_category"], "Category", [], "any"falsefalsefalse182), "id", [], "any"falsefalsefalse182), (isset($context["category_map"]) || array_key_exists("category_map"$context) ? $context["category_map"] : (function () { throw new RuntimeError('Variable "category_map" does not exist.'182$this->source); })()))) {
  291.                     // line 183
  292.                     echo "                                    ";
  293.                     if (((isset($context["counter"]) || array_key_exists("counter"$context) ? $context["counter"] : (function () { throw new RuntimeError('Variable "counter" does not exist.'183$this->source); })()) > 0)) {
  294.                         echo "/";
  295.                     }
  296.                     echo " <a href=\"?category=";
  297.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product_category"], "Category", [], "any"falsefalsefalse183), "id", [], "any"falsefalsefalse183), "html"nulltrue);
  298.                     echo "\">";
  299.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product_category"], "Category", [], "any"falsefalsefalse183), "name", [], "any"falsefalsefalse183), "html"nulltrue);
  300.                     echo "</a> ";
  301.                     $context["counter"] = ((isset($context["counter"]) || array_key_exists("counter"$context) ? $context["counter"] : (function () { throw new RuntimeError('Variable "counter" does not exist.'183$this->source); })()) + 1);
  302.                     echo 
  303.                                     ";
  304.                 }
  305.                 // line 185
  306.                 echo "                                ";
  307.             }
  308.             $_parent $context['_parent'];
  309.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_category'], $context['_parent'], $context['loop']);
  310.             $context array_intersect_key($context$_parent) + $_parent;
  311.             // line 186
  312.             echo "                                <p>
  313.                                 <p><a href=\"";
  314.             // line 187
  315.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'187$this->source); })()), "id", [], "any"falsefalsefalse187), "slug" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'187$this->source); })()), "slug", [], "any"falsefalsefalse187)]), "html"nulltrue);
  316.             echo "\">";
  317.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Customize\Twig\Extension\EccubeExtension']->get_review_count((isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'187$this->source); })())), "ReviewCntList", [], "any"falsefalsefalse187), "html"nulltrue);
  318.             echo "件</a>のレビューがあります</p>
  319.                                 <p>総合評価 
  320.                                 ";
  321.             // line 189
  322.             $context["positive_star"] = twig_get_attribute($this->env$this->source, (isset($context["ReviewAveList"]) || array_key_exists("ReviewAveList"$context) ? $context["ReviewAveList"] : (function () { throw new RuntimeError('Variable "ReviewAveList" does not exist.'189$this->source); })()), twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'189$this->source); })()), "id", [], "any"falsefalsefalse189), [], "array"falsefalsefalse189);
  323.             // line 190
  324.             echo "                                ";
  325.             $context["nagative_star"] = (- (isset($context["positive_star"]) || array_key_exists("positive_star"$context) ? $context["positive_star"] : (function () { throw new RuntimeError('Variable "positive_star" does not exist.'190$this->source); })()));
  326.             // line 191
  327.             echo "                                <span class=\"star\">";
  328.             echo twig_call_macro($macros["stars"], "macro_stars", [(isset($context["positive_star"]) || array_key_exists("positive_star"$context) ? $context["positive_star"] : (function () { throw new RuntimeError('Variable "positive_star" does not exist.'191$this->source); })()), (isset($context["nagative_star"]) || array_key_exists("nagative_star"$context) ? $context["nagative_star"] : (function () { throw new RuntimeError('Variable "nagative_star" does not exist.'191$this->source); })())], 191$context$this->getSourceContext());
  329.             echo "</span>
  330.                                 </p>
  331.                             </div>
  332.                         </div>         
  333.                         <div class=\"review-box\">
  334.                             <span class=\"recommend_star\">
  335.                                 ";
  336.             // line 197
  337.             $context["positive_star"] = twig_get_attribute($this->env$this->source$context["Review"], "recommend_level", [], "any"falsefalsefalse197);
  338.             // line 198
  339.             echo "                                ";
  340.             $context["nagative_star"] = (- (isset($context["positive_star"]) || array_key_exists("positive_star"$context) ? $context["positive_star"] : (function () { throw new RuntimeError('Variable "positive_star" does not exist.'198$this->source); })()));
  341.             // line 199
  342.             echo "                                ";
  343.             echo twig_call_macro($macros["stars"], "macro_stars", [(isset($context["positive_star"]) || array_key_exists("positive_star"$context) ? $context["positive_star"] : (function () { throw new RuntimeError('Variable "positive_star" does not exist.'199$this->source); })()), (isset($context["nagative_star"]) || array_key_exists("nagative_star"$context) ? $context["nagative_star"] : (function () { throw new RuntimeError('Variable "nagative_star" does not exist.'199$this->source); })())], 199$context$this->getSourceContext());
  344.             echo "
  345.                             </span>
  346.                             
  347.                             <span class=\"recommend_date\">";
  348.             // line 202
  349.             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter(twig_get_attribute($this->env$this->source$context["Review"], "create_date", [], "any"falsefalsefalse202), """Y/m/d"), "html"nulltrue);
  350.             echo "</span>
  351.                             
  352.                             <span class=\"recommend_name\">";
  353.             // line 204
  354.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "reviewer_name", [], "any"falsefalsefalse204), "html"nulltrue);
  355.             echo " さん</span>                    
  356.                         </div>
  357.                         <div class=\"rebiew-box\">
  358.                             <p class=\"review-title\">";
  359.             // line 208
  360.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "title", [], "any"falsefalsefalse208), "html"nulltrue);
  361.             echo "</p>
  362.                             <p class=\"review-comm\">";
  363.             // line 209
  364.             echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "comment", [], "any"falsefalsefalse209), "html"nulltrue));
  365.             echo "</p>
  366.                         </div>
  367.                         <div class=\"review-box row\">
  368.                             ";
  369.             // line 213
  370.             if (twig_get_attribute($this->env$this->source$context["Review"], "pic1", [], "any"falsefalsefalse213)) {
  371.                 // line 214
  372.                 echo "                            <div class=\"col-xs-3 review-user-img\"><a href=\"";
  373.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic1", [], "any"falsefalsefalse214), "html"nulltrue);
  374.                 echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
  375.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic1", [], "any"falsefalsefalse214), "html"nulltrue);
  376.                 echo "\"></a></div>
  377.                             ";
  378.             }
  379.             // line 216
  380.             echo "
  381.                             ";
  382.             // line 217
  383.             if (twig_get_attribute($this->env$this->source$context["Review"], "pic2", [], "any"falsefalsefalse217)) {
  384.                 // line 218
  385.                 echo "                            <div class=\"col-xs-3 review-user-img\"><a href=\"";
  386.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic2", [], "any"falsefalsefalse218), "html"nulltrue);
  387.                 echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
  388.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic2", [], "any"falsefalsefalse218), "html"nulltrue);
  389.                 echo "\"></a></div>
  390.                             ";
  391.             }
  392.             // line 220
  393.             echo "                            
  394.                             ";
  395.             // line 221
  396.             if (twig_get_attribute($this->env$this->source$context["Review"], "pic3", [], "any"falsefalsefalse221)) {
  397.                 // line 222
  398.                 echo "                            <div class=\"col-xs-3 review-user-img\"><a href=\"";
  399.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic3", [], "any"falsefalsefalse222), "html"nulltrue);
  400.                 echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
  401.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic3", [], "any"falsefalsefalse222), "html"nulltrue);
  402.                 echo "\"></a></div>
  403.                             ";
  404.             }
  405.             // line 224
  406.             echo "                            
  407.                             ";
  408.             // line 225
  409.             if (twig_get_attribute($this->env$this->source$context["Review"], "pic4", [], "any"falsefalsefalse225)) {
  410.                 // line 226
  411.                 echo "                            <div class=\"col-xs-3 review-user-img\"><a href=\"";
  412.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic4", [], "any"falsefalsefalse226), "html"nulltrue);
  413.                 echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
  414.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "pic4", [], "any"falsefalsefalse226), "html"nulltrue);
  415.                 echo "\"></a></div>
  416.                             ";
  417.             }
  418.             // line 228
  419.             echo "                        </div>
  420.                         <div class=\"review-bottom\">
  421.                             
  422.                             <div class=\"review-ref-msg ref_msg";
  423.             // line 232
  424.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "id", [], "any"falsefalsefalse232), "html"nulltrue);
  425.             echo "\" style=\"";
  426.             if ((twig_get_attribute($this->env$this->source$context["Review"], "ref_count", [], "any"falsefalsefalse232) > 0)) {
  427.                 echo "  ";
  428.             } else {
  429.                 echo " display:none ";
  430.             }
  431.             echo "\"><strong id=\"ref_count";
  432.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "id", [], "any"falsefalsefalse232), "html"nulltrue);
  433.             echo "\" target=\"_blank\" data-ref=\"";
  434.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "ref_count", [], "any"falsefalsefalse232), "html"nulltrue);
  435.             echo "\">";
  436.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "ref_count", [], "any"falsefalsefalse232), "html"nulltrue);
  437.             echo "</strong>人が参考になったと回答しました!</div>
  438. \t\t\t\t\t<div class=\"row\">
  439. \t\t\t\t\t\t<div class=\"col-xs-6\">
  440.                             ";
  441.             // line 236
  442.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  443.                 // line 237
  444.                 echo "                                ";
  445.                 if (twig_in_filter((isset($context["user_id"]) || array_key_exists("user_id"$context) ? $context["user_id"] : (function () { throw new RuntimeError('Variable "user_id" does not exist.'237$this->source); })()), twig_get_attribute($this->env$this->source$context["Review"], "getRefUsers", [], "method"falsefalsefalse237))) {
  446.                     // line 238
  447.                     echo "                                    <button type=\"button\" class=\"review-ref-button review-ref-pushed\" disabled=\"disabled\" data-rid=\"";
  448.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "id", [], "any"falsefalsefalse238), "html"nulltrue);
  449.                     echo "\"><span>参考になった!</span></button>                                
  450.                                 ";
  451.                 } else {
  452.                     // line 240
  453.                     echo "                                    <button type=\"button\" class=\"review-ref-button\" data-rid=\"";
  454.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "id", [], "any"falsefalsefalse240), "html"nulltrue);
  455.                     echo "\"><span>参考になった!</span></button>
  456.                                 ";
  457.                 }
  458.                 // line 242
  459.                 echo "                            ";
  460.             } else {
  461.                 // line 243
  462.                 echo "                                <a href=\"";
  463.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  464.                 echo "\" class=\"review-ref-button\"><span>参考になった!</span></a>                                
  465.                             ";
  466.             }
  467.             // line 245
  468.             echo "\t\t\t\t\t\t</div>
  469. \t\t\t\t\t\t<div class=\"col-xs-6 thank-btn-div\" style=\"padding-top:7px\">
  470. \t\t\t\t\t\t\t<button class=\"btn btn-secondary thank-btn\" type=\"button\">違反を報告する</button>
  471. \t\t\t\t\t\t\t<span class=\"icon-thank-msg\"><i class=\"bi bi-check\"></i>フィードバックをお寄せいただきありがとうございます</span>
  472. \t\t\t\t\t\t</div>
  473. \t\t\t\t</div>
  474.                         <hr class=\"review-bar\">
  475.                     </div>
  476.                 ";
  477.         }
  478.         $_parent $context['_parent'];
  479.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Review'], $context['_parent'], $context['loop']);
  480.         $context array_intersect_key($context$_parent) + $_parent;
  481.         // line 255
  482.         echo "                    
  483.                 ";
  484.         // line 280
  485.         echo "
  486.                 </div>
  487.                 <div class=\"ec-pagerRole\">
  488.                     ";
  489.         // line 284
  490.         $this->loadTemplate("pager.twig""__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"284)->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.'284$this->source); })()), "paginationData", [], "any"falsefalsefalse284)]));
  491.         // line 285
  492.         echo "                </div>
  493.         </section>
  494.     </article>
  495.     ";
  496.         // line 290
  497.         $this->loadTemplate("Product/category.twig""__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"290)->display($context);
  498.         // line 291
  499.         echo "
  500.     ";
  501.         // line 315
  502.         echo "
  503. ";
  504.         
  505.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  506.         
  507.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  508.     }
  509.     // line 16
  510.     public function macro_stars($__positive__ null$__negative__ null, ...$__varargs__)
  511.     {
  512.         $macros $this->macros;
  513.         $context $this->env->mergeGlobals([
  514.             "positive" => $__positive__,
  515.             "negative" => $__negative__,
  516.             "varargs" => $__varargs__,
  517.         ]);
  518.         $blocks = [];
  519.         ob_start();
  520.         try {
  521.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  522.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""stars"));
  523.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  524.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""stars"));
  525.             // line 17
  526.             echo "    ";
  527.             $context["positive_stars"] = [=> ""=> "★"=> "★★"=> "★★★"=> "★★★★"=> "★★★★★"];
  528.             // line 18
  529.             echo "    ";
  530.             $context["negative_stars"] = [=> ""=> "☆"=> "☆☆"=> "☆☆☆"=> "☆☆☆☆"=> "☆☆☆☆☆"];
  531.             // line 19
  532.             echo "    ";
  533.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["positive_stars"]) || array_key_exists("positive_stars"$context) ? $context["positive_stars"] : (function () { throw new RuntimeError('Variable "positive_stars" does not exist.'19$this->source); })()), (isset($context["positive"]) || array_key_exists("positive"$context) ? $context["positive"] : (function () { throw new RuntimeError('Variable "positive" does not exist.'19$this->source); })()), [], "array"falsefalsefalse19), "html"nulltrue);
  534.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["negative_stars"]) || array_key_exists("negative_stars"$context) ? $context["negative_stars"] : (function () { throw new RuntimeError('Variable "negative_stars" does not exist.'19$this->source); })()), (isset($context["negative"]) || array_key_exists("negative"$context) ? $context["negative"] : (function () { throw new RuntimeError('Variable "negative" does not exist.'19$this->source); })()), [], "array"falsefalsefalse19), "html"nulltrue);
  535.             echo "
  536. ";
  537.             
  538.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  539.             
  540.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  541.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  542.         } finally {
  543.             ob_end_clean();
  544.         }
  545.     }
  546.     public function getTemplateName()
  547.     {
  548.         return "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54";
  549.     }
  550.     public function isTraitable()
  551.     {
  552.         return false;
  553.     }
  554.     public function getDebugInfo()
  555.     {
  556.         return array (  591 => 19,  588 => 18,  585 => 17,  565 => 16,  554 => 315,  551 => 291,  549 => 290,  542 => 285,  540 => 284,  534 => 280,  531 => 255,  516 => 245,  510 => 243,  507 => 242,  501 => 240,  495 => 238,  492 => 237,  490 => 236,  471 => 232,  465 => 228,  457 => 226,  455 => 225,  452 => 224,  444 => 222,  442 => 221,  439 => 220,  431 => 218,  429 => 217,  426 => 216,  418 => 214,  416 => 213,  409 => 209,  405 => 208,  398 => 204,  393 => 202,  386 => 199,  383 => 198,  381 => 197,  371 => 191,  368 => 190,  366 => 189,  359 => 187,  356 => 186,  350 => 185,  336 => 183,  333 => 182,  328 => 181,  326 => 180,  320 => 177,  316 => 176,  304 => 170,  299 => 167,  294 => 164,  291 => 163,  287 => 162,  268 => 146,  262 => 143,  258 => 142,  250 => 136,  235 => 134,  231 => 133,  225 => 132,  218 => 128,  208 => 123,  202 => 122,  196 => 121,  190 => 120,  182 => 115,  166 => 101,  156 => 100,  74 => 26,  64 => 25,  53 => 11,  51 => 22,  49 => 13,  36 => 11,);
  557.     }
  558.     public function getSourceContext()
  559.     {
  560.         return new Source("{#
  561. This file is part of EC-CUBE
  562. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  563. http://www.ec-cube.co.jp/
  564. For the full copyright and license information, please view the LICENSE
  565. file that was distributed with this source code.
  566. #}
  567. {% extends 'default_frame.twig' %}
  568. {% import _self as stars %}
  569. {# 星テキスト生成用マクロ #}
  570. {% macro stars(positive, negative) %}
  571.     {% set positive_stars = [\"\", \"★\", \"★★\", \"★★★\", \"★★★★\", \"★★★★★\"] %}
  572.     {% set negative_stars = [\"\", \"☆\", \"☆☆\", \"☆☆☆\", \"☆☆☆☆\", \"☆☆☆☆☆\"] %}
  573.     {{ positive_stars[positive] }}{{ negative_stars[negative] }}
  574. {% endmacro %}
  575. {% set body_class = \"product_page\" %}
  576. {% block javascript %}
  577. <script src=\"/html/template/default/assets/js/review.js\"></script>
  578.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js\"></script>
  579.     <script>
  580.         \$(document).on('click', '[data-toggle=\"lightbox\"]', function(event) {
  581.                         event.preventDefault();
  582.                         \$(this).ekkoLightbox();
  583.                     });
  584.         \$(function() {
  585.             const yougo_area = document.getElementById('product_review_area');
  586.             const yougo_parts = document.getElementsByClassName('product_review_part');
  587.             const input = document.getElementById('product_review_word');
  588.             function setHightlight(){
  589.                 const sword = input.value;
  590.                 if(sword==''){return}
  591.                 const regexp = new RegExp(`(?<=>)[^<>]*?(\${sword})[^<>]*?(?=<)`,'gi');
  592.                 const regexp2 = new RegExp(sword,'gi');
  593.                 [...yougo_parts].forEach(part=>{
  594.                 //console.log(part.textContent)
  595.                     if(part.textContent.indexOf(sword)==-1){
  596.                         part.classList.add('hide');
  597.                     }else{
  598.                         part.innerHTML=part.innerHTML.replace(regexp,function(){
  599.                             return arguments[0].replace(regexp2,`<span class=\"highlight\">\${sword}</span>`);
  600.                         });
  601.                     }
  602.                 });
  603.             }
  604.             \$('#product_review_word').change(function(){
  605.                 reset();
  606.                 return setHightlight();
  607.             })
  608.             input.addEventListener('input',()=>{
  609.                 reset();
  610.                 return setHightlight();
  611.             });
  612.             function reset(){
  613.             //console.log('reset');
  614.                 [...document.getElementsByClassName('highlight')].forEach(el=>{
  615.                     el.outerHTML=el.textContent;
  616.                 });
  617.                 [...document.getElementsByClassName('hide')].forEach(el=>{
  618.                     el.classList.remove('hide');
  619.                 });
  620.             }
  621.             setHightlight();
  622.             
  623.             
  624.             \$('.orderby-link').click(function(){
  625.                 var txt = \$(this).text();
  626.                 \$('#orderby-name').text(txt)
  627.             })
  628.             \$('.category-link').click(function(){
  629.                 var txt = \$(this).text();
  630.                 \$('#category-name').text(txt)
  631.             })
  632.         });
  633.         \$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
  634.             \$('.ec-modal').hide()
  635.         });
  636.     </script>
  637. {% endblock %}
  638. {% block main %}
  639.     
  640.     <article id=\"new-review-page\" class=\"info_item_review\">
  641.         <div class=\"mlr10\">
  642.             <h2 class=\"review-header-title\">商品レビュー/一覧</h2>                  
  643.                 <hr class=\"solid\"></hr>
  644.                 <div class=\"review-form-row\">
  645.                     <span class=\"review-form-label\" >並び順:</span>
  646.                     <div class=\"review-form-orderby dropdown\">
  647.                         <button class=\"review-form-btn btn btn-default dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\">
  648.                             <span class=\"dropdown-label\" id=\"orderby-name\">
  649.                             {{ orderby_name }}                            
  650.                             </span>
  651.                             <span class=\"caret\"></span>
  652.                         </button>
  653.                         <ul class=\"dropdown-menu\" role=\"menu\">
  654.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=1&category_id={{ category_id }}&keyword={{ keyword }}\">新着順</a></li>
  655.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=2&category_id={{ category_id }}&keyword={{ keyword }}\">評価の高い順</a></li>
  656.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=3&category_id={{ category_id }}&keyword={{ keyword }}\">評価の低い順</a></li>
  657.                             <li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=4&category_id={{ category_id }}&keyword={{ keyword }}\">参考になったの多い順</a></li>
  658.                         </ul>
  659.                     </div>
  660.                     <div class=\"review-form-filter dropdown\">
  661.                         <button class=\"review-form-btn btn btn-default dropdown-toggle review-form-filter-btn\" type=\"button\" data-toggle=\"dropdown\">
  662.                             <span class=\"dropdown-label\" id=\"category-name\">{{ category_name }}</span>
  663.                             <span class=\"caret\"></span>
  664.                         </button>
  665.                         <ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\">
  666.                             <li role=\"presentation\"><a class=\"category-link\" href=\"?category_id=&orderby={{orderby}}&keyword={{ keyword }}\">すべて</a></li>
  667.                             {% for cate in categories %}
  668.                                 <li role=\"presentation\"><a class=\"category-link\" href=\"?category_id={{ cate.id }}&orderby={{orderby}}&keyword={{ keyword }}\">{{ cate.name }}</a></li>
  669.                             {% endfor %}
  670.                         </ul>
  671.                     </div>
  672.                 </div>
  673.             <form action=\"/review_list\">
  674.                 <input type=\"hidden\" name=\"category_id\" value=\"{{ category_id }}\">
  675.                 <input type=\"hidden\" name=\"orderby\" value=\"{{ orderby }}\">
  676.                 <div class=\"review-form-row\">
  677.                     <div class=\"input-group\">
  678.                         <input type=\"text\" class=\"form-control\" id=\"product_review_word\" name=\"keyword\" placeholder=\"キーワードを入力して検索\" value=\"{{ keyword }}\">
  679.                         <span class=\"input-group-btn\">
  680.                             <button type=\"submit\" class=\"btn btn-defaul review-form-search-btn\" style=\"height:33px;width:44px;\"><i class=\"fas fa-search\"></i></button>
  681.                         </span>
  682.                     </div>
  683.                 </div>
  684.             </form>
  685.         <hr style=\"border-style:dashed\">
  686.         <section>
  687.                 <div class=\"reviewbox\" id=\"product-review-area\">
  688.                 {% for Review in pagination %}
  689.                     {% set Product = Review.Product %}
  690.                     <div class=\"product_review_part\">           
  691.                         <div class=\"review-box review-flexbox\">
  692.                             <div class=\"review-prod-img\">
  693.                             <a href=\"{{ url('product_detail', {'id': Product.id, 'slug': Product.slug}) }}\">
  694.                                 <p class=\"ec-shelfGrid__item-image\">
  695.                                     {# <img alt=\"{{ Product.name }}\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\"> #}
  696.                                     <img alt=\"{{ Product.name }}\" src=\"{{ getR2ImageUrl(Product.main_list_image|no_image_product, 'upload/save_image') }}\">
  697.                                 </p>
  698.                             </a>
  699.                             </div>
  700.                             <div class=\"review-prod-doc\">
  701.                                 <a href=\"{{ url('product_detail', {'id': Product.id, 'slug': Product.slug}) }}\">
  702.                                     <h3>{{ Review.Product.name }}</h3>
  703.                                 </a>
  704.                                 <p>
  705.                                 {% set counter=0 %}
  706.                                 {% for product_category in Product.productCategories %}
  707.                                     {% if product_category.Category.id in category_map %}
  708.                                     {% if counter > 0 %}/{% endif %} <a href=\"?category={{ product_category.Category.id }}\">{{ product_category.Category.name }}</a> {% set counter = counter + 1 %} 
  709.                                     {% endif %}
  710.                                 {% endfor %}
  711.                                 <p>
  712.                                 <p><a href=\"{{ url('product_detail', {'id': Product.id, 'slug': Product.slug}) }}\">{{ get_review_count(Product).ReviewCntList }}件</a>のレビューがあります</p>
  713.                                 <p>総合評価 
  714.                                 {% set positive_star = ReviewAveList[Product.id] %}
  715.                                 {% set nagative_star = 5 - positive_star %}
  716.                                 <span class=\"star\">{{ stars.stars(positive_star, nagative_star) }}</span>
  717.                                 </p>
  718.                             </div>
  719.                         </div>         
  720.                         <div class=\"review-box\">
  721.                             <span class=\"recommend_star\">
  722.                                 {% set positive_star = Review.recommend_level %}
  723.                                 {% set nagative_star = 5 - positive_star %}
  724.                                 {{ stars.stars(positive_star, nagative_star) }}
  725.                             </span>
  726.                             
  727.                             <span class=\"recommend_date\">{{ Review.create_date|date_format('','Y/m/d') }}</span>
  728.                             
  729.                             <span class=\"recommend_name\">{{ Review.reviewer_name }} さん</span>                    
  730.                         </div>
  731.                         <div class=\"rebiew-box\">
  732.                             <p class=\"review-title\">{{ Review.title }}</p>
  733.                             <p class=\"review-comm\">{{ Review.comment|nl2br }}</p>
  734.                         </div>
  735.                         <div class=\"review-box row\">
  736.                             {% if Review.pic1 %}
  737.                             <div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic1 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic1 }}\"></a></div>
  738.                             {% endif %}
  739.                             {% if Review.pic2 %}
  740.                             <div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic2 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic2 }}\"></a></div>
  741.                             {% endif %}
  742.                             
  743.                             {% if Review.pic3 %}
  744.                             <div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic3 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic3 }}\"></a></div>
  745.                             {% endif %}
  746.                             
  747.                             {% if Review.pic4 %}
  748.                             <div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic4 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic4 }}\"></a></div>
  749.                             {% endif %}
  750.                         </div>
  751.                         <div class=\"review-bottom\">
  752.                             
  753.                             <div class=\"review-ref-msg ref_msg{{ Review.id }}\" style=\"{% if Review.ref_count > 0 %}  {% else %} display:none {% endif %}\"><strong id=\"ref_count{{ Review.id }}\" target=\"_blank\" data-ref=\"{{ Review.ref_count }}\">{{ Review.ref_count }}</strong>人が参考になったと回答しました!</div>
  754. \t\t\t\t\t<div class=\"row\">
  755. \t\t\t\t\t\t<div class=\"col-xs-6\">
  756.                             {% if is_granted('ROLE_USER') %}
  757.                                 {% if user_id in Review.getRefUsers() %}
  758.                                     <button type=\"button\" class=\"review-ref-button review-ref-pushed\" disabled=\"disabled\" data-rid=\"{{ Review.id }}\"><span>参考になった!</span></button>                                
  759.                                 {% else %}
  760.                                     <button type=\"button\" class=\"review-ref-button\" data-rid=\"{{ Review.id }}\"><span>参考になった!</span></button>
  761.                                 {% endif %}
  762.                             {% else %}
  763.                                 <a href=\"{{ url('mypage_login') }}\" class=\"review-ref-button\"><span>参考になった!</span></a>                                
  764.                             {% endif %}
  765. \t\t\t\t\t\t</div>
  766. \t\t\t\t\t\t<div class=\"col-xs-6 thank-btn-div\" style=\"padding-top:7px\">
  767. \t\t\t\t\t\t\t<button class=\"btn btn-secondary thank-btn\" type=\"button\">違反を報告する</button>
  768. \t\t\t\t\t\t\t<span class=\"icon-thank-msg\"><i class=\"bi bi-check\"></i>フィードバックをお寄せいただきありがとうございます</span>
  769. \t\t\t\t\t\t</div>
  770. \t\t\t\t</div>
  771.                         <hr class=\"review-bar\">
  772.                     </div>
  773.                 {% endfor %}
  774.                     
  775.                 {# % for Review in ProductReviews %}
  776.                     <div>           
  777.                         <div class=\"review-box\">
  778.                         </div>         
  779.                         <div class=\"review-box\">
  780.                             <span class=\"recommend_level\"> ★×{{ Review.recommend_level }}</span>
  781.                             
  782.                             <span class=\"recommend_date\">{{ Review.create_date|date_format('','Y/m/d') }}</span>
  783.                             
  784.                             <span class=\"recommend_name\">{{ Review.reviewer_name }} さん</span>                    
  785.                         </div>
  786.                         <div class=\"rebiew-box\">
  787.                             <p class=\"review-title\">{{ Review.title }}</p>
  788.                             <p class=\"review-comm\">{{ Review.comment|nl2br }}</p>
  789.                         </div>
  790.                         <div class=\"review-bottom\">
  791.                             <span>11</span>人が参考になったと回答しました!
  792.                             <button><span>参考になった!</span></button>
  793.                         </div>
  794.                     </div>
  795.                 {% endfor % #}
  796.                 </div>
  797.                 <div class=\"ec-pagerRole\">
  798.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  799.                 </div>
  800.         </section>
  801.     </article>
  802.     {% include \"Product/category.twig\" %}
  803.     {#
  804.     <div class=\"category-list\">
  805.         <p class=\"title\">カテゴリから探す</p>
  806.         <div class=\"inr\">
  807.             <ul>
  808.                 <li class=\"c01\"><a href=\"{{ url('product_list') }}?category_id=7\">カラーシャンプー</a></li>
  809.                 <li class=\"c02\"><a href=\"{{ url('product_list') }}?category_id=18\">ヒト幹細胞ヘアケア</a></li>
  810.                 <li class=\"c03\"><a href=\"{{ url('product_list') }}?category_id=8\">カラー剤<br>ブリーチ剤</a></li>
  811.                 <li class=\"c04\"><a href=\"{{ url('product_list') }}?category_id=12\"> トリートメント<br>(インバス)</a></li>
  812.                 <li class=\"c05\"><a href=\"{{ url('product_list') }}?category_id=17\">トリートメント<br>(アウトバス)</a></li>
  813.                 <li class=\"c06\"><a href=\"{{ url('product_list') }}?category_id=11\">ヘアケア</a></li>
  814.                 <li class=\"c07\"><a href=\"{{ url('product_list') }}?category_id=9\">ヘアカラー関連</a></li>
  815.                 <li class=\"c08\"><a href=\"{{ url('product_list') }}?category_id=19\">サロン関連</a></li>
  816.                 <li class=\"c09\"><a href=\"{{ url('product_list') }}?category_id=15\">教材</a></li>
  817.                 <li class=\"c10\"><a href=\"{{ url('product_list') }}?category_id=16\">公式通販限定</a></li>
  818.                 <li class=\"c11\"><a href=\"{{ url('product_list') }}?category_id=20\">タイムセール</a></li>
  819.                 <li class=\"c12\"><a href=\"{{ url('product_list') }}?category_id=21\">コーム</a></li>
  820.                 <li class=\"c13\"><a href=\"{{ url('product_list') }}?category_id=10\">書籍</a></li>
  821.                 <li class=\"c14\"><a href=\"{{ url('product_list') }}?category_id=22\">CBD</a></li>
  822.             </ul>
  823.         </div>
  824.     </div>
  825.     #}
  826. {% endblock %}""__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54""");
  827.     }
  828. }