<?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_list.twig */
class __TwigTemplate_b9c3c63952d5a087911441a6a48006a0e79bfd31e3d8b955e88410a3926e56a5 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_list.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_list.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "blog/news_list.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 .item_blog_image {
width: 100% !important;
height: 248px;
object-fit: cover;
}
.pluginCMBblog .figure__main_image{
margin: 0;
}
.pluginCMBblog .ec-topicpath .ec-topicpath__item{
display: initial !important;
}
.pluginCMBblog .list_blog_cat li {
display: initial !important;
letter-spacing: 0.2rem;
border-right: 1px solid #ddd;
font-size: 16px;
}
.pluginCMBblog .list_category_link{
padding: 0 0.5rem;
}
.pluginCMBblog .list_blog .list_category_link{
color: #337ab7;
padding: 0 0.5rem;
}
.pluginCMBblog .blog_category li:last-child{
border: none;
}
.pluginCMBblog .blog_category{
margin: 0;
padding: 0;
}
.pluginCMBblog .blog_category li{
display: initial;
border-right: 1px solid #ddd;
}
.pluginCMBblog .list_blog_cat li:last-child {
border-right: none;
}
.pluginCMBblog .blog_title_h3{
font-size: 16px !important;
line-height: 1.4;
margin-top: 10px;
word-break: break-word;
}
.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;
}
.archive-link-div {
max-height: 600px;
overflow-y: scroll;
}
.archive-link-div::-webkit-scrollbar {
display: none;
}
@media screen and (max-width: 768px){
.pluginCMBblog .item_blog_image {
width: 100% !important;
height: 40vw;
object-fit: cover;
}
.side-bar > div {
width: 100%
}
}
@media only screen and (min-width: 768px) {
.side-bar {
width: 280px;
background-color: #f6f6f6;
}
.ec-role {
display: flex;
justify-content: flex-start
}
.mt-65 {
margin-top: 65px!important;
}
}
.blog-category-item {
color: #337ab7 !important;
}
.blog-category-item.is-selected {
color: rgb(82, 82, 99) !important;
}
.blog-category-item .list_category_link {
color: inherit;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 118
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 119
$context["selectedCategoryIds"] = null;
// line 120
if (twig_in_filter("categories", twig_get_array_keys_filter((isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 120, $this->source); })())))) {
// line 121
echo " ";
$context["selectedCategoryIds"] = twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 121, $this->source); })()), "categories", [], "any", false, false, false, 121);
}
// line 123
echo "
<div class=\"ec-role pluginCMBblog content__inner\">
<div class=\"w-100\">
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath list_blog_cat\">
";
// line 128
if ( !twig_test_empty($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER"))) {
// line 129
echo " ";
// line 130
echo " ";
// line 132
echo " ";
// line 133
echo " ";
// line 146
echo "
<li class=\"blog-category-item ";
// line 147
echo (( !(null === (isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds", $context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.', 147, $this->source); })()))) ? (" ec-topicpath__item") : (" is-selected"));
echo "\">
<a href=\"";
// line 148
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_list");
echo "\" class=\"list_category_link\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html", null, true);
echo "</a>
</li>
";
// line 150
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 150, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 151
echo " ";
// line 152
echo " ";
if ((twig_test_empty((isset($context["excludeCategoryIds"]) || array_key_exists("excludeCategoryIds", $context) ? $context["excludeCategoryIds"] : (function () { throw new RuntimeError('Variable "excludeCategoryIds" does not exist.', 152, $this->source); })())) || !twig_in_filter(twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 152), (isset($context["excludeCategoryIds"]) || array_key_exists("excludeCategoryIds", $context) ? $context["excludeCategoryIds"] : (function () { throw new RuntimeError('Variable "excludeCategoryIds" does not exist.', 152, $this->source); })())))) {
// line 153
echo " ";
// line 154
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 154) < 3)) {
// line 155
echo " ";
// line 156
echo " ";
if ( !(null === (isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds", $context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.', 156, $this->source); })()))) {
// line 157
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds", $context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.', 157, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["selectedCategoryId"]) {
// line 158
echo " ";
if (($context["selectedCategoryId"] != twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 158))) {
// line 159
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, false, 159), "html", null, true);
echo " blog-category-item\">
<a href=\"";
// line 160
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, $context["category"], "getId", [], "method", false, false, false, 160)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 161
echo twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, false, 161);
echo "
</a>
</li>
";
} else {
// line 165
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, false, 165), "html", null, true);
echo " blog-category-item is-selected\">
<a href=\"";
// line 166
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, $context["category"], "getId", [], "method", false, false, false, 166)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 167
echo twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, false, 167);
echo "
</a>
</li>
";
}
// line 171
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['selectedCategoryId'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 172
echo " ";
} else {
// line 173
echo "
<li class=\"";
// line 174
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, false, 174), "html", null, true);
echo " blog-category-item\">
<a href=\"";
// line 175
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, $context["category"], "getId", [], "method", false, false, false, 175)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 176
echo twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, false, 176);
echo "
</a>
</li>
";
}
// line 180
echo " ";
}
// line 181
echo " ";
}
// line 182
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 183
echo " ";
}
// line 184
echo " </ol>
</div>
";
// line 187
if ((twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 187, $this->source); })()), "totalItemCount", [], "any", false, false, false, 187) > 0)) {
// line 188
echo " <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
<ul class=\"ec-shelfGrid list_blog\">
";
// line 190
$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.', 190, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 191
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 192
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_detail/{id}", ["id" => ((twig_get_attribute($this->env, $this->source, $context["blog"], "slug", [], "any", false, false, false, 192)) ? (twig_get_attribute($this->env, $this->source, $context["blog"], "slug", [], "any", false, false, false, 192)) : (twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, false, 192)))]), "html", null, true);
echo "\">
<figure class=\"figure__main_image\">
";
// line 194
if (twig_get_attribute($this->env, $this->source, $context["blog"], "getMainListImage", [], "any", false, false, false, 194)) {
// line 195
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, $context["blog"], "getMainListImage", [], "any", false, false, false, 195)), "save_image"), "html", null, true);
echo "\" class='item_blog_image'></img>
";
} else {
// line 197
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\" class='item_blog_image'></img>
";
}
// line 199
echo " </figure>
</a>
<a href=\"";
// line 201
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_detail/{id}", ["id" => ((twig_get_attribute($this->env, $this->source, $context["blog"], "slug", [], "any", false, false, false, 201)) ? (twig_get_attribute($this->env, $this->source, $context["blog"], "slug", [], "any", false, false, false, 201)) : (twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, false, 201)))]), "html", null, true);
echo "\">
<h3 class=\"blog_title_h3\">";
// line 202
(((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, false, 202)) > 45)) ? (print (twig_escape_filter($this->env, (twig_slice($this->env, twig_replace_filter(twig_striptags(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, false, 202)), [" " => " "]), 0, 45) . "..."), "html", null, true))) : (print (twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, false, 202))));
echo "</h3>
</a>
<p class=\"blog_day\">";
// line 204
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, false, 204), "Y年m月d日"), "html", null, true);
echo "</p>
<ul class=\"blog_category\">
";
// line 206
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["blog"], "getBlogCategories", [], "any", false, false, false, 206));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 207
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, 207), "class", [], "any", false, false, false, 207), "html", null, true);
echo "\">
<a href=\"";
// line 208
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, 208), "getId", [], "method", false, false, false, 208)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 209
(((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "any", false, false, false, 209), "getName", [], "any", false, false, false, 209)) > 15)) ? (print (twig_escape_filter($this->env, (twig_slice($this->env, twig_replace_filter(twig_striptags(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "any", false, false, false, 209), "getName", [], "any", false, false, false, 209)), [" " => " "]), 0, 15) . "..."), "html", null, true))) : (print (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "any", false, false, false, 209), "getName", [], "any", false, false, false, 209))));
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 213
echo " </ul>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 216
echo " </ul>
</div>
<div class=\"ec-pagerRole\">
";
// line 219
$this->loadTemplate("pager.twig", "blog/news_list.twig", 219)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 219, $this->source); })()), "paginationData", [], "any", false, false, false, 219), "routes" => "news_list"]));
// line 220
echo " </div>
";
}
// line 222
echo "
<div class=\"page__inner mt-50\">
<h2 class=\"mod_movie-h2\">
お知らせ一覧
</h2>
<div class=\"mod_movie-btn-more\">
<a href=\"";
// line 228
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_list");
echo "\">お知らせ一覧に戻る</a>
</div>
</div>
</div>
";
// line 233
echo " ";
// line 234
echo " ";
// line 235
echo " ";
// line 236
echo " ";
// line 237
echo " ";
// line 238
echo " ";
// line 239
echo " ";
// line 240
echo " ";
// line 241
echo " ";
// line 242
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "blog/news_list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 488 => 242, 486 => 241, 484 => 240, 482 => 239, 480 => 238, 478 => 237, 476 => 236, 474 => 235, 472 => 234, 470 => 233, 463 => 228, 455 => 222, 451 => 220, 449 => 219, 444 => 216, 436 => 213, 426 => 209, 422 => 208, 417 => 207, 413 => 206, 408 => 204, 403 => 202, 399 => 201, 395 => 199, 389 => 197, 383 => 195, 381 => 194, 376 => 192, 373 => 191, 369 => 190, 365 => 188, 363 => 187, 358 => 184, 355 => 183, 349 => 182, 346 => 181, 343 => 180, 336 => 176, 332 => 175, 328 => 174, 325 => 173, 322 => 172, 316 => 171, 309 => 167, 305 => 166, 300 => 165, 293 => 161, 289 => 160, 284 => 159, 281 => 158, 276 => 157, 273 => 156, 271 => 155, 268 => 154, 266 => 153, 263 => 152, 261 => 151, 257 => 150, 250 => 148, 246 => 147, 243 => 146, 241 => 133, 239 => 132, 237 => 130, 235 => 129, 233 => 128, 226 => 123, 222 => 121, 220 => 120, 218 => 119, 208 => 118, 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 .item_blog_image {
width: 100% !important;
height: 248px;
object-fit: cover;
}
.pluginCMBblog .figure__main_image{
margin: 0;
}
.pluginCMBblog .ec-topicpath .ec-topicpath__item{
display: initial !important;
}
.pluginCMBblog .list_blog_cat li {
display: initial !important;
letter-spacing: 0.2rem;
border-right: 1px solid #ddd;
font-size: 16px;
}
.pluginCMBblog .list_category_link{
padding: 0 0.5rem;
}
.pluginCMBblog .list_blog .list_category_link{
color: #337ab7;
padding: 0 0.5rem;
}
.pluginCMBblog .blog_category li:last-child{
border: none;
}
.pluginCMBblog .blog_category{
margin: 0;
padding: 0;
}
.pluginCMBblog .blog_category li{
display: initial;
border-right: 1px solid #ddd;
}
.pluginCMBblog .list_blog_cat li:last-child {
border-right: none;
}
.pluginCMBblog .blog_title_h3{
font-size: 16px !important;
line-height: 1.4;
margin-top: 10px;
word-break: break-word;
}
.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;
}
.archive-link-div {
max-height: 600px;
overflow-y: scroll;
}
.archive-link-div::-webkit-scrollbar {
display: none;
}
@media screen and (max-width: 768px){
.pluginCMBblog .item_blog_image {
width: 100% !important;
height: 40vw;
object-fit: cover;
}
.side-bar > div {
width: 100%
}
}
@media only screen and (min-width: 768px) {
.side-bar {
width: 280px;
background-color: #f6f6f6;
}
.ec-role {
display: flex;
justify-content: flex-start
}
.mt-65 {
margin-top: 65px!important;
}
}
.blog-category-item {
color: #337ab7 !important;
}
.blog-category-item.is-selected {
color: rgb(82, 82, 99) !important;
}
.blog-category-item .list_category_link {
color: inherit;
}
</style>
{% endblock %}
{% block main %}
{% set selectedCategoryIds = null %}
{% if 'categories' in searchData|keys %}
{% set selectedCategoryIds = searchData.categories %}
{% endif %}
<div class=\"ec-role pluginCMBblog content__inner\">
<div class=\"w-100\">
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath list_blog_cat\">
{% if is_granted('ROLE_USER') is not empty %}
{# 選択済みカテゴリを優先する #}
{# {% if selectedCategoryIds is not null %}
{% for category in categories %} #}
{# 除外カテゴリに指定されている場合は表示しない #}
{# {% if excludeCategoryIds is empty or category.getId() not in excludeCategoryIds %}
{% for selectedCategoryId in selectedCategoryIds %}
{% if selectedCategoryId == category.getId() %}
<li class=\"{{category.class}} blog-category-item is-selected\">
<a href=\"{{ url('news_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %} #}
<li class=\"blog-category-item {{ selectedCategoryIds is not null ? ' ec-topicpath__item' : ' is-selected' }}\">
<a href=\"{{ url('news_list') }}\" class=\"list_category_link\">{{ '全て'|trans }}</a>
</li>
{% for category in categories %}
{# 除外カテゴリに指定されている場合は表示しない #}
{% if excludeCategoryIds is empty or category.getId() not in excludeCategoryIds %}
{# 会員用、お知らせカテゴリのみ表示 #}
{% if category.getId() < 3 %}
{# 検索条件のカテゴリにデザイン用のclassを付与 #}
{% if selectedCategoryIds is not null %}
{% for selectedCategoryId in selectedCategoryIds %}
{% if selectedCategoryId != category.getId() %}
<li class=\"{{category.class}} blog-category-item\">
<a href=\"{{ url('news_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
</li>
{% else %}
<li class=\"{{category.class}} blog-category-item is-selected\">
<a href=\"{{ url('news_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
</li>
{% endif %}
{% endfor %}
{% else %}
<li class=\"{{category.class}} blog-category-item\">
<a href=\"{{ url('news_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
</li>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</ol>
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
<ul class=\"ec-shelfGrid list_blog\">
{% for blog in pagination %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('news_detail/{id}', {'id': blog.slug ? blog.slug : blog.id}) }}\">
<figure class=\"figure__main_image\">
{% if blog.getMainListImage %}
<img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class='item_blog_image'></img>
{% else %}
<img src=\"{{ asset(''|no_image_product, 'save_image') }}\" class='item_blog_image'></img>
{% endif %}
</figure>
</a>
<a href=\"{{ url('blog_detail/{id}', {'id': blog.slug ? blog.slug : blog.id}) }}\">
<h3 class=\"blog_title_h3\">{{ blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw }}</h3>
</a>
<p class=\"blog_day\">{{blog.release_date|date('Y年m月d日')}}</p>
<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|length > 15 ? category.getCategory.getName|striptags|replace({(' '):' '})|slice(0, 15)|raw ~ '...' : category.getCategory.getName|raw }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'news_list'} %}
</div>
{% endif %}
<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_list.twig", "/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/template/default/blog/news_list.twig");
}
}