<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Message/index.twig */
class __TwigTemplate_eafdf1aa2407fb0955a78c3758222c95 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 13
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Message/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Message/index.twig"));
// line 15
$context["body_class"] = "message_page";
// line 13
$this->parent = $this->loadTemplate("default_frame.twig", "Message/index.twig", 13);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 17
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 18
echo " <link rel=\"stylesheet\" href=\"/stylesheets/message.css?20220924\">
<style>
nav {
min-height: auto;
}
</style>
";
// line 24
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)) {
// line 25
echo " <meta name=\"robots\" content=\"noindex\" />
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 29
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 30
echo " <script src=\"/javascripts/message.js\"></script>
<script>
\$(function() {
\$('#category-select').on('change', function(event) {
location.href = '/message?category=' + \$(this).val();
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 40
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 41
echo "
";
// line 44
echo " ";
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", false, false, true, 44)) && 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); })())))) {
// line 45
echo " <div id=\"ttl_koe\">
<div id=\"koe_img\">
<div id=\"txt\">
<p>お客様の声<span>";
// line 48
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", null, true);
echo "件</span>を掲載!</p>
<p>商品購入のご検討等にお役立てください!</p>
</div>
</div>
</div>
";
}
// line 54
echo "
<div class=\"left-menu\">
<h3>カテゴリ一覧</h3>
<ul class=\"menu message-category-menu\">
";
// line 58
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 59
echo " <li class=\"module-header message-category-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "cmc_id", [], "any", false, false, true, 59), 59, $this->source), "html", null, true);
echo "\">
<a href=\"";
// line 60
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", false, false, true, 60)]), "html", null, true);
echo "\" ";
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", false, false, true, 60))) ? ("class=\"active\"") : (""));
echo ">
";
// line 61
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "category_name", [], "any", false, false, true, 61), 61, $this->source), "html", null, true);
echo "<span class=\"message-count\">(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "cmc_count", [], "any", false, false, true, 61), 61, $this->source), "html", null, true);
echo "件)</span><span class=\"arw\">▸</span>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </ul>
</div>
<div class=\"left-menu-sp contents-wrapper\">
<span>カテゴリ一覧</span>
<select id=\"category-select\">
<option value=\"\">選択してください</option>
";
// line 71
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 72
echo " <option value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "cmc_id", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo "\" ";
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", false, false, true, 72))) ? ("selected") : (""));
echo ">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "category_name", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo "(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "cmc_count", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo "件)</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " </select>
</div>
<div id=\"right-content\">
";
// line 78
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); })()))) {
// line 79
echo " <div class=\"content-title\">
「<span class=\"content-target\">";
// line 80
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", false, false, true, 80), 80, $this->source), "html", null, true);
echo "</span>」のお客様の声一覧
</div>
";
} elseif ( !twig_test_empty( // line 82
(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); })()))) {
// line 83
echo " <div class=\"content-title\">
";
// line 84
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["key"] => $context["kataban"]) {
// line 85
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 85)) {
// line 86
echo " 「<span class=\"content-target\"> ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["kataban"], 0, [], "array", false, false, true, 86), "kataban", [], "array", false, false, true, 86), 86, $this->source), "html", null, true);
echo " ";
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", false, false, true, 86), 86, $this->source), "html", null, true);
echo "</span>」のお客様の声一覧
";
}
// line 88
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['kataban'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 89
echo " </div>
";
}
// line 91
echo "
";
// line 92
$context["week"] = twig_date_format_filter($this->env, "-2 week", "Y/m/d");
// line 93
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["key"] => $context["row"]) {
// line 94
echo " ";
$context["images"] = twig_get_attribute($this->env, $this->source, $context["row"], "img_paths", [], "any", false, false, true, 94);
// line 95
echo " <div class=\"article no-img clearfix\">
<div class=\"date-box\">
<div id=\"";
// line 97
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "cm_id", [], "any", false, false, true, 97), 97, $this->source), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "cm_id", [], "any", false, false, true, 97), 97, $this->source), "html", null, true);
echo "\">
";
// line 98
if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["row"], "display_datetime", [], "any", false, false, true, 98), "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); })()))) {
// line 99
echo " <p class=\"new\">New</p>
";
}
// line 101
echo " <p class=\"date\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "display_datetime", [], "any", false, false, true, 101), 101, $this->source), "Y/m/d"), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"ttl\">
<h3>";
// line 106
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "title", [], "any", false, false, true, 106), 106, $this->source), "html", null, true);
echo "</h3>
</div>
<div class=\"content-box\">
<div class=\"left\">
<div class=\"voice\">
";
// line 112
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["row"], "customer_name", [], "any", false, false, true, 112)) && (twig_get_attribute($this->env, $this->source, $context["row"], "customer_name", [], "any", false, false, true, 112) != "#VALUE!"))) {
// line 113
echo " <h4 class=\"voice-icon\">
「";
// line 114
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "customer_name", [], "any", false, false, true, 114), 114, $this->source), "html", null, true);
echo "様」からの声
</h4>
";
}
// line 117
echo "
";
// line 118
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["row"], "comment", [], "any", false, false, true, 118))) {
// line 119
echo " <p class=\"comment customer_comment\">
";
// line 120
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)) {
// line 121
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["idx"] => $context["image"]) {
// line 122
echo " ";
$context["alt"] = twig_get_attribute($this->env, $this->source, $context["row"], "customer_name", [], "any", false, false, true, 122);
// line 123
echo " ";
$context["image_src"] = twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "path", [], "any", false, false, true, 123), 123, $this->source), ["https:" => ""]);
// line 124
echo " <img class=\"mt-image-none\" src='";
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", null, true);
echo "' alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "alt", [], "any", false, false, true, 124), 124, $this->source), "html", null, true);
echo "\" style=\"\">
<br><br>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['idx'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 127
echo " ";
}
// line 128
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "comment", [], "any", false, false, true, 128), 128, $this->source);
echo "
</p>
";
}
// line 131
echo " </div>
";
// line 133
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["row"], "staff_comment", [], "any", false, false, true, 133))) {
// line 134
echo " <div class=\"shop\">
<h4 class=\"shop-icon\">ショップ担当者より</h4>
<p class=\"comment staff_comment\">";
// line 136
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["row"], "staff_comment", [], "any", false, false, true, 136), 136, $this->source);
echo "</p>
</div>
";
}
// line 139
echo "
";
// line 141
if (twig_get_attribute($this->env, $this->source, ($context["g_kataban"] ?? null), twig_get_attribute($this->env, $this->source, $context["row"], "cm_id", [], "any", false, false, true, 141), [], "array", true, true, true, 141)) {
// line 142
echo " <div class=\"buy\">
<h4 class=\"buy-icon\">ご購入いただいた商品</h4>
";
// line 144
$context['_parent'] = $context;
$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", false, false, true, 144), [], "array", false, false, true, 144));
foreach ($context['_seq'] as $context["key"] => $context["data"]) {
// line 145
echo " <a href=\"/item/";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["data"], "goods_id", [], "any", false, false, true, 145), 145, $this->source), "html", null, true);
echo ".html\" target=\"_blank\" class=\"item-btn\">
<p>";
// line 146
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["data"], "kataban", [], "any", false, false, true, 146), 146, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["data"], "name", [], "any", false, false, true, 146), 146, $this->source), "html", null, true);
echo " <span class=\"arw\">▸</span></p>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['data'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
echo " </div>
";
}
// line 151
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 155
echo " </div>
<!-- ページネーション -->
";
// line 158
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)) {
// line 159
echo " <nav data-pagination>
<ul>
<li>
";
// line 162
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", false, false, true, 162))) {
// line 163
echo " <a href=\"/message?";
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", false, false, true, 163), 163, $this->source));
echo "\">
<i class=\"ion-chevron-left\"><</i>
</a>
";
} else {
// line 167
echo " <a disabled>
<i class=\"ion-chevron-left\"></i>
</a>
";
}
// line 171
echo " </li>
";
// line 172
$context['_parent'] = $context;
$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", false, false, true, 172));
foreach ($context['_seq'] as $context["key"] => $context["page"]) {
// line 173
echo " ";
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); })()))) {
// line 174
echo " <li class=\"current\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["page"], 174, $this->source), "html", null, true);
echo "</li>
";
} elseif (( // line 175
$context["page"] == null)) {
// line 176
echo " <li class=\"page-point\">...</li>
";
} else {
// line 178
echo " <li><a href=\"/message?";
echo $this->extensions['Customize\Twig\Extension\ServiceExtension']->PageWithGetParams($this->sandbox->ensureToStringAllowed($context["page"], 178, $this->source));
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["page"], 178, $this->source), "html", null, true);
echo "</a></li>
";
}
// line 180
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 181
echo " <li>
";
// line 182
if (twig_get_attribute($this->env, $this->source, ($context["g_pager"] ?? null), "next", [], "any", true, true, true, 182)) {
// line 183
echo " <a href=\"/message?";
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", false, false, true, 183), 183, $this->source));
echo "\">
<i class=\"ion-chevron-right\">></i>
</a>
";
} else {
// line 187
echo " <a disabled>
<i class=\"ion-chevron-right\"></i>
</a>
";
}
// line 191
echo " </li>
</ul>
</nav>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Message/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'message_page' %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"/stylesheets/message.css?20220924\">
<style>
nav {
min-height: auto;
}
</style>
{% if g_page > 1 %}
<meta name=\"robots\" content=\"noindex\" />
{% endif %}
{% endblock %}
{% block javascript %}
<script src=\"/javascripts/message.js\"></script>
<script>
\$(function() {
\$('#category-select').on('change', function(event) {
location.href = '/message?category=' + \$(this).val();
});
});
</script>
{% endblock %}
{% block main %}
{#{% if g_pager.prev is not defined and g_category is empty and g_goods_id is empty and g_basic_id is empty %}#}
{% if g_pager.prev is empty and g_category is empty and g_goods_id is empty %}
<div id=\"ttl_koe\">
<div id=\"koe_img\">
<div id=\"txt\">
<p>お客様の声<span>{{ g_total_count }}件</span>を掲載!</p>
<p>商品購入のご検討等にお役立てください!</p>
</div>
</div>
</div>
{% endif %}
<div class=\"left-menu\">
<h3>カテゴリ一覧</h3>
<ul class=\"menu message-category-menu\">
{% for category in g_category_list %}
<li class=\"module-header message-category-{{ category.cmc_id }}\">
<a href=\"{{ url('message/index', {'category': category.cmc_id}) }}\" {{ g_category_id == category.cmc_id ? 'class=\"active\"' : \"\" }}>
{{ category.category_name }}<span class=\"message-count\">({{ category.cmc_count }}件)</span><span class=\"arw\">▸</span>
</a>
</li>
{% endfor %}
</ul>
</div>
<div class=\"left-menu-sp contents-wrapper\">
<span>カテゴリ一覧</span>
<select id=\"category-select\">
<option value=\"\">選択してください</option>
{% for category in g_category_list %}
<option value=\"{{ category.cmc_id }}\" {{ g_category_id == category.cmc_id ? 'selected' : \"\" }}>{{ category.category_name }}({{ category.cmc_count }}件)</option>
{% endfor %}
</select>
</div>
<div id=\"right-content\">
{% if g_category_id is not empty %}
<div class=\"content-title\">
「<span class=\"content-target\">{{ g_category['category_name'] }}</span>」のお客様の声一覧
</div>
{% elseif g_goods_id is not empty %}
<div class=\"content-title\">
{% for key, kataban in g_kataban %}
{% if loop.first %}
「<span class=\"content-target\"> {{ kataban[0]['kataban']}} {{ g_goods['goods_name']}}</span>」のお客様の声一覧
{% endif %}
{% endfor %}
</div>
{% endif %}
{% set week = \"-2 week\" | date(\"Y/m/d\") %}
{% for key, row in g_msg_list %}
{% set images = row.img_paths %}
<div class=\"article no-img clearfix\">
<div class=\"date-box\">
<div id=\"{{ row.cm_id }}\" name=\"{{ row.cm_id }}\">
{% if row.display_datetime | date(\"Y/m/d\") > week %}
<p class=\"new\">New</p>
{% endif %}
<p class=\"date\">{{ row.display_datetime | date(\"Y/m/d\") }}</p>
</div>
</div>
<div class=\"ttl\">
<h3>{{ row.title }}</h3>
</div>
<div class=\"content-box\">
<div class=\"left\">
<div class=\"voice\">
{% if row.customer_name is not empty and row.customer_name !=\"#VALUE!\" %}
<h4 class=\"voice-icon\">
「{{ row.customer_name }}様」からの声
</h4>
{% endif %}
{% if row.comment is not empty %}
<p class=\"comment customer_comment\">
{% if images|length >= 0 %}
{% for idx, image in images %}
{% set alt = row.customer_name %}
{% set image_src = image.path|replace({\"https:\": \"\"} ) %}
<img class=\"mt-image-none\" src='{{ image_src }}' alt=\"{{ image.alt }}\" style=\"\">
<br><br>
{% endfor %}
{% endif %}
{{ row.comment | raw }}
</p>
{% endif %}
</div>
{% if row.staff_comment is not empty %}
<div class=\"shop\">
<h4 class=\"shop-icon\">ショップ担当者より</h4>
<p class=\"comment staff_comment\">{{ row.staff_comment | raw }}</p>
</div>
{% endif %}
{% if g_kataban[row.cm_id] is defined %}
<div class=\"buy\">
<h4 class=\"buy-icon\">ご購入いただいた商品</h4>
{% for key, data in g_kataban[row.cm_id] %}
<a href=\"/item/{{ data.goods_id }}.html\" target=\"_blank\" class=\"item-btn\">
<p>{{ data.kataban }} {{ data.name }} <span class=\"arw\">▸</span></p>
</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
<!-- ページネーション -->
{% if g_pages > 1 %}
<nav data-pagination>
<ul>
<li>
{% if g_pager.prev is not empty %}
<a href=\"/message?{{ PageWithGetParams(g_pager.next) | raw }}\">
<i class=\"ion-chevron-left\"><</i>
</a>
{% else %}
<a disabled>
<i class=\"ion-chevron-left\"></i>
</a>
{% endif %}
</li>
{% for key, page in g_pager.page_list %}
{% if page == g_page %}
<li class=\"current\">{{ page }}</li>
{% elseif page==null %}
<li class=\"page-point\">...</li>
{% else %}
<li><a href=\"/message?{{ PageWithGetParams(page) | raw }}\">{{ page }}</a></li>
{% endif %}
{% endfor %}
<li>
{% if g_pager.next is defined %}
<a href=\"/message?{{ PageWithGetParams(g_pager.next) | raw }}\">
<i class=\"ion-chevron-right\">></i>
</a>
{% else %}
<a disabled>
<i class=\"ion-chevron-right\"></i>
</a>
{% endif %}
</li>
</ul>
</nav>
{% endif %}
{% endblock %}
", "Message/index.twig", "/var/www/html/app/template/default/Message/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 15, "if" => 24, "for" => 58);
static $filters = array("escape" => 48, "date" => 92, "length" => 120, "replace" => 123, "raw" => 128);
static $functions = array("url" => 60, "PageWithGetParams" => 163);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'date', 'length', 'replace', 'raw'],
['url', 'PageWithGetParams']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}