<?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/index.twig */
class __TwigTemplate_da5ec1eca29f4c2962ea1e5b011fe9ebaa26be710a278dd1ede036a73509a87d extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'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", "News/index.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "News/index.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "News/index.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_stylesheet($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", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 4
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/script/magnific-popup.css"), "html", null, true);
echo "\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
echo "\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/template/default/assets/css/style.css"), "html", null, true);
echo "\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/base.css"), "html", null, true);
echo "\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/next.css"), "html", null, true);
echo "\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/add.css"), "html", null, true);
echo "\" media=\"all\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_javascript($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", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 13
echo "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"></script>
<script src=\"";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.easing.1.3.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.smoothScroll.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.magnific-popup.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/emergence.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/effects.js"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
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 22
echo "<div class=\"breadcrumb\">
<ul>
<li><a href=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/next/icon-home.svg"), "html", null, true);
echo "\" alt=\"HOME\">HOME</a></li>
<li>ニュースリリース</li>
</ul>
</div>
<div id=\"mainimg\" class=\"next\">
<div class=\"content\">
<h1 class=\"catch\">News release<span>ニュースリリース</span></h1>
</div>
</div>
<main class=\"next\">
<section id=\"news\">
<div class=\"s_content\">
<ul class=\"news-list\">
";
// line 37
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
// line 38
echo " <li>
";
// line 39
if (twig_get_attribute($this->env, $this->source, $context["News"], "file_name", [], "any", false, false, false, 39)) {
// line 40
echo " <div class=\"item-img\">
<img src=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["News"], "file_name", [], "any", false, false, false, 41), "save_image"), "html", null, true);
echo "\" srcset=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["News"], "file_name", [], "any", false, false, false, 41), "save_image"), "html", null, true);
echo " 1x, ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["News"], "file_name", [], "any", false, false, false, 41), "save_image"), "html", null, true);
echo " 2x\" width=\"80\" height=\"57\" alt=\"\">
</div>
";
} else {
// line 44
echo " <div class=\"item-img\">
<img src=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/next/news/thmb01.jpg"), "html", null, true);
echo "\" srcset=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/next/news/thmb01.jpg"), "html", null, true);
echo " 1x, ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/next/news/thmb01@2x.jpg"), "html", null, true);
echo " 2x\" width=\"80\" height=\"57\" alt=\"\">
</div>
";
}
// line 48
echo " <div class=\"item-text\">
<time class=\"item-date\">";
// line 49
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["News"], "publishDate", [], "any", false, false, false, 49), "Y.m.d"), "html", null, true);
echo "</time>
";
// line 50
if ((twig_length_filter($this->env, $this->extensions['Customize\Twig\Extension\EccubeExtension']->getCategoryByNewsId(twig_get_attribute($this->env, $this->source, $context["News"], "id", [], "any", false, false, false, 50))) > 0)) {
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Customize\Twig\Extension\EccubeExtension']->getCategoryByNewsId(twig_get_attribute($this->env, $this->source, $context["News"], "id", [], "any", false, false, false, 50)));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 51
echo " <p class=\"item-cat\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_category", ["class_name" => twig_get_attribute($this->env, $this->source, $context["Category"], "class_name", [], "array", false, false, false, 51)]), "html", null, true);
echo "\" class=\"cat ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "class_name", [], "array", false, false, false, 51), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "category_name", [], "array", false, false, false, 51), "html", null, true);
echo "</a></p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 53
echo " <p class=\"item-title\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["News"], "id", [], "any", false, false, false, 53)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["News"], "title", [], "any", false, false, false, 53), "html", null, true);
echo "</a></p>
</div>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " </ul>
</div>
</section>
";
// line 60
echo twig_include($this->env, $context, "Block/conv.twig");
echo "
</main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "News/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 255 => 60, 250 => 57, 237 => 53, 223 => 51, 218 => 50, 214 => 49, 211 => 48, 201 => 45, 198 => 44, 188 => 41, 185 => 40, 183 => 39, 180 => 38, 176 => 37, 158 => 24, 154 => 22, 144 => 21, 132 => 18, 128 => 17, 124 => 16, 120 => 15, 116 => 14, 113 => 13, 103 => 12, 91 => 9, 87 => 8, 83 => 7, 79 => 6, 75 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block stylesheet %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('assets/css/script/magnific-popup.css') }}\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('assets/css/style.css') }}\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('assets/template/default/assets/css/style.css') }}\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('assets/css/base.css') }}\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('assets/css/next.css') }}\" media=\"all\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('assets/css/add.css') }}\" media=\"all\" />
{% endblock %}
{% block javascript %}
<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"></script>
<script src=\"{{ asset('assets/js/jquery.easing.1.3.js') }}\"></script>
<script src=\"{{ asset('assets/js/jquery.smoothScroll.js') }}\"></script>
<script src=\"{{ asset('assets/js/jquery.magnific-popup.js') }}\"></script>
<script src=\"{{ asset('assets/js/emergence.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/effects.js') }}\"></script>
{% endblock javascript %}
{% block main %}
<div class=\"breadcrumb\">
<ul>
<li><a href=\"{{ url('homepage') }}\"><img src=\"{{ asset('assets/img/next/icon-home.svg') }}\" alt=\"HOME\">HOME</a></li>
<li>ニュースリリース</li>
</ul>
</div>
<div id=\"mainimg\" class=\"next\">
<div class=\"content\">
<h1 class=\"catch\">News release<span>ニュースリリース</span></h1>
</div>
</div>
<main class=\"next\">
<section id=\"news\">
<div class=\"s_content\">
<ul class=\"news-list\">
{% for News in pagination %}
<li>
{% if News.file_name %}
<div class=\"item-img\">
<img src=\"{{ asset(News.file_name, 'save_image') }}\" srcset=\"{{ asset(News.file_name, 'save_image') }} 1x, {{ asset(News.file_name, 'save_image') }} 2x\" width=\"80\" height=\"57\" alt=\"\">
</div>
{% else %}
<div class=\"item-img\">
<img src=\"{{ asset('assets/img/next/news/thmb01.jpg') }}\" srcset=\"{{ asset('assets/img/next/news/thmb01.jpg') }} 1x, {{ asset('assets/img/next/news/thmb01@2x.jpg') }} 2x\" width=\"80\" height=\"57\" alt=\"\">
</div>
{% endif %}
<div class=\"item-text\">
<time class=\"item-date\">{{ News.publishDate|date('Y.m.d') }}</time>
{% if getCategoryByNewsId(News.id)|length > 0 %}{% for Category in getCategoryByNewsId(News.id) %}
<p class=\"item-cat\"><a href=\"{{ url('news_category', {class_name: Category['class_name']}) }}\" class=\"cat {{ Category['class_name'] }}\">{{ Category['category_name'] }}</a></p>
{% endfor %}{% endif %}
<p class=\"item-title\"><a href=\"{{ url('news_detail', {id: News.id}) }}\">{{ News.title }}</a></p>
</div>
</li>
{% endfor %}
</ul>
</div>
</section>
{{ include(\"Block/conv.twig\") }}
</main>
{% endblock %}
", "News/index.twig", "/home/xs453838/adnet-space.com/public_html/eccube/app/template/default/News/index.twig");
}
}