<?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;
/* News/detail.twig */
class __TwigTemplate_6ddf78619d093ec95547935fcac6e63feb3e109bbafea1b6465820fc60ec8744 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 11
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", "News/detail.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "News/detail.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "News/detail.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 13
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 14
echo "
<div class=\"ec-searchnavRole\">
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"";
// line 19
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_index");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ニュース一覧"), "html", null, true);
echo "</a>
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item--active\">";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 21, $this->source); })()), "title", [], "any", false, false, false, 21), "html", null, true);
echo "</li>
</ol>
</div>
</div>
<div class=\"ec-role\">
<hr>
<div class=\"news-";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 31, $this->source); })()), "id", [], "any", false, false, false, 31), "html", null, true);
echo " row\">
<div class=\"col-md-8 col-md-offset-2\">
<p class=\"text-right\"><small>";
// line 33
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 33, $this->source); })()), "publish_date", [], "any", false, false, false, 33), "Y/m/d"), "html", null, true);
echo "</small></p>
<h1 class=\"npsr-title\">";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 34, $this->source); })()), "title", [], "any", false, false, false, 34), "html", null, true);
echo "</h1>
";
// line 36
if ((twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 36, $this->source); })()), "np_thumbnail_url", [], "any", false, false, false, 36) == true)) {
// line 37
echo " <div class=\"npsr-thumbnail\">
<img src=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 38, $this->source); })()), "np_thumbnail_url", [], "any", false, false, false, 38), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 38, $this->source); })()), "title", [], "any", false, false, false, 38), "html", null, true);
echo "\">
</div>
";
}
// line 41
echo " <div class=\"npsr-content\">
";
// line 42
echo twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 42, $this->source); })()), "description", [], "any", false, false, false, 42);
echo "
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "News/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 125 => 42, 122 => 41, 114 => 38, 111 => 37, 109 => 36, 104 => 34, 100 => 33, 95 => 31, 82 => 21, 75 => 19, 68 => 14, 58 => 13, 35 => 11,);
}
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' %}
{% block main %}
<div class=\"ec-searchnavRole\">
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"{{ url('news_index') }}\">{{ 'ニュース一覧'|trans }}</a>
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item--active\">{{ news.title }}</li>
</ol>
</div>
</div>
<div class=\"ec-role\">
<hr>
<div class=\"news-{{ news.id }} row\">
<div class=\"col-md-8 col-md-offset-2\">
<p class=\"text-right\"><small>{{ news.publish_date|date(\"Y/m/d\") }}</small></p>
<h1 class=\"npsr-title\">{{ news.title }}</h1>
{% if news.np_thumbnail_url == true %}
<div class=\"npsr-thumbnail\">
<img src=\"{{ asset( news.np_thumbnail_url , 'save_image') }}\" alt=\"{{ news.title }}\">
</div>
{% endif %}
<div class=\"npsr-content\">
{{ news.description|raw }}
</div>
</div>
</div>
</div>
{% endblock %}
", "News/detail.twig", "/home/xs538259/exterior-plus.jp/public_html/app/template/default/News/detail.twig");
}
}