<?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;
/* @user_data/newslist.twig */
class __TwigTemplate_2824f5d207e51df06832df4f3aedc4474d31e01ce6512ccacdd375a5ae79eb91 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'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/newslist.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/newslist.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "@user_data/newslist.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 4
echo "
";
// line 6
$context["page"] = "";
// line 7
echo "
";
// line 8
$context["slug"] = "news";
// line 9
if ($this->extensions['Customize\Twig\Extension\MyExtension']->array_key_exists("slug", (isset($context["get"]) || array_key_exists("get", $context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.', 9, $this->source); })()))) {
// line 10
$context["slug"] = twig_get_attribute($this->env, $this->source, (isset($context["get"]) || array_key_exists("get", $context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.', 10, $this->source); })()), "slug", [], "any", false, false, false, 10);
}
// line 12
echo "
";
// line 13
$context["tax"] = "category";
// line 14
if ($this->extensions['Customize\Twig\Extension\MyExtension']->array_key_exists("tax", (isset($context["get"]) || array_key_exists("get", $context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.', 14, $this->source); })()))) {
// line 15
$context["tax"] = twig_get_attribute($this->env, $this->source, (isset($context["get"]) || array_key_exists("get", $context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.', 15, $this->source); })()), "tax", [], "any", false, false, false, 15);
}
// line 17
echo "
<section class=\"news-topic\">
<div class=\"wrap\">
<div class=\"news\">
";
// line 23
if (((isset($context["tax"]) || array_key_exists("tax", $context) ? $context["tax"] : (function () { throw new RuntimeError('Variable "tax" does not exist.', 23, $this->source); })()) == "category")) {
// line 24
echo "<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>N</i>ews</strong>新着情報|";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\MyExtension']->get_term_by((isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 24, $this->source); })()), (isset($context["tax"]) || array_key_exists("tax", $context) ? $context["tax"] : (function () { throw new RuntimeError('Variable "tax" does not exist.', 24, $this->source); })())), "html", null, true);
echo "</h2>
";
} else {
// line 26
echo "<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>E</i>xample</strong>施工事例|";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\MyExtension']->get_term_by((isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 26, $this->source); })()), (isset($context["tax"]) || array_key_exists("tax", $context) ? $context["tax"] : (function () { throw new RuntimeError('Variable "tax" does not exist.', 26, $this->source); })())), "html", null, true);
echo "</h2>
";
}
// line 28
echo "
<div class=\"inner\">
<div class=\"left-box\">
";
// line 31
$context["content"] = $this->extensions['Customize\Twig\Extension\MyExtension']->wp_catelist((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 31, $this->source); })()), (isset($context["tax"]) || array_key_exists("tax", $context) ? $context["tax"] : (function () { throw new RuntimeError('Variable "tax" does not exist.', 31, $this->source); })()), (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 31, $this->source); })()));
// line 32
if ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 32, $this->source); })())) {
// line 33
echo "<ul class=\"blog-list\">
";
// line 34
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 34, $this->source); })()), "blog", [], "any", false, false, false, 34));
foreach ($context['_seq'] as $context["bk"] => $context["bloglist"]) {
// line 35
echo "<li>
<a href=\"./news?id=";
// line 36
echo twig_escape_filter($this->env, $context["bk"], "html", null, true);
echo "&type=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bloglist"], "type", [], "any", false, false, false, 36), "html", null, true);
echo "\">
<div class=\"data-area\">
<time datetime=\"";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bloglist"], "times", [], "any", false, false, false, 39), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bloglist"], "times", [], "any", false, false, false, 39), "html", null, true);
echo "</time>
</div>
<h3 class=\"b-title\">";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bloglist"], "title", [], "any", false, false, false, 41), "html", null, true);
echo "</h3>
";
// line 42
if (twig_get_attribute($this->env, $this->source, $context["bloglist"], "digest", [], "any", false, false, false, 42)) {
// line 43
echo "<p style=\"font-weight: bold; color: #1A552E;\">";
echo twig_get_attribute($this->env, $this->source, $context["bloglist"], "digest", [], "any", false, false, false, 43);
echo "</p>
";
}
// line 45
echo "
";
// line 46
echo twig_get_attribute($this->env, $this->source, $context["bloglist"], "excerpt", [], "any", false, false, false, 46);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['bk'], $context['bloglist'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo "</ul>
<div class=\"pagers\">
";
// line 51
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "pager", [], "any", false, false, false, 51);
echo "
</div>
";
} else {
// line 54
echo "<p style=\"margin: 5em 0;\">ページが見当たりません。</p>
";
}
// line 56
echo "
</div>
<div class=\"right-box\">
<h2>新着情報</h2>
<ul class=\"newslist\">
";
// line 61
$context["pages"] = [0 => "post"];
// line 62
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Customize\Twig\Extension\MyExtension']->wp_news_list(5, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 62, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["newslist"]) {
// line 63
echo " <li><time datetime=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "post_date", [], "any", false, false, false, 63), "Y-m-d"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "post_date", [], "any", false, false, false, 63), "Y年m月d日"), "html", null, true);
echo "</time><a href=\"/information/news?id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "ID", [], "any", false, false, false, 63), "html", null, true);
echo "&type=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "type", [], "any", false, false, false, 63), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "title", [], "any", false, false, false, 63), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['newslist'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo "</ul>
<h2>施工事例</h2>
<ul class=\"newslist\">
";
// line 68
$context["pages"] = [0 => "topic"];
// line 69
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Customize\Twig\Extension\MyExtension']->wp_news_list(5, (isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 69, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["newslist"]) {
// line 70
echo " <li><time datetime=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "post_date", [], "any", false, false, false, 70), "Y-m-d"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "post_date", [], "any", false, false, false, 70), "Y年m月d日"), "html", null, true);
echo "</time><a href=\"/information/news?id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "ID", [], "any", false, false, false, 70), "html", null, true);
echo "&type=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "type", [], "any", false, false, false, 70), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "title", [], "any", false, false, false, 70), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['newslist'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 72
echo "</ul>
<h2>カテゴリ</h2>
<ul class=\"newslist\">
";
// line 76
$context["cates"] = $this->extensions['Customize\Twig\Extension\MyExtension']->wp_cates("");
// line 77
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["cates"]) || array_key_exists("cates", $context) ? $context["cates"] : (function () { throw new RuntimeError('Variable "cates" does not exist.', 77, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["catelist"]) {
// line 78
echo " <li><a href=\"/information/newslist?tax=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["catelist"], "taxonomy", [], "any", false, false, false, 78), "html", null, true);
echo "&slug=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["catelist"], "slug", [], "any", false, false, false, 78), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["catelist"], "name", [], "any", false, false, false, 78), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['catelist'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo "</ul>
</div>
</div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@user_data/newslist.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 271 => 80, 258 => 78, 254 => 77, 252 => 76, 246 => 72, 229 => 70, 225 => 69, 223 => 68, 218 => 65, 201 => 63, 197 => 62, 195 => 61, 188 => 56, 184 => 54, 178 => 51, 174 => 49, 165 => 46, 162 => 45, 156 => 43, 154 => 42, 150 => 41, 143 => 39, 135 => 36, 132 => 35, 128 => 34, 125 => 33, 123 => 32, 121 => 31, 116 => 28, 110 => 26, 104 => 24, 102 => 23, 94 => 17, 91 => 15, 89 => 14, 87 => 13, 84 => 12, 81 => 10, 79 => 9, 77 => 8, 74 => 7, 72 => 6, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block main %}
{%set page=\"\"%}
{%set slug=\"news\"%}
{%if \"slug\"|array_key_exists(get) %}
{%set slug=get.slug%}
{%endif%}
{%set tax=\"category\"%}
{%if \"tax\"|array_key_exists(get) %}
{%set tax=get.tax%}
{%endif%}
<section class=\"news-topic\">
<div class=\"wrap\">
<div class=\"news\">
{%if tax==\"category\"%}
<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>N</i>ews</strong>新着情報|{{slug|get_term_by(tax)}}</h2>
{%else%}
<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>E</i>xample</strong>施工事例|{{slug|get_term_by(tax)}}</h2>
{%endif%}
<div class=\"inner\">
<div class=\"left-box\">
{% set content= page|wp_catelist(tax,slug) %}
{%if content%}
<ul class=\"blog-list\">
{%for bk , bloglist in content.blog %}
<li>
<a href=\"./news?id={{bk}}&type={{bloglist.type}}\">
<div class=\"data-area\">
<time datetime=\"{{bloglist.times}}\">{{bloglist.times}}</time>
</div>
<h3 class=\"b-title\">{{bloglist.title}}</h3>
{%if bloglist.digest%}
<p style=\"font-weight: bold; color: #1A552E;\">{{bloglist.digest|raw}}</p>
{%endif%}
{{bloglist.excerpt|raw}}</a>
</li>
{% endfor %}
</ul>
<div class=\"pagers\">
{{content.pager|raw}}
</div>
{%else%}
<p style=\"margin: 5em 0;\">ページが見当たりません。</p>
{%endif%}
</div>
<div class=\"right-box\">
<h2>新着情報</h2>
<ul class=\"newslist\">
{%set pages = ['post']%}
{% for newslist in 5|wp_news_list(pages) %}
<li><time datetime=\"{{newslist.post_date|date('Y-m-d')}}\">{{newslist.post_date|date('Y年m月d日')}}</time><a href=\"/information/news?id={{newslist.ID}}&type={{newslist.type}}\">{{newslist.title}}</a></li>
{% endfor %}
</ul>
<h2>施工事例</h2>
<ul class=\"newslist\">
{%set pages = ['topic']%}
{% for newslist in 5|wp_news_list(pages) %}
<li><time datetime=\"{{newslist.post_date|date('Y-m-d')}}\">{{newslist.post_date|date('Y年m月d日')}}</time><a href=\"/information/news?id={{newslist.ID}}&type={{newslist.type}}\">{{newslist.title}}</a></li>
{% endfor %}
</ul>
<h2>カテゴリ</h2>
<ul class=\"newslist\">
{%set cates =\"\"|wp_cates%}
{% for catelist in cates %}
<li><a href=\"/information/newslist?tax={{catelist.taxonomy}}&slug={{catelist.slug}}\">{{catelist.name}}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</section>
{% endblock %}", "@user_data/newslist.twig", "/home/ny-paradisa/public_html/app/template/user_data/newslist.twig");
}
}