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