var/cache/dev/twig/43/43c2ff64af8ff08fc97a03e949d3d41db068570d557c0588d742d70267723c5f.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* web/list.twig */
  14. class __TwigTemplate_cf23aa57a1e043e25e29693f7970da8e41be2511f2356b05c98422a3dad1f340 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""web/list.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""web/list.twig"));
  42.         $this->parent $this->loadTemplate("default_frame.twig""web/list.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_stylesheet($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  70.         // line 6
  71.         echo "<style>
  72. .pluginCMBblog .item_blog_image {
  73.     width: 100% !important;
  74.     height: 248px;
  75.     object-fit: cover;
  76. }
  77. .pluginCMBblog .figure__main_image{
  78.     margin: 0;
  79. }
  80. .pluginCMBblog .ec-topicpath .ec-topicpath__item{
  81.     display: initial !important;
  82. }
  83. .pluginCMBblog .list_blog_cat li {
  84.     display: initial !important;
  85.     letter-spacing: 0.2rem;
  86.     border-right: 1px solid #ddd;
  87.     font-size: 16px;
  88. }
  89. .pluginCMBblog .list_category_link{
  90.     padding: 0 0.5rem;
  91. }
  92. .pluginCMBblog .list_blog .list_category_link{
  93.     color: #337ab7;
  94.     padding: 0 0.5rem;
  95. }
  96. .pluginCMBblog .blog_category li:last-child{
  97.     border: none;
  98. }
  99. .pluginCMBblog .blog_category{
  100.     margin: 0;
  101.     padding: 0;
  102. }
  103. .pluginCMBblog .blog_category li{
  104.     display: initial;
  105.     border-right: 1px solid #ddd;
  106. }
  107. .pluginCMBblog .list_blog_cat li:last-child {
  108.     border-right: none;
  109. }
  110. .pluginCMBblog .blog_title_h3{
  111.     font-size: 16px !important;
  112.     line-height: 1.4;  
  113.     margin-top: 10px;
  114.     word-break: break-word;
  115. }
  116. @media screen and (max-width: 768px){
  117. .pluginCMBblog .item_blog_image {
  118.     width: 100% !important;
  119.     height: 40vw;
  120.     object-fit: cover;
  121.     }
  122. }
  123. .news_title.new{
  124.     position:relative;
  125. }
  126. .news_title.new::before{
  127.     content: \"NEW\";
  128.     background-color:#c60a1c;
  129.     padding:0.3em;
  130.     margin:0 0.5em 0 0;
  131.     border-radius:0.3em;
  132.     font-size:10px;
  133. }
  134. </style>
  135. ";
  136.         
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  138.         
  139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  140.     }
  141.     // line 83
  142.     public function block_main($context, array $blocks = [])
  143.     {
  144.         $macros $this->macros;
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  149.         // line 84
  150.         $context["config"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Config"), "get", [], "method"falsefalsetrue84);
  151.         // line 85
  152.         $context["blogs"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Blog"), "getList", [=> 1], "method"falsefalsetrue85);
  153.         // line 86
  154.         $context["categoryLisst"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Category"), "getFrontCategoryList", [], "method"falsefalsetrue86);
  155.         // line 87
  156.         echo "    <div id=\"page_user_data\" class=\"ec-role pluginCMBblog\">
  157.         <div class=\"ak-header\">
  158.             <div class=\"ak-pageHeader\">
  159.                 <h1>NEWS</h1>
  160.             </div>
  161.         </div><!-- ak-header -->
  162.         <div class=\"ec-searchnavRole__topicpath\"  style=\"margin:0 0 2em 0;\">
  163. \t\t";
  164.         // line 112
  165.         echo "            <ol class=\"ec-topicpath list_blog_cat\">
  166.                 <li class=\"ec-topicpath__item\">
  167.                     <a href=\"";
  168.         // line 114
  169.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_list");
  170.         echo "\">";
  171.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("一覧"), "html"nulltrue);
  172.         echo "</a>
  173.                 </li>
  174. \t\t\t\t";
  175.         // line 116
  176.         $context['_parent'] = $context;
  177.         $context['_seq'] = twig_ensure_traversable([=> 3=> 1=> 2=> 0]);
  178.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  179.             // line 117
  180.             echo "\t\t\t\t<li class=\"";
  181.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue117), "class", [], "any"falsefalsetrue117), 117$this->source), "html"nulltrue);
  182.             echo "\">
  183.                     <a href=\"";
  184.             // line 118
  185.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_list", ["categories" => [=> twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue118), "getId", [], "method"falsefalsetrue118)]]), "html"nulltrue);
  186.             echo "\" class=\"list_category_link\">
  187.                         ";
  188.             // line 119
  189.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue119), "getName", [], "any"falsefalsetrue119), 119$this->source);
  190.             echo "
  191.                     </a>
  192.                 </li>
  193.                 ";
  194.         }
  195.         $_parent $context['_parent'];
  196.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  197.         $context array_intersect_key($context$_parent) + $_parent;
  198.         // line 123
  199.         echo "            </ol>
  200.         </div>
  201. \t\t<div>
  202. \t\t";
  203.         // line 127
  204.         echo "\t\t";
  205.         // line 128
  206.         echo "\t\t";
  207.         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"falsefalsetrue128) == null) ||  !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "params", [], "any"falsetruetrue128), "categories", [], "array"falsetruetrue128), 0, [], "array"truetruetrue128))) {
  208.             // line 129
  209.             echo "\t\t";
  210.             // line 130
  211.             echo "\t\t";
  212.             // line 131
  213.             echo "\t\t\t<ul class=\"news_category\">
  214.                 ";
  215.             // line 133
  216.             echo "                <li>
  217. \t\t\t\t";
  218.             // line 141
  219.             echo "\t\t\t\t\t<h2>一覧</h2>
  220. \t\t\t\t\t<ul class=\"news_list\">
  221. \t\t\t\t\t";
  222.             // line 144
  223.             echo "\t\t\t\t\t";
  224.             // line 145
  225.             echo "\t\t\t\t\t";
  226.             $context["blogs"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CMBlogPro42\\Entity\\Blog"), "getList", [], "method"falsefalsetrue145);
  227.             // line 146
  228.             echo "\t\t\t\t\t\t";
  229.             // line 147
  230.             echo "\t\t\t\t\t\t";
  231.             $context['_parent'] = $context;
  232.             $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); })()));
  233.             foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  234.                 // line 148
  235.                 echo "\t\t\t\t\t\t";
  236.                 $context["blogCategoryId"] = 0;
  237.                 // line 149
  238.                 echo "\t\t\t\t\t\t\t";
  239.                 // line 150
  240.                 echo "\t\t\t\t\t\t\t";
  241.                 // line 151
  242.                 echo "\t\t\t\t\t\t\t";
  243.                 // line 152
  244.                 echo "\t\t\t\t\t\t<li>
  245. \t\t\t\t\t\t\t<span class=\"news_release_date\">";
  246.                 // line 153
  247.                 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"falsefalsetrue153), 153$this->source)), "html"nulltrue);
  248.                 echo "</span>\t\t\t\t\t\t\t\t
  249. \t\t\t\t\t\t\t\t";
  250.                 // line 154
  251.                 if ((twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue154) != null)) {
  252.                     // line 155
  253.                     echo "\t\t\t\t\t\t\t\t\t";
  254.                     if (((twig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue155) != null) && (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue155), "Y-m-d") > twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 month"), "Y-m-d")))) {
  255.                         // line 156
  256.                         echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
  257.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue156), 156$this->source), "html"nulltrue);
  258.                         echo "\" target=\"_blank\">
  259. \t\t\t\t\t\t\t\t\t";
  260.                     } else {
  261.                         // line 158
  262.                         echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
  263.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue158), 158$this->source), "html"nulltrue);
  264.                         echo "\" target=\"_blank\">
  265. \t\t\t\t\t\t\t\t\t";
  266.                     }
  267.                     // line 160
  268.                     echo "\t\t\t\t\t\t\t\t\t";
  269.                     // line 161
  270.                     echo "                                    ";
  271.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsetrue161), 161$this->source);
  272.                     echo "
  273. \t\t\t\t\t\t\t\t</a>
  274. \t\t\t\t\t\t\t\t";
  275.                 } else {
  276.                     // line 164
  277.                     echo "\t\t\t\t\t\t\t\t\t";
  278.                     if (((twig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue164) != null) && (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue164), "Y-m-d") > twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 month"), "Y-m-d")))) {
  279.                         // line 165
  280.                         echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
  281.                         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"falsefalsetrue165)]), "html"nulltrue);
  282.                         echo "\">
  283. \t\t\t\t\t\t\t\t\t";
  284.                     } else {
  285.                         // line 167
  286.                         echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
  287.                         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"falsefalsetrue167)]), "html"nulltrue);
  288.                         echo "\">
  289. \t\t\t\t\t\t\t\t\t";
  290.                     }
  291.                     // line 169
  292.                     echo "\t\t\t\t\t\t\t\t\t";
  293.                     // line 170
  294.                     echo "                                    ";
  295.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsetrue170), 170$this->source);
  296.                     echo "
  297. \t\t\t\t\t\t\t\t</a>
  298. \t\t\t\t\t\t\t\t";
  299.                 }
  300.                 // line 172
  301.                 echo "\t\t\t\t\t\t\t
  302. \t\t\t\t\t\t</li>
  303. \t\t\t\t\t\t\t";
  304.                 // line 175
  305.                 echo "\t\t\t\t\t\t\t";
  306.                 // line 176
  307.                 echo "\t\t\t\t\t\t";
  308.             }
  309.             $_parent $context['_parent'];
  310.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  311.             $context array_intersect_key($context$_parent) + $_parent;
  312.             // line 177
  313.             echo "\t\t\t\t\t\t";
  314.             // line 184
  315.             echo "\t\t\t\t\t</ul>
  316.                 </li>
  317.             <div class=\"ec-pagerRole\">
  318.                 ";
  319.             // line 187
  320.             $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"falsefalsetrue187), "routes" => "cm_blog_page_list"]));
  321.             // line 188
  322.             echo "            </div>
  323.                 ";
  324.             // line 190
  325.             echo "\t\t\t</ul>
  326. \t\t";
  327.         } else {
  328.             // line 192
  329.             echo "\t\t";
  330.             // line 193
  331.             echo "\t\t\t";
  332.             // line 194
  333.             echo "\t\t";
  334.             // line 195
  335.             echo "\t\t";
  336.             $context["categoriesId"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue195), "categories", [], "array"falsefalsetrue195), 0, [], "array"falsefalsetrue195);
  337.             // line 196
  338.             echo "\t\t\t<ul class=\"news_category\">
  339.                 ";
  340.             // line 197
  341.             $context['_parent'] = $context;
  342.             $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); })()));
  343.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  344.                 // line 198
  345.                 echo "\t\t\t\t";
  346.                 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"falsefalsetrue198))) {
  347.                     // line 199
  348.                     echo "                <li class=\"";
  349.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "class", [], "any"falsefalsetrue199), 199$this->source), "html"nulltrue);
  350.                     echo "\">
  351.                     <h2>
  352. \t\t\t\t\t<a href=\"";
  353.                     // line 201
  354.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_page_list", ["categories" => [=> twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsetrue201)]]), "html"nulltrue);
  355.                     echo "\" class=\"list_category_link\">
  356.                         ";
  357.                     // line 202
  358.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "getName", [], "any"falsefalsetrue202), 202$this->source);
  359.                     echo "
  360.                     </a>
  361. \t\t\t\t\t</h2>
  362. \t\t\t\t\t<ul class=\"news_list\">
  363. \t\t\t\t\t\t";
  364.                     // line 206
  365.                     $context['_parent'] = $context;
  366.                     $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); })()));
  367.                     foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  368.                         // line 207
  369.                         echo "\t\t\t\t\t\t";
  370.                         $context["blogCategoryId"] = 0;
  371.                         // line 208
  372.                         echo "\t\t\t\t\t\t\t";
  373.                         $context['_parent'] = $context;
  374.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["blog"], "getBlogCategories", [], "any"falsefalsetrue208));
  375.                         foreach ($context['_seq'] as $context["_key"] => $context["blogCategory"]) {
  376.                             // line 209
  377.                             echo "\t\t\t\t\t\t\t";
  378.                             // line 210
  379.                             echo "\t\t\t\t\t\t\t";
  380.                             if ((twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue210) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["blogCategory"], "getCategory", [], "method"falsefalsetrue210), "getId", [], "method"falsefalsetrue210))) {
  381.                                 // line 211
  382.                                 echo "                        ";
  383.                                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  384.                                     // line 212
  385.                                     echo "\t\t\t\t\t\t<li>
  386. \t\t\t\t\t\t\t<span class=\"news_release_date\">";
  387.                                     // line 213
  388.                                     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"falsefalsetrue213), 213$this->source)), "html"nulltrue);
  389.                                     echo "</span>
  390. \t\t\t\t\t\t\t\t";
  391.                                     // line 214
  392.                                     if ((twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue214) != null)) {
  393.                                         // line 215
  394.                                         echo "\t\t\t\t\t\t\t\t\t";
  395.                                         if (((twig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue215) != null) && (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue215), "Y-m-d") > twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 month"), "Y-m-d")))) {
  396.                                             // line 216
  397.                                             echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
  398.                                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue216), 216$this->source), "html"nulltrue);
  399.                                             echo "\" target=\"_blank\">
  400. \t\t\t\t\t\t\t\t\t";
  401.                                         } else {
  402.                                             // line 218
  403.                                             echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
  404.                                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue218), 218$this->source), "html"nulltrue);
  405.                                             echo "\" target=\"_blank\">
  406. \t\t\t\t\t\t\t\t\t";
  407.                                         }
  408.                                         // line 220
  409.                                         echo "\t\t\t\t\t\t\t\t\t";
  410.                                         // line 221
  411.                                         echo "                                    ";
  412.                                         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsetrue221), 221$this->source);
  413.                                         echo "
  414. \t\t\t\t\t\t\t\t</a>
  415. \t\t\t\t\t\t\t\t";
  416.                                     } else {
  417.                                         // line 224
  418.                                         echo "\t\t\t\t\t\t\t\t\t";
  419.                                         if (((twig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue224) != null) && (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue224), "Y-m-d") > twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 month"), "Y-m-d")))) {
  420.                                             // line 225
  421.                                             echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
  422.                                             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"falsefalsetrue225)]), "html"nulltrue);
  423.                                             echo "\">
  424. \t\t\t\t\t\t\t\t\t";
  425.                                         } else {
  426.                                             // line 227
  427.                                             echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
  428.                                             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"falsefalsetrue227)]), "html"nulltrue);
  429.                                             echo "\">
  430. \t\t\t\t\t\t\t\t\t";
  431.                                         }
  432.                                         // line 229
  433.                                         echo "\t\t\t\t\t\t\t\t\t";
  434.                                         // line 230
  435.                                         echo "                                    ";
  436.                                         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsetrue230), 230$this->source);
  437.                                         echo "
  438. \t\t\t\t\t\t\t\t</a>
  439. \t\t\t\t\t\t\t\t";
  440.                                     }
  441.                                     // line 232
  442.                                     echo "\t\t\t\t\t\t\t\t
  443. \t\t\t\t\t\t</li>
  444.                         ";
  445.                                 } else {
  446.                                     // line 234
  447.                                     if ((twig_get_attribute($this->env$this->source$context["blog"], "members", [], "any"falsefalsetrue234) != 1)) {
  448.                                         // line 235
  449.                                         echo "\t\t\t\t\t\t<li>
  450. \t\t\t\t\t\t\t<span class=\"news_release_date\">";
  451.                                         // line 236
  452.                                         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"falsefalsetrue236), 236$this->source)), "html"nulltrue);
  453.                                         echo "</span>
  454. \t\t\t\t\t\t\t\t";
  455.                                         // line 237
  456.                                         if ((twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue237) != null)) {
  457.                                             // line 238
  458.                                             echo "\t\t\t\t\t\t\t\t\t";
  459.                                             if (((twig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue238) != null) && (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue238), "Y-m-d") > twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 month"), "Y-m-d")))) {
  460.                                                 // line 239
  461.                                                 echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
  462.                                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue239), 239$this->source), "html"nulltrue);
  463.                                                 echo "\" target=\"_blank\">
  464. \t\t\t\t\t\t\t\t\t";
  465.                                             } else {
  466.                                                 // line 241
  467.                                                 echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
  468.                                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "linkurl", [], "any"falsefalsetrue241), 241$this->source), "html"nulltrue);
  469.                                                 echo "\" target=\"_blank\">
  470. \t\t\t\t\t\t\t\t\t";
  471.                                             }
  472.                                             // line 243
  473.                                             echo "\t\t\t\t\t\t\t\t\t";
  474.                                             // line 244
  475.                                             echo "                                    ";
  476.                                             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsetrue244), 244$this->source);
  477.                                             echo "
  478. \t\t\t\t\t\t\t\t</a>
  479. \t\t\t\t\t\t\t\t";
  480.                                         } else {
  481.                                             // line 247
  482.                                             echo "\t\t\t\t\t\t\t\t\t";
  483.                                             if (((twig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue247) != null) && (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsetrue247), "Y-m-d") > twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 month"), "Y-m-d")))) {
  484.                                                 // line 248
  485.                                                 echo "\t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"";
  486.                                                 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"falsefalsetrue248)]), "html"nulltrue);
  487.                                                 echo "\">
  488. \t\t\t\t\t\t\t\t\t";
  489.                                             } else {
  490.                                                 // line 250
  491.                                                 echo "\t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"";
  492.                                                 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"falsefalsetrue250)]), "html"nulltrue);
  493.                                                 echo "\">
  494. \t\t\t\t\t\t\t\t\t";
  495.                                             }
  496.                                             // line 252
  497.                                             echo "\t\t\t\t\t\t\t\t\t";
  498.                                             // line 253
  499.                                             echo "                                    ";
  500.                                             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsetrue253), 253$this->source);
  501.                                             echo "
  502. \t\t\t\t\t\t\t\t</a>
  503. \t\t\t\t\t\t\t\t";
  504.                                         }
  505.                                         // line 255
  506.                                         echo "\t\t\t\t\t\t\t\t
  507. \t\t\t\t\t\t</li>
  508.                         ";
  509.                                     }
  510.                                 }
  511.                                 // line 258
  512.                                 echo "\t\t\t\t\t\t\t";
  513.                             }
  514.                             // line 259
  515.                             echo "\t\t\t\t\t\t\t";
  516.                         }
  517.                         $_parent $context['_parent'];
  518.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogCategory'], $context['_parent'], $context['loop']);
  519.                         $context array_intersect_key($context$_parent) + $_parent;
  520.                         // line 260
  521.                         echo "\t\t\t\t\t\t";
  522.                     }
  523.                     $_parent $context['_parent'];
  524.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  525.                     $context array_intersect_key($context$_parent) + $_parent;
  526.                     // line 261
  527.                     echo "\t\t\t\t\t</ul>
  528.                 </li>
  529. \t\t\t\t";
  530.                 }
  531.                 // line 264
  532.                 echo "                ";
  533.             }
  534.             $_parent $context['_parent'];
  535.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  536.             $context array_intersect_key($context$_parent) + $_parent;
  537.             // line 265
  538.             echo "\t\t\t</ul>
  539.             <div class=\"ec-pagerRole\">
  540.                 ";
  541.             // line 267
  542.             $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"falsefalsetrue267), "routes" => "cm_blog_page_list"]));
  543.             // line 268
  544.             echo "            </div>
  545. \t\t";
  546.         }
  547.         // line 270
  548.         echo "\t\t</div>
  549. \t\t
  550. ";
  551.         // line 310
  552.         echo "    </div> 
  553. ";
  554.         
  555.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  556.         
  557.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  558.     }
  559.     public function getTemplateName()
  560.     {
  561.         return "web/list.twig";
  562.     }
  563.     public function isTraitable()
  564.     {
  565.         return false;
  566.     }
  567.     public function getDebugInfo()
  568.     {
  569.         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,);
  570.     }
  571.     public function getSourceContext()
  572.     {
  573.         return new Source("{% extends 'default_frame.twig' %}
  574. {% block javascript %}{% endblock %}
  575. {% block stylesheet %}
  576. <style>
  577. .pluginCMBblog .item_blog_image {
  578.     width: 100% !important;
  579.     height: 248px;
  580.     object-fit: cover;
  581. }
  582. .pluginCMBblog .figure__main_image{
  583.     margin: 0;
  584. }
  585. .pluginCMBblog .ec-topicpath .ec-topicpath__item{
  586.     display: initial !important;
  587. }
  588. .pluginCMBblog .list_blog_cat li {
  589.     display: initial !important;
  590.     letter-spacing: 0.2rem;
  591.     border-right: 1px solid #ddd;
  592.     font-size: 16px;
  593. }
  594. .pluginCMBblog .list_category_link{
  595.     padding: 0 0.5rem;
  596. }
  597. .pluginCMBblog .list_blog .list_category_link{
  598.     color: #337ab7;
  599.     padding: 0 0.5rem;
  600. }
  601. .pluginCMBblog .blog_category li:last-child{
  602.     border: none;
  603. }
  604. .pluginCMBblog .blog_category{
  605.     margin: 0;
  606.     padding: 0;
  607. }
  608. .pluginCMBblog .blog_category li{
  609.     display: initial;
  610.     border-right: 1px solid #ddd;
  611. }
  612. .pluginCMBblog .list_blog_cat li:last-child {
  613.     border-right: none;
  614. }
  615. .pluginCMBblog .blog_title_h3{
  616.     font-size: 16px !important;
  617.     line-height: 1.4;  
  618.     margin-top: 10px;
  619.     word-break: break-word;
  620. }
  621. @media screen and (max-width: 768px){
  622. .pluginCMBblog .item_blog_image {
  623.     width: 100% !important;
  624.     height: 40vw;
  625.     object-fit: cover;
  626.     }
  627. }
  628. .news_title.new{
  629.     position:relative;
  630. }
  631. .news_title.new::before{
  632.     content: \"NEW\";
  633.     background-color:#c60a1c;
  634.     padding:0.3em;
  635.     margin:0 0.5em 0 0;
  636.     border-radius:0.3em;
  637.     font-size:10px;
  638. }
  639. </style>
  640. {% endblock %}
  641. {% block main %}
  642. {% set config = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Config').get() %}
  643. {% set blogs = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Blog').getList(1) %}
  644. {% set categoryLisst = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Category').getFrontCategoryList() %}
  645.     <div id=\"page_user_data\" class=\"ec-role pluginCMBblog\">
  646.         <div class=\"ak-header\">
  647.             <div class=\"ak-pageHeader\">
  648.                 <h1>NEWS</h1>
  649.             </div>
  650.         </div><!-- ak-header -->
  651.         <div class=\"ec-searchnavRole__topicpath\"  style=\"margin:0 0 2em 0;\">
  652. \t\t{# 20240805@hanari 出力順を任意にするために変更
  653.             <ol class=\"ec-topicpath list_blog_cat\">
  654.                 <li class=\"ec-topicpath__item\">
  655.                     <a href=\"{{ url('cm_blog_page_list') }}\">{{ '全て'|trans }}</a>
  656.                 </li>
  657.                 
  658. \t\t\t\t{% for category in categories %}
  659. \t\t\t\t
  660.                 <li class=\"{{category.class}}\">
  661.                     <a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  662.                         {{ category.getName|raw }}
  663.                     </a>
  664.                 </li>
  665.                 {% endfor %}
  666.             </ol>
  667. \t\t#}
  668.             <ol class=\"ec-topicpath list_blog_cat\">
  669.                 <li class=\"ec-topicpath__item\">
  670.                     <a href=\"{{ url('cm_blog_page_list') }}\">{{ '一覧'|trans }}</a>
  671.                 </li>
  672. \t\t\t\t{% for i in [3,1,2,0] %}
  673. \t\t\t\t<li class=\"{{categories[i].class}}\">
  674.                     <a href=\"{{ url('cm_blog_page_list', {categories: [categories[i].getId()]}) }}\" class=\"list_category_link\">
  675.                         {{ categories[i].getName|raw }}
  676.                     </a>
  677.                 </li>
  678.                 {% endfor %}
  679.             </ol>
  680.         </div>
  681. \t\t<div>
  682. \t\t{# dump(pagination) #}
  683. \t\t{# dump(pagination.params == null) #}
  684. \t\t{% if pagination.params == null or pagination.params[\"categories\"][0] is not defined %}
  685. \t\t{# 一覧表示 #}
  686. \t\t{# dump(pagination.params[\"categories\"][0]) #}
  687. \t\t\t<ul class=\"news_category\">
  688.                 {# for category in categories #}
  689.                 <li>
  690. \t\t\t\t{#
  691.                     <h2>
  692. \t\t\t\t\t<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  693.                         {{ category.getName|raw }}
  694.                     </a>
  695. \t\t\t\t\t</h2>
  696. \t\t\t\t#}
  697. \t\t\t\t\t<h2>一覧</h2>
  698. \t\t\t\t\t<ul class=\"news_list\">
  699. \t\t\t\t\t{# dump(category.id) #}
  700. \t\t\t\t\t{# set blogs = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Blog').getListNews(category.id,is_granted('ROLE_USER')) #}
  701. \t\t\t\t\t{% set blogs = repository('Plugin\\\\CMBlogPro42\\\\Entity\\\\Blog').getList() %}
  702. \t\t\t\t\t\t{# dump(blogs) #}
  703. \t\t\t\t\t\t{% for blog in pagination %}
  704. \t\t\t\t\t\t{% set blogCategoryId = 0 %}
  705. \t\t\t\t\t\t\t{# for blogCategory in blog.getBlogCategories #}
  706. \t\t\t\t\t\t\t{# 同一のカテゴリー の 場合 表示 #}
  707. \t\t\t\t\t\t\t{# if category.id == blogCategory.getCategory().getId() #}
  708. \t\t\t\t\t\t<li>
  709. \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
  710. \t\t\t\t\t\t\t\t{% if blog.linkurl != null %}
  711. \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') %}
  712. \t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
  713. \t\t\t\t\t\t\t\t\t{% else %}
  714. \t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
  715. \t\t\t\t\t\t\t\t\t{% endif %}
  716. \t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
  717.                                     {{ blog.getTitle|raw }}
  718. \t\t\t\t\t\t\t\t</a>
  719. \t\t\t\t\t\t\t\t{% else %}
  720. \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') %}
  721. \t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  722. \t\t\t\t\t\t\t\t\t{% else %}
  723. \t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  724. \t\t\t\t\t\t\t\t\t{% endif %}
  725. \t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
  726.                                     {{ blog.getTitle|raw }}
  727. \t\t\t\t\t\t\t\t</a>
  728. \t\t\t\t\t\t\t\t{% endif %}\t\t\t\t\t\t\t
  729. \t\t\t\t\t\t</li>
  730. \t\t\t\t\t\t\t{# endif #}
  731. \t\t\t\t\t\t\t{# endfor #}
  732. \t\t\t\t\t\t{% endfor %}
  733. \t\t\t\t\t\t{#
  734. \t\t\t\t\t\t<li class=\"more\">
  735. \t\t\t\t\t\t\t<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  736. \t\t\t\t\t\t\t\t過去の記事 >
  737. \t\t\t\t\t\t\t</a>
  738. \t\t\t\t\t\t</li>
  739. \t\t\t\t\t\t#}
  740. \t\t\t\t\t</ul>
  741.                 </li>
  742.             <div class=\"ec-pagerRole\">
  743.                 {% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'cm_blog_page_list'} %}
  744.             </div>
  745.                 {# endfor #}
  746. \t\t\t</ul>
  747. \t\t{% else %}{# 一覧表示 #}
  748. \t\t{# カテゴリー表示 #}
  749. \t\t\t{# dump(pagination) #}
  750. \t\t{# dump(pagination.params[\"categories\"][0]) #}
  751. \t\t{% set categoriesId = pagination.params[\"categories\"][0] %}
  752. \t\t\t<ul class=\"news_category\">
  753.                 {% for category in categories %}
  754. \t\t\t\t{% if categoriesId == category.id %}
  755.                 <li class=\"{{category.class}}\">
  756.                     <h2>
  757. \t\t\t\t\t<a href=\"{{ url('cm_blog_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  758.                         {{ category.getName|raw }}
  759.                     </a>
  760. \t\t\t\t\t</h2>
  761. \t\t\t\t\t<ul class=\"news_list\">
  762. \t\t\t\t\t\t{% for blog in pagination %}
  763. \t\t\t\t\t\t{% set blogCategoryId = 0 %}
  764. \t\t\t\t\t\t\t{% for blogCategory in blog.getBlogCategories %}
  765. \t\t\t\t\t\t\t{# 同一のカテゴリー の 場合 表示 #}
  766. \t\t\t\t\t\t\t{% if category.id == blogCategory.getCategory().getId() %}
  767.                         {% if is_granted('ROLE_USER') %}{# 会員限定 #}
  768. \t\t\t\t\t\t<li>
  769. \t\t\t\t\t\t\t<span class=\"news_release_date\">{{ blog.release_date|date_day }}</span>
  770. \t\t\t\t\t\t\t\t{% if blog.linkurl != null %}
  771. \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') %}
  772. \t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
  773. \t\t\t\t\t\t\t\t\t{% else %}
  774. \t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
  775. \t\t\t\t\t\t\t\t\t{% endif %}
  776. \t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
  777.                                     {{ blog.getTitle|raw }}
  778. \t\t\t\t\t\t\t\t</a>
  779. \t\t\t\t\t\t\t\t{% else %}
  780. \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') %}
  781. \t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  782. \t\t\t\t\t\t\t\t\t{% else %}
  783. \t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  784. \t\t\t\t\t\t\t\t\t{% endif %}
  785. \t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
  786.                                     {{ blog.getTitle|raw }}
  787. \t\t\t\t\t\t\t\t</a>
  788. \t\t\t\t\t\t\t\t{% endif %}\t\t\t\t\t\t\t\t
  789. \t\t\t\t\t\t</li>
  790.                         {% else %}{# 会員限定 一般 #}{% if blog.members != 1 %}
  791. \t\t\t\t\t\t<li>
  792. \t\t\t\t\t\t\t<span class=\"news_release_date\">{{ blog.release_date|date_day }}</span>
  793. \t\t\t\t\t\t\t\t{% if blog.linkurl != null %}
  794. \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') %}
  795. \t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
  796. \t\t\t\t\t\t\t\t\t{% else %}
  797. \t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ blog.linkurl }}\" target=\"_blank\">
  798. \t\t\t\t\t\t\t\t\t{% endif %}
  799. \t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
  800.                                     {{ blog.getTitle|raw }}
  801. \t\t\t\t\t\t\t\t</a>
  802. \t\t\t\t\t\t\t\t{% else %}
  803. \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') %}
  804. \t\t\t\t\t\t\t\t<a class=\"news_title new\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  805. \t\t\t\t\t\t\t\t\t{% else %}
  806. \t\t\t\t\t\t\t\t<a class=\"news_title\" href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  807. \t\t\t\t\t\t\t\t\t{% endif %}
  808. \t\t\t\t\t\t\t\t\t{# blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw #}
  809.                                     {{ blog.getTitle|raw }}
  810. \t\t\t\t\t\t\t\t</a>
  811. \t\t\t\t\t\t\t\t{% endif %}\t\t\t\t\t\t\t\t
  812. \t\t\t\t\t\t</li>
  813.                         {% endif %}{% endif %}
  814. \t\t\t\t\t\t\t{% endif %}
  815. \t\t\t\t\t\t\t{% endfor %}
  816. \t\t\t\t\t\t{% endfor %}
  817. \t\t\t\t\t</ul>
  818.                 </li>
  819. \t\t\t\t{% endif %}
  820.                 {% endfor %}
  821. \t\t\t</ul>
  822.             <div class=\"ec-pagerRole\">
  823.                 {% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'cm_blog_page_list'} %}
  824.             </div>
  825. \t\t{% endif %}{# カテゴリー表示 #}
  826. \t\t</div>
  827. \t\t
  828. {#
  829.         {% if pagination.totalItemCount > 0 %}
  830.             <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
  831.                 <ul class=\"ec-shelfGrid list_blog\">
  832.                     {% for blog in pagination %}
  833.                     <li class=\"ec-shelfGrid__item\">
  834.                         <a href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  835.                             <figure class=\"figure__main_image\">
  836.                             {% if blog.getMainListImage %}
  837.                                 <img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class='item_blog_image'></img>
  838.                                 {% else %}
  839.                                 <img src=\"{{ asset(''|no_image_product, 'save_image') }}\" class='item_blog_image'></img>
  840.                             {% endif %}
  841.                             </figure>
  842.                         </a>
  843.                         <h3 class=\"blog_title_h3\">
  844.                             <a href=\"{{ url('cm_blog_page_detail', {'id': blog.id}) }}\">
  845.                                 {{ blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw }}
  846.                             </a>
  847.                         </h3>  
  848.                         <ul class=\"blog_category\">
  849.                                 {% for category in blog.getBlogCategories %}
  850.                                     <li class=\"{{category.getCategory.class|raw}}\">
  851.                                         <a href=\"{{ url('cm_blog_page_list', {categories: [category.getCategory().getId()]}) }}\" class=\"list_category_link\">
  852.                                         {{ category.getCategory.getName|length > 15 ? category.getCategory.getName|striptags|replace({('&nbsp;'):' '})|slice(0, 15)|raw ~ '...' : category.getCategory.getName|raw }}
  853.                                         </a>
  854.                                     </li>
  855.                                 {% endfor %}
  856.                         </ul>
  857.                     </li>
  858.                     {% endfor %}
  859.                 </ul>
  860.             </div>
  861.             <div class=\"ec-pagerRole\">
  862.                 {% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'cm_blog_page_list'} %}
  863.             </div>
  864.         {% endif %}
  865. #}
  866.     </div> 
  867. {% endblock %}""web/list.twig""/home/akracing/www/akracing.dev/app/template/akracing/web/list.twig");
  868.     }
  869.     
  870.     public function checkSecurity()
  871.     {
  872.         static $tags = array("set" => 84"for" => 116"if" => 128"include" => 187);
  873.         static $filters = array("escape" => 114"trans" => 114"raw" => 119"date_day" => 153"date" => 155"date_modify" => 155);
  874.         static $functions = array("repository" => 84"url" => 114"is_granted" => 211);
  875.         try {
  876.             $this->sandbox->checkSecurity(
  877.                 ['set''for''if''include'],
  878.                 ['escape''trans''raw''date_day''date''date_modify'],
  879.                 ['repository''url''is_granted']
  880.             );
  881.         } catch (SecurityError $e) {
  882.             $e->setSourceContext($this->source);
  883.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  884.                 $e->setTemplateLine($tags[$e->getTagName()]);
  885.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  886.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  887.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  888.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  889.             }
  890.             throw $e;
  891.         }
  892.     }
  893. }