var/cache/dev/twig/be/be84676a7261d6e77e664076424605e0.php line 55

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. /* Review/index.twig */
  14. class __TwigTemplate_c307a64956ebdf94d5768bda3a1c722a extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 11
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Review/index.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Review/index.twig"));
  42.         // line 13
  43.         $context["body_class"] = "review_page";
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""Review/index.twig"11);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 15
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 16
  61.         echo "    <link rel=\"stylesheet\" href=\"/stylesheets/review.css?20220924\">
  62.     <link rel=\"stylesheet\" href=\"/stylesheets/pagination.css?20211225\">
  63.     <style>
  64.         nav {
  65.             min-height: auto;
  66.         }
  67.     </style>
  68. ";
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.     }
  74.     // line 25
  75.     public function block_javascript($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  82.         
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84.         
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  86.     }
  87.     // line 28
  88.     public function block_main($context, array $blocks = [])
  89.     {
  90.         $macros $this->macros;
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  95.         // line 29
  96.         echo "
  97.     ";
  98.         // line 31
  99.         if ( !twig_test_empty((isset($context["kataban"]) || array_key_exists("kataban"$context) ? $context["kataban"] : (function () { throw new RuntimeError('Variable "kataban" does not exist.'31$this->source); })()))) {
  100.             // line 32
  101.             echo "        <div id=\"navigation\" class=\"nav-float\"></div>
  102.         <div>
  103.             <img src=\"";
  104.             // line 34
  105.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["mainUrl"]) || array_key_exists("mainUrl"$context) ? $context["mainUrl"] : (function () { throw new RuntimeError('Variable "mainUrl" does not exist.'34$this->source); })()), 34$this->source), "html"nulltrue);
  106.             echo "\" height=\"100\" alt=\"商品\" class=\"item-thumb\">
  107.         </div>
  108.         <div id=\"rcontents\" class=\"review-page\">
  109.             <p>
  110.                 <a href=\"/item/";
  111.             // line 38
  112.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["kataban"]) || array_key_exists("kataban"$context) ? $context["kataban"] : (function () { throw new RuntimeError('Variable "kataban" does not exist.'38$this->source); })()), "goods_id", [], "any"falsefalsetrue38), 38$this->source), "html"nulltrue);
  113.             echo ".html\"><b>";
  114.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["kataban"]) || array_key_exists("kataban"$context) ? $context["kataban"] : (function () { throw new RuntimeError('Variable "kataban" does not exist.'38$this->source); })()), "name", [], "any"falsefalsetrue38), 38$this->source), "html"nulltrue);
  115.             echo "</b></a>
  116.             </p>
  117.         </div>
  118.         <br class=\"clear\" />
  119.     ";
  120.         }
  121.         // line 43
  122.         echo "
  123.     ";
  124.         // line 44
  125.         if ( !twig_test_empty((isset($context["review"]) || array_key_exists("review"$context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.'44$this->source); })()))) {
  126.             // line 45
  127.             echo "        ";
  128.             $context["count"] = 0;
  129.             // line 46
  130.             echo "        <br>
  131.         <div id=\"wrap\" class=\"review-page\">
  132.             <div id=\"voice\" class=\"voice-box\">
  133.                 <div class=\"title\">
  134.                     <h2>この商品を買ったお客様のレビュー(評価)</h2>
  135.                     <p class=\"star\">
  136.                         <img alt=\"お客様からの口コミレビュー評価の星の数";
  137.             // line 52
  138.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["average"]) || array_key_exists("average"$context) ? $context["average"] : (function () { throw new RuntimeError('Variable "average" does not exist.'52$this->source); })()), 52$this->source), "html"nulltrue);
  139.             echo "\" src=\"/images/review/star_m";
  140.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["star"]) || array_key_exists("star"$context) ? $context["star"] : (function () { throw new RuntimeError('Variable "star" does not exist.'52$this->source); })()), 52$this->source), "html"nulltrue);
  141.             echo ".gif\">
  142.                         <span>";
  143.             // line 53
  144.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["average"]) || array_key_exists("average"$context) ? $context["average"] : (function () { throw new RuntimeError('Variable "average" does not exist.'53$this->source); })()), 53$this->source), "html"nulltrue);
  145.             echo "</span>
  146.                         <span>(";
  147.             // line 54
  148.             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["total_count"]) || array_key_exists("total_count"$context) ? $context["total_count"] : (function () { throw new RuntimeError('Variable "total_count" does not exist.'54$this->source); })()), 54$this->source)), "html"nulltrue);
  149.             echo "件)</span>
  150.                     </p>
  151.                 </div>
  152.                 <ul>
  153.                 ";
  154.             // line 59
  155.             $context['_parent'] = $context;
  156.             $context['_seq'] = twig_ensure_traversable((isset($context["review"]) || array_key_exists("review"$context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.'59$this->source); })()));
  157.             foreach ($context['_seq'] as $context["key"] => $context["rv"]) {
  158.                 // line 60
  159.                 echo "                    ";
  160.                 if (((isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'60$this->source); })()) < 5)) {
  161.                     // line 61
  162.                     echo "                        <li>
  163.                             <dl>
  164.                                 <dt>評価:
  165.                                     ";
  166.                     // line 64
  167.                     $context['_parent'] = $context;
  168.                     $context['_seq'] = twig_ensure_traversable(range(04));
  169.                     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  170.                         // line 65
  171.                         echo "                                        ";
  172.                         if (($context["i"] < twig_get_attribute($this->env$this->source$context["rv"], "cr_points", [], "any"falsefalsetrue65))) {
  173.                             // line 66
  174.                             echo "                                            ";
  175.                             echo "★";
  176.                             echo "
  177.                                         ";
  178.                         } else {
  179.                             // line 68
  180.                             echo "                                            ";
  181.                             echo "☆";
  182.                             echo "
  183.                                         ";
  184.                         }
  185.                         // line 70
  186.                         echo "                                    ";
  187.                     }
  188.                     $_parent $context['_parent'];
  189.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  190.                     $context array_intersect_key($context$_parent) + $_parent;
  191.                     // line 71
  192.                     echo "                                <span> 投稿日: ";
  193.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["rv"], "app_datetime", [], "any"falsefalsetrue71), 71$this->source), "Y/m/d"), "html"nulltrue);
  194.                     echo "</span>
  195.                                 </dt>
  196.                                 <dd>
  197.                                     <p class=\"txt\">
  198.                                         ";
  199.                     // line 75
  200.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["rv"], "cr_staff_comment", [], "any"falsefalsetrue75))) {
  201.                         // line 76
  202.                         echo "                                            ";
  203.                         echo twig_nl2br(twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["rv"], "cr_staff_comment", [], "any"falsefalsetrue76), 76$this->source), "html"nulltrue));
  204.                         echo "
  205.                                         ";
  206.                     } else {
  207.                         // line 78
  208.                         echo "                                            ";
  209.                         echo twig_nl2br(twig_escape_filter($this->envtwig_trim_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["rv"], "cr_comment", [], "any"falsefalsetrue78), 78$this->source), null"right"), "html"nulltrue));
  210.                         echo "
  211.                                         ";
  212.                     }
  213.                     // line 80
  214.                     echo "                                    </p>
  215.                                 </dd>
  216.                             </dl>
  217.                         </li>
  218.                     ";
  219.                 }
  220.                 // line 85
  221.                 echo "                ";
  222.             }
  223.             $_parent $context['_parent'];
  224.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['rv'], $context['_parent'], $context['loop']);
  225.             $context array_intersect_key($context$_parent) + $_parent;
  226.             // line 86
  227.             echo "            </ul>
  228.             </div><!-- /#voice -->
  229.         </div><!-- /#wrap -->
  230.     ";
  231.         }
  232.         // line 90
  233.         echo "
  234.     <!-- ページネーション -->
  235.     ";
  236.         // line 92
  237.         if ((twig_get_attribute($this->env$this->source, ($context["pager"] ?? null), "pages", [], "any"truetruetrue92) && (twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'92$this->source); })()), "pages", [], "any"falsefalsetrue92) > 1))) {
  238.             // line 93
  239.             echo "        <nav data-pagination>
  240.             <ul>
  241.                 <li>
  242.                 ";
  243.             // line 96
  244.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'96$this->source); })()), "prev", [], "any"falsefalsetrue96))) {
  245.                 // line 97
  246.                 echo "                    <a href=\"/review?";
  247.                 echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'97$this->source); })()), "prev", [], "any"falsefalsetrue97), 97$this->source));
  248.                 echo "\">
  249.                         <i class=\"ion-chevron-left\"><</i>
  250.                     </a>
  251.                 ";
  252.             } else {
  253.                 // line 101
  254.                 echo "                    <a disabled>
  255.                         <i class=\"ion-chevron-left\"></i>
  256.                     </a>
  257.                 ";
  258.             }
  259.             // line 105
  260.             echo "                </li>
  261.                 ";
  262.             // line 106
  263.             $context['_parent'] = $context;
  264.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'106$this->source); })()), "page_list", [], "any"falsefalsetrue106));
  265.             foreach ($context['_seq'] as $context["key"] => $context["pg"]) {
  266.                 // line 107
  267.                 echo "                    ";
  268.                 if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'107$this->source); })()) == $context["pg"])) {
  269.                     // line 108
  270.                     echo "                        <li class=\"current\">";
  271.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["pg"], 108$this->source), "html"nulltrue);
  272.                     echo "</li>
  273.                     ";
  274.                 } elseif ((                // line 109
  275. $context["pg"] == null)) {
  276.                     // line 110
  277.                     echo "                        <li>...</li>
  278.                     ";
  279.                 } else {
  280.                     // line 112
  281.                     echo "                        <li><a href=\"/review?";
  282.                     echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed($context["pg"], 112$this->source));
  283.                     echo "\">";
  284.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["pg"], 112$this->source), "html"nulltrue);
  285.                     echo "</a></li>
  286.                     ";
  287.                 }
  288.                 // line 114
  289.                 echo "                ";
  290.             }
  291.             $_parent $context['_parent'];
  292.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['pg'], $context['_parent'], $context['loop']);
  293.             $context array_intersect_key($context$_parent) + $_parent;
  294.             // line 115
  295.             echo "                <li>
  296.                 ";
  297.             // line 116
  298.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'116$this->source); })()), "next", [], "any"falsefalsetrue116))) {
  299.                 // line 117
  300.                 echo "                    <a href=\"/review?";
  301.                 echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["pager"]) || array_key_exists("pager"$context) ? $context["pager"] : (function () { throw new RuntimeError('Variable "pager" does not exist.'117$this->source); })()), "next", [], "any"falsefalsetrue117), 117$this->source));
  302.                 echo "\">
  303.                         <i class=\"ion-chevron-right\">></i>
  304.                     </a>
  305.                 ";
  306.             } else {
  307.                 // line 121
  308.                 echo "                    <a disabled>
  309.                         <i class=\"ion-chevron-right\"></i>
  310.                     </a>
  311.                 ";
  312.             }
  313.             // line 125
  314.             echo "                </li>
  315.             </ul>
  316.         </nav>
  317.     ";
  318.         }
  319.         
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  321.         
  322.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  323.     }
  324.     public function getTemplateName()
  325.     {
  326.         return "Review/index.twig";
  327.     }
  328.     public function isTraitable()
  329.     {
  330.         return false;
  331.     }
  332.     public function getDebugInfo()
  333.     {
  334.         return array (  340 => 125,  334 => 121,  326 => 117,  324 => 116,  321 => 115,  315 => 114,  307 => 112,  303 => 110,  301 => 109,  296 => 108,  293 => 107,  289 => 106,  286 => 105,  280 => 101,  272 => 97,  270 => 96,  265 => 93,  263 => 92,  259 => 90,  253 => 86,  247 => 85,  240 => 80,  234 => 78,  228 => 76,  226 => 75,  218 => 71,  212 => 70,  206 => 68,  200 => 66,  197 => 65,  193 => 64,  188 => 61,  185 => 60,  181 => 59,  173 => 54,  169 => 53,  163 => 52,  155 => 46,  152 => 45,  150 => 44,  147 => 43,  137 => 38,  130 => 34,  126 => 32,  124 => 31,  120 => 29,  110 => 28,  92 => 25,  75 => 16,  65 => 15,  54 => 11,  52 => 13,  39 => 11,);
  335.     }
  336.     public function getSourceContext()
  337.     {
  338.         return new Source("{#
  339. This file is part of EC-CUBE
  340. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  341. http://www.ec-cube.co.jp/
  342. For the full copyright and license information, please view the LICENSE
  343. file that was distributed with this source code.
  344. #}
  345. {% extends 'default_frame.twig' %}
  346. {% set body_class = 'review_page' %}
  347. {% block stylesheet %}
  348.     <link rel=\"stylesheet\" href=\"/stylesheets/review.css?20220924\">
  349.     <link rel=\"stylesheet\" href=\"/stylesheets/pagination.css?20211225\">
  350.     <style>
  351.         nav {
  352.             min-height: auto;
  353.         }
  354.     </style>
  355. {% endblock %}
  356. {% block javascript %}
  357. {% endblock %}
  358. {% block main %}
  359.     {% if kataban is not empty %}
  360.         <div id=\"navigation\" class=\"nav-float\"></div>
  361.         <div>
  362.             <img src=\"{{ mainUrl }}\" height=\"100\" alt=\"商品\" class=\"item-thumb\">
  363.         </div>
  364.         <div id=\"rcontents\" class=\"review-page\">
  365.             <p>
  366.                 <a href=\"/item/{{ kataban.goods_id }}.html\"><b>{{ kataban.name }}</b></a>
  367.             </p>
  368.         </div>
  369.         <br class=\"clear\" />
  370.     {% endif %}
  371.     {% if review is not empty %}
  372.         {% set count = 0 %}
  373.         <br>
  374.         <div id=\"wrap\" class=\"review-page\">
  375.             <div id=\"voice\" class=\"voice-box\">
  376.                 <div class=\"title\">
  377.                     <h2>この商品を買ったお客様のレビュー(評価)</h2>
  378.                     <p class=\"star\">
  379.                         <img alt=\"お客様からの口コミレビュー評価の星の数{{ average }}\" src=\"/images/review/star_m{{ star }}.gif\">
  380.                         <span>{{ average }}</span>
  381.                         <span>({{ total_count | number_format }}件)</span>
  382.                     </p>
  383.                 </div>
  384.                 <ul>
  385.                 {% for key,rv in review %}
  386.                     {% if count < 5 %}
  387.                         <li>
  388.                             <dl>
  389.                                 <dt>評価:
  390.                                     {% for i in 0..4 %}
  391.                                         {% if i < rv.cr_points %}
  392.                                             {{ \"★\" }}
  393.                                         {% else %}
  394.                                             {{ \"☆\" }}
  395.                                         {% endif %}
  396.                                     {% endfor %}
  397.                                 <span> 投稿日: {{ rv.app_datetime | date('Y/m/d') }}</span>
  398.                                 </dt>
  399.                                 <dd>
  400.                                     <p class=\"txt\">
  401.                                         {% if rv.cr_staff_comment is not empty %}
  402.                                             {{ rv.cr_staff_comment | nl2br }}
  403.                                         {% else %}
  404.                                             {{ (rv.cr_comment | trim(side='right')) | nl2br }}
  405.                                         {% endif %}
  406.                                     </p>
  407.                                 </dd>
  408.                             </dl>
  409.                         </li>
  410.                     {% endif %}
  411.                 {% endfor %}
  412.             </ul>
  413.             </div><!-- /#voice -->
  414.         </div><!-- /#wrap -->
  415.     {% endif %}
  416.     <!-- ページネーション -->
  417.     {% if pager.pages is defined and pager.pages > 1 %}
  418.         <nav data-pagination>
  419.             <ul>
  420.                 <li>
  421.                 {% if pager.prev is not empty %}
  422.                     <a href=\"/review?{{ PageWithGetParams(pager.prev) | raw }}\">
  423.                         <i class=\"ion-chevron-left\"><</i>
  424.                     </a>
  425.                 {% else %}
  426.                     <a disabled>
  427.                         <i class=\"ion-chevron-left\"></i>
  428.                     </a>
  429.                 {% endif %}
  430.                 </li>
  431.                 {% for key, pg in pager.page_list %}
  432.                     {% if page == pg %}
  433.                         <li class=\"current\">{{ pg }}</li>
  434.                     {% elseif pg==null %}
  435.                         <li>...</li>
  436.                     {% else %}
  437.                         <li><a href=\"/review?{{ PageWithGetParams(pg) | raw }}\">{{ pg }}</a></li>
  438.                     {% endif %}
  439.                 {% endfor %}
  440.                 <li>
  441.                 {% if pager.next is not empty %}
  442.                     <a href=\"/review?{{ PageWithGetParams(pager.next) | raw }}\">
  443.                         <i class=\"ion-chevron-right\">></i>
  444.                     </a>
  445.                 {% else %}
  446.                     <a disabled>
  447.                         <i class=\"ion-chevron-right\"></i>
  448.                     </a>
  449.                 {% endif %}
  450.                 </li>
  451.             </ul>
  452.         </nav>
  453.     {% endif %}
  454. {% endblock %}
  455. ""Review/index.twig""/var/www/html/app/template/default/Review/index.twig");
  456.     }
  457.     
  458.     public function checkSecurity()
  459.     {
  460.         static $tags = array("set" => 13"if" => 31"for" => 59);
  461.         static $filters = array("escape" => 34"number_format" => 54"date" => 71"nl2br" => 76"trim" => 78"raw" => 97);
  462.         static $functions = array("range" => 64"PageWithGetParams" => 97);
  463.         try {
  464.             $this->sandbox->checkSecurity(
  465.                 ['set''if''for'],
  466.                 ['escape''number_format''date''nl2br''trim''raw'],
  467.                 ['range''PageWithGetParams']
  468.             );
  469.         } catch (SecurityError $e) {
  470.             $e->setSourceContext($this->source);
  471.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  472.                 $e->setTemplateLine($tags[$e->getTagName()]);
  473.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  474.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  475.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  476.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  477.             }
  478.             throw $e;
  479.         }
  480.     }
  481. }