var/cache/dev/twig/a2/a231a7015cfcd2461f02b86cb3ebf4debc50d4566d39f2077e3c88401e10aaf7.php line 50

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. /* blog/list.twig */
  14. class __TwigTemplate_af7c576ef2be7a4e8d99eb9139e3b48a6e49a8fa4574a6962b1bfdc07095ec43 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.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/list.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/list.twig"));
  40.         $this->parent $this->loadTemplate("default_frame.twig""blog/list.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_javascript($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_stylesheet($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  68.         // line 6
  69.         echo "<style>
  70. .pluginCMBblog .item_blog_image {
  71.     width: 100% !important;
  72.     height: 248px;
  73.     object-fit: cover;
  74. }
  75. .pluginCMBblog .figure__main_image{
  76.     margin: 0;
  77. }
  78. .pluginCMBblog .ec-topicpath .ec-topicpath__item{
  79.     display: initial !important;
  80. }
  81. .pluginCMBblog .list_blog_cat li {
  82.     display: initial !important;
  83.     letter-spacing: 0.2rem;
  84.     border-right: 1px solid #ddd;
  85.     font-size: 16px;
  86. }
  87. .pluginCMBblog .list_category_link{
  88.     padding: 0 0.5rem;
  89. }
  90. .pluginCMBblog .list_blog .list_category_link{
  91.     color: #337ab7;
  92.     padding: 0 0.5rem;
  93. }
  94. .pluginCMBblog .blog_category li:last-child{
  95.     border: none;
  96. }
  97. .pluginCMBblog .blog_category{
  98.     margin: 0;
  99.     padding: 0;
  100. }
  101. .pluginCMBblog .blog_category li{
  102.     display: initial;
  103.     border-right: 1px solid #ddd;
  104. }
  105. .pluginCMBblog .list_blog_cat li:last-child {
  106.     border-right: none;
  107. }
  108. .pluginCMBblog .blog_title_h3{
  109.     font-size: 16px !important;
  110.     line-height: 1.4;
  111.     margin-top: 10px;
  112.     word-break: break-word;
  113. }
  114. .w-100 {
  115.     width: 100%
  116. }
  117. .side-bar > div {
  118.     width: 90%;
  119.     margin:40px auto;
  120. }
  121. h5.tag-header {
  122.   padding: 1rem 2rem;
  123.   border-left: 4px solid #000;
  124. }
  125. .month-archive a {
  126.     text-decoration: underline;
  127.     display: block;
  128.     padding: 3px 27px;
  129. }
  130. .archive-link-div {
  131.     max-height: 600px;
  132.     overflow-y: scroll;
  133. }
  134. .archive-link-div::-webkit-scrollbar {
  135.     display: none;
  136. }
  137. @media screen and (max-width: 768px){
  138. .pluginCMBblog .item_blog_image {
  139.     width: 100% !important;
  140.     height: 40vw;
  141.     object-fit: cover;
  142.     }
  143.     .side-bar > div {
  144.         width: 100%
  145.     }
  146. }
  147. @media only screen and (min-width: 768px) {
  148.     .side-bar {
  149.         width: 280px;
  150.         background-color: #f6f6f6;
  151.     }
  152.     .ec-role {
  153.         display: flex;
  154.         justify-content: flex-start
  155.     }
  156.     .mt-65 {
  157.         margin-top: 65px!important;
  158.     }
  159. }
  160. .blog-category-item {
  161.     color: #337ab7 !important;
  162. }
  163. .blog-category-item.is-selected {
  164.     color: rgb(82, 82, 99) !important;
  165. }
  166. .blog-category-item .list_category_link {
  167.     color: inherit;
  168. }
  169. </style>
  170. ";
  171.         
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  173.         
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  175.     }
  176.     // line 118
  177.     public function block_main($context, array $blocks = [])
  178.     {
  179.         $macros $this->macros;
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  181.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  182.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  184.         // line 119
  185.         $context["selectedCategoryIds"] = null;
  186.         // line 120
  187.         if (twig_in_filter("categories"twig_get_array_keys_filter((isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'120$this->source); })())))) {
  188.             // line 121
  189.             echo "    ";
  190.             $context["selectedCategoryIds"] = twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'121$this->source); })()), "categories", [], "any"falsefalsefalse121);
  191.         }
  192.         // line 123
  193.         echo "
  194.     <div class=\"ec-role pluginCMBblog content__inner\">
  195.         <div class=\"w-100\">
  196.             <div class=\"ec-searchnavRole__topicpath\">
  197.                 <ol class=\"ec-topicpath list_blog_cat\">
  198.                     ";
  199.         // line 129
  200.         echo "                    ";
  201.         // line 131
  202.         echo "                            ";
  203.         // line 132
  204.         echo "                            ";
  205.         // line 145
  206.         echo "
  207.                     <li class=\"blog-category-item ";
  208.         // line 146
  209.         echo (( !(null === (isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds"$context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.'146$this->source); })()))) ? (" ec-topicpath__item") : (" is-selected"));
  210.         echo "\" >
  211.                         <a href=\"";
  212.         // line 147
  213.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list");
  214.         echo "\" class=\"list_category_link\">";
  215.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  216.         echo "</a>
  217.                     </li>
  218.                     ";
  219.         // line 149
  220.         $context['_parent'] = $context;
  221.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'149$this->source); })()));
  222.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  223.             // line 150
  224.             echo "                        ";
  225.             // line 151
  226.             echo "                        ";
  227.             if ((twig_test_empty((isset($context["excludeCategoryIds"]) || array_key_exists("excludeCategoryIds"$context) ? $context["excludeCategoryIds"] : (function () { throw new RuntimeError('Variable "excludeCategoryIds" does not exist.'151$this->source); })())) || !twig_in_filter(twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse151), (isset($context["excludeCategoryIds"]) || array_key_exists("excludeCategoryIds"$context) ? $context["excludeCategoryIds"] : (function () { throw new RuntimeError('Variable "excludeCategoryIds" does not exist.'151$this->source); })())))) {
  228.                 // line 152
  229.                 echo "                            ";
  230.                 // line 153
  231.                 echo "                            ";
  232.                 if ( !(null === (isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds"$context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.'153$this->source); })()))) {
  233.                     // line 154
  234.                     echo "                                ";
  235.                     $context['_parent'] = $context;
  236.                     $context['_seq'] = twig_ensure_traversable((isset($context["selectedCategoryIds"]) || array_key_exists("selectedCategoryIds"$context) ? $context["selectedCategoryIds"] : (function () { throw new RuntimeError('Variable "selectedCategoryIds" does not exist.'154$this->source); })()));
  237.                     foreach ($context['_seq'] as $context["_key"] => $context["selectedCategoryId"]) {
  238.                         // line 155
  239.                         echo "                                    ";
  240.                         if (($context["selectedCategoryId"] != twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse155))) {
  241.                             // line 156
  242.                             echo "                                        <li class=\"";
  243.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "class", [], "any"falsefalsefalse156), "html"nulltrue);
  244.                             echo " blog-category-item\">
  245.                                             <a href=\"";
  246.                             // line 157
  247.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [=> twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse157)]]), "html"nulltrue);
  248.                             echo "\" class=\"list_category_link\">
  249.                                                 ";
  250.                             // line 158
  251.                             echo twig_get_attribute($this->env$this->source$context["category"], "getName", [], "any"falsefalsefalse158);
  252.                             echo "
  253.                                             </a>
  254.                                         </li>
  255.                                     ";
  256.                         } else {
  257.                             // line 162
  258.                             echo "                                      <li class=\"";
  259.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "class", [], "any"falsefalsefalse162), "html"nulltrue);
  260.                             echo " blog-category-item is-selected\">
  261.                                           <a href=\"";
  262.                             // line 163
  263.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [=> twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse163)]]), "html"nulltrue);
  264.                             echo "\" class=\"list_category_link\">
  265.                                               ";
  266.                             // line 164
  267.                             echo twig_get_attribute($this->env$this->source$context["category"], "getName", [], "any"falsefalsefalse164);
  268.                             echo "
  269.                                           </a>
  270.                                       </li>
  271.                                     ";
  272.                         }
  273.                         // line 168
  274.                         echo "                                ";
  275.                     }
  276.                     $_parent $context['_parent'];
  277.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['selectedCategoryId'], $context['_parent'], $context['loop']);
  278.                     $context array_intersect_key($context$_parent) + $_parent;
  279.                     // line 169
  280.                     echo "                            ";
  281.                 } else {
  282.                     // line 170
  283.                     echo "
  284.                             <li class=\"";
  285.                     // line 171
  286.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "class", [], "any"falsefalsefalse171), "html"nulltrue);
  287.                     echo " blog-category-item\">
  288.                                 <a href=\"";
  289.                     // line 172
  290.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [=> twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse172)]]), "html"nulltrue);
  291.                     echo "\" class=\"list_category_link\">
  292.                                     ";
  293.                     // line 173
  294.                     echo twig_get_attribute($this->env$this->source$context["category"], "getName", [], "any"falsefalsefalse173);
  295.                     echo "
  296.                                 </a>
  297.                             </li>
  298.                             ";
  299.                 }
  300.                 // line 177
  301.                 echo "                        ";
  302.             }
  303.             // line 178
  304.             echo "                    ";
  305.         }
  306.         $_parent $context['_parent'];
  307.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  308.         $context array_intersect_key($context$_parent) + $_parent;
  309.         // line 179
  310.         echo "                </ol>
  311.             </div>
  312.             ";
  313.         // line 182
  314.         if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'182$this->source); })()), "totalItemCount", [], "any"falsefalsefalse182) > 0)) {
  315.             // line 183
  316.             echo "                <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
  317.                     <ul class=\"ec-shelfGrid list_blog\">
  318.                         ";
  319.             // line 185
  320.             $context['_parent'] = $context;
  321.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'185$this->source); })()));
  322.             foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  323.                 // line 186
  324.                 echo "                        <li class=\"ec-shelfGrid__item\">
  325.                             <a href=\"";
  326.                 // line 187
  327.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_detail/{id}", ["id" => ((twig_get_attribute($this->env$this->source$context["blog"], "slug", [], "any"falsefalsefalse187)) ? (twig_get_attribute($this->env$this->source$context["blog"], "slug", [], "any"falsefalsefalse187)) : (twig_get_attribute($this->env$this->source$context["blog"], "id", [], "any"falsefalsefalse187)))]), "html"nulltrue);
  328.                 echo "\">
  329.                                 <figure class=\"figure__main_image\">
  330.                                 ";
  331.                 // line 189
  332.                 if (twig_get_attribute($this->env$this->source$context["blog"], "getMainListImage", [], "any"falsefalsefalse189)) {
  333.                     // line 190
  334.                     echo "                                    <img src=\"";
  335.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["blog"], "getMainListImage", [], "any"falsefalsefalse190)), "save_image"), "html"nulltrue);
  336.                     echo "\" class='item_blog_image'></img>
  337.                                     ";
  338.                 } else {
  339.                     // line 192
  340.                     echo "                                    <img src=\"";
  341.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  342.                     echo "\" class='item_blog_image'></img>
  343.                                 ";
  344.                 }
  345.                 // line 194
  346.                 echo "                                </figure>
  347.                             </a>
  348.                             <a href=\"";
  349.                 // line 196
  350.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_detail/{id}", ["id" => ((twig_get_attribute($this->env$this->source$context["blog"], "slug", [], "any"falsefalsefalse196)) ? (twig_get_attribute($this->env$this->source$context["blog"], "slug", [], "any"falsefalsefalse196)) : (twig_get_attribute($this->env$this->source$context["blog"], "id", [], "any"falsefalsefalse196)))]), "html"nulltrue);
  351.                 echo "\">
  352.                               <h3 class=\"blog_title_h3\">";
  353.                 // line 197
  354.                 (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsefalse197)) > 45)) ? (print (twig_escape_filter($this->env, (twig_slice($this->envtwig_replace_filter(twig_striptags(twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsefalse197)), ["&nbsp;" => " "]), 045) . "..."), "html"nulltrue))) : (print (twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsefalse197))));
  355.                 echo "</h3>
  356.                             </a>
  357.                             <p class=\"blog_day\">";
  358.                 // line 199
  359.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsefalse199), "Y年m月d日"), "html"nulltrue);
  360.                 echo "</p>
  361.                             <ul class=\"blog_category\">
  362.                                     ";
  363.                 // line 201
  364.                 $context['_parent'] = $context;
  365.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["blog"], "getBlogCategories", [], "any"falsefalsefalse201));
  366.                 foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  367.                     // line 202
  368.                     echo "                                        <li class=\"";
  369.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse202), "class", [], "any"falsefalsefalse202), "html"nulltrue);
  370.                     echo "\">
  371.                                             <a href=\"";
  372.                     // line 203
  373.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["categories" => [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "method"falsefalsefalse203), "getId", [], "method"falsefalsefalse203)]]), "html"nulltrue);
  374.                     echo "\" class=\"list_category_link\">
  375.                                             ";
  376.                     // line 204
  377.                     (((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse204), "getName", [], "any"falsefalsefalse204)) > 15)) ? (print (twig_escape_filter($this->env, (twig_slice($this->envtwig_replace_filter(twig_striptags(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse204), "getName", [], "any"falsefalsefalse204)), ["&nbsp;" => " "]), 015) . "..."), "html"nulltrue))) : (print (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse204), "getName", [], "any"falsefalsefalse204))));
  378.                     echo "
  379.                                             </a>
  380.                                         </li>
  381.                                     ";
  382.                 }
  383.                 $_parent $context['_parent'];
  384.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  385.                 $context array_intersect_key($context$_parent) + $_parent;
  386.                 // line 208
  387.                 echo "                            </ul>
  388.                         </li>
  389.                         ";
  390.             }
  391.             $_parent $context['_parent'];
  392.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  393.             $context array_intersect_key($context$_parent) + $_parent;
  394.             // line 211
  395.             echo "                    </ul>
  396.                 </div>
  397.                 <div class=\"ec-pagerRole\">
  398.                     ";
  399.             // line 214
  400.             $this->loadTemplate("pager.twig""blog/list.twig"214)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'214$this->source); })()), "paginationData", [], "any"falsefalsefalse214), "routes" => "blog_list"]));
  401.             // line 215
  402.             echo "                </div>
  403.             ";
  404.         }
  405.         // line 217
  406.         echo "
  407.             <div class=\"page__inner mt-50\">
  408.               <h2 class=\"mod_movie-h2\">
  409.                 ブログ一覧
  410.               </h2>
  411.               <div class=\"mod_movie-btn-more\">
  412.                 <a href=\"";
  413.         // line 223
  414.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list");
  415.         echo "\">ブログ一覧に戻る</a>
  416.               </div>
  417.             </div>
  418.         </div>
  419.         ";
  420.         // line 229
  421.         echo "        ";
  422.         // line 230
  423.         echo "        ";
  424.         // line 231
  425.         echo "        ";
  426.         // line 232
  427.         echo "        ";
  428.         // line 233
  429.         echo "        ";
  430.         // line 234
  431.         echo "        ";
  432.         // line 235
  433.         echo "        ";
  434.         // line 236
  435.         echo "        ";
  436.         // line 237
  437.         echo "        ";
  438.         // line 238
  439.         echo "    </div>
  440. ";
  441.         
  442.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  443.         
  444.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  445.     }
  446.     public function getTemplateName()
  447.     {
  448.         return "blog/list.twig";
  449.     }
  450.     public function isTraitable()
  451.     {
  452.         return false;
  453.     }
  454.     public function getDebugInfo()
  455.     {
  456.         return array (  474 => 238,  472 => 237,  470 => 236,  468 => 235,  466 => 234,  464 => 233,  462 => 232,  460 => 231,  458 => 230,  456 => 229,  448 => 223,  440 => 217,  436 => 215,  434 => 214,  429 => 211,  421 => 208,  411 => 204,  407 => 203,  402 => 202,  398 => 201,  393 => 199,  388 => 197,  384 => 196,  380 => 194,  374 => 192,  368 => 190,  366 => 189,  361 => 187,  358 => 186,  354 => 185,  350 => 183,  348 => 182,  343 => 179,  337 => 178,  334 => 177,  327 => 173,  323 => 172,  319 => 171,  316 => 170,  313 => 169,  307 => 168,  300 => 164,  296 => 163,  291 => 162,  284 => 158,  280 => 157,  275 => 156,  272 => 155,  267 => 154,  264 => 153,  262 => 152,  259 => 151,  257 => 150,  253 => 149,  246 => 147,  242 => 146,  239 => 145,  237 => 132,  235 => 131,  233 => 129,  226 => 123,  222 => 121,  220 => 120,  218 => 119,  208 => 118,  88 => 6,  78 => 5,  60 => 3,  37 => 1,);
  457.     }
  458.     public function getSourceContext()
  459.     {
  460.         return new Source("{% extends 'default_frame.twig' %}
  461. {% block javascript %}{% endblock %}
  462. {% block stylesheet %}
  463. <style>
  464. .pluginCMBblog .item_blog_image {
  465.     width: 100% !important;
  466.     height: 248px;
  467.     object-fit: cover;
  468. }
  469. .pluginCMBblog .figure__main_image{
  470.     margin: 0;
  471. }
  472. .pluginCMBblog .ec-topicpath .ec-topicpath__item{
  473.     display: initial !important;
  474. }
  475. .pluginCMBblog .list_blog_cat li {
  476.     display: initial !important;
  477.     letter-spacing: 0.2rem;
  478.     border-right: 1px solid #ddd;
  479.     font-size: 16px;
  480. }
  481. .pluginCMBblog .list_category_link{
  482.     padding: 0 0.5rem;
  483. }
  484. .pluginCMBblog .list_blog .list_category_link{
  485.     color: #337ab7;
  486.     padding: 0 0.5rem;
  487. }
  488. .pluginCMBblog .blog_category li:last-child{
  489.     border: none;
  490. }
  491. .pluginCMBblog .blog_category{
  492.     margin: 0;
  493.     padding: 0;
  494. }
  495. .pluginCMBblog .blog_category li{
  496.     display: initial;
  497.     border-right: 1px solid #ddd;
  498. }
  499. .pluginCMBblog .list_blog_cat li:last-child {
  500.     border-right: none;
  501. }
  502. .pluginCMBblog .blog_title_h3{
  503.     font-size: 16px !important;
  504.     line-height: 1.4;
  505.     margin-top: 10px;
  506.     word-break: break-word;
  507. }
  508. .w-100 {
  509.     width: 100%
  510. }
  511. .side-bar > div {
  512.     width: 90%;
  513.     margin:40px auto;
  514. }
  515. h5.tag-header {
  516.   padding: 1rem 2rem;
  517.   border-left: 4px solid #000;
  518. }
  519. .month-archive a {
  520.     text-decoration: underline;
  521.     display: block;
  522.     padding: 3px 27px;
  523. }
  524. .archive-link-div {
  525.     max-height: 600px;
  526.     overflow-y: scroll;
  527. }
  528. .archive-link-div::-webkit-scrollbar {
  529.     display: none;
  530. }
  531. @media screen and (max-width: 768px){
  532. .pluginCMBblog .item_blog_image {
  533.     width: 100% !important;
  534.     height: 40vw;
  535.     object-fit: cover;
  536.     }
  537.     .side-bar > div {
  538.         width: 100%
  539.     }
  540. }
  541. @media only screen and (min-width: 768px) {
  542.     .side-bar {
  543.         width: 280px;
  544.         background-color: #f6f6f6;
  545.     }
  546.     .ec-role {
  547.         display: flex;
  548.         justify-content: flex-start
  549.     }
  550.     .mt-65 {
  551.         margin-top: 65px!important;
  552.     }
  553. }
  554. .blog-category-item {
  555.     color: #337ab7 !important;
  556. }
  557. .blog-category-item.is-selected {
  558.     color: rgb(82, 82, 99) !important;
  559. }
  560. .blog-category-item .list_category_link {
  561.     color: inherit;
  562. }
  563. </style>
  564. {% endblock %}
  565. {% block main %}
  566. {% set selectedCategoryIds = null %}
  567. {% if 'categories' in searchData|keys %}
  568.     {% set selectedCategoryIds = searchData.categories %}
  569. {% endif %}
  570.     <div class=\"ec-role pluginCMBblog content__inner\">
  571.         <div class=\"w-100\">
  572.             <div class=\"ec-searchnavRole__topicpath\">
  573.                 <ol class=\"ec-topicpath list_blog_cat\">
  574.                     {# 選択済みカテゴリを優先する #}
  575.                     {# {% if selectedCategoryIds is not null %}
  576.                         {% for category in categories %} #}
  577.                             {# 除外カテゴリに指定されている場合は表示しない #}
  578.                             {# {% if excludeCategoryIds is empty or category.getId() not in excludeCategoryIds %}
  579.                                 {% for selectedCategoryId in selectedCategoryIds %}
  580.                                     {% if selectedCategoryId == category.getId() %}
  581.                                     <li class=\"{{category.class}} blog-category-item is-selected\">
  582.                                         <a href=\"{{ url('blog_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  583.                                             {{ category.getName|raw }}
  584.                                         </a>
  585.                                     </li>
  586.                                     {% endif %}
  587.                                 {% endfor %}
  588.                             {% endif %}
  589.                         {% endfor %}
  590.                     {% endif %} #}
  591.                     <li class=\"blog-category-item {{ selectedCategoryIds is not null ? ' ec-topicpath__item' : ' is-selected' }}\" >
  592.                         <a href=\"{{ url('blog_list') }}\" class=\"list_category_link\">{{ '全て'|trans }}</a>
  593.                     </li>
  594.                     {% for category in categories %}
  595.                         {# 除外カテゴリに指定されている場合は表示しない #}
  596.                         {% if excludeCategoryIds is empty or category.getId() not in excludeCategoryIds %}
  597.                             {# 検索条件のカテゴリにデザイン用のclassを付与 #}
  598.                             {% if selectedCategoryIds is not null %}
  599.                                 {% for selectedCategoryId in selectedCategoryIds %}
  600.                                     {% if selectedCategoryId != category.getId() %}
  601.                                         <li class=\"{{category.class}} blog-category-item\">
  602.                                             <a href=\"{{ url('blog_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  603.                                                 {{ category.getName|raw }}
  604.                                             </a>
  605.                                         </li>
  606.                                     {% else %}
  607.                                       <li class=\"{{category.class}} blog-category-item is-selected\">
  608.                                           <a href=\"{{ url('blog_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  609.                                               {{ category.getName|raw }}
  610.                                           </a>
  611.                                       </li>
  612.                                     {% endif %}
  613.                                 {% endfor %}
  614.                             {% else %}
  615.                             <li class=\"{{category.class}} blog-category-item\">
  616.                                 <a href=\"{{ url('blog_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  617.                                     {{ category.getName|raw }}
  618.                                 </a>
  619.                             </li>
  620.                             {% endif %}
  621.                         {% endif %}
  622.                     {% endfor %}
  623.                 </ol>
  624.             </div>
  625.             {% if pagination.totalItemCount > 0 %}
  626.                 <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
  627.                     <ul class=\"ec-shelfGrid list_blog\">
  628.                         {% for blog in pagination %}
  629.                         <li class=\"ec-shelfGrid__item\">
  630.                             <a href=\"{{ url('blog_detail/{id}', {'id': blog.slug ? blog.slug : blog.id}) }}\">
  631.                                 <figure class=\"figure__main_image\">
  632.                                 {% if blog.getMainListImage %}
  633.                                     <img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class='item_blog_image'></img>
  634.                                     {% else %}
  635.                                     <img src=\"{{ asset(''|no_image_product, 'save_image') }}\" class='item_blog_image'></img>
  636.                                 {% endif %}
  637.                                 </figure>
  638.                             </a>
  639.                             <a href=\"{{ url('blog_detail/{id}', {'id': blog.slug ? blog.slug : blog.id}) }}\">
  640.                               <h3 class=\"blog_title_h3\">{{ blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw }}</h3>
  641.                             </a>
  642.                             <p class=\"blog_day\">{{blog.release_date|date('Y年m月d日')}}</p>
  643.                             <ul class=\"blog_category\">
  644.                                     {% for category in blog.getBlogCategories %}
  645.                                         <li class=\"{{category.getCategory.class}}\">
  646.                                             <a href=\"{{ url('blog_list', {categories: [category.getCategory().getId()]}) }}\" class=\"list_category_link\">
  647.                                             {{ category.getCategory.getName|length > 15 ? category.getCategory.getName|striptags|replace({('&nbsp;'):' '})|slice(0, 15)|raw ~ '...' : category.getCategory.getName|raw }}
  648.                                             </a>
  649.                                         </li>
  650.                                     {% endfor %}
  651.                             </ul>
  652.                         </li>
  653.                         {% endfor %}
  654.                     </ul>
  655.                 </div>
  656.                 <div class=\"ec-pagerRole\">
  657.                     {% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'blog_list'} %}
  658.                 </div>
  659.             {% endif %}
  660.             <div class=\"page__inner mt-50\">
  661.               <h2 class=\"mod_movie-h2\">
  662.                 ブログ一覧
  663.               </h2>
  664.               <div class=\"mod_movie-btn-more\">
  665.                 <a href=\"{{ url('blog_list') }}\">ブログ一覧に戻る</a>
  666.               </div>
  667.             </div>
  668.         </div>
  669.         {#<div class=\"side-bar\">#}
  670.         {#    <div class=\"mt-65 month-archive\">#}
  671.         {#        <h5 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.month_archive'|trans }}</h5>#}
  672.         {#        <div class=\"archive-link-div\">#}
  673.         {#            {% for key, month in monthArr %}#}
  674.         {#                <a href=\"{{ url('cm_blog_pro_page_list', {date: key}) }}\">{{ month }}</a>#}
  675.         {#            {% endfor %}#}
  676.         {#        </div>#}
  677.         {#    </div>#}
  678.         {#</div>#}
  679.     </div>
  680. {% endblock %}
  681. ""blog/list.twig""/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/template/default/blog/list.twig");
  682.     }
  683. }