<?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/detail.twig */
class __TwigTemplate_9662883059a349bd2fa116c2e907c2c7c88f5b833eb6225055cfe220beb38b60 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/detail.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/detail.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "@user_data/News/detail.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 " <div class=\"news-detail-container\">
<div class=\"section-title\">
<h2 class=\"en wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">News</h2>
<p class=\"wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">新着情報</p>
</div>
<div class=\"news-detail-header\">
<div class=\"news-detail-date wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
<p>
";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($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.', 13, $this->source); })()), "publish_date", [], "any", false, false, false, 13)), "html", null, true);
echo "
</p>
</div>
<div class=\"news-detail-title wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
<p>
";
// line 19
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.', 19, $this->source); })()), "title", [], "any", false, false, false, 19), "html", null, true);
echo "
</p>
</div>
</div>
<div class=\"news-detail-content wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
<p>
";
// line 26
echo twig_nl2br(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.', 26, $this->source); })()), "description", [], "any", false, false, false, 26));
echo "
</p>
";
// line 28
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.', 28, $this->source); })()), "url", [], "any", false, false, false, 28)) {
// line 29
echo " <br>
<a href=\"";
// line 30
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.', 30, $this->source); })()), "url", [], "any", false, false, false, 30), "html", null, true);
echo "\" ";
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.', 30, $this->source); })()), "link_method", [], "any", false, false, false, 30) == "1")) {
echo "target=\"_blank\"";
}
echo ">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("詳しくはこちら"), "html", null, true);
echo "</a>
";
}
// line 32
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@user_data/News/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 119 => 32, 108 => 30, 105 => 29, 103 => 28, 98 => 26, 88 => 19, 79 => 13, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block main %}
<div class=\"news-detail-container\">
<div class=\"section-title\">
<h2 class=\"en wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">News</h2>
<p class=\"wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">新着情報</p>
</div>
<div class=\"news-detail-header\">
<div class=\"news-detail-date wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
<p>
{{ News.publish_date|date_day }}
</p>
</div>
<div class=\"news-detail-title wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
<p>
{{ News.title }}
</p>
</div>
</div>
<div class=\"news-detail-content wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
<p>
{{ News.description|raw|nl2br }}
</p>
{% if News.url %}
<br>
<a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>{{ '詳しくはこちら'|trans }}</a>
{% endif %}
</div>
</div>
{% endblock %}", "@user_data/News/detail.twig", "/home/inception18/salud.work/public_html/ec-sample.salud.work/app/template/user_data/News/detail.twig");
}
}