<?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;
/* Topics42/index.twig */
class __TwigTemplate_9ccb07e0175f3b21db7c791dcab055db 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 1
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", "Topics42/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Topics42/index.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "Topics42/index.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo "<style>
.ec-newsRole__newsTitle a.news-url{
text-decoration:underline;
}
.ec-newsRole__newsTitle .icon.link{
margin-right:7px;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 14
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 17
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 18
echo "<div class=\"ec-pageRole\">
<div class=\"ec-newsRole\">
<div class=\"ec-pageHeader\">
<h1 class=\"mainttl\">お知らせ</h1>
</div>
<div class=\"contents-inner\" id=\"topics_list_page\">
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
// line 25
echo " <div class=\"ec-newsRole__newsItem\">
<div class=\"ec-newsRole__newsHeading\">
<div class=\"ec-newsRole__newsDate\">";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["News"], "publish_date", [], "any", false, false, true, 27), 27, $this->source)), "html", null, true);
echo "</div>
<div class=\"ec-newsRole__newsColumn\">
<div class=\"ec-newsRole__newsTitle\">
";
// line 30
if (twig_get_attribute($this->env, $this->source, $context["News"], "description", [], "any", false, false, true, 30)) {
echo "<a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topics42_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["News"], "id", [], "any", false, false, true, 30)]), "html", null, true);
echo "\">";
}
// line 31
echo " ";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["News"], "long_title", [], "any", false, false, true, 31), 31, $this->source));
echo "
";
// line 32
if (twig_get_attribute($this->env, $this->source, $context["News"], "description", [], "any", false, false, true, 32)) {
echo "</a>";
}
// line 33
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["News"], "url", [], "any", false, false, true, 33)) {
// line 34
echo " <a class=\"news-url\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["News"], "url", [], "any", false, false, true, 34), 34, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["News"], "link_method", [], "any", false, false, true, 34) == "1")) {
echo "target=\"_blank\"";
}
echo "><span class=\"icon link\"></span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["News"], "url", [], "any", false, false, true, 34), 34, $this->source), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, $context["News"], "link_method", [], "any", false, false, true, 34) == "1")) {
echo " (別ウィンドウで開きます)";
}
echo "</a>
";
}
// line 36
echo " </div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo "</div>
</div>
</div>
";
// line 45
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 45, $this->source); })()), "paginationData", [], "any", false, false, true, 45), "pageCount", [], "any", false, false, true, 45) > 1)) {
// line 46
echo "<div class=\"ec-pagerRole\">
";
// line 47
$this->loadTemplate("pager.twig", "Topics42/index.twig", 47)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 47, $this->source); })()), "paginationData", [], "any", false, false, true, 47)]));
// line 48
echo "</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Topics42/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 196 => 48, 194 => 47, 191 => 46, 189 => 45, 183 => 41, 173 => 36, 158 => 34, 155 => 33, 151 => 32, 146 => 31, 140 => 30, 134 => 27, 130 => 25, 126 => 24, 118 => 18, 108 => 17, 90 => 14, 72 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block stylesheet %}
<style>
.ec-newsRole__newsTitle a.news-url{
text-decoration:underline;
}
.ec-newsRole__newsTitle .icon.link{
margin-right:7px;
}
</style>
{% endblock %}
{% block javascript %}
{% endblock %}
{% block main %}
<div class=\"ec-pageRole\">
<div class=\"ec-newsRole\">
<div class=\"ec-pageHeader\">
<h1 class=\"mainttl\">お知らせ</h1>
</div>
<div class=\"contents-inner\" id=\"topics_list_page\">
{% for News in pagination %}
<div class=\"ec-newsRole__newsItem\">
<div class=\"ec-newsRole__newsHeading\">
<div class=\"ec-newsRole__newsDate\">{{ News.publish_date|date_day }}</div>
<div class=\"ec-newsRole__newsColumn\">
<div class=\"ec-newsRole__newsTitle\">
{% if News.description %}<a href=\"{{ url('topics42_detail', {'id': News.id}) }}\">{% endif %}
{{ News.long_title|raw|nl2br }}
{% if News.description %}</a>{% endif %}
{% if News.url %}
<a class=\"news-url\" href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}><span class=\"icon link\"></span>{{ News.url }}{% if News.link_method == '1' %} (別ウィンドウで開きます){% endif %}</a>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% if pagination.paginationData.pageCount > 1 %}
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endblock %}
", "Topics42/index.twig", "/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Topics42/index.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 24, "if" => 30, "include" => 47);
static $filters = array("escape" => 27, "date_day" => 27, "nl2br" => 31, "raw" => 31);
static $functions = array("url" => 30);
try {
$this->sandbox->checkSecurity(
['for', 'if', 'include'],
['escape', 'date_day', 'nl2br', '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;
}
}
}