<?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/list.twig */
class __TwigTemplate_af7c576ef2be7a4e8d99eb9139e3b48a6e49a8fa4574a6962b1bfdc07095ec43 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/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/list.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "blog/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 129
echo " ";
// line 131
echo " ";
// line 132
echo " ";
// line 145
echo "
<li class=\"blog-category-item ";
// line 146
echo (( !(null === (isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds", $context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.', 146, $this->source); })()))) ? (" ec-topicpath__item") : (" is-selected"));
echo "\" >
<a href=\"";
// line 147
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_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 149
$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.', 149, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 150
echo " ";
// line 151
echo " ";
if ((twig_test_empty((isset($context["excludeCategoryIds"]) || array_key_exists("excludeCategoryIds", $context) ? $context["excludeCategoryIds"] : (function () { throw new RuntimeError('Variable "excludeCategoryIds" does not exist.', 151, $this->source); })())) || !twig_in_filter(twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 151), (isset($context["excludeCategoryIds"]) || array_key_exists("excludeCategoryIds", $context) ? $context["excludeCategoryIds"] : (function () { throw new RuntimeError('Variable "excludeCategoryIds" does not exist.', 151, $this->source); })())))) {
// line 152
echo " ";
// line 153
echo " ";
if ( !(null === (isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds", $context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.', 153, $this->source); })()))) {
// line 154
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.', 154, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["selectedCategoryId"]) {
// line 155
echo " ";
if (($context["selectedCategoryId"] != twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 155))) {
// line 156
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, false, 156), "html", null, true);
echo " blog-category-item\">
<a href=\"";
// line 157
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 157)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 158
echo twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, false, 158);
echo "
</a>
</li>
";
} else {
// line 162
echo " <li class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, false, 162), "html", null, true);
echo " blog-category-item is-selected\">
<a href=\"";
// line 163
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 163)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 164
echo twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, false, 164);
echo "
</a>
</li>
";
}
// line 168
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 169
echo " ";
} else {
// line 170
echo "
<li class=\"";
// line 171
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, false, 171), "html", null, true);
echo " blog-category-item\">
<a href=\"";
// line 172
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 172)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 173
echo twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, false, 173);
echo "
</a>
</li>
";
}
// line 177
echo " ";
}
// line 178
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 179
echo " </ol>
</div>
";
// line 182
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.', 182, $this->source); })()), "totalItemCount", [], "any", false, false, false, 182) > 0)) {
// line 183
echo " <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
<ul class=\"ec-shelfGrid list_blog\">
";
// line 185
$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.', 185, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 186
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 187
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, 187)) ? (twig_get_attribute($this->env, $this->source, $context["blog"], "slug", [], "any", false, false, false, 187)) : (twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, false, 187)))]), "html", null, true);
echo "\">
<figure class=\"figure__main_image\">
";
// line 189
if (twig_get_attribute($this->env, $this->source, $context["blog"], "getMainListImage", [], "any", false, false, false, 189)) {
// line 190
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, 190)), "save_image"), "html", null, true);
echo "\" class='item_blog_image'></img>
";
} else {
// line 192
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 194
echo " </figure>
</a>
<a href=\"";
// line 196
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, 196)) ? (twig_get_attribute($this->env, $this->source, $context["blog"], "slug", [], "any", false, false, false, 196)) : (twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, false, 196)))]), "html", null, true);
echo "\">
<h3 class=\"blog_title_h3\">";
// line 197
(((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, false, 197)) > 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, 197)), [" " => " "]), 0, 45) . "..."), "html", null, true))) : (print (twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, false, 197))));
echo "</h3>
</a>
<p class=\"blog_day\">";
// line 199
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, 199), "Y年m月d日"), "html", null, true);
echo "</p>
<ul class=\"blog_category\">
";
// line 201
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["blog"], "getBlogCategories", [], "any", false, false, false, 201));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 202
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, 202), "class", [], "any", false, false, false, 202), "html", null, true);
echo "\">
<a href=\"";
// line 203
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getCategory", [], "method", false, false, false, 203), "getId", [], "method", false, false, false, 203)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 204
(((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, 204), "getName", [], "any", false, false, false, 204)) > 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, 204), "getName", [], "any", false, false, false, 204)), [" " => " "]), 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, 204), "getName", [], "any", false, false, false, 204))));
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 208
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 211
echo " </ul>
</div>
<div class=\"ec-pagerRole\">
";
// line 214
$this->loadTemplate("pager.twig", "blog/list.twig", 214)->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.', 214, $this->source); })()), "paginationData", [], "any", false, false, false, 214), "routes" => "blog_list"]));
// line 215
echo " </div>
";
}
// line 217
echo "
<div class=\"page__inner mt-50\">
<h2 class=\"mod_movie-h2\">
ブログ一覧
</h2>
<div class=\"mod_movie-btn-more\">
<a href=\"";
// line 223
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list");
echo "\">ブログ一覧に戻る</a>
</div>
</div>
</div>
";
// line 229
echo " ";
// line 230
echo " ";
// line 231
echo " ";
// line 232
echo " ";
// line 233
echo " ";
// line 234
echo " ";
// line 235
echo " ";
// line 236
echo " ";
// line 237
echo " ";
// line 238
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "blog/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 474 => 238, 472 => 237, 470 => 236, 468 => 235, 466 => 234, 464 => 233, 462 => 232, 460 => 231, 458 => 230, 456 => 229, 448 => 223, 440 => 217, 436 => 215, 434 => 214, 429 => 211, 421 => 208, 411 => 204, 407 => 203, 402 => 202, 398 => 201, 393 => 199, 388 => 197, 384 => 196, 380 => 194, 374 => 192, 368 => 190, 366 => 189, 361 => 187, 358 => 186, 354 => 185, 350 => 183, 348 => 182, 343 => 179, 337 => 178, 334 => 177, 327 => 173, 323 => 172, 319 => 171, 316 => 170, 313 => 169, 307 => 168, 300 => 164, 296 => 163, 291 => 162, 284 => 158, 280 => 157, 275 => 156, 272 => 155, 267 => 154, 264 => 153, 262 => 152, 259 => 151, 257 => 150, 253 => 149, 246 => 147, 242 => 146, 239 => 145, 237 => 132, 235 => 131, 233 => 129, 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 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('blog_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('blog_list') }}\" class=\"list_category_link\">{{ '全て'|trans }}</a>
</li>
{% for category in categories %}
{# 除外カテゴリに指定されている場合は表示しない #}
{% if excludeCategoryIds is empty or category.getId() not in excludeCategoryIds %}
{# 検索条件のカテゴリにデザイン用のclassを付与 #}
{% if selectedCategoryIds is not null %}
{% for selectedCategoryId in selectedCategoryIds %}
{% if selectedCategoryId != category.getId() %}
<li class=\"{{category.class}} blog-category-item\">
<a href=\"{{ url('blog_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('blog_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('blog_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
</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('blog_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('blog_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' : 'blog_list'} %}
</div>
{% endif %}
<div class=\"page__inner mt-50\">
<h2 class=\"mod_movie-h2\">
ブログ一覧
</h2>
<div class=\"mod_movie-btn-more\">
<a href=\"{{ url('blog_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/list.twig", "/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/template/default/blog/list.twig");
}
}