var/cache/dev/twig/98/9833b81ea93d06efae854a76349fedff.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. /* Message/index.twig */
  14. class __TwigTemplate_eafdf1aa2407fb0955a78c3758222c95 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 13
  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""Message/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""Message/index.twig"));
  42.         // line 15
  43.         $context["body_class"] = "message_page";
  44.         // line 13
  45.         $this->parent $this->loadTemplate("default_frame.twig""Message/index.twig"13);
  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 17
  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 18
  61.         echo "    <link rel=\"stylesheet\" href=\"/stylesheets/message.css?20220924\">
  62.     <style>
  63.         nav {
  64.             min-height: auto;
  65.         }
  66.     </style>
  67.     ";
  68.         // line 24
  69.         if (((isset($context["g_page"]) || array_key_exists("g_page"$context) ? $context["g_page"] : (function () { throw new RuntimeError('Variable "g_page" does not exist.'24$this->source); })()) > 1)) {
  70.             // line 25
  71.             echo "    <meta name=\"robots\" content=\"noindex\" />
  72.     ";
  73.         }
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     // line 29
  80.     public function block_javascript($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  87.         // line 30
  88.         echo "    <script src=\"/javascripts/message.js\"></script>
  89.     <script>
  90.         \$(function() {
  91.             \$('#category-select').on('change', function(event) {
  92.                 location.href = '/message?category=' + \$(this).val();
  93.             });
  94.         });
  95.     </script>
  96. ";
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.         
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  101.     }
  102.     // line 40
  103.     public function block_main($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  110.         // line 41
  111.         echo "
  112.     ";
  113.         // line 44
  114.         echo "    ";
  115.         if (((twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["g_pager"]) || array_key_exists("g_pager"$context) ? $context["g_pager"] : (function () { throw new RuntimeError('Variable "g_pager" does not exist.'44$this->source); })()), "prev", [], "any"falsefalsetrue44)) && twig_test_empty((isset($context["g_category"]) || array_key_exists("g_category"$context) ? $context["g_category"] : (function () { throw new RuntimeError('Variable "g_category" does not exist.'44$this->source); })()))) && twig_test_empty((isset($context["g_goods_id"]) || array_key_exists("g_goods_id"$context) ? $context["g_goods_id"] : (function () { throw new RuntimeError('Variable "g_goods_id" does not exist.'44$this->source); })())))) {
  116.             // line 45
  117.             echo "    <div id=\"ttl_koe\">
  118.         <div id=\"koe_img\">
  119.             <div id=\"txt\">
  120.                 <p>お客様の声<span>";
  121.             // line 48
  122.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["g_total_count"]) || array_key_exists("g_total_count"$context) ? $context["g_total_count"] : (function () { throw new RuntimeError('Variable "g_total_count" does not exist.'48$this->source); })()), 48$this->source), "html"nulltrue);
  123.             echo "件</span>を掲載!</p>
  124.                 <p>商品購入のご検討等にお役立てください!</p>
  125.             </div>
  126.         </div>
  127.     </div>
  128.     ";
  129.         }
  130.         // line 54
  131.         echo "
  132.     <div class=\"left-menu\">
  133.         <h3>カテゴリ一覧</h3>
  134.         <ul class=\"menu message-category-menu\">
  135.             ";
  136.         // line 58
  137.         $context['_parent'] = $context;
  138.         $context['_seq'] = twig_ensure_traversable((isset($context["g_category_list"]) || array_key_exists("g_category_list"$context) ? $context["g_category_list"] : (function () { throw new RuntimeError('Variable "g_category_list" does not exist.'58$this->source); })()));
  139.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  140.             // line 59
  141.             echo "                <li class=\"module-header message-category-";
  142.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "cmc_id", [], "any"falsefalsetrue59), 59$this->source), "html"nulltrue);
  143.             echo "\">
  144.                     <a href=\"";
  145.             // line 60
  146.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("message/index", ["category" => twig_get_attribute($this->env$this->source$context["category"], "cmc_id", [], "any"falsefalsetrue60)]), "html"nulltrue);
  147.             echo "\" ";
  148.             echo ((((isset($context["g_category_id"]) || array_key_exists("g_category_id"$context) ? $context["g_category_id"] : (function () { throw new RuntimeError('Variable "g_category_id" does not exist.'60$this->source); })()) == twig_get_attribute($this->env$this->source$context["category"], "cmc_id", [], "any"falsefalsetrue60))) ? ("class=\"active\"") : (""));
  149.             echo ">
  150.                         ";
  151.             // line 61
  152.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "category_name", [], "any"falsefalsetrue61), 61$this->source), "html"nulltrue);
  153.             echo "<span class=\"message-count\">(";
  154.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "cmc_count", [], "any"falsefalsetrue61), 61$this->source), "html"nulltrue);
  155.             echo "件)</span><span class=\"arw\">&rtrif;</span>
  156.                     </a>
  157.                 </li>
  158.             ";
  159.         }
  160.         $_parent $context['_parent'];
  161.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  162.         $context array_intersect_key($context$_parent) + $_parent;
  163.         // line 65
  164.         echo "        </ul>
  165.     </div>
  166.     <div class=\"left-menu-sp contents-wrapper\">
  167.         <span>カテゴリ一覧</span>
  168.         <select id=\"category-select\">
  169.             <option value=\"\">選択してください</option>
  170.             ";
  171.         // line 71
  172.         $context['_parent'] = $context;
  173.         $context['_seq'] = twig_ensure_traversable((isset($context["g_category_list"]) || array_key_exists("g_category_list"$context) ? $context["g_category_list"] : (function () { throw new RuntimeError('Variable "g_category_list" does not exist.'71$this->source); })()));
  174.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  175.             // line 72
  176.             echo "                <option value=\"";
  177.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "cmc_id", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  178.             echo "\" ";
  179.             echo ((((isset($context["g_category_id"]) || array_key_exists("g_category_id"$context) ? $context["g_category_id"] : (function () { throw new RuntimeError('Variable "g_category_id" does not exist.'72$this->source); })()) == twig_get_attribute($this->env$this->source$context["category"], "cmc_id", [], "any"falsefalsetrue72))) ? ("selected") : (""));
  180.             echo ">";
  181.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "category_name", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  182.             echo "(";
  183.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "cmc_count", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  184.             echo "件)</option>
  185.             ";
  186.         }
  187.         $_parent $context['_parent'];
  188.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  189.         $context array_intersect_key($context$_parent) + $_parent;
  190.         // line 74
  191.         echo "        </select>
  192.     </div>
  193.     <div id=\"right-content\">
  194.         ";
  195.         // line 78
  196.         if ( !twig_test_empty((isset($context["g_category_id"]) || array_key_exists("g_category_id"$context) ? $context["g_category_id"] : (function () { throw new RuntimeError('Variable "g_category_id" does not exist.'78$this->source); })()))) {
  197.             // line 79
  198.             echo "        <div class=\"content-title\">
  199.             「<span class=\"content-target\">";
  200.             // line 80
  201.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["g_category"]) || array_key_exists("g_category"$context) ? $context["g_category"] : (function () { throw new RuntimeError('Variable "g_category" does not exist.'80$this->source); })()), "category_name", [], "array"falsefalsetrue80), 80$this->source), "html"nulltrue);
  202.             echo "</span>」のお客様の声一覧
  203.         </div>
  204.         ";
  205.         } elseif ( !twig_test_empty(        // line 82
  206. (isset($context["g_goods_id"]) || array_key_exists("g_goods_id"$context) ? $context["g_goods_id"] : (function () { throw new RuntimeError('Variable "g_goods_id" does not exist.'82$this->source); })()))) {
  207.             // line 83
  208.             echo "        <div class=\"content-title\">
  209.             ";
  210.             // line 84
  211.             $context['_parent'] = $context;
  212.             $context['_seq'] = twig_ensure_traversable((isset($context["g_kataban"]) || array_key_exists("g_kataban"$context) ? $context["g_kataban"] : (function () { throw new RuntimeError('Variable "g_kataban" does not exist.'84$this->source); })()));
  213.             $context['loop'] = [
  214.               'parent' => $context['_parent'],
  215.               'index0' => 0,
  216.               'index'  => 1,
  217.               'first'  => true,
  218.             ];
  219.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  220.                 $length count($context['_seq']);
  221.                 $context['loop']['revindex0'] = $length 1;
  222.                 $context['loop']['revindex'] = $length;
  223.                 $context['loop']['length'] = $length;
  224.                 $context['loop']['last'] = === $length;
  225.             }
  226.             foreach ($context['_seq'] as $context["key"] => $context["kataban"]) {
  227.                 // line 85
  228.                 echo "                ";
  229.                 if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsetrue85)) {
  230.                     // line 86
  231.                     echo "                    「<span class=\"content-target\"> ";
  232.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["kataban"], 0, [], "array"falsefalsetrue86), "kataban", [], "array"falsefalsetrue86), 86$this->source), "html"nulltrue);
  233.                     echo " ";
  234.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["g_goods"]) || array_key_exists("g_goods"$context) ? $context["g_goods"] : (function () { throw new RuntimeError('Variable "g_goods" does not exist.'86$this->source); })()), "goods_name", [], "array"falsefalsetrue86), 86$this->source), "html"nulltrue);
  235.                     echo "</span>」のお客様の声一覧
  236.                 ";
  237.                 }
  238.                 // line 88
  239.                 echo "            ";
  240.                 ++$context['loop']['index0'];
  241.                 ++$context['loop']['index'];
  242.                 $context['loop']['first'] = false;
  243.                 if (isset($context['loop']['length'])) {
  244.                     --$context['loop']['revindex0'];
  245.                     --$context['loop']['revindex'];
  246.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  247.                 }
  248.             }
  249.             $_parent $context['_parent'];
  250.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['kataban'], $context['_parent'], $context['loop']);
  251.             $context array_intersect_key($context$_parent) + $_parent;
  252.             // line 89
  253.             echo "        </div>
  254.         ";
  255.         }
  256.         // line 91
  257.         echo "
  258.         ";
  259.         // line 92
  260.         $context["week"] = twig_date_format_filter($this->env"-2 week""Y/m/d");
  261.         // line 93
  262.         echo "        ";
  263.         $context['_parent'] = $context;
  264.         $context['_seq'] = twig_ensure_traversable((isset($context["g_msg_list"]) || array_key_exists("g_msg_list"$context) ? $context["g_msg_list"] : (function () { throw new RuntimeError('Variable "g_msg_list" does not exist.'93$this->source); })()));
  265.         foreach ($context['_seq'] as $context["key"] => $context["row"]) {
  266.             // line 94
  267.             echo "            ";
  268.             $context["images"] = twig_get_attribute($this->env$this->source$context["row"], "img_paths", [], "any"falsefalsetrue94);
  269.             // line 95
  270.             echo "            <div class=\"article no-img clearfix\">
  271.                 <div class=\"date-box\">
  272.                     <div id=\"";
  273.             // line 97
  274.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "cm_id", [], "any"falsefalsetrue97), 97$this->source), "html"nulltrue);
  275.             echo "\" name=\"";
  276.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "cm_id", [], "any"falsefalsetrue97), 97$this->source), "html"nulltrue);
  277.             echo "\">
  278.                         ";
  279.             // line 98
  280.             if ((twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["row"], "display_datetime", [], "any"falsefalsetrue98), "Y/m/d") > (isset($context["week"]) || array_key_exists("week"$context) ? $context["week"] : (function () { throw new RuntimeError('Variable "week" does not exist.'98$this->source); })()))) {
  281.                 // line 99
  282.                 echo "                            <p class=\"new\">New</p>
  283.                         ";
  284.             }
  285.             // line 101
  286.             echo "                        <p class=\"date\">";
  287.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "display_datetime", [], "any"falsefalsetrue101), 101$this->source), "Y/m/d"), "html"nulltrue);
  288.             echo "</p>
  289.                     </div>
  290.                 </div>
  291.                 <div class=\"ttl\">
  292.                     <h3>";
  293.             // line 106
  294.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "title", [], "any"falsefalsetrue106), 106$this->source), "html"nulltrue);
  295.             echo "</h3>
  296.                 </div>
  297.                 <div class=\"content-box\">
  298.                     <div class=\"left\">
  299.                         <div class=\"voice\">
  300.                             ";
  301.             // line 112
  302.             if (( !twig_test_empty(twig_get_attribute($this->env$this->source$context["row"], "customer_name", [], "any"falsefalsetrue112)) && (twig_get_attribute($this->env$this->source$context["row"], "customer_name", [], "any"falsefalsetrue112) != "#VALUE!"))) {
  303.                 // line 113
  304.                 echo "                                <h4 class=\"voice-icon\">
  305.                                     「";
  306.                 // line 114
  307.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "customer_name", [], "any"falsefalsetrue114), 114$this->source), "html"nulltrue);
  308.                 echo "様」からの声
  309.                                 </h4>
  310.                             ";
  311.             }
  312.             // line 117
  313.             echo "
  314.                             ";
  315.             // line 118
  316.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["row"], "comment", [], "any"falsefalsetrue118))) {
  317.                 // line 119
  318.                 echo "                                <p class=\"comment customer_comment\">
  319.                                     ";
  320.                 // line 120
  321.                 if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'120$this->source); })())) >= 0)) {
  322.                     // line 121
  323.                     echo "                                        ";
  324.                     $context['_parent'] = $context;
  325.                     $context['_seq'] = twig_ensure_traversable((isset($context["images"]) || array_key_exists("images"$context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.'121$this->source); })()));
  326.                     foreach ($context['_seq'] as $context["idx"] => $context["image"]) {
  327.                         // line 122
  328.                         echo "                                            ";
  329.                         $context["alt"] = twig_get_attribute($this->env$this->source$context["row"], "customer_name", [], "any"falsefalsetrue122);
  330.                         // line 123
  331.                         echo "                                            ";
  332.                         $context["image_src"] = twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsetrue123), 123$this->source), ["https:" => ""]);
  333.                         // line 124
  334.                         echo "                                            <img class=\"mt-image-none\" src='";
  335.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["image_src"]) || array_key_exists("image_src"$context) ? $context["image_src"] : (function () { throw new RuntimeError('Variable "image_src" does not exist.'124$this->source); })()), 124$this->source), "html"nulltrue);
  336.                         echo "' alt=\"";
  337.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "alt", [], "any"falsefalsetrue124), 124$this->source), "html"nulltrue);
  338.                         echo "\" style=\"\">
  339.                                             <br><br>
  340.                                         ";
  341.                     }
  342.                     $_parent $context['_parent'];
  343.                     unset($context['_seq'], $context['_iterated'], $context['idx'], $context['image'], $context['_parent'], $context['loop']);
  344.                     $context array_intersect_key($context$_parent) + $_parent;
  345.                     // line 127
  346.                     echo "                                    ";
  347.                 }
  348.                 // line 128
  349.                 echo "                                    ";
  350.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "comment", [], "any"falsefalsetrue128), 128$this->source);
  351.                 echo "
  352.                                 </p>
  353.                             ";
  354.             }
  355.             // line 131
  356.             echo "                        </div>
  357.                         ";
  358.             // line 133
  359.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["row"], "staff_comment", [], "any"falsefalsetrue133))) {
  360.                 // line 134
  361.                 echo "                            <div class=\"shop\">
  362.                                 <h4 class=\"shop-icon\">ショップ担当者より</h4>
  363.                                 <p class=\"comment staff_comment\">";
  364.                 // line 136
  365.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["row"], "staff_comment", [], "any"falsefalsetrue136), 136$this->source);
  366.                 echo "</p>
  367.                             </div>
  368.                         ";
  369.             }
  370.             // line 139
  371.             echo "
  372.                         ";
  373.             // line 141
  374.             if (twig_get_attribute($this->env$this->source, ($context["g_kataban"] ?? null), twig_get_attribute($this->env$this->source$context["row"], "cm_id", [], "any"falsefalsetrue141), [], "array"truetruetrue141)) {
  375.                 // line 142
  376.                 echo "                            <div class=\"buy\">
  377.                                 <h4 class=\"buy-icon\">ご購入いただいた商品</h4>
  378.                                 ";
  379.                 // line 144
  380.                 $context['_parent'] = $context;
  381.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["g_kataban"]) || array_key_exists("g_kataban"$context) ? $context["g_kataban"] : (function () { throw new RuntimeError('Variable "g_kataban" does not exist.'144$this->source); })()), twig_get_attribute($this->env$this->source$context["row"], "cm_id", [], "any"falsefalsetrue144), [], "array"falsefalsetrue144));
  382.                 foreach ($context['_seq'] as $context["key"] => $context["data"]) {
  383.                     // line 145
  384.                     echo "                                    <a href=\"/item/";
  385.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["data"], "goods_id", [], "any"falsefalsetrue145), 145$this->source), "html"nulltrue);
  386.                     echo ".html\" target=\"_blank\" class=\"item-btn\">
  387.                                         <p>";
  388.                     // line 146
  389.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["data"], "kataban", [], "any"falsefalsetrue146), 146$this->source), "html"nulltrue);
  390.                     echo " ";
  391.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["data"], "name", [], "any"falsefalsetrue146), 146$this->source), "html"nulltrue);
  392.                     echo " <span class=\"arw\">&rtrif;</span></p>
  393.                                     </a>
  394.                                 ";
  395.                 }
  396.                 $_parent $context['_parent'];
  397.                 unset($context['_seq'], $context['_iterated'], $context['key'], $context['data'], $context['_parent'], $context['loop']);
  398.                 $context array_intersect_key($context$_parent) + $_parent;
  399.                 // line 149
  400.                 echo "                            </div>
  401.                         ";
  402.             }
  403.             // line 151
  404.             echo "                    </div>
  405.                 </div>
  406.             </div>
  407.         ";
  408.         }
  409.         $_parent $context['_parent'];
  410.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['row'], $context['_parent'], $context['loop']);
  411.         $context array_intersect_key($context$_parent) + $_parent;
  412.         // line 155
  413.         echo "    </div>
  414.     <!-- ページネーション -->
  415.     ";
  416.         // line 158
  417.         if (((isset($context["g_pages"]) || array_key_exists("g_pages"$context) ? $context["g_pages"] : (function () { throw new RuntimeError('Variable "g_pages" does not exist.'158$this->source); })()) > 1)) {
  418.             // line 159
  419.             echo "        <nav data-pagination>
  420.             <ul>
  421.                 <li>
  422.                     ";
  423.             // line 162
  424.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["g_pager"]) || array_key_exists("g_pager"$context) ? $context["g_pager"] : (function () { throw new RuntimeError('Variable "g_pager" does not exist.'162$this->source); })()), "prev", [], "any"falsefalsetrue162))) {
  425.                 // line 163
  426.                 echo "                    <a href=\"/message?";
  427.                 echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["g_pager"]) || array_key_exists("g_pager"$context) ? $context["g_pager"] : (function () { throw new RuntimeError('Variable "g_pager" does not exist.'163$this->source); })()), "next", [], "any"falsefalsetrue163), 163$this->source));
  428.                 echo "\">
  429.                         <i class=\"ion-chevron-left\"><</i>
  430.                     </a>
  431.                     ";
  432.             } else {
  433.                 // line 167
  434.                 echo "                    <a disabled>
  435.                         <i class=\"ion-chevron-left\"></i>
  436.                     </a>
  437.                     ";
  438.             }
  439.             // line 171
  440.             echo "                </li>
  441.                 ";
  442.             // line 172
  443.             $context['_parent'] = $context;
  444.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["g_pager"]) || array_key_exists("g_pager"$context) ? $context["g_pager"] : (function () { throw new RuntimeError('Variable "g_pager" does not exist.'172$this->source); })()), "page_list", [], "any"falsefalsetrue172));
  445.             foreach ($context['_seq'] as $context["key"] => $context["page"]) {
  446.                 // line 173
  447.                 echo "                    ";
  448.                 if (($context["page"] == (isset($context["g_page"]) || array_key_exists("g_page"$context) ? $context["g_page"] : (function () { throw new RuntimeError('Variable "g_page" does not exist.'173$this->source); })()))) {
  449.                     // line 174
  450.                     echo "                        <li class=\"current\">";
  451.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["page"], 174$this->source), "html"nulltrue);
  452.                     echo "</li>
  453.                     ";
  454.                 } elseif ((                // line 175
  455. $context["page"] == null)) {
  456.                     // line 176
  457.                     echo "                        <li class=\"page-point\">...</li>
  458.                     ";
  459.                 } else {
  460.                     // line 178
  461.                     echo "                         <li><a href=\"/message?";
  462.                     echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed($context["page"], 178$this->source));
  463.                     echo "\">";
  464.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["page"], 178$this->source), "html"nulltrue);
  465.                     echo "</a></li>
  466.                     ";
  467.                 }
  468.                 // line 180
  469.                 echo "                ";
  470.             }
  471.             $_parent $context['_parent'];
  472.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['page'], $context['_parent'], $context['loop']);
  473.             $context array_intersect_key($context$_parent) + $_parent;
  474.             // line 181
  475.             echo "                <li>
  476.                     ";
  477.             // line 182
  478.             if (twig_get_attribute($this->env$this->source, ($context["g_pager"] ?? null), "next", [], "any"truetruetrue182)) {
  479.                 // line 183
  480.                 echo "                    <a href=\"/message?";
  481.                 echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["g_pager"]) || array_key_exists("g_pager"$context) ? $context["g_pager"] : (function () { throw new RuntimeError('Variable "g_pager" does not exist.'183$this->source); })()), "next", [], "any"falsefalsetrue183), 183$this->source));
  482.                 echo "\">
  483.                         <i class=\"ion-chevron-right\">></i>
  484.                     </a>
  485.                     ";
  486.             } else {
  487.                 // line 187
  488.                 echo "                    <a disabled>
  489.                         <i class=\"ion-chevron-right\"></i>
  490.                     </a>
  491.                     ";
  492.             }
  493.             // line 191
  494.             echo "                </li>
  495.             </ul>
  496.         </nav>
  497.     ";
  498.         }
  499.         
  500.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  501.         
  502.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  503.     }
  504.     public function getTemplateName()
  505.     {
  506.         return "Message/index.twig";
  507.     }
  508.     public function isTraitable()
  509.     {
  510.         return false;
  511.     }
  512.     public function getDebugInfo()
  513.     {
  514.         return array (  525 => 191,  519 => 187,  511 => 183,  509 => 182,  506 => 181,  500 => 180,  492 => 178,  488 => 176,  486 => 175,  481 => 174,  478 => 173,  474 => 172,  471 => 171,  465 => 167,  457 => 163,  455 => 162,  450 => 159,  448 => 158,  443 => 155,  434 => 151,  430 => 149,  419 => 146,  414 => 145,  410 => 144,  406 => 142,  404 => 141,  400 => 139,  394 => 136,  390 => 134,  388 => 133,  384 => 131,  377 => 128,  374 => 127,  362 => 124,  359 => 123,  356 => 122,  351 => 121,  349 => 120,  346 => 119,  344 => 118,  341 => 117,  335 => 114,  332 => 113,  330 => 112,  321 => 106,  312 => 101,  308 => 99,  306 => 98,  300 => 97,  296 => 95,  293 => 94,  288 => 93,  286 => 92,  283 => 91,  279 => 89,  265 => 88,  257 => 86,  254 => 85,  237 => 84,  234 => 83,  232 => 82,  227 => 80,  224 => 79,  222 => 78,  216 => 74,  201 => 72,  197 => 71,  189 => 65,  177 => 61,  171 => 60,  166 => 59,  162 => 58,  156 => 54,  147 => 48,  142 => 45,  139 => 44,  135 => 41,  125 => 40,  107 => 30,  97 => 29,  85 => 25,  83 => 24,  75 => 18,  65 => 17,  54 => 13,  52 => 15,  39 => 13,);
  515.     }
  516.     public function getSourceContext()
  517.     {
  518.         return new Source("{#
  519. This file is part of EC-CUBE
  520. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  521. http://www.ec-cube.co.jp/
  522. For the full copyright and license information, please view the LICENSE
  523. file that was distributed with this source code.
  524. #}
  525. {% extends 'default_frame.twig' %}
  526. {% set body_class = 'message_page' %}
  527. {% block stylesheet %}
  528.     <link rel=\"stylesheet\" href=\"/stylesheets/message.css?20220924\">
  529.     <style>
  530.         nav {
  531.             min-height: auto;
  532.         }
  533.     </style>
  534.     {% if g_page > 1 %}
  535.     <meta name=\"robots\" content=\"noindex\" />
  536.     {% endif %}
  537. {% endblock %}
  538. {% block javascript %}
  539.     <script src=\"/javascripts/message.js\"></script>
  540.     <script>
  541.         \$(function() {
  542.             \$('#category-select').on('change', function(event) {
  543.                 location.href = '/message?category=' + \$(this).val();
  544.             });
  545.         });
  546.     </script>
  547. {% endblock %}
  548. {% block main %}
  549.     {#{% if g_pager.prev is not defined and g_category is empty and g_goods_id is empty and g_basic_id is empty %}#}
  550.     {% if g_pager.prev is empty and g_category is empty and g_goods_id is empty %}
  551.     <div id=\"ttl_koe\">
  552.         <div id=\"koe_img\">
  553.             <div id=\"txt\">
  554.                 <p>お客様の声<span>{{ g_total_count }}件</span>を掲載!</p>
  555.                 <p>商品購入のご検討等にお役立てください!</p>
  556.             </div>
  557.         </div>
  558.     </div>
  559.     {% endif %}
  560.     <div class=\"left-menu\">
  561.         <h3>カテゴリ一覧</h3>
  562.         <ul class=\"menu message-category-menu\">
  563.             {% for category in g_category_list %}
  564.                 <li class=\"module-header message-category-{{ category.cmc_id }}\">
  565.                     <a href=\"{{ url('message/index', {'category': category.cmc_id}) }}\" {{ g_category_id == category.cmc_id ? 'class=\"active\"' : \"\" }}>
  566.                         {{ category.category_name }}<span class=\"message-count\">({{ category.cmc_count }}件)</span><span class=\"arw\">&rtrif;</span>
  567.                     </a>
  568.                 </li>
  569.             {% endfor %}
  570.         </ul>
  571.     </div>
  572.     <div class=\"left-menu-sp contents-wrapper\">
  573.         <span>カテゴリ一覧</span>
  574.         <select id=\"category-select\">
  575.             <option value=\"\">選択してください</option>
  576.             {% for category in g_category_list %}
  577.                 <option value=\"{{ category.cmc_id }}\" {{ g_category_id == category.cmc_id ? 'selected' : \"\" }}>{{ category.category_name }}({{ category.cmc_count }}件)</option>
  578.             {% endfor %}
  579.         </select>
  580.     </div>
  581.     <div id=\"right-content\">
  582.         {% if  g_category_id is not empty %}
  583.         <div class=\"content-title\">
  584.             「<span class=\"content-target\">{{ g_category['category_name'] }}</span>」のお客様の声一覧
  585.         </div>
  586.         {%  elseif g_goods_id is not empty %}
  587.         <div class=\"content-title\">
  588.             {% for key, kataban in g_kataban %}
  589.                 {% if loop.first %}
  590.                     「<span class=\"content-target\"> {{ kataban[0]['kataban']}} {{ g_goods['goods_name']}}</span>」のお客様の声一覧
  591.                 {% endif %}
  592.             {% endfor %}
  593.         </div>
  594.         {% endif %}
  595.         {% set week = \"-2 week\" | date(\"Y/m/d\") %}
  596.         {% for key, row in g_msg_list %}
  597.             {% set images = row.img_paths %}
  598.             <div class=\"article no-img clearfix\">
  599.                 <div class=\"date-box\">
  600.                     <div id=\"{{ row.cm_id }}\" name=\"{{ row.cm_id }}\">
  601.                         {% if row.display_datetime | date(\"Y/m/d\") > week %}
  602.                             <p class=\"new\">New</p>
  603.                         {%  endif %}
  604.                         <p class=\"date\">{{ row.display_datetime | date(\"Y/m/d\") }}</p>
  605.                     </div>
  606.                 </div>
  607.                 <div class=\"ttl\">
  608.                     <h3>{{ row.title }}</h3>
  609.                 </div>
  610.                 <div class=\"content-box\">
  611.                     <div class=\"left\">
  612.                         <div class=\"voice\">
  613.                             {% if row.customer_name is not empty and row.customer_name !=\"#VALUE!\" %}
  614.                                 <h4 class=\"voice-icon\">
  615.                                     「{{ row.customer_name }}様」からの声
  616.                                 </h4>
  617.                             {% endif %}
  618.                             {% if row.comment is not empty %}
  619.                                 <p class=\"comment customer_comment\">
  620.                                     {% if images|length >= 0  %}
  621.                                         {% for idx, image in images %}
  622.                                             {% set alt = row.customer_name %}
  623.                                             {% set image_src = image.path|replace({\"https:\": \"\"} ) %}
  624.                                             <img class=\"mt-image-none\" src='{{ image_src }}' alt=\"{{ image.alt }}\" style=\"\">
  625.                                             <br><br>
  626.                                         {% endfor %}
  627.                                     {% endif %}
  628.                                     {{ row.comment | raw }}
  629.                                 </p>
  630.                             {% endif %}
  631.                         </div>
  632.                         {% if row.staff_comment is not empty %}
  633.                             <div class=\"shop\">
  634.                                 <h4 class=\"shop-icon\">ショップ担当者より</h4>
  635.                                 <p class=\"comment staff_comment\">{{ row.staff_comment | raw }}</p>
  636.                             </div>
  637.                         {% endif %}
  638.                         {% if g_kataban[row.cm_id] is defined %}
  639.                             <div class=\"buy\">
  640.                                 <h4 class=\"buy-icon\">ご購入いただいた商品</h4>
  641.                                 {% for key, data in g_kataban[row.cm_id] %}
  642.                                     <a href=\"/item/{{ data.goods_id }}.html\" target=\"_blank\" class=\"item-btn\">
  643.                                         <p>{{ data.kataban }} {{ data.name }} <span class=\"arw\">&rtrif;</span></p>
  644.                                     </a>
  645.                                 {% endfor %}
  646.                             </div>
  647.                         {% endif %}
  648.                     </div>
  649.                 </div>
  650.             </div>
  651.         {% endfor %}
  652.     </div>
  653.     <!-- ページネーション -->
  654.     {% if g_pages > 1 %}
  655.         <nav data-pagination>
  656.             <ul>
  657.                 <li>
  658.                     {% if g_pager.prev is not empty %}
  659.                     <a href=\"/message?{{ PageWithGetParams(g_pager.next) | raw }}\">
  660.                         <i class=\"ion-chevron-left\"><</i>
  661.                     </a>
  662.                     {% else %}
  663.                     <a disabled>
  664.                         <i class=\"ion-chevron-left\"></i>
  665.                     </a>
  666.                     {% endif %}
  667.                 </li>
  668.                 {% for key, page in g_pager.page_list %}
  669.                     {% if page == g_page %}
  670.                         <li class=\"current\">{{ page }}</li>
  671.                     {% elseif page==null %}
  672.                         <li class=\"page-point\">...</li>
  673.                     {% else %}
  674.                          <li><a href=\"/message?{{ PageWithGetParams(page) | raw }}\">{{ page }}</a></li>
  675.                     {% endif %}
  676.                 {% endfor %}
  677.                 <li>
  678.                     {% if g_pager.next is defined %}
  679.                     <a href=\"/message?{{ PageWithGetParams(g_pager.next) | raw }}\">
  680.                         <i class=\"ion-chevron-right\">></i>
  681.                     </a>
  682.                     {% else %}
  683.                     <a disabled>
  684.                         <i class=\"ion-chevron-right\"></i>
  685.                     </a>
  686.                     {% endif %}
  687.                 </li>
  688.             </ul>
  689.         </nav>
  690.     {% endif %}
  691. {% endblock %}
  692. ""Message/index.twig""/var/www/html/app/template/default/Message/index.twig");
  693.     }
  694.     
  695.     public function checkSecurity()
  696.     {
  697.         static $tags = array("set" => 15"if" => 24"for" => 58);
  698.         static $filters = array("escape" => 48"date" => 92"length" => 120"replace" => 123"raw" => 128);
  699.         static $functions = array("url" => 60"PageWithGetParams" => 163);
  700.         try {
  701.             $this->sandbox->checkSecurity(
  702.                 ['set''if''for'],
  703.                 ['escape''date''length''replace''raw'],
  704.                 ['url''PageWithGetParams']
  705.             );
  706.         } catch (SecurityError $e) {
  707.             $e->setSourceContext($this->source);
  708.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  709.                 $e->setTemplateLine($tags[$e->getTagName()]);
  710.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  711.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  712.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  713.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  714.             }
  715.             throw $e;
  716.         }
  717.     }
  718. }