<?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;
/* Topics/index.twig */
class __TwigTemplate_53109f5db443c1156a409bf651387339 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 16
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", "Topics/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Topics/index.twig"));
// line 18
$context["body_class"] = "topics_page";
// line 16
$this->parent = $this->loadTemplate("default_frame.twig", "Topics/index.twig", 16);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 20
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 21
echo "
<div>
<div>
\t<p class=\"topics\">
\t\t\t<b>";
// line 25
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Topic"]) || array_key_exists("Topic", $context) ? $context["Topic"] : (function () { throw new RuntimeError('Variable "Topic" does not exist.', 25, $this->source); })()), "topix_cdate", [], "any", false, false, true, 25), 25, $this->source), "Y年m月d日"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\ServiceExtension']->SetJWeek($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Topic"]) || array_key_exists("Topic", $context) ? $context["Topic"] : (function () { throw new RuntimeError('Variable "Topic" does not exist.', 25, $this->source); })()), "topix_cdate", [], "any", false, false, true, 25), 25, $this->source)), "html", null, true);
echo ")</b>
\t\t</p>
\t\t<div>
";
// line 28
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Topic"]) || array_key_exists("Topic", $context) ? $context["Topic"] : (function () { throw new RuntimeError('Variable "Topic" does not exist.', 28, $this->source); })()), "topix_comment", [], "any", false, false, true, 28), 28, $this->source);
echo "
<div>
<div>
<div>
<p>
<b class=\"b-style\">アーカイブ</b>
<p>
<ul class=\"topics-ul-m0\">
";
// line 36
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Topics"]) || array_key_exists("Topics", $context) ? $context["Topics"] : (function () { throw new RuntimeError('Variable "Topics" does not exist.', 36, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Topic"]) {
// line 37
echo " <li>
<a href=\"";
// line 38
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topics");
echo "?dt=";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Topic"], "topix_cdate", [], "any", false, false, true, 38), 38, $this->source), "Ymd"), "html", null, true);
echo "\" class=\"\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Topic"], "topix_cdate", [], "any", false, false, true, 38), 38, $this->source), "Y年m月"), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Topic'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </ul>
\t</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Topics/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 118 => 41, 105 => 38, 102 => 37, 98 => 36, 87 => 28, 79 => 25, 73 => 21, 63 => 20, 52 => 16, 50 => 18, 37 => 16,);
}
public function getSourceContext()
{
return new Source("{# @version EC=CUBE4.1 TWIG
# @copyright 株式会社 翔 kakeru.co.jp
# @author
# 2022年08月22日作成
#
# app/template/default/Topics/index.twig
#
#
# トピックス
#
#
#
#
# ≡≡≡┏(^o^)┛
##############################################################}
{% extends 'default_frame.twig' %}
{% set body_class = 'topics_page' %}
{% block main %}
<div>
<div>
\t<p class=\"topics\">
\t\t\t<b>{{ Topic.topix_cdate|date('Y年m月d日')}} ({{Topic.topix_cdate|jweek}})</b>
\t\t</p>
\t\t<div>
{{ Topic.topix_comment|raw }}
<div>
<div>
<div>
<p>
<b class=\"b-style\">アーカイブ</b>
<p>
<ul class=\"topics-ul-m0\">
{% for Topic in Topics %}
<li>
<a href=\"{{ url('topics') }}?dt={{ Topic.topix_cdate|date('Ymd') }}\" class=\"\">{{ Topic.topix_cdate|date('Y年m月') }}</a>
</li>
{% endfor %}
</ul>
\t</div>
</div>
{% endblock %}", "Topics/index.twig", "/var/www/html/app/template/default/Topics/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 18, "for" => 36);
static $filters = array("escape" => 25, "date" => 25, "jweek" => 25, "raw" => 28);
static $functions = array("url" => 38);
try {
$this->sandbox->checkSecurity(
['set', 'for'],
['escape', 'date', 'jweek', 'raw'],
['url']
);
} 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;
}
}
}