var/cache/dev/twig/b8/b849c7ed08fe1b1ceb95c3a57510b738.php line 122

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. /* @CustomerReview42/Block/customer_review4_product_detail_review.twig */
  14. class __TwigTemplate_77f77563214bd9df3a065888b1d86ee1 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CustomerReview42/Block/customer_review4_product_detail_review.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CustomerReview42/Block/customer_review4_product_detail_review.twig"));
  35.         // line 1
  36.         $macros["stars"] = $this->macros["stars"] = $this;
  37.         // line 2
  38.         echo "
  39. ";
  40.         // line 3
  41.         $context["star_size"] = 22;
  42.         // line 4
  43.         echo "
  44. <script>
  45. // レビュー折りたたみサイズ(px)
  46. var foldSize = 95;
  47. \$(document).ready(function(){
  48. \t//総合スコアを上部へも表示
  49. \tvar rs = \$('#product_review_area .review_score').clone();
  50. \trs.find('.review_all_score_title').remove();
  51. \trs.append('<span>のレビュー</span>');
  52. \tif(\$('.product-detail-nav-section').length){
  53. \t\t//特殊ページ
  54. \t\t\$('.top_review_score').append(rs);
  55. \t}else{
  56. \t\t//デフォルトページ
  57. \t\t\$('.top_review_score').append(rs);
  58. \t}
  59. \t// レビューエリアの移動
  60. \tvar target = \$('#product_review_area');
  61. \t\$('body').append(target);
  62. \ttarget.ready(function() {
  63. \t\t\$('#product_review_area').appendTo('#review_area');
  64. \t});
  65. \t// レビュー折りたたみ
  66. \t\$('.review_list li .review-body').each(function(i, e){
  67. \t\tif(foldSize < \$(e).innerHeight()){
  68. \t\t\t\$(e).data('height', \$(e).outerHeight());
  69. \t\t\t\$(e).innerHeight(foldSize);
  70. \t\t\t\$(e).css('overflow', 'hidden');
  71. \t\t\t\$(e).addClass('fold');
  72. \t\t\t\$(e).after('<div class=\"fade\"></div>');
  73. \t\t\t\$(e).after('<div class=\"moreread\"><a href=\"javascript:;\">&#8681; 続きを読む</a></div>');
  74. \t\t}
  75. \t});
  76. \t
  77. \t\$(document).on('click', '.review_list li .moreread', function(){
  78. \t\tvar rb = \$(this).parent().find('.review-body');
  79. \t\trb.animate({'height': rb.data('height')}, function(){rb.css('height', 'auto')});
  80. \t\trb.removeClass('fold');
  81. \t\t\$(this).after('<div class=\"shortread\"><a href=\"javascript:;\">&#8679; もっと少なく読む</a></div>');
  82. \t\t\$(this).parent().find('.fade').remove();
  83. \t\t\$(this).remove();
  84. \t});
  85. \t\$(document).on('click', '.review_list li .shortread', function(){
  86. \t\tvar rb = \$(this).parent().find('.review-body');
  87. \t\trb.animate({'height': foldSize});
  88. \t\trb.addClass('fold');
  89. \t\trb.after('<div class=\"fade\"></div>');
  90. \t\t\$(this).after('<div class=\"moreread\"><a href=\"javascript:;\">&#8681; 続きを読む</a></div>');
  91. \t\t\$(this).remove();
  92. \t});
  93. });
  94. </script>
  95. ";
  96.         // line 68
  97.         $context["review_config"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerReview42\\Entity\\CustomerReviewConfig"), "get", [], "method"falsefalsetrue68);
  98.         // line 69
  99.         if (twig_get_attribute($this->env$this->source, (isset($context["review_config"]) || array_key_exists("review_config"$context) ? $context["review_config"] : (function () { throw new RuntimeError('Variable "review_config" does not exist.'69$this->source); })()), "isDetailInReview", [], "any"falsefalsetrue69)) {
  100.             // line 70
  101.             $context["review_list"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerReview42\\Entity\\CustomerReviewList"), "getReviewList", [=> 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.'70$this->source); })()), "id", [], "any"falsefalsetrue70)], "method"falsefalsetrue70);
  102.             // line 71
  103.             $context["review_total"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerReview42\\Entity\\CustomerReviewTotal"), "getRecommend", [=> 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.'71$this->source); })()), "id", [], "any"falsefalsetrue71)], "method"falsefalsetrue71);
  104.             // line 72
  105.             echo "
  106. ";
  107.             // line 73
  108.             $context["reviewer_total"] = 0;
  109.             // line 74
  110.             $context["review_total_point"] = 0;
  111.             // line 75
  112.             $context["count"] = 5;
  113.             // line 76
  114.             $context['_parent'] = $context;
  115.             $context['_seq'] = twig_ensure_traversable((isset($context["review_total"]) || array_key_exists("review_total"$context) ? $context["review_total"] : (function () { throw new RuntimeError('Variable "review_total" does not exist.'76$this->source); })()));
  116.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  117.                 // line 77
  118.                 echo "    ";
  119.                 $context["reviewer_total"] = ((isset($context["reviewer_total"]) || array_key_exists("reviewer_total"$context) ? $context["reviewer_total"] : (function () { throw new RuntimeError('Variable "reviewer_total" does not exist.'77$this->source); })()) + $context["i"]);
  120.                 // line 78
  121.                 echo "    ";
  122.                 $context["review_total_point"] = ((isset($context["review_total_point"]) || array_key_exists("review_total_point"$context) ? $context["review_total_point"] : (function () { throw new RuntimeError('Variable "review_total_point" does not exist.'78$this->source); })()) + ($context["i"] * (isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'78$this->source); })())));
  123.                 // line 79
  124.                 echo "    ";
  125.                 $context["count"] = ((isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'79$this->source); })()) - 1);
  126.             }
  127.             $_parent $context['_parent'];
  128.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  129.             $context array_intersect_key($context$_parent) + $_parent;
  130.             // line 81
  131.             $context["review_point"] = ((((isset($context["reviewer_total"]) || array_key_exists("reviewer_total"$context) ? $context["reviewer_total"] : (function () { throw new RuntimeError('Variable "reviewer_total" does not exist.'81$this->source); })()) == 0)) ? (0) : (((isset($context["review_total_point"]) || array_key_exists("review_total_point"$context) ? $context["review_total_point"] : (function () { throw new RuntimeError('Variable "review_total_point" does not exist.'81$this->source); })()) / (isset($context["reviewer_total"]) || array_key_exists("reviewer_total"$context) ? $context["reviewer_total"] : (function () { throw new RuntimeError('Variable "reviewer_total" does not exist.'81$this->source); })()))));
  132.             // line 82
  133.             $context["number"] = (isset($context["reviewer_total"]) || array_key_exists("reviewer_total"$context) ? $context["reviewer_total"] : (function () { throw new RuntimeError('Variable "reviewer_total" does not exist.'82$this->source); })());
  134.             // line 83
  135.             $context["avg_star"] = (isset($context["review_point"]) || array_key_exists("review_point"$context) ? $context["review_point"] : (function () { throw new RuntimeError('Variable "review_point" does not exist.'83$this->source); })());
  136.             // line 84
  137.             echo "
  138. <!--▼レビューエリア-->
  139. <div id=\"product_review_area\" class=\"review_area\">
  140. \t<h2>ユーザーレビュー</h2>
  141. \t";
  142.             // line 88
  143.             if ((twig_length_filter($this->env, (isset($context["review_list"]) || array_key_exists("review_list"$context) ? $context["review_list"] : (function () { throw new RuntimeError('Variable "review_list" does not exist.'88$this->source); })())))) {
  144.                 // line 89
  145.                 echo "\t\t<a href=\"";
  146.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("review_list", ["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.'89$this->source); })()), "id", [], "any"falsefalsetrue89)]), "html"nulltrue);
  147.                 echo "\">
  148. \t    \t<h3 class=\"review_score\"  data-avg=\"";
  149.                 // line 90
  150.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["avg_star"]) || array_key_exists("avg_star"$context) ? $context["avg_star"] : (function () { throw new RuntimeError('Variable "avg_star" does not exist.'90$this->source); })()), 90$this->source), "html"nulltrue);
  151.                 echo "\" data-num=\"";
  152.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'90$this->source); })()), 90$this->source), "html"nulltrue);
  153.                 echo "\" data-starsize=\"";
  154.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["star_size"]) || array_key_exists("star_size"$context) ? $context["star_size"] : (function () { throw new RuntimeError('Variable "star_size" does not exist.'90$this->source); })()), 90$this->source), "html"nulltrue);
  155.                 echo "\" data-imgbase=\"";
  156.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("aneros/img/products/"), "html"nulltrue);
  157.                 echo "\">
  158. \t    \t\t<span class=\"review_all_score_title\">総合スコア:</span>
  159. \t    \t\t<span class=\"review_all_score_image\" style=\"display: inline-block\"></span>
  160. \t    \t\t<span class=\"review_all_score\"></span>
  161. \t    \t</h3>
  162. \t\t\t<p style=\"text-align:center; font-weight:bold; text-decoration:underline;\">詳細を表示する</p>
  163. \t\t</a>
  164.         <ul class=\"review_list\">
  165.         ";
  166.                 // line 98
  167.                 $context['_parent'] = $context;
  168.                 $context['_seq'] = twig_ensure_traversable((isset($context["review_list"]) || array_key_exists("review_list"$context) ? $context["review_list"] : (function () { throw new RuntimeError('Variable "review_list" does not exist.'98$this->source); })()));
  169.                 foreach ($context['_seq'] as $context["_key"] => $context["Review"]) {
  170.                     // line 99
  171.                     echo "            <li>
  172.                 <h3 class=\"review-title\">";
  173.                     // line 100
  174.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Review"], "title", [], "any"falsefalsetrue100), 100$this->source), "html"nulltrue);
  175.                     echo "</h3>
  176.                 <p class=\"review-hed\">
  177.                     <span style=\"font-weight:bold;\">
  178. \t                    <span>";
  179.                     // line 103
  180.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Review"], "reviewer_name", [], "any"falsefalsetrue103), 103$this->source), "html"nulltrue);
  181.                     echo "</span>
  182.                     </span><br />
  183.                     <span>
  184.                         ";
  185.                     // line 106
  186.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Review"], "create_date", [], "any"falsefalsetrue106), 106$this->source)), "html"nulltrue);
  187.                     echo "
  188.                     </span><br />
  189.                     <span class=\"recommend_level\">
  190.                         <span>
  191.                         ";
  192.                     // line 110
  193.                     $context['_parent'] = $context;
  194.                     $context['_seq'] = twig_ensure_traversable(range(04));
  195.                     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  196.                         // line 111
  197.                         echo "\t                        ";
  198.                         if (($context["i"] < twig_get_attribute($this->env$this->source$context["Review"], "recommend_level", [], "any"falsefalsetrue111))) {
  199.                             // line 112
  200.                             echo "\t\t\t\t\t\t\t\t<img src=\"";
  201.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("aneros/img/products/star.jpg"), "html"nulltrue);
  202.                             echo "\" class=\"recommend_star\" alt=\"星あり\">
  203. \t                        ";
  204.                         } else {
  205.                             // line 114
  206.                             echo "\t\t\t\t\t\t\t\t<img src=\"";
  207.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("aneros/img/products/no_star.jpg"), "html"nulltrue);
  208.                             echo "\" class=\"recommend_nostar\" alt=\"星なし\">
  209. \t\t\t\t\t\t\t";
  210.                         }
  211.                         // line 116
  212.                         echo "                        ";
  213.                     }
  214.                     $_parent $context['_parent'];
  215.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  216.                     $context array_intersect_key($context$_parent) + $_parent;
  217.                     // line 117
  218.                     echo "                        </span>
  219.                     </span>
  220.                 </p>
  221.                 <p class=\"review-body\">";
  222.                     // line 120
  223.                     echo twig_nl2br(twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Review"], "comment", [], "any"falsefalsetrue120), 120$this->source), "html"nulltrue));
  224.                     echo "</p>
  225.             </li>
  226.         ";
  227.                 }
  228.                 $_parent $context['_parent'];
  229.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Review'], $context['_parent'], $context['loop']);
  230.                 $context array_intersect_key($context$_parent) + $_parent;
  231.                 // line 123
  232.                 echo "        </ul>
  233.     ";
  234.             } else {
  235.                 // line 125
  236.                 echo "        <ul class=\"review_list\">
  237.             <li>
  238. \t\tただいま、レビューはありません。「レビューを書く」ボタンからレビューを書きましょう!
  239.             </li>
  240.         </ul>
  241.     ";
  242.             }
  243.             // line 131
  244.             echo "
  245. \t<div class=\"btn_area\">
  246. \t\t<a href=\"";
  247.             // line 133
  248.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("review_post", ["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.'133$this->source); })()), "id", [], "any"falsefalsetrue133)]), "html"nulltrue);
  249.             echo "\"
  250. \t\t\tclass=\"button btn btn-success btn-block\">レビューを書く</a>
  251. \t</div>
  252. </div>
  253. <!-- ▲レビューエリア -->
  254. ";
  255.         }
  256.         
  257.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  258.         
  259.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  260.     }
  261.     public function getTemplateName()
  262.     {
  263.         return "@CustomerReview42/Block/customer_review4_product_detail_review.twig";
  264.     }
  265.     public function isTraitable()
  266.     {
  267.         return false;
  268.     }
  269.     public function getDebugInfo()
  270.     {
  271.         return array (  269 => 133,  265 => 131,  257 => 125,  253 => 123,  244 => 120,  239 => 117,  233 => 116,  227 => 114,  221 => 112,  218 => 111,  214 => 110,  207 => 106,  201 => 103,  195 => 100,  192 => 99,  188 => 98,  171 => 90,  166 => 89,  164 => 88,  158 => 84,  156 => 83,  154 => 82,  152 => 81,  145 => 79,  142 => 78,  139 => 77,  135 => 76,  133 => 75,  131 => 74,  129 => 73,  126 => 72,  124 => 71,  122 => 70,  120 => 69,  118 => 68,  52 => 4,  50 => 3,  47 => 2,  45 => 1,);
  272.     }
  273.     public function getSourceContext()
  274.     {
  275.         return new Source("{% import _self as stars %}
  276. {% set star_size = 22 %}
  277. <script>
  278. // レビュー折りたたみサイズ(px)
  279. var foldSize = 95;
  280. \$(document).ready(function(){
  281. \t//総合スコアを上部へも表示
  282. \tvar rs = \$('#product_review_area .review_score').clone();
  283. \trs.find('.review_all_score_title').remove();
  284. \trs.append('<span>のレビュー</span>');
  285. \tif(\$('.product-detail-nav-section').length){
  286. \t\t//特殊ページ
  287. \t\t\$('.top_review_score').append(rs);
  288. \t}else{
  289. \t\t//デフォルトページ
  290. \t\t\$('.top_review_score').append(rs);
  291. \t}
  292. \t// レビューエリアの移動
  293. \tvar target = \$('#product_review_area');
  294. \t\$('body').append(target);
  295. \ttarget.ready(function() {
  296. \t\t\$('#product_review_area').appendTo('#review_area');
  297. \t});
  298. \t// レビュー折りたたみ
  299. \t\$('.review_list li .review-body').each(function(i, e){
  300. \t\tif(foldSize < \$(e).innerHeight()){
  301. \t\t\t\$(e).data('height', \$(e).outerHeight());
  302. \t\t\t\$(e).innerHeight(foldSize);
  303. \t\t\t\$(e).css('overflow', 'hidden');
  304. \t\t\t\$(e).addClass('fold');
  305. \t\t\t\$(e).after('<div class=\"fade\"></div>');
  306. \t\t\t\$(e).after('<div class=\"moreread\"><a href=\"javascript:;\">&#8681; 続きを読む</a></div>');
  307. \t\t}
  308. \t});
  309. \t
  310. \t\$(document).on('click', '.review_list li .moreread', function(){
  311. \t\tvar rb = \$(this).parent().find('.review-body');
  312. \t\trb.animate({'height': rb.data('height')}, function(){rb.css('height', 'auto')});
  313. \t\trb.removeClass('fold');
  314. \t\t\$(this).after('<div class=\"shortread\"><a href=\"javascript:;\">&#8679; もっと少なく読む</a></div>');
  315. \t\t\$(this).parent().find('.fade').remove();
  316. \t\t\$(this).remove();
  317. \t});
  318. \t\$(document).on('click', '.review_list li .shortread', function(){
  319. \t\tvar rb = \$(this).parent().find('.review-body');
  320. \t\trb.animate({'height': foldSize});
  321. \t\trb.addClass('fold');
  322. \t\trb.after('<div class=\"fade\"></div>');
  323. \t\t\$(this).after('<div class=\"moreread\"><a href=\"javascript:;\">&#8681; 続きを読む</a></div>');
  324. \t\t\$(this).remove();
  325. \t});
  326. });
  327. </script>
  328. {% set review_config = repository('Plugin\\\\CustomerReview42\\\\Entity\\\\CustomerReviewConfig').get() %}
  329. {% if review_config.isDetailInReview %}
  330. {% set review_list = repository('Plugin\\\\CustomerReview42\\\\Entity\\\\CustomerReviewList').getReviewList(Product.id) %}
  331. {% set review_total = repository('Plugin\\\\CustomerReview42\\\\Entity\\\\CustomerReviewTotal').getRecommend(Product.id) %}
  332. {% set reviewer_total = 0 %}
  333. {% set review_total_point = 0 %}
  334. {% set count = 5 %}
  335. {% for i in review_total %}
  336.     {% set reviewer_total = reviewer_total + i %}
  337.     {% set review_total_point = review_total_point + i * count %}
  338.     {% set count = count - 1 %}
  339. {% endfor %}
  340. {% set review_point = reviewer_total == 0 ? 0  : (review_total_point / reviewer_total) %}
  341. {% set number = reviewer_total %}
  342. {% set avg_star = review_point %}
  343. <!--▼レビューエリア-->
  344. <div id=\"product_review_area\" class=\"review_area\">
  345. \t<h2>ユーザーレビュー</h2>
  346. \t{% if 0 < review_list|length %}
  347. \t\t<a href=\"{{ url('review_list', {'id': Product.id}) }}\">
  348. \t    \t<h3 class=\"review_score\"  data-avg=\"{{ avg_star }}\" data-num=\"{{ number }}\" data-starsize=\"{{ star_size }}\" data-imgbase=\"{{ asset('aneros/img/products/') }}\">
  349. \t    \t\t<span class=\"review_all_score_title\">総合スコア:</span>
  350. \t    \t\t<span class=\"review_all_score_image\" style=\"display: inline-block\"></span>
  351. \t    \t\t<span class=\"review_all_score\"></span>
  352. \t    \t</h3>
  353. \t\t\t<p style=\"text-align:center; font-weight:bold; text-decoration:underline;\">詳細を表示する</p>
  354. \t\t</a>
  355.         <ul class=\"review_list\">
  356.         {% for Review in review_list %}
  357.             <li>
  358.                 <h3 class=\"review-title\">{{ Review.title }}</h3>
  359.                 <p class=\"review-hed\">
  360.                     <span style=\"font-weight:bold;\">
  361. \t                    <span>{{ Review.reviewer_name }}</span>
  362.                     </span><br />
  363.                     <span>
  364.                         {{ Review.create_date|date_format }}
  365.                     </span><br />
  366.                     <span class=\"recommend_level\">
  367.                         <span>
  368.                         {% for i in 0..4 %}
  369. \t                        {% if i < Review.recommend_level %}
  370. \t\t\t\t\t\t\t\t<img src=\"{{ asset('aneros/img/products/star.jpg') }}\" class=\"recommend_star\" alt=\"星あり\">
  371. \t                        {% else %}
  372. \t\t\t\t\t\t\t\t<img src=\"{{ asset('aneros/img/products/no_star.jpg') }}\" class=\"recommend_nostar\" alt=\"星なし\">
  373. \t\t\t\t\t\t\t{% endif %}
  374.                         {% endfor %}
  375.                         </span>
  376.                     </span>
  377.                 </p>
  378.                 <p class=\"review-body\">{{ Review.comment|nl2br }}</p>
  379.             </li>
  380.         {% endfor %}
  381.         </ul>
  382.     {% else %}
  383.         <ul class=\"review_list\">
  384.             <li>
  385. \t\tただいま、レビューはありません。「レビューを書く」ボタンからレビューを書きましょう!
  386.             </li>
  387.         </ul>
  388.     {% endif %}
  389. \t<div class=\"btn_area\">
  390. \t\t<a href=\"{{ url('review_post', {'id': Product.id}) }}\"
  391. \t\t\tclass=\"button btn btn-success btn-block\">レビューを書く</a>
  392. \t</div>
  393. </div>
  394. <!-- ▲レビューエリア -->
  395. {% endif %}
  396. ""@CustomerReview42/Block/customer_review4_product_detail_review.twig""/home/kir018258/public_html/test.aneros.co.jp/aneros_2023_b/app/template/plugin/CustomerReview42/Block/customer_review4_product_detail_review.twig");
  397.     }
  398.     
  399.     public function checkSecurity()
  400.     {
  401.         static $tags = array("import" => 1"set" => 3"if" => 69"for" => 76);
  402.         static $filters = array("length" => 88"escape" => 89"date_format" => 106"nl2br" => 120);
  403.         static $functions = array("repository" => 68"url" => 89"asset" => 90"range" => 110);
  404.         try {
  405.             $this->sandbox->checkSecurity(
  406.                 ['import''set''if''for'],
  407.                 ['length''escape''date_format''nl2br'],
  408.                 ['repository''url''asset''range']
  409.             );
  410.         } catch (SecurityError $e) {
  411.             $e->setSourceContext($this->source);
  412.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  413.                 $e->setTemplateLine($tags[$e->getTagName()]);
  414.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  415.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  416.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  417.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  418.             }
  419.             throw $e;
  420.         }
  421.     }
  422. }