<?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_5031f083785231d740b617b83d0a0759bd5711a382fde5e1bf2df5e41e647b64 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=\"sub-container\">
<!-- SUB H1 -->
<div class=\"sub-h1Wrap\">
";
// line 9
echo " <h1 class=\"sub-h1\">お知らせ</h1>
</div>
<!-- /SUB H1 -->
<div
class=\"l-container\">
<!-- パンくずリスト -->
<ol class=\"sub-breadcrumbs\">
<li>
<a href=\"";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">HOME</a>
</li>
";
// line 20
echo " <li>お知らせ</li>
</ol>
<!-- /パンくずリスト -->
<div
class=\"l-2ColumnContainer\">
<!-- メインコンテンツ -->
<div
class=\"l-main\">
<!-- PAGE CONTENTS -->
<h2 class=\"mod-hl-01\">
<span class=\"isJp\">";
// 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); })()), "title", [], "any", false, false, false, 31), "html", null, true);
echo "</span>
</h2>
<p class=\"textRight marginTop10\">";
// 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 "</p>
<p class=\"marginTop20\">
";
// line 35
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.', 35, $this->source); })()), "description", [], "any", false, false, false, 35));
echo "
";
// 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); })()), "url", [], "any", false, false, false, 36)) {
// line 37
echo " <br>
<a href=\"";
// line 38
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); })()), "url", [], "any", false, false, false, 38), "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.', 38, $this->source); })()), "link_method", [], "any", false, false, false, 38) == "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 39
echo "
</p>
<!-- /PAGE CONTENTS -->
</div>
<!-- /メインコンテンツ -->
<!-- サイドメニュー -->
";
// line 48
echo twig_include($this->env, $context, "Block/l_sub.twig", array(), true, true);
echo "
<!-- /サイドメニュー -->
</div>
</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 ( 143 => 48, 132 => 39, 121 => 38, 118 => 37, 116 => 36, 112 => 35, 107 => 33, 102 => 31, 89 => 20, 84 => 17, 74 => 9, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block main %}
<div
class=\"sub-container\">
<!-- SUB H1 -->
<div class=\"sub-h1Wrap\">
{# 必要に応じて増やしてください #}
<h1 class=\"sub-h1\">お知らせ</h1>
</div>
<!-- /SUB H1 -->
<div
class=\"l-container\">
<!-- パンくずリスト -->
<ol class=\"sub-breadcrumbs\">
<li>
<a href=\"{{ url('homepage') }}\">HOME</a>
</li>
{# 必要に応じて増やしてください #}
<li>お知らせ</li>
</ol>
<!-- /パンくずリスト -->
<div
class=\"l-2ColumnContainer\">
<!-- メインコンテンツ -->
<div
class=\"l-main\">
<!-- PAGE CONTENTS -->
<h2 class=\"mod-hl-01\">
<span class=\"isJp\">{{ News.title }}</span>
</h2>
<p class=\"textRight marginTop10\">{{ News.publish_date|date('Y.m.d') }}</p>
<p class=\"marginTop20\">
{{ News.description|raw|nl2br }}
{% if News.url %}
<br>
<a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>{{ '詳しくはこちら'|trans }}</a>
{% endif %}
</p>
<!-- /PAGE CONTENTS -->
</div>
<!-- /メインコンテンツ -->
<!-- サイドメニュー -->
{{ include('Block/l_sub.twig', ignore_missing = true) }}
<!-- /サイドメニュー -->
</div>
</div>
</div>
{% endblock %}", "@user_data/News/detail.twig", "/home/hiniaratest/test-page.website/public_html/nagae-hanko.test-page.website/app/template/user_data/News/detail.twig");
}
}