<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* __string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54 */
class __TwigTemplate_54d2bdc938600153cc188d058bf062073a8b095b135ca64bad0326f07a87c07a extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54"));
// line 13
$macros["stars"] = $this->macros["stars"] = $this;
// line 22
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 25
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 26
echo "<script src=\"/html/template/default/assets/js/review.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js\"></script>
<script>
\$(document).on('click', '[data-toggle=\"lightbox\"]', function(event) {
event.preventDefault();
\$(this).ekkoLightbox();
});
\$(function() {
const yougo_area = document.getElementById('product_review_area');
const yougo_parts = document.getElementsByClassName('product_review_part');
const input = document.getElementById('product_review_word');
function setHightlight(){
const sword = input.value;
if(sword==''){return}
const regexp = new RegExp(`(?<=>)[^<>]*?(\${sword})[^<>]*?(?=<)`,'gi');
const regexp2 = new RegExp(sword,'gi');
[...yougo_parts].forEach(part=>{
//console.log(part.textContent)
if(part.textContent.indexOf(sword)==-1){
part.classList.add('hide');
}else{
part.innerHTML=part.innerHTML.replace(regexp,function(){
return arguments[0].replace(regexp2,`<span class=\"highlight\">\${sword}</span>`);
});
}
});
}
\$('#product_review_word').change(function(){
reset();
return setHightlight();
})
input.addEventListener('input',()=>{
reset();
return setHightlight();
});
function reset(){
//console.log('reset');
[...document.getElementsByClassName('highlight')].forEach(el=>{
el.outerHTML=el.textContent;
});
[...document.getElementsByClassName('hide')].forEach(el=>{
el.classList.remove('hide');
});
}
setHightlight();
\$('.orderby-link').click(function(){
var txt = \$(this).text();
\$('#orderby-name').text(txt)
})
\$('.category-link').click(function(){
var txt = \$(this).text();
\$('#category-name').text(txt)
})
});
\$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 100
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 101
echo "
<article id=\"new-review-page\" class=\"info_item_review\">
<div class=\"mlr10\">
<h2 class=\"review-header-title\">商品レビュー/一覧</h2>
<hr class=\"solid\"></hr>
<div class=\"review-form-row\">
<span class=\"review-form-label\" >並び順:</span>
<div class=\"review-form-orderby dropdown\">
<button class=\"review-form-btn btn btn-default dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\">
<span class=\"dropdown-label\" id=\"orderby-name\">
";
// line 115
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", null, true);
echo "
</span>
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu\" role=\"menu\">
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=1&category_id=";
// line 120
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", null, true);
echo "&keyword=";
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", null, true);
echo "\">新着順</a></li>
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=2&category_id=";
// line 121
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", null, true);
echo "&keyword=";
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", null, true);
echo "\">評価の高い順</a></li>
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=3&category_id=";
// line 122
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", null, true);
echo "&keyword=";
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", null, true);
echo "\">評価の低い順</a></li>
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=4&category_id=";
// line 123
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", null, true);
echo "&keyword=";
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", null, true);
echo "\">参考になったの多い順</a></li>
</ul>
</div>
<div class=\"review-form-filter dropdown\">
<button class=\"review-form-btn btn btn-default dropdown-toggle review-form-filter-btn\" type=\"button\" data-toggle=\"dropdown\">
<span class=\"dropdown-label\" id=\"category-name\">";
// line 128
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", null, true);
echo "</span>
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\">
<li role=\"presentation\"><a class=\"category-link\" href=\"?category_id=&orderby=";
// line 132
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", null, true);
echo "&keyword=";
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", null, true);
echo "\">すべて</a></li>
";
// line 133
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
// line 134
echo " <li role=\"presentation\"><a class=\"category-link\" href=\"?category_id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cate"], "id", [], "any", false, false, false, 134), "html", null, true);
echo "&orderby=";
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", null, true);
echo "&keyword=";
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", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cate"], "name", [], "any", false, false, false, 134), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 136
echo " </ul>
</div>
</div>
<form action=\"/review_list\">
<input type=\"hidden\" name=\"category_id\" value=\"";
// line 142
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", null, true);
echo "\">
<input type=\"hidden\" name=\"orderby\" value=\"";
// line 143
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", null, true);
echo "\">
<div class=\"review-form-row\">
<div class=\"input-group\">
<input type=\"text\" class=\"form-control\" id=\"product_review_word\" name=\"keyword\" placeholder=\"キーワードを入力して検索\" value=\"";
// line 146
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", null, true);
echo "\">
<span class=\"input-group-btn\">
<button type=\"submit\" class=\"btn btn-defaul review-form-search-btn\" style=\"height:33px;width:44px;\"><i class=\"fas fa-search\"></i></button>
</span>
</div>
</div>
</form>
<hr style=\"border-style:dashed\">
<section>
<div class=\"reviewbox\" id=\"product-review-area\">
";
// line 162
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Review"]) {
// line 163
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, $context["Review"], "Product", [], "any", false, false, false, 163);
// line 164
echo " <div class=\"product_review_part\">
<div class=\"review-box review-flexbox\">
<div class=\"review-prod-img\">
<a href=\"";
// line 167
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", false, false, false, 167), "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", false, false, false, 167)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
";
// line 170
echo " <img alt=\"";
echo twig_escape_filter($this->env, 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); })()), "name", [], "any", false, false, false, 170), "html", null, true);
echo "\" src=\"";
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", false, false, false, 170)), "upload/save_image"), "html", null, true);
echo "\">
</p>
</a>
</div>
<div class=\"review-prod-doc\">
<a href=\"";
// line 176
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", false, false, false, 176), "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", false, false, false, 176)]), "html", null, true);
echo "\">
<h3>";
// line 177
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Review"], "Product", [], "any", false, false, false, 177), "name", [], "any", false, false, false, 177), "html", null, true);
echo "</h3>
</a>
<p>
";
// line 180
$context["counter"] = 0;
// line 181
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 181));
foreach ($context['_seq'] as $context["_key"] => $context["product_category"]) {
// line 182
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product_category"], "Category", [], "any", false, false, false, 182), "id", [], "any", false, false, false, 182), (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); })()))) {
// line 183
echo " ";
if (((isset($context["counter"]) || array_key_exists("counter", $context) ? $context["counter"] : (function () { throw new RuntimeError('Variable "counter" does not exist.', 183, $this->source); })()) > 0)) {
echo "/";
}
echo " <a href=\"?category=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product_category"], "Category", [], "any", false, false, false, 183), "id", [], "any", false, false, false, 183), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product_category"], "Category", [], "any", false, false, false, 183), "name", [], "any", false, false, false, 183), "html", null, true);
echo "</a> ";
$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);
echo "
";
}
// line 185
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 186
echo " <p>
<p><a href=\"";
// line 187
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", false, false, false, 187), "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", false, false, false, 187)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_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", false, false, false, 187), "html", null, true);
echo "件</a>のレビューがあります</p>
<p>総合評価
";
// line 189
$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", false, false, false, 189), [], "array", false, false, false, 189);
// line 190
echo " ";
$context["nagative_star"] = (5 - (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); })()));
// line 191
echo " <span class=\"star\">";
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());
echo "</span>
</p>
</div>
</div>
<div class=\"review-box\">
<span class=\"recommend_star\">
";
// line 197
$context["positive_star"] = twig_get_attribute($this->env, $this->source, $context["Review"], "recommend_level", [], "any", false, false, false, 197);
// line 198
echo " ";
$context["nagative_star"] = (5 - (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); })()));
// line 199
echo " ";
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());
echo "
</span>
<span class=\"recommend_date\">";
// line 202
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", false, false, false, 202), "", "Y/m/d"), "html", null, true);
echo "</span>
<span class=\"recommend_name\">";
// line 204
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "reviewer_name", [], "any", false, false, false, 204), "html", null, true);
echo " さん</span>
</div>
<div class=\"rebiew-box\">
<p class=\"review-title\">";
// line 208
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "title", [], "any", false, false, false, 208), "html", null, true);
echo "</p>
<p class=\"review-comm\">";
// line 209
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "comment", [], "any", false, false, false, 209), "html", null, true));
echo "</p>
</div>
<div class=\"review-box row\">
";
// line 213
if (twig_get_attribute($this->env, $this->source, $context["Review"], "pic1", [], "any", false, false, false, 213)) {
// line 214
echo " <div class=\"col-xs-3 review-user-img\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic1", [], "any", false, false, false, 214), "html", null, true);
echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic1", [], "any", false, false, false, 214), "html", null, true);
echo "\"></a></div>
";
}
// line 216
echo "
";
// line 217
if (twig_get_attribute($this->env, $this->source, $context["Review"], "pic2", [], "any", false, false, false, 217)) {
// line 218
echo " <div class=\"col-xs-3 review-user-img\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic2", [], "any", false, false, false, 218), "html", null, true);
echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic2", [], "any", false, false, false, 218), "html", null, true);
echo "\"></a></div>
";
}
// line 220
echo "
";
// line 221
if (twig_get_attribute($this->env, $this->source, $context["Review"], "pic3", [], "any", false, false, false, 221)) {
// line 222
echo " <div class=\"col-xs-3 review-user-img\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic3", [], "any", false, false, false, 222), "html", null, true);
echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic3", [], "any", false, false, false, 222), "html", null, true);
echo "\"></a></div>
";
}
// line 224
echo "
";
// line 225
if (twig_get_attribute($this->env, $this->source, $context["Review"], "pic4", [], "any", false, false, false, 225)) {
// line 226
echo " <div class=\"col-xs-3 review-user-img\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic4", [], "any", false, false, false, 226), "html", null, true);
echo "\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "pic4", [], "any", false, false, false, 226), "html", null, true);
echo "\"></a></div>
";
}
// line 228
echo " </div>
<div class=\"review-bottom\">
<div class=\"review-ref-msg ref_msg";
// line 232
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "id", [], "any", false, false, false, 232), "html", null, true);
echo "\" style=\"";
if ((twig_get_attribute($this->env, $this->source, $context["Review"], "ref_count", [], "any", false, false, false, 232) > 0)) {
echo " ";
} else {
echo " display:none ";
}
echo "\"><strong id=\"ref_count";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "id", [], "any", false, false, false, 232), "html", null, true);
echo "\" target=\"_blank\" data-ref=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "ref_count", [], "any", false, false, false, 232), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "ref_count", [], "any", false, false, false, 232), "html", null, true);
echo "</strong>人が参考になったと回答しました!</div>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-xs-6\">
";
// line 236
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 237
echo " ";
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", false, false, false, 237))) {
// line 238
echo " <button type=\"button\" class=\"review-ref-button review-ref-pushed\" disabled=\"disabled\" data-rid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "id", [], "any", false, false, false, 238), "html", null, true);
echo "\"><span>参考になった!</span></button>
";
} else {
// line 240
echo " <button type=\"button\" class=\"review-ref-button\" data-rid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Review"], "id", [], "any", false, false, false, 240), "html", null, true);
echo "\"><span>参考になった!</span></button>
";
}
// line 242
echo " ";
} else {
// line 243
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"review-ref-button\"><span>参考になった!</span></a>
";
}
// line 245
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-xs-6 thank-btn-div\" style=\"padding-top:7px\">
\t\t\t\t\t\t\t<button class=\"btn btn-secondary thank-btn\" type=\"button\">違反を報告する</button>
\t\t\t\t\t\t\t<span class=\"icon-thank-msg\"><i class=\"bi bi-check\"></i>フィードバックをお寄せいただきありがとうございます</span>
\t\t\t\t\t\t</div>
\t\t\t\t</div>
<hr class=\"review-bar\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Review'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 255
echo "
";
// line 280
echo "
</div>
<div class=\"ec-pagerRole\">
";
// line 284
$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", false, false, false, 284)]));
// line 285
echo " </div>
</section>
</article>
";
// line 290
$this->loadTemplate("Product/category.twig", "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54", 290)->display($context);
// line 291
echo "
";
// line 315
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function macro_stars($__positive__ = null, $__negative__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"positive" => $__positive__,
"negative" => $__negative__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "stars"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "stars"));
// line 17
echo " ";
$context["positive_stars"] = [0 => "", 1 => "★", 2 => "★★", 3 => "★★★", 4 => "★★★★", 5 => "★★★★★"];
// line 18
echo " ";
$context["negative_stars"] = [0 => "", 1 => "☆", 2 => "☆☆", 3 => "☆☆☆", 4 => "☆☆☆☆", 5 => "☆☆☆☆☆"];
// line 19
echo " ";
echo twig_escape_filter($this->env, twig_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", false, false, false, 19), "html", null, true);
echo twig_escape_filter($this->env, twig_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", false, false, false, 19), "html", null, true);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% import _self as stars %}
{# 星テキスト生成用マクロ #}
{% macro stars(positive, negative) %}
{% set positive_stars = [\"\", \"★\", \"★★\", \"★★★\", \"★★★★\", \"★★★★★\"] %}
{% set negative_stars = [\"\", \"☆\", \"☆☆\", \"☆☆☆\", \"☆☆☆☆\", \"☆☆☆☆☆\"] %}
{{ positive_stars[positive] }}{{ negative_stars[negative] }}
{% endmacro %}
{% set body_class = \"product_page\" %}
{% block javascript %}
<script src=\"/html/template/default/assets/js/review.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js\"></script>
<script>
\$(document).on('click', '[data-toggle=\"lightbox\"]', function(event) {
event.preventDefault();
\$(this).ekkoLightbox();
});
\$(function() {
const yougo_area = document.getElementById('product_review_area');
const yougo_parts = document.getElementsByClassName('product_review_part');
const input = document.getElementById('product_review_word');
function setHightlight(){
const sword = input.value;
if(sword==''){return}
const regexp = new RegExp(`(?<=>)[^<>]*?(\${sword})[^<>]*?(?=<)`,'gi');
const regexp2 = new RegExp(sword,'gi');
[...yougo_parts].forEach(part=>{
//console.log(part.textContent)
if(part.textContent.indexOf(sword)==-1){
part.classList.add('hide');
}else{
part.innerHTML=part.innerHTML.replace(regexp,function(){
return arguments[0].replace(regexp2,`<span class=\"highlight\">\${sword}</span>`);
});
}
});
}
\$('#product_review_word').change(function(){
reset();
return setHightlight();
})
input.addEventListener('input',()=>{
reset();
return setHightlight();
});
function reset(){
//console.log('reset');
[...document.getElementsByClassName('highlight')].forEach(el=>{
el.outerHTML=el.textContent;
});
[...document.getElementsByClassName('hide')].forEach(el=>{
el.classList.remove('hide');
});
}
setHightlight();
\$('.orderby-link').click(function(){
var txt = \$(this).text();
\$('#orderby-name').text(txt)
})
\$('.category-link').click(function(){
var txt = \$(this).text();
\$('#category-name').text(txt)
})
});
\$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
{% endblock %}
{% block main %}
<article id=\"new-review-page\" class=\"info_item_review\">
<div class=\"mlr10\">
<h2 class=\"review-header-title\">商品レビュー/一覧</h2>
<hr class=\"solid\"></hr>
<div class=\"review-form-row\">
<span class=\"review-form-label\" >並び順:</span>
<div class=\"review-form-orderby dropdown\">
<button class=\"review-form-btn btn btn-default dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\">
<span class=\"dropdown-label\" id=\"orderby-name\">
{{ orderby_name }}
</span>
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu\" role=\"menu\">
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=1&category_id={{ category_id }}&keyword={{ keyword }}\">新着順</a></li>
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=2&category_id={{ category_id }}&keyword={{ keyword }}\">評価の高い順</a></li>
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=3&category_id={{ category_id }}&keyword={{ keyword }}\">評価の低い順</a></li>
<li role=\"presentation\"><a class=\"orderby-link\" href=\"?orderby=4&category_id={{ category_id }}&keyword={{ keyword }}\">参考になったの多い順</a></li>
</ul>
</div>
<div class=\"review-form-filter dropdown\">
<button class=\"review-form-btn btn btn-default dropdown-toggle review-form-filter-btn\" type=\"button\" data-toggle=\"dropdown\">
<span class=\"dropdown-label\" id=\"category-name\">{{ category_name }}</span>
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\">
<li role=\"presentation\"><a class=\"category-link\" href=\"?category_id=&orderby={{orderby}}&keyword={{ keyword }}\">すべて</a></li>
{% for cate in categories %}
<li role=\"presentation\"><a class=\"category-link\" href=\"?category_id={{ cate.id }}&orderby={{orderby}}&keyword={{ keyword }}\">{{ cate.name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<form action=\"/review_list\">
<input type=\"hidden\" name=\"category_id\" value=\"{{ category_id }}\">
<input type=\"hidden\" name=\"orderby\" value=\"{{ orderby }}\">
<div class=\"review-form-row\">
<div class=\"input-group\">
<input type=\"text\" class=\"form-control\" id=\"product_review_word\" name=\"keyword\" placeholder=\"キーワードを入力して検索\" value=\"{{ keyword }}\">
<span class=\"input-group-btn\">
<button type=\"submit\" class=\"btn btn-defaul review-form-search-btn\" style=\"height:33px;width:44px;\"><i class=\"fas fa-search\"></i></button>
</span>
</div>
</div>
</form>
<hr style=\"border-style:dashed\">
<section>
<div class=\"reviewbox\" id=\"product-review-area\">
{% for Review in pagination %}
{% set Product = Review.Product %}
<div class=\"product_review_part\">
<div class=\"review-box review-flexbox\">
<div class=\"review-prod-img\">
<a href=\"{{ url('product_detail', {'id': Product.id, 'slug': Product.slug}) }}\">
<p class=\"ec-shelfGrid__item-image\">
{# <img alt=\"{{ Product.name }}\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\"> #}
<img alt=\"{{ Product.name }}\" src=\"{{ getR2ImageUrl(Product.main_list_image|no_image_product, 'upload/save_image') }}\">
</p>
</a>
</div>
<div class=\"review-prod-doc\">
<a href=\"{{ url('product_detail', {'id': Product.id, 'slug': Product.slug}) }}\">
<h3>{{ Review.Product.name }}</h3>
</a>
<p>
{% set counter=0 %}
{% for product_category in Product.productCategories %}
{% if product_category.Category.id in category_map %}
{% if counter > 0 %}/{% endif %} <a href=\"?category={{ product_category.Category.id }}\">{{ product_category.Category.name }}</a> {% set counter = counter + 1 %}
{% endif %}
{% endfor %}
<p>
<p><a href=\"{{ url('product_detail', {'id': Product.id, 'slug': Product.slug}) }}\">{{ get_review_count(Product).ReviewCntList }}件</a>のレビューがあります</p>
<p>総合評価
{% set positive_star = ReviewAveList[Product.id] %}
{% set nagative_star = 5 - positive_star %}
<span class=\"star\">{{ stars.stars(positive_star, nagative_star) }}</span>
</p>
</div>
</div>
<div class=\"review-box\">
<span class=\"recommend_star\">
{% set positive_star = Review.recommend_level %}
{% set nagative_star = 5 - positive_star %}
{{ stars.stars(positive_star, nagative_star) }}
</span>
<span class=\"recommend_date\">{{ Review.create_date|date_format('','Y/m/d') }}</span>
<span class=\"recommend_name\">{{ Review.reviewer_name }} さん</span>
</div>
<div class=\"rebiew-box\">
<p class=\"review-title\">{{ Review.title }}</p>
<p class=\"review-comm\">{{ Review.comment|nl2br }}</p>
</div>
<div class=\"review-box row\">
{% if Review.pic1 %}
<div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic1 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic1 }}\"></a></div>
{% endif %}
{% if Review.pic2 %}
<div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic2 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic2 }}\"></a></div>
{% endif %}
{% if Review.pic3 %}
<div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic3 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic3 }}\"></a></div>
{% endif %}
{% if Review.pic4 %}
<div class=\"col-xs-3 review-user-img\"><a href=\"{{ Review.pic4 }}\" target=\"_blank\" data-toggle=\"lightbox\"><img src=\"{{ Review.pic4 }}\"></a></div>
{% endif %}
</div>
<div class=\"review-bottom\">
<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>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t<div class=\"col-xs-6\">
{% if is_granted('ROLE_USER') %}
{% if user_id in Review.getRefUsers() %}
<button type=\"button\" class=\"review-ref-button review-ref-pushed\" disabled=\"disabled\" data-rid=\"{{ Review.id }}\"><span>参考になった!</span></button>
{% else %}
<button type=\"button\" class=\"review-ref-button\" data-rid=\"{{ Review.id }}\"><span>参考になった!</span></button>
{% endif %}
{% else %}
<a href=\"{{ url('mypage_login') }}\" class=\"review-ref-button\"><span>参考になった!</span></a>
{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-xs-6 thank-btn-div\" style=\"padding-top:7px\">
\t\t\t\t\t\t\t<button class=\"btn btn-secondary thank-btn\" type=\"button\">違反を報告する</button>
\t\t\t\t\t\t\t<span class=\"icon-thank-msg\"><i class=\"bi bi-check\"></i>フィードバックをお寄せいただきありがとうございます</span>
\t\t\t\t\t\t</div>
\t\t\t\t</div>
<hr class=\"review-bar\">
</div>
{% endfor %}
{# % for Review in ProductReviews %}
<div>
<div class=\"review-box\">
</div>
<div class=\"review-box\">
<span class=\"recommend_level\"> ★×{{ Review.recommend_level }}</span>
<span class=\"recommend_date\">{{ Review.create_date|date_format('','Y/m/d') }}</span>
<span class=\"recommend_name\">{{ Review.reviewer_name }} さん</span>
</div>
<div class=\"rebiew-box\">
<p class=\"review-title\">{{ Review.title }}</p>
<p class=\"review-comm\">{{ Review.comment|nl2br }}</p>
</div>
<div class=\"review-bottom\">
<span>11</span>人が参考になったと回答しました!
<button><span>参考になった!</span></button>
</div>
</div>
{% endfor % #}
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
</section>
</article>
{% include \"Product/category.twig\" %}
{#
<div class=\"category-list\">
<p class=\"title\">カテゴリから探す</p>
<div class=\"inr\">
<ul>
<li class=\"c01\"><a href=\"{{ url('product_list') }}?category_id=7\">カラーシャンプー</a></li>
<li class=\"c02\"><a href=\"{{ url('product_list') }}?category_id=18\">ヒト幹細胞ヘアケア</a></li>
<li class=\"c03\"><a href=\"{{ url('product_list') }}?category_id=8\">カラー剤<br>ブリーチ剤</a></li>
<li class=\"c04\"><a href=\"{{ url('product_list') }}?category_id=12\"> トリートメント<br>(インバス)</a></li>
<li class=\"c05\"><a href=\"{{ url('product_list') }}?category_id=17\">トリートメント<br>(アウトバス)</a></li>
<li class=\"c06\"><a href=\"{{ url('product_list') }}?category_id=11\">ヘアケア</a></li>
<li class=\"c07\"><a href=\"{{ url('product_list') }}?category_id=9\">ヘアカラー関連</a></li>
<li class=\"c08\"><a href=\"{{ url('product_list') }}?category_id=19\">サロン関連</a></li>
<li class=\"c09\"><a href=\"{{ url('product_list') }}?category_id=15\">教材</a></li>
<li class=\"c10\"><a href=\"{{ url('product_list') }}?category_id=16\">公式通販限定</a></li>
<li class=\"c11\"><a href=\"{{ url('product_list') }}?category_id=20\">タイムセール</a></li>
<li class=\"c12\"><a href=\"{{ url('product_list') }}?category_id=21\">コーム</a></li>
<li class=\"c13\"><a href=\"{{ url('product_list') }}?category_id=10\">書籍</a></li>
<li class=\"c14\"><a href=\"{{ url('product_list') }}?category_id=22\">CBD</a></li>
</ul>
</div>
</div>
#}
{% endblock %}", "__string_template__b2771ff33fe0922a0f407e156029092253ddbc46ffcc90c5c4f9b405ae1c8b54", "");
}
}