<?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;
/* web/list.twig */
class __TwigTemplate_cf23aa57a1e043e25e29693f7970da8e41be2511f2356b05c98422a3dad1f340 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'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "web/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/list.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "web/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;
}
@media screen and (max-width: 768px){
.pluginCMBblog .item_blog_image {
width: 100% !important;
height: 40vw;
object-fit: cover;
}
}
.news_title.new{
position:relative;
}
.news_title.new::before{
content: \"NEW\";
background-color:#c60a1c;
padding:0.3em;
margin:0 0.5em 0 0;
border-radius:0.3em;
font-size:10px;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 83
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 84
$context["config"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Config"), "get", [], "method", false, false, true, 84);
// line 85
$context["blogs"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Blog"), "getList", [0 => 1], "method", false, false, true, 85);
// line 86
$context["categoryLisst"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Category"), "getFrontCategoryList", [], "method", false, false, true, 86);
// line 87
echo " <div id=\"page_user_data\" class=\"ec-role pluginCMBblog\">
<div class=\"ak-header\">
<div class=\"ak-pageHeader\">
<h1>NEWS</h1>
</div>
</div><!-- ak-header -->
<div class=\"ec-searchnavRole__topicpath\" style=\"margin:0 0 2em 0;\">
\t\t";
// line 112
echo " <ol class=\"ec-topicpath list_blog_cat\">
<li class=\"ec-topicpath__item\">
<a href=\"";
// line 114
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("一覧"), "html", null, true);
echo "</a>
</li>
\t\t\t\t";
// line 116
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable([0 => 3, 1 => 1, 2 => 2, 3 => 0]);
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 117
echo "\t\t\t\t<li class=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 117, $this->source); })()), $context["i"], [], "array", false, false, true, 117), "class", [], "any", false, false, true, 117), 117, $this->source), "html", null, true);
echo "\">
<a href=\"";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 118, $this->source); })()), $context["i"], [], "array", false, false, true, 118), "getId", [], "method", false, false, true, 118)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 119
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 119, $this->source); })()), $context["i"], [], "array", false, false, true, 119), "getName", [], "any", false, false, true, 119), 119, $this->source);
echo "
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
echo " </ol>
</div>
\t\t<div>
\t\t";
// line 127
echo "\t\t";
// line 128
echo "\t\t";
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.', 128, $this->source); })()), "params", [], "any", false, false, true, 128) == null) || !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "params", [], "any", false, true, true, 128), "categories", [], "array", false, true, true, 128), 0, [], "array", true, true, true, 128))) {
// line 129
echo "\t\t";
// line 130
echo "\t\t";
// line 131
echo "\t\t\t<ul class=\"news_category\">
";
// line 133
echo " <li>
\t\t\t\t";
// line 141
echo "\t\t\t\t\t<h2>一覧</h2>
\t\t\t\t\t<ul class=\"news_list\">
\t\t\t\t\t";
// line 144
echo "\t\t\t\t\t";
// line 145
echo "\t\t\t\t\t";
$context["blogs"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Blog"), "getList", [], "method", false, false, true, 145);
// line 146
echo "\t\t\t\t\t\t";
// line 147
echo "\t\t\t\t\t\t";
$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.', 147, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 148
echo "\t\t\t\t\t\t";
$context["blogCategoryId"] = 0;
// line 149
echo "\t\t\t\t\t\t\t";
// line 150
echo "\t\t\t\t\t\t\t";
// line 151
echo "\t\t\t\t\t\t\t";
// line 152
echo "\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span class=\"news_release_date\">";
// line 153
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 153), 153, $this->source)), "html", null, true);
echo "</span>\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t";
// line 154
if ((twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 154) != null)) {
// line 155
echo "\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 155) != null) && (twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 155), "Y-m-d") > twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 month"), "Y-m-d")))) {
// line 156
echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 156), 156, $this->source), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t";
} else {
// line 158
echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 158), 158, $this->source), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t";
}
// line 160
echo "\t\t\t\t\t\t\t\t\t";
// line 161
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, true, 161), 161, $this->source);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
} else {
// line 164
echo "\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 164) != null) && (twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 164), "Y-m-d") > twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 month"), "Y-m-d")))) {
// line 165
echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, true, 165)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
} else {
// line 167
echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, true, 167)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
}
// line 169
echo "\t\t\t\t\t\t\t\t\t";
// line 170
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, true, 170), 170, $this->source);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
}
// line 172
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t";
// line 175
echo "\t\t\t\t\t\t\t";
// line 176
echo "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 177
echo "\t\t\t\t\t\t";
// line 184
echo "\t\t\t\t\t</ul>
</li>
<div class=\"ec-pagerRole\">
";
// line 187
$this->loadTemplate("pager.twig", "web/list.twig", 187)->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.', 187, $this->source); })()), "paginationData", [], "any", false, false, true, 187), "routes" => "cm_blog_page_list"]));
// line 188
echo " </div>
";
// line 190
echo "\t\t\t</ul>
\t\t";
} else {
// line 192
echo "\t\t";
// line 193
echo "\t\t\t";
// line 194
echo "\t\t";
// line 195
echo "\t\t";
$context["categoriesId"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 195, $this->source); })()), "params", [], "any", false, false, true, 195), "categories", [], "array", false, false, true, 195), 0, [], "array", false, false, true, 195);
// line 196
echo "\t\t\t<ul class=\"news_category\">
";
// line 197
$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.', 197, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 198
echo "\t\t\t\t";
if (((isset($context["categoriesId"]) || array_key_exists("categoriesId", $context) ? $context["categoriesId"] : (function () { throw new RuntimeError('Variable "categoriesId" does not exist.', 198, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 198))) {
// line 199
echo " <li class=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "class", [], "any", false, false, true, 199), 199, $this->source), "html", null, true);
echo "\">
<h2>
\t\t\t\t\t<a href=\"";
// line 201
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_list", ["categories" => [0 => twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, true, 201)]]), "html", null, true);
echo "\" class=\"list_category_link\">
";
// line 202
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "getName", [], "any", false, false, true, 202), 202, $this->source);
echo "
</a>
\t\t\t\t\t</h2>
\t\t\t\t\t<ul class=\"news_list\">
\t\t\t\t\t\t";
// line 206
$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.', 206, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
// line 207
echo "\t\t\t\t\t\t";
$context["blogCategoryId"] = 0;
// line 208
echo "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["blog"], "getBlogCategories", [], "any", false, false, true, 208));
foreach ($context['_seq'] as $context["_key"] => $context["blogCategory"]) {
// line 209
echo "\t\t\t\t\t\t\t";
// line 210
echo "\t\t\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 210) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["blogCategory"], "getCategory", [], "method", false, false, true, 210), "getId", [], "method", false, false, true, 210))) {
// line 211
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 212
echo "\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span class=\"news_release_date\">";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 213), 213, $this->source)), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t";
// line 214
if ((twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 214) != null)) {
// line 215
echo "\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 215) != null) && (twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 215), "Y-m-d") > twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 month"), "Y-m-d")))) {
// line 216
echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 216), 216, $this->source), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t";
} else {
// line 218
echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 218), 218, $this->source), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t";
}
// line 220
echo "\t\t\t\t\t\t\t\t\t";
// line 221
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, true, 221), 221, $this->source);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
} else {
// line 224
echo "\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 224) != null) && (twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 224), "Y-m-d") > twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 month"), "Y-m-d")))) {
// line 225
echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, true, 225)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
} else {
// line 227
echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, true, 227)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
}
// line 229
echo "\t\t\t\t\t\t\t\t\t";
// line 230
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, true, 230), 230, $this->source);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
}
// line 232
echo "\t\t\t\t\t\t\t\t
\t\t\t\t\t\t</li>
";
} else {
// line 234
if ((twig_get_attribute($this->env, $this->source, $context["blog"], "members", [], "any", false, false, true, 234) != 1)) {
// line 235
echo "\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span class=\"news_release_date\">";
// line 236
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 236), 236, $this->source)), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t";
// line 237
if ((twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 237) != null)) {
// line 238
echo "\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 238) != null) && (twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 238), "Y-m-d") > twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 month"), "Y-m-d")))) {
// line 239
echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 239), 239, $this->source), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t";
} else {
// line 241
echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "linkurl", [], "any", false, false, true, 241), 241, $this->source), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t";
}
// line 243
echo "\t\t\t\t\t\t\t\t\t";
// line 244
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, true, 244), 244, $this->source);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
} else {
// line 247
echo "\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 247) != null) && (twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["blog"], "release_date", [], "any", false, false, true, 247), "Y-m-d") > twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 month"), "Y-m-d")))) {
// line 248
echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, true, 248)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
} else {
// line 250
echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["blog"], "id", [], "any", false, false, true, 250)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
}
// line 252
echo "\t\t\t\t\t\t\t\t\t";
// line 253
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["blog"], "getTitle", [], "any", false, false, true, 253), 253, $this->source);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t";
}
// line 255
echo "\t\t\t\t\t\t\t\t
\t\t\t\t\t\t</li>
";
}
}
// line 258
echo "\t\t\t\t\t\t\t";
}
// line 259
echo "\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 260
echo "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 261
echo "\t\t\t\t\t</ul>
</li>
\t\t\t\t";
}
// line 264
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 265
echo "\t\t\t</ul>
<div class=\"ec-pagerRole\">
";
// line 267
$this->loadTemplate("pager.twig", "web/list.twig", 267)->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.', 267, $this->source); })()), "paginationData", [], "any", false, false, true, 267), "routes" => "cm_blog_page_list"]));
// line 268
echo " </div>
\t\t";
}
// line 270
echo "\t\t</div>
\t\t
";
// line 310
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "web/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 589 => 310, 585 => 270, 581 => 268, 579 => 267, 575 => 265, 569 => 264, 564 => 261, 558 => 260, 552 => 259, 549 => 258, 543 => 255, 536 => 253, 534 => 252, 528 => 250, 522 => 248, 519 => 247, 512 => 244, 510 => 243, 504 => 241, 498 => 239, 495 => 238, 493 => 237, 489 => 236, 486 => 235, 484 => 234, 479 => 232, 472 => 230, 470 => 229, 464 => 227, 458 => 225, 455 => 224, 448 => 221, 446 => 220, 440 => 218, 434 => 216, 431 => 215, 429 => 214, 425 => 213, 422 => 212, 419 => 211, 416 => 210, 414 => 209, 409 => 208, 406 => 207, 402 => 206, 395 => 202, 391 => 201, 385 => 199, 382 => 198, 378 => 197, 375 => 196, 372 => 195, 370 => 194, 368 => 193, 366 => 192, 362 => 190, 359 => 188, 357 => 187, 352 => 184, 350 => 177, 344 => 176, 342 => 175, 338 => 172, 331 => 170, 329 => 169, 323 => 167, 317 => 165, 314 => 164, 307 => 161, 305 => 160, 299 => 158, 293 => 156, 290 => 155, 288 => 154, 284 => 153, 281 => 152, 279 => 151, 277 => 150, 275 => 149, 272 => 148, 267 => 147, 265 => 146, 262 => 145, 260 => 144, 256 => 141, 253 => 133, 250 => 131, 248 => 130, 246 => 129, 243 => 128, 241 => 127, 236 => 123, 226 => 119, 222 => 118, 217 => 117, 213 => 116, 206 => 114, 202 => 112, 191 => 87, 189 => 86, 187 => 85, 185 => 84, 175 => 83, 90 => 6, 80 => 5, 62 => 3, 39 => 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;
}
@media screen and (max-width: 768px){
.pluginCMBblog .item_blog_image {
width: 100% !important;
height: 40vw;
object-fit: cover;
}
}
.news_title.new{
position:relative;
}
.news_title.new::before{
content: \"NEW\";
background-color:#c60a1c;
padding:0.3em;
margin:0 0.5em 0 0;
border-radius:0.3em;
font-size:10px;
}
</style>
{% endblock %}
{% block main %}
{% set config = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Config').get() %}
{% set blogs = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Blog').getList(1) %}
{% set categoryLisst = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Category').getFrontCategoryList() %}
<div id=\"page_user_data\" class=\"ec-role pluginCMBblog\">
<div class=\"ak-header\">
<div class=\"ak-pageHeader\">
<h1>NEWS</h1>
</div>
</div><!-- ak-header -->
<div class=\"ec-searchnavRole__topicpath\" style=\"margin:0 0 2em 0;\">
\t\t{# 20240805@hanari 出力順を任意にするために変更
<ol class=\"ec-topicpath list_blog_cat\">
<li class=\"ec-topicpath__item\">
<a href=\"{{ url('cm_blog_page_list') }}\">{{ '全て'|trans }}</a>
</li>
\t\t\t\t{% for category in categories %}
\t\t\t\t
<li class=\"{{category.class}}\">
<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
</li>
{% endfor %}
</ol>
\t\t#}
<ol class=\"ec-topicpath list_blog_cat\">
<li class=\"ec-topicpath__item\">
<a href=\"{{ url('cm_blog_page_list') }}\">{{ '一覧'|trans }}</a>
</li>
\t\t\t\t{% for i in [3,1,2,0] %}
\t\t\t\t<li class=\"{{categories[i].class}}\">
<a href=\"{{ url('cm_blog_page_list', {categories: [categories[i].getId()]}) }}\" class=\"list_category_link\">
{{ categories[i].getName|raw }}
</a>
</li>
{% endfor %}
</ol>
</div>
\t\t<div>
\t\t{# dump(pagination) #}
\t\t{# dump(pagination.params == null) #}
\t\t{% if pagination.params == null or pagination.params[\"categories\"][0] is not defined %}
\t\t{# 一覧表示 #}
\t\t{# dump(pagination.params[\"categories\"][0]) #}
\t\t\t<ul class=\"news_category\">
{# for category in categories #}
<li>
\t\t\t\t{#
<h2>
\t\t\t\t\t<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
\t\t\t\t\t</h2>
\t\t\t\t#}
\t\t\t\t\t<h2>一覧</h2>
\t\t\t\t\t<ul class=\"news_list\">
\t\t\t\t\t{# dump(category.id) #}
\t\t\t\t\t{# set blogs = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Blog').getListNews(category.id,is_granted('ROLE_USER')) #}
\t\t\t\t\t{% set blogs = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Blog').getList() %}
\t\t\t\t\t\t{# dump(blogs) #}
\t\t\t\t\t\t{% for blog in pagination %}
\t\t\t\t\t\t{% set blogCategoryId = 0 %}
\t\t\t\t\t\t\t{# for blogCategory in blog.getBlogCategories #}
\t\t\t\t\t\t\t{# 同一のカテゴリー の 場合 表示 #}
\t\t\t\t\t\t\t{# if category.id == blogCategory.getCategory().getId() #}
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span class=\"news_release_date\">{{ blog.release_date|date_day }}</span>\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t{% if blog.linkurl != null %}
\t\t\t\t\t\t\t\t\t{% if blog.release_date != null and blog.release_date|date('Y-m-d') > 'now'|date_modify('-1 month')|date('Y-m-d') %}
\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
{{ blog.getTitle|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% if blog.release_date != null and blog.release_date|date('Y-m-d') > 'now'|date_modify('-1 month')|date('Y-m-d') %}
\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
{{ blog.getTitle|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t{% endif %}\t\t\t\t\t\t\t
\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t{# endif #}
\t\t\t\t\t\t\t{# endfor #}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{#
\t\t\t\t\t\t<li class=\"more\">
\t\t\t\t\t\t\t<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
\t\t\t\t\t\t\t\t過去の記事 >
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t#}
\t\t\t\t\t</ul>
</li>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'cm_blog_page_list'} %}
</div>
{# endfor #}
\t\t\t</ul>
\t\t{% else %}{# 一覧表示 #}
\t\t{# カテゴリー表示 #}
\t\t\t{# dump(pagination) #}
\t\t{# dump(pagination.params[\"categories\"][0]) #}
\t\t{% set categoriesId = pagination.params[\"categories\"][0] %}
\t\t\t<ul class=\"news_category\">
{% for category in categories %}
\t\t\t\t{% if categoriesId == category.id %}
<li class=\"{{category.class}}\">
<h2>
\t\t\t\t\t<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
{{ category.getName|raw }}
</a>
\t\t\t\t\t</h2>
\t\t\t\t\t<ul class=\"news_list\">
\t\t\t\t\t\t{% for blog in pagination %}
\t\t\t\t\t\t{% set blogCategoryId = 0 %}
\t\t\t\t\t\t\t{% for blogCategory in blog.getBlogCategories %}
\t\t\t\t\t\t\t{# 同一のカテゴリー の 場合 表示 #}
\t\t\t\t\t\t\t{% if category.id == blogCategory.getCategory().getId() %}
{% if is_granted('ROLE_USER') %}{# 会員限定 #}
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span class=\"news_release_date\">{{ blog.release_date|date_day }}</span>
\t\t\t\t\t\t\t\t{% if blog.linkurl != null %}
\t\t\t\t\t\t\t\t\t{% if blog.release_date != null and blog.release_date|date('Y-m-d') > 'now'|date_modify('-1 month')|date('Y-m-d') %}
\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
{{ blog.getTitle|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% if blog.release_date != null and blog.release_date|date('Y-m-d') > 'now'|date_modify('-1 month')|date('Y-m-d') %}
\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
{{ blog.getTitle|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t{% endif %}\t\t\t\t\t\t\t\t
\t\t\t\t\t\t</li>
{% else %}{# 会員限定 一般 #}{% if blog.members != 1 %}
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<span class=\"news_release_date\">{{ blog.release_date|date_day }}</span>
\t\t\t\t\t\t\t\t{% if blog.linkurl != null %}
\t\t\t\t\t\t\t\t\t{% if blog.release_date != null and blog.release_date|date('Y-m-d') > 'now'|date_modify('-1 month')|date('Y-m-d') %}
\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
{{ blog.getTitle|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% if blog.release_date != null and blog.release_date|date('Y-m-d') > 'now'|date_modify('-1 month')|date('Y-m-d') %}
\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
{{ blog.getTitle|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t{% endif %}\t\t\t\t\t\t\t\t
\t\t\t\t\t\t</li>
{% endif %}{% endif %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ul>
</li>
\t\t\t\t{% endif %}
{% endfor %}
\t\t\t</ul>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'cm_blog_page_list'} %}
</div>
\t\t{% endif %}{# カテゴリー表示 #}
\t\t</div>
\t\t
{#
{% 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('cm_blog_page_detail', {'id': 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>
<h3 class=\"blog_title_h3\">
<a href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
{{ blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({(' '):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw }}
</a>
</h3>
<ul class=\"blog_category\">
{% for category in blog.getBlogCategories %}
<li class=\"{{category.getCategory.class|raw}}\">
<a href=\"{{ url('cm_blog_page_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' : 'cm_blog_page_list'} %}
</div>
{% endif %}
#}
</div>
{% endblock %}", "web/list.twig", "/home/akracing/www/akracing.dev/app/template/akracing/web/list.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 84, "for" => 116, "if" => 128, "include" => 187);
static $filters = array("escape" => 114, "trans" => 114, "raw" => 119, "date_day" => 153, "date" => 155, "date_modify" => 155);
static $functions = array("repository" => 84, "url" => 114, "is_granted" => 211);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if', 'include'],
['escape', 'trans', 'raw', 'date_day', 'date', 'date_modify'],
['repository', 'url', 'is_granted']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}