<?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;
/* blog/news_detail.twig */
class __TwigTemplate_3ea4da16ab9ca604bc24d096b8dcd84da196d20d57d00035060bf4d453248235 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'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", "blog/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", "blog/news_detail.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "blog/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_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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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 6
echo "<style>
.pluginCMBblog .post_meta {
display: flex;
list-style: none;
margin: 0;
padding: 0;
width: 95%;
margin: 0 auto;
}
.pluginCMBblog .blog_category{
margin: 0;
padding: 0;
}
.pluginCMBblog .blog_category{
display: initial;
}
.pluginCMBblog .blog_category li{
display: initial;
border-right: 1px solid #ddd;
}
.pluginCMBblog .blog_category li:last-child {
border-right: none;
}
.pluginCMBblog .post_meta .post_meta_list{
padding-right: 2rem;
}
.pluginCMBblog .list_category_link{
color: #337ab7;
padding: 0 0.5rem;
}
.pluginCMBblog .main_image_blog{
padding: 3rem 0;
}
.pluginCMBblog .post_meta_list.time{
width: 15rem;
display: inline-table;
}
.pluginCMBblog .tag_dl{
display: flex;
}
.pluginCMBblog .blog_detail .blog_Title{
word-break: break-word;
margin-bottom: 20px;
}
.pluginCMBblog .cm_blog_main_image img{
max-width: 100%;
width: auto;
}
ul.tag-ul {
padding-left:8px;
list-style: none;
display: flex;
flex-wrap: wrap;
}
ul.tag-ul > li {
margin: 0.4em;
padding: 0 0.8em;
border: 1px solid #ccc;
border-radius: 5px;
}
ul.tag-ul > li > a:hover {
text-decoration: none;
}
h3.tag-header {
padding: 1rem 2rem;
border-left: 4px solid #000;
}
.w-100 {
width: 100%
}
.side-bar > div {
width: 90%;
margin:40px auto;
}
h5.tag-header {
padding: 1rem 2rem;
border-left: 4px solid #000;
}
.month-archive a {
text-decoration: underline;
display: block;
padding: 3px 27px;
}
.ec-productRole__description > p img {
width: calc(var(--width));
margin-bottom: 15px;
}
.archive-link-div {
max-height: 600px;
overflow-y: scroll;
}
.archive-link-div::-webkit-scrollbar {
display: none;
}
@media screen and (max-width: 768px){
.pluginCMBblog .post_meta {
display: block;
}
.pluginCMBblog .post_meta_list.time{
width: 100%;
}
.side-bar > div {
width: 100%
}
}
@media only screen and (min-width: 768px) {
.ec-shelfGrid .ec-shelfGrid__item-image {
height: 150px;
}
h3.tag-header {
margin: 63px 16px 20px;
}
.side-bar {
width: 280px;
background-color: #f6f6f6;
}
.ec-role {
display: flex;
justify-content: flex-start
}
.mt-65 {
margin-top: 65px!important;
}
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 139
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 140
echo "
<div class=\"ec-role blog_detail pluginCMBblog content__inner\">
<div class=\"w-100\">
<div class=\"ec-pageHeader\">
<h1 class=\"blog_Title\">";
// line 144
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 144, $this->source); })()), "title", [], "any", false, false, false, 144), "html", null, true);
echo "</h1>
</div>
<ul class=\"post_meta \">
<li class=\"post_meta_list time\"><i class=\"fas fa-calendar-alt\"></i> ";
// line 147
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 147, $this->source); })()), "release_date", [], "any", false, false, false, 147), "Y年m月d日"), "html", null, true);
echo "</li>
";
// line 149
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 149, $this->source); })()), "getBlogCategories", [], "any", false, false, false, 149)) > 0)) {
// line 150
echo " <li class=\"post_meta_list\">
<dl class=\"tag_dl\">
<dt><i class=\"fas fa-tags\"></i></dt>
<dd>
<ul class=\"blog_category\">
";
// line 155
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 155, $this->source); })()), "getBlogCategories", [], "any", false, false, false, 155));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 156
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "any", false, false, false, 156), "class", [], "any", false, false, false, 156), "html", null, true);
echo "\">
<a href=\"";
// line 157
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "method", false, false, false, 157), "getId", [], "method", false, false, false, 157)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 158
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "any", false, false, false, 158), "getName", [], "any", false, false, false, 158);
echo "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 162
echo " </ul>
</dd>
</dl>
</li>
";
}
// line 167
echo " </ul>
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<div class=\"cm_blog_main_image\">
";
// line 171
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 171, $this->source); })()), "getMainListImage", [], "any", false, false, false, 171)) {
// line 172
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 172, $this->source); })()), "getMainListImage", [], "any", false, false, false, 172)), "save_image"), "html", null, true);
echo "\" class=\"main_image_blog\"></img>
";
} else {
// line 174
echo " <img class='item_blog_image'></img>
";
}
// line 176
echo " </div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
<div class=\"ec-productRole__description\">";
// line 179
echo twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 179, $this->source); })()), "body", [], "any", false, false, false, 179);
echo "
</div>
</div>
</div>
</div>
</div>
";
// line 185
if ((twig_length_filter($this->env, (isset($context["tags"]) || array_key_exists("tags", $context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.', 185, $this->source); })())) > 0)) {
// line 186
echo " <h3 class=\"tag-header\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("plg.CMBlogPro.blog.tag"), "html", null, true);
echo "</h3>
<ul class=\"tag-ul\">
";
// line 188
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tags"]) || array_key_exists("tags", $context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.', 188, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 189
echo " <li>
<a href=\"";
// line 190
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_list", ["tag" => twig_trim_filter($context["tag"])]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_trim_filter($context["tag"]), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 193
echo " </ul>
";
}
// line 195
echo " ";
echo twig_include($this->env, $context, "Block/blog_related_product.twig", [], true, true);
echo "
<div class=\"page__inner mt-50\">
<h2 class=\"mod_movie-h2\">
お知らせ一覧
</h2>
<div class=\"mod_movie-btn-more\">
<a href=\"";
// line 202
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_list");
echo "\">お知らせ一覧に戻る</a>
</div>
</div>
</div>
";
// line 207
echo " ";
// line 208
echo " ";
// line 209
echo " ";
// line 210
echo " ";
// line 211
echo " ";
// line 212
echo " ";
// line 213
echo " ";
// line 214
echo " ";
// line 215
echo " ";
// line 216
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "blog/news_detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 393 => 216, 391 => 215, 389 => 214, 387 => 213, 385 => 212, 383 => 211, 381 => 210, 379 => 209, 377 => 208, 375 => 207, 368 => 202, 357 => 195, 353 => 193, 342 => 190, 339 => 189, 335 => 188, 329 => 186, 327 => 185, 318 => 179, 313 => 176, 309 => 174, 303 => 172, 301 => 171, 295 => 167, 288 => 162, 278 => 158, 274 => 157, 269 => 156, 265 => 155, 258 => 150, 256 => 149, 251 => 147, 245 => 144, 239 => 140, 229 => 139, 88 => 6, 78 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block javascript %}{% endblock %}
{% block stylesheet %}
<style>
.pluginCMBblog .post_meta {
display: flex;
list-style: none;
margin: 0;
padding: 0;
width: 95%;
margin: 0 auto;
}
.pluginCMBblog .blog_category{
margin: 0;
padding: 0;
}
.pluginCMBblog .blog_category{
display: initial;
}
.pluginCMBblog .blog_category li{
display: initial;
border-right: 1px solid #ddd;
}
.pluginCMBblog .blog_category li:last-child {
border-right: none;
}
.pluginCMBblog .post_meta .post_meta_list{
padding-right: 2rem;
}
.pluginCMBblog .list_category_link{
color: #337ab7;
padding: 0 0.5rem;
}
.pluginCMBblog .main_image_blog{
padding: 3rem 0;
}
.pluginCMBblog .post_meta_list.time{
width: 15rem;
display: inline-table;
}
.pluginCMBblog .tag_dl{
display: flex;
}
.pluginCMBblog .blog_detail .blog_Title{
word-break: break-word;
margin-bottom: 20px;
}
.pluginCMBblog .cm_blog_main_image img{
max-width: 100%;
width: auto;
}
ul.tag-ul {
padding-left:8px;
list-style: none;
display: flex;
flex-wrap: wrap;
}
ul.tag-ul > li {
margin: 0.4em;
padding: 0 0.8em;
border: 1px solid #ccc;
border-radius: 5px;
}
ul.tag-ul > li > a:hover {
text-decoration: none;
}
h3.tag-header {
padding: 1rem 2rem;
border-left: 4px solid #000;
}
.w-100 {
width: 100%
}
.side-bar > div {
width: 90%;
margin:40px auto;
}
h5.tag-header {
padding: 1rem 2rem;
border-left: 4px solid #000;
}
.month-archive a {
text-decoration: underline;
display: block;
padding: 3px 27px;
}
.ec-productRole__description > p img {
width: calc(var(--width));
margin-bottom: 15px;
}
.archive-link-div {
max-height: 600px;
overflow-y: scroll;
}
.archive-link-div::-webkit-scrollbar {
display: none;
}
@media screen and (max-width: 768px){
.pluginCMBblog .post_meta {
display: block;
}
.pluginCMBblog .post_meta_list.time{
width: 100%;
}
.side-bar > div {
width: 100%
}
}
@media only screen and (min-width: 768px) {
.ec-shelfGrid .ec-shelfGrid__item-image {
height: 150px;
}
h3.tag-header {
margin: 63px 16px 20px;
}
.side-bar {
width: 280px;
background-color: #f6f6f6;
}
.ec-role {
display: flex;
justify-content: flex-start
}
.mt-65 {
margin-top: 65px!important;
}
}
</style>
{% endblock %}
{% block main %}
<div class=\"ec-role blog_detail pluginCMBblog content__inner\">
<div class=\"w-100\">
<div class=\"ec-pageHeader\">
<h1 class=\"blog_Title\">{{ blog.title }}</h1>
</div>
<ul class=\"post_meta \">
<li class=\"post_meta_list time\"><i class=\"fas fa-calendar-alt\"></i> {{blog.release_date|date('Y年m月d日')}}</li>
{% if blog.getBlogCategories|length > 0 %}
<li class=\"post_meta_list\">
<dl class=\"tag_dl\">
<dt><i class=\"fas fa-tags\"></i></dt>
<dd>
<ul class=\"blog_category\">
{% for category in blog.getBlogCategories %}
<li class=\"{{category.getCategory.class}}\">
<a href=\"{{ url('news_list', {categories: [category.getCategory().getId()]}) }}\" class=\"list_category_link\">
{{ category.getCategory.getName|raw }}
</a>
</li>
{% endfor %}
</ul>
</dd>
</dl>
</li>
{% endif %}
</ul>
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<div class=\"cm_blog_main_image\">
{% if blog.getMainListImage %}
<img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class=\"main_image_blog\"></img>
{% else %}
<img class='item_blog_image'></img>
{% endif %}
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-productRole__profile\">
<div class=\"ec-productRole__description\">{{ blog.body|raw }}
</div>
</div>
</div>
</div>
</div>
{% if tags|length > 0 %}
<h3 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.tag'|trans }}</h3>
<ul class=\"tag-ul\">
{% for tag in tags %}
<li>
<a href=\"{{ url('news_list', {tag: tag|trim }) }}\">{{ tag |trim }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{{ include('Block/blog_related_product.twig', {}, ignore_missing = true) }}
<div class=\"page__inner mt-50\">
<h2 class=\"mod_movie-h2\">
お知らせ一覧
</h2>
<div class=\"mod_movie-btn-more\">
<a href=\"{{ url('news_list') }}\">お知らせ一覧に戻る</a>
</div>
</div>
</div>
{#<div class=\"side-bar\">#}
{# <div class=\"mt-65 month-archive\">#}
{# <h5 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.month_archive'|trans }}</h5>#}
{# <div class=\"archive-link-div\">#}
{# {% for key, month in monthArr %}#}
{# <a href=\"{{ url('cm_blog_pro_page_list', {date: key}) }}\">{{ month }}</a>#}
{# {% endfor %}#}
{# </div>#}
{# </div>#}
{#</div>#}
</div>
{% endblock %}
", "blog/news_detail.twig", "/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/template/default/blog/news_detail.twig");
}
}