<?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/news.twig */
class __TwigTemplate_c15faaad0381e60560438981b61e771f217c670b786a6a43a3c87efc231fe30d 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/news.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/news.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "@user_data/news.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 5
$context["page"] = "post";
// line 6
echo "
";
// line 7
if ($this->extensions['Customize\Twig\Extension\MyExtension']->array_key_exists("type", (isset($context["get"]) || array_key_exists("get", $context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.', 7, $this->source); })()))) {
// line 8
$context["page"] = 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.', 8, $this->source); })()), "type", [], "any", false, false, false, 8);
}
// line 10
echo "
<section class=\"news-topic\">
<div class=\"wrap\">
<div class=\"news\">
";
// line 15
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()) == "post")) {
// line 16
echo "<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>N</i>ews</strong>新着情報</h2>
";
} else {
// line 18
echo "<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>E</i>xample</strong>施工事例</h2>
";
}
// line 20
echo "
<div class=\"inner\">
<div class=\"left-box\">
";
// line 23
$context["content"] = $this->extensions['Customize\Twig\Extension\MyExtension']->wp_news((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })()));
// line 24
if ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 24, $this->source); })())) {
// line 25
echo "<h2 class=\"left-title\">";
echo twig_escape_filter($this->env, 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.', 25, $this->source); })()), "title", [], "any", false, false, false, 25), "html", null, true);
echo "</h2>
<p class=\"txtR\"><time datetime=\"";
// line 26
echo twig_escape_filter($this->env, 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.', 26, $this->source); })()), "time", [], "any", false, false, false, 26), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, 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.', 26, $this->source); })()), "time", [], "any", false, false, false, 26), "html", null, true);
echo "</time></p>
";
// line 28
if (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.', 28, $this->source); })()), "term", [], "any", false, false, false, 28)) {
// line 29
echo "<ul class=\"cat\">
";
// line 30
$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.', 30, $this->source); })()), "term", [], "any", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["cav"]) {
// line 31
echo "<li><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cav"], "name", [], "any", false, false, false, 31), "html", null, true);
echo "</span></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cav'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo "</ul>
";
}
// line 35
if (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.', 35, $this->source); })()), "cat", [], "any", false, false, false, 35)) {
// line 36
echo "<ul class=\"cat\">
";
// line 37
$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.', 37, $this->source); })()), "cat", [], "any", false, false, false, 37));
foreach ($context['_seq'] as $context["_key"] => $context["cav"]) {
// line 38
echo "<li><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cav"], "name", [], "any", false, false, false, 38), "html", null, true);
echo "</span></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cav'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo "</ul>
";
}
// line 42
echo "<section class=\"left-content\">
";
// line 43
if (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.', 43, $this->source); })()), "digest", [], "any", false, false, false, 43)) {
// line 44
echo "<p style=\"font-weight: bold; color: #1A552E;\">";
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.', 44, $this->source); })()), "digest", [], "any", false, false, false, 44);
echo "</p>
";
}
// line 46
echo "
";
// line 47
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.', 47, $this->source); })()), "contents", [], "any", false, false, false, 47);
echo "
</section>
<div class=\"post-pager\">
<ul class=\"post-link-list\">
";
// line 52
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.', 52, $this->source); })()), "peger", [], "any", false, false, false, 52);
echo "
</ul>
</div>
";
} else {
// line 57
echo "<p style=\"margin: 5em auto; text-align: center;\">記事はありません</p>
";
}
// line 59
echo "</div>
<div class=\"right-box\">
<h2>新着情報</h2>
<ul class=\"newslist\">
";
// line 63
$context["pages"] = [0 => "post"];
// line 64
$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.', 64, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["newslist"]) {
// line 65
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, 65), "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, 65), "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, 65), "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, 65), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "title", [], "any", false, false, false, 65), "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 67
echo "</ul>
<h2>施工事例</h2>
<ul class=\"newslist\">
";
// line 71
$context["pages"] = [0 => "topic"];
// line 72
$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.', 72, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["newslist"]) {
// line 73
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, 73), "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, 73), "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, 73), "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, 73), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["newslist"], "title", [], "any", false, false, false, 73), "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 75
echo "</ul>
<h2>カテゴリ</h2>
<ul class=\"newslist\">
";
// line 79
$context["cates"] = $this->extensions['Customize\Twig\Extension\MyExtension']->wp_cates("");
// line 80
$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.', 80, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["catelist"]) {
// line 81
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, 81), "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, 81), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["catelist"], "name", [], "any", false, false, false, 81), "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 83
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/news.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 280 => 83, 267 => 81, 263 => 80, 261 => 79, 255 => 75, 238 => 73, 234 => 72, 232 => 71, 226 => 67, 209 => 65, 205 => 64, 203 => 63, 197 => 59, 193 => 57, 185 => 52, 177 => 47, 174 => 46, 168 => 44, 166 => 43, 163 => 42, 159 => 40, 150 => 38, 146 => 37, 143 => 36, 141 => 35, 137 => 33, 128 => 31, 124 => 30, 121 => 29, 119 => 28, 112 => 26, 107 => 25, 105 => 24, 103 => 23, 98 => 20, 94 => 18, 90 => 16, 88 => 15, 81 => 10, 78 => 8, 76 => 7, 73 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block main %}
{%set page=\"post\"%}
{%if \"type\"|array_key_exists(get) %}
{%set page=get.type%}
{%endif%}
<section class=\"news-topic\">
<div class=\"wrap\">
<div class=\"news\">
{%if page==\"post\"%}
<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>N</i>ews</strong>新着情報</h2>
{%else%}
<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>E</i>xample</strong>施工事例</h2>
{%endif%}
<div class=\"inner\">
<div class=\"left-box\">
{% set content= page|wp_news %}
{%if content%}
<h2 class=\"left-title\">{{content.title}}</h2>
<p class=\"txtR\"><time datetime=\"{{content.time}}\">{{content.time}}</time></p>
{%if content.term%}
<ul class=\"cat\">
{% for cav in content.term%}
<li><span>{{cav.name}}</span></li>
{% endfor %}
</ul>
{%endif%}
{%if content.cat%}
<ul class=\"cat\">
{% for cav in content.cat%}
<li><span>{{cav.name}}</span></li>
{% endfor %}
</ul>
{%endif%}
<section class=\"left-content\">
{%if content.digest%}
<p style=\"font-weight: bold; color: #1A552E;\">{{content.digest|raw}}</p>
{%endif%}
{{content.contents|raw}}
</section>
<div class=\"post-pager\">
<ul class=\"post-link-list\">
{{content.peger|raw}}
</ul>
</div>
{%else%}
<p style=\"margin: 5em auto; text-align: center;\">記事はありません</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/news.twig", "/home/ny-paradisa/public_html/app/template/user_data/news.twig");
}
}