var/cache/dev/twig/52/52ba0f5042dcc5f97056a73f305808b6.php line 40

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_f8caf6cea83a2d267982428608b96675 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/list.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_javascript($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_stylesheet($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  68.         // line 6
  69.         echo "<style>
  70. /*
  71. .pluginCMBblog .item_blog_image {
  72.     width: 100%;
  73.     height: 248px;
  74.     object-fit: cover;
  75. }
  76. */
  77. .pluginCMBblog .item_blog_image {
  78.     width: 100%;
  79.     height: 190px;
  80.     object-fit: cover;
  81. }
  82. .pluginCMBblog .figure__main_image {
  83.     margin: 0;
  84.     padding: 0;
  85.     display: grid;
  86.     justify-content: stretch;
  87.     align-items: flex-end;
  88. }
  89. .pluginCMBblog .item_blog_image,
  90. .pluginCMBblog figcaption {
  91.     padding: 0;
  92.     grid-column: 1/2;
  93.     grid-row: 1/2;
  94. }
  95. .pluginCMBblog figcaption {
  96.     text-align: center;
  97.     padding: 0.4rem 2rem;
  98.     font-size: 1rem;
  99.     background-color: rgba(0,0,0,.7);
  100.     color: #fff;
  101.     overflow: hidden;
  102.     white-space: normal;
  103.     word-wrap: break-word;
  104. }
  105. .pluginCMBblog .ec-topicpath .ec-topicpath__item {
  106.     display: initial;
  107. }
  108. .pluginCMBblog .list_blog_cat li {
  109.     display: initial;
  110.     letter-spacing: 0.2rem;
  111.     font-size: 16px;
  112.     padding: 0 15px;
  113. }
  114. .pluginCMBblog .list_blog_cat li:nth-child(n+2) {
  115.     border-left: 2px solid #ccc;
  116. }
  117. .pluginCMBblog .list_blog .list_category_link {
  118.     color: #337ab7;
  119.     padding: .2rem 0.5rem;
  120.     font-size: 80%;
  121.     border-right: 1px solid #ddd;
  122. }
  123. .pluginCMBblog .blog_category {
  124.     margin: 0;
  125.     padding: 0;
  126.     display: flex;
  127.     flex-wrap: wrap;
  128. }
  129. .pluginCMBblog .blog_category li {
  130.     display: initial;
  131. }
  132. .pluginCMBblog .blog_category li:last-child .list_category_link {
  133.     border: none;
  134. }
  135. .pluginCMBblog .blog_title_h3 {
  136.     font-size: 16px;
  137.     line-height: 1.4;  
  138.     margin-top: 10px;
  139.     margin-bottom: 1px;
  140.     word-break: break-word;
  141. }
  142. .pluginCMBblog .blog_release_date {
  143.     font-size: 1rem;
  144.     margin-bottom: 1rem;
  145. }
  146. .w-100 {
  147.     width: 100%
  148. }
  149. .side-bar > div {
  150.     width: 90%;
  151.     margin: 40px auto;
  152. }
  153. h5.tag-header {
  154.   padding: 1rem 2rem;
  155.   border-left: 4px solid #000;
  156. }
  157. .month-archive a {
  158.     text-decoration: underline;
  159.     display: block;
  160.     padding: 3px 27px;
  161. }
  162. .archive-link-div {
  163.     max-height: 600px;
  164.     overflow-y: scroll;
  165. }
  166. .archive-link-div::-webkit-scrollbar {
  167.     display: none;
  168. }
  169. @media screen and (max-width: 768px){
  170.     .pluginCMBblog .item_blog_image {
  171.         width: 100%;
  172.         height: 40vw;
  173.         object-fit: cover;
  174.     }
  175.     .side-bar > div {
  176.         width: 100%
  177.     }
  178. }
  179. @media only screen and (min-width: 768px) {
  180.     .side-bar {
  181.         width: 280px;
  182.         background-color: #f6f6f6;
  183.     }
  184. /*▼RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▼*/
  185. /*
  186.     .ec-role {
  187.         display: flex;
  188.         justify-content: flex-start
  189.     }
  190. */
  191.     .blog_box {
  192.         display: flex;
  193.         justify-content: flex-start
  194.     }
  195. /*▲RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▲*/
  196.     .mt-65 {
  197.         margin-top: 65px;
  198.     }
  199. }
  200. </style>
  201. ";
  202.         
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  204.         
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206.     }
  207.     // line 142
  208.     public function block_main($context, array $blocks = [])
  209.     {
  210.         $macros $this->macros;
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  213.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  215.         // line 143
  216.         echo "    <div class=\"ec-role pluginCMBblog\">
  217.         <div class=\"blog_box\">
  218.             <div class=\"w-100\">
  219.                 <div class=\"ec-searchnavRole__topicpath\">
  220.                     <ol class=\"ec-topicpath list_blog_cat\">
  221.                         <li class=\"ec-topicpath__item\">
  222.                             <a href=\"";
  223.         // line 149
  224.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_list");
  225.         echo "\">";
  226.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  227.         echo "</a>
  228.                         </li>
  229.                         ";
  230.         // line 151
  231.         $context['_parent'] = $context;
  232.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'151$this->source); })()));
  233.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  234.             // line 152
  235.             echo "                    
  236.                         <li class=\"";
  237.             // line 153
  238.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "class", [], "any"falsefalsefalse153), "html"nulltrue);
  239.             echo "\">
  240.                             <a href=\"";
  241.             // line 154
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_list", ["categories" => [=> twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse154)]]), "html"nulltrue);
  243.             echo "\" class=\"list_category_link\">
  244.                                 ";
  245.             // line 155
  246.             echo twig_get_attribute($this->env$this->source$context["category"], "getName", [], "any"falsefalsefalse155);
  247.             echo "
  248.                             </a>
  249.                         </li>
  250.                         ";
  251.         }
  252.         $_parent $context['_parent'];
  253.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  254.         $context array_intersect_key($context$_parent) + $_parent;
  255.         // line 159
  256.         echo "                    </ol>
  257.                 </div>
  258.         
  259.                 ";
  260.         // line 162
  261.         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.'162$this->source); })()), "totalItemCount", [], "any"falsefalsefalse162) > 0)) {
  262.             // line 163
  263.             echo "                    <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
  264.                         <ul class=\"ec-shelfGrid list_blog\">
  265.                             ";
  266.             // line 165
  267.             $context['_parent'] = $context;
  268.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'165$this->source); })()));
  269.             foreach ($context['_seq'] as $context["_key"] => $context["blog"]) {
  270.                 // line 166
  271.                 echo "                            <li class=\"ec-shelfGrid__item\">
  272.                                 <a href=\"";
  273.                 // line 167
  274.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_detail", ["id" => ((twig_get_attribute($this->env$this->source$context["blog"], "slug", [], "any"falsefalsefalse167)) ? (twig_get_attribute($this->env$this->source$context["blog"], "slug", [], "any"falsefalsefalse167)) : (twig_get_attribute($this->env$this->source$context["blog"], "id", [], "any"falsefalsefalse167)))]), "html"nulltrue);
  275.                 echo "\">
  276.                                     <figure class=\"figure__main_image\">
  277.                                         ";
  278.                 // line 169
  279.                 if (twig_get_attribute($this->env$this->source$context["blog"], "getMainListImage", [], "any"falsefalsefalse169)) {
  280.                     // line 170
  281.                     echo "                                            <img src=\"";
  282.                     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"falsefalsefalse170)), "save_image"), "html"nulltrue);
  283.                     echo "\" class='item_blog_image' />
  284.                                         ";
  285.                 } else {
  286.                     // line 172
  287.                     echo "                                            <img src=\"";
  288.                     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);
  289.                     echo "\" class='item_blog_image' />
  290.                                         ";
  291.                 }
  292.                 // line 174
  293.                 echo "                                        ";
  294.                 if (twig_get_attribute($this->env$this->source$context["blog"], "getFigCaption", [], "any"falsefalsefalse174)) {
  295.                     // line 175
  296.                     echo "                                            <figcaption>";
  297.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "getFigCaption", [], "any"falsefalsefalse175), "html"nulltrue);
  298.                     echo "</figcaption>
  299.                                         ";
  300.                 }
  301.                 // line 177
  302.                 echo "                                    </figure>
  303.                                 </a>
  304.                                 <h3 class=\"blog_title_h3\">";
  305.                 // line 179
  306.                 (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsefalse179)) > 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"falsefalsefalse179)), ["&nbsp;" => " "]), 045) . "..."), "html"nulltrue))) : (print (twig_get_attribute($this->env$this->source$context["blog"], "getTitle", [], "any"falsefalsefalse179))));
  307.                 echo "</h3>  
  308.                                 <div class=\"blog_release_date\">公開日:";
  309.                 // line 180
  310.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "release_date", [], "any"falsefalsefalse180), "Y年m月d日"), "html"nulltrue);
  311.                 echo "</div>
  312.                                 <ul class=\"blog_category\">
  313.                                         ";
  314.                 // line 182
  315.                 $context['_parent'] = $context;
  316.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["blog"], "getBlogCategories", [], "any"falsefalsefalse182));
  317.                 foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  318.                     // line 183
  319.                     echo "                                            <li class=\"";
  320.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse183), "class", [], "any"falsefalsefalse183), "html"nulltrue);
  321.                     echo "\">
  322.                                                 <a href=\"";
  323.                     // line 184
  324.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_list", ["categories" => [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "method"falsefalsefalse184), "getId", [], "method"falsefalsefalse184)]]), "html"nulltrue);
  325.                     echo "\" class=\"list_category_link\">
  326.                                                 ";
  327.                     // line 185
  328.                     (((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse185), "getName", [], "any"falsefalsefalse185)) > 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"falsefalsefalse185), "getName", [], "any"falsefalsefalse185)), ["&nbsp;" => " "]), 015) . "..."), "html"nulltrue))) : (print (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse185), "getName", [], "any"falsefalsefalse185))));
  329.                     echo "
  330.                                                 </a>
  331.                                             </li>
  332.                                         ";
  333.                 }
  334.                 $_parent $context['_parent'];
  335.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  336.                 $context array_intersect_key($context$_parent) + $_parent;
  337.                 // line 188
  338.                 echo "        
  339.                                 </ul>
  340.                             </li>
  341.                             ";
  342.             }
  343.             $_parent $context['_parent'];
  344.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blog'], $context['_parent'], $context['loop']);
  345.             $context array_intersect_key($context$_parent) + $_parent;
  346.             // line 192
  347.             echo "                        </ul>
  348.                     </div>
  349.                     <div class=\"ec-pagerRole\">
  350.                         ";
  351.             // line 195
  352.             $this->loadTemplate("pager.twig""blog/list.twig"195)->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.'195$this->source); })()), "paginationData", [], "any"falsefalsefalse195), "routes" => "cm_blog_pro_page_list"]));
  353.             // line 196
  354.             echo "                    </div>
  355.                 ";
  356.         }
  357.         // line 198
  358.         echo "            </div>
  359.             <div class=\"side-bar\">
  360.                 <div class=\"mt-65 month-archive\">
  361.                     <h5 class=\"tag-header\">";
  362.         // line 201
  363.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("plg.CMBlogPro.blog.month_archive"), "html"nulltrue);
  364.         echo "</h5>
  365.                     <div class=\"archive-link-div\">
  366.                         ";
  367.         // line 203
  368.         $context['_parent'] = $context;
  369.         $context['_seq'] = twig_ensure_traversable((isset($context["monthArr"]) || array_key_exists("monthArr"$context) ? $context["monthArr"] : (function () { throw new RuntimeError('Variable "monthArr" does not exist.'203$this->source); })()));
  370.         foreach ($context['_seq'] as $context["key"] => $context["month"]) {
  371.             // line 204
  372.             echo "                            <a href=\"";
  373.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_list", ["date" => $context["key"]]), "html"nulltrue);
  374.             echo "\">";
  375.             echo twig_escape_filter($this->env$context["month"], "html"nulltrue);
  376.             echo "</a>
  377.                         ";
  378.         }
  379.         $_parent $context['_parent'];
  380.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['month'], $context['_parent'], $context['loop']);
  381.         $context array_intersect_key($context$_parent) + $_parent;
  382.         // line 206
  383.         echo "                    </div>
  384.                 </div>
  385.             </div>
  386.         </div>
  387.     </div>
  388. ";
  389.         
  390.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  391.         
  392.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  393.     }
  394.     public function getTemplateName()
  395.     {
  396.         return "blog/list.twig";
  397.     }
  398.     public function isTraitable()
  399.     {
  400.         return false;
  401.     }
  402.     public function getDebugInfo()
  403.     {
  404.         return array (  409 => 206,  398 => 204,  394 => 203,  389 => 201,  384 => 198,  380 => 196,  378 => 195,  373 => 192,  364 => 188,  354 => 185,  350 => 184,  345 => 183,  341 => 182,  336 => 180,  332 => 179,  328 => 177,  322 => 175,  319 => 174,  313 => 172,  307 => 170,  305 => 169,  300 => 167,  297 => 166,  293 => 165,  289 => 163,  287 => 162,  282 => 159,  272 => 155,  268 => 154,  264 => 153,  261 => 152,  257 => 151,  250 => 149,  242 => 143,  232 => 142,  88 => 6,  78 => 5,  60 => 3,  37 => 1,);
  405.     }
  406.     public function getSourceContext()
  407.     {
  408.         return new Source("{% extends 'default_frame.twig' %}
  409. {% block javascript %}{% endblock %}
  410. {% block stylesheet %}
  411. <style>
  412. /*
  413. .pluginCMBblog .item_blog_image {
  414.     width: 100%;
  415.     height: 248px;
  416.     object-fit: cover;
  417. }
  418. */
  419. .pluginCMBblog .item_blog_image {
  420.     width: 100%;
  421.     height: 190px;
  422.     object-fit: cover;
  423. }
  424. .pluginCMBblog .figure__main_image {
  425.     margin: 0;
  426.     padding: 0;
  427.     display: grid;
  428.     justify-content: stretch;
  429.     align-items: flex-end;
  430. }
  431. .pluginCMBblog .item_blog_image,
  432. .pluginCMBblog figcaption {
  433.     padding: 0;
  434.     grid-column: 1/2;
  435.     grid-row: 1/2;
  436. }
  437. .pluginCMBblog figcaption {
  438.     text-align: center;
  439.     padding: 0.4rem 2rem;
  440.     font-size: 1rem;
  441.     background-color: rgba(0,0,0,.7);
  442.     color: #fff;
  443.     overflow: hidden;
  444.     white-space: normal;
  445.     word-wrap: break-word;
  446. }
  447. .pluginCMBblog .ec-topicpath .ec-topicpath__item {
  448.     display: initial;
  449. }
  450. .pluginCMBblog .list_blog_cat li {
  451.     display: initial;
  452.     letter-spacing: 0.2rem;
  453.     font-size: 16px;
  454.     padding: 0 15px;
  455. }
  456. .pluginCMBblog .list_blog_cat li:nth-child(n+2) {
  457.     border-left: 2px solid #ccc;
  458. }
  459. .pluginCMBblog .list_blog .list_category_link {
  460.     color: #337ab7;
  461.     padding: .2rem 0.5rem;
  462.     font-size: 80%;
  463.     border-right: 1px solid #ddd;
  464. }
  465. .pluginCMBblog .blog_category {
  466.     margin: 0;
  467.     padding: 0;
  468.     display: flex;
  469.     flex-wrap: wrap;
  470. }
  471. .pluginCMBblog .blog_category li {
  472.     display: initial;
  473. }
  474. .pluginCMBblog .blog_category li:last-child .list_category_link {
  475.     border: none;
  476. }
  477. .pluginCMBblog .blog_title_h3 {
  478.     font-size: 16px;
  479.     line-height: 1.4;  
  480.     margin-top: 10px;
  481.     margin-bottom: 1px;
  482.     word-break: break-word;
  483. }
  484. .pluginCMBblog .blog_release_date {
  485.     font-size: 1rem;
  486.     margin-bottom: 1rem;
  487. }
  488. .w-100 {
  489.     width: 100%
  490. }
  491. .side-bar > div {
  492.     width: 90%;
  493.     margin: 40px auto;
  494. }
  495. h5.tag-header {
  496.   padding: 1rem 2rem;
  497.   border-left: 4px solid #000;
  498. }
  499. .month-archive a {
  500.     text-decoration: underline;
  501.     display: block;
  502.     padding: 3px 27px;
  503. }
  504. .archive-link-div {
  505.     max-height: 600px;
  506.     overflow-y: scroll;
  507. }
  508. .archive-link-div::-webkit-scrollbar {
  509.     display: none;
  510. }
  511. @media screen and (max-width: 768px){
  512.     .pluginCMBblog .item_blog_image {
  513.         width: 100%;
  514.         height: 40vw;
  515.         object-fit: cover;
  516.     }
  517.     .side-bar > div {
  518.         width: 100%
  519.     }
  520. }
  521. @media only screen and (min-width: 768px) {
  522.     .side-bar {
  523.         width: 280px;
  524.         background-color: #f6f6f6;
  525.     }
  526. /*▼RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▼*/
  527. /*
  528.     .ec-role {
  529.         display: flex;
  530.         justify-content: flex-start
  531.     }
  532. */
  533.     .blog_box {
  534.         display: flex;
  535.         justify-content: flex-start
  536.     }
  537. /*▲RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▲*/
  538.     .mt-65 {
  539.         margin-top: 65px;
  540.     }
  541. }
  542. </style>
  543. {% endblock %}
  544. {% block main %}
  545.     <div class=\"ec-role pluginCMBblog\">
  546.         <div class=\"blog_box\">
  547.             <div class=\"w-100\">
  548.                 <div class=\"ec-searchnavRole__topicpath\">
  549.                     <ol class=\"ec-topicpath list_blog_cat\">
  550.                         <li class=\"ec-topicpath__item\">
  551.                             <a href=\"{{ url('cm_blog_pro_page_list') }}\">{{ '全て'|trans }}</a>
  552.                         </li>
  553.                         {% for category in categories %}
  554.                     
  555.                         <li class=\"{{category.class}}\">
  556.                             <a href=\"{{ url('cm_blog_pro_page_list', {categories: [category.getId()]}) }}\" class=\"list_category_link\">
  557.                                 {{ category.getName|raw }}
  558.                             </a>
  559.                         </li>
  560.                         {% endfor %}
  561.                     </ol>
  562.                 </div>
  563.         
  564.                 {% if pagination.totalItemCount > 0 %}
  565.                     <div class=\"ec-shelfRole\" style=\"padding-top: 20px\">
  566.                         <ul class=\"ec-shelfGrid list_blog\">
  567.                             {% for blog in pagination %}
  568.                             <li class=\"ec-shelfGrid__item\">
  569.                                 <a href=\"{{ url('cm_blog_pro_page_detail', {'id': blog.slug ? blog.slug : blog.id}) }}\">
  570.                                     <figure class=\"figure__main_image\">
  571.                                         {% if blog.getMainListImage %}
  572.                                             <img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class='item_blog_image' />
  573.                                         {% else %}
  574.                                             <img src=\"{{ asset(''|no_image_product, 'save_image') }}\" class='item_blog_image' />
  575.                                         {% endif %}
  576.                                         {% if blog.getFigCaption %}
  577.                                             <figcaption>{{ blog.getFigCaption }}</figcaption>
  578.                                         {% endif %}
  579.                                     </figure>
  580.                                 </a>
  581.                                 <h3 class=\"blog_title_h3\">{{ blog.getTitle|length > 45 ? blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : blog.getTitle|raw }}</h3>  
  582.                                 <div class=\"blog_release_date\">公開日:{{ blog.release_date|date('Y年m月d日')}}</div>
  583.                                 <ul class=\"blog_category\">
  584.                                         {% for category in blog.getBlogCategories %}
  585.                                             <li class=\"{{category.getCategory.class}}\">
  586.                                                 <a href=\"{{ url('cm_blog_pro_page_list', {categories: [category.getCategory().getId()]}) }}\" class=\"list_category_link\">
  587.                                                 {{ category.getCategory.getName|length > 15 ? category.getCategory.getName|striptags|replace({('&nbsp;'):' '})|slice(0, 15)|raw ~ '...' : category.getCategory.getName|raw }}
  588.                                                 </a>
  589.                                             </li>
  590.                                         {% endfor %}        
  591.                                 </ul>
  592.                             </li>
  593.                             {% endfor %}
  594.                         </ul>
  595.                     </div>
  596.                     <div class=\"ec-pagerRole\">
  597.                         {% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'cm_blog_pro_page_list'} %}
  598.                     </div>
  599.                 {% endif %}
  600.             </div>
  601.             <div class=\"side-bar\">
  602.                 <div class=\"mt-65 month-archive\">
  603.                     <h5 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.month_archive'|trans }}</h5>
  604.                     <div class=\"archive-link-div\">
  605.                         {% for key, month in monthArr %}
  606.                             <a href=\"{{ url('cm_blog_pro_page_list', {date: key}) }}\">{{ month }}</a>
  607.                         {% endfor %}
  608.                     </div>
  609.                 </div>
  610.             </div>
  611.         </div>
  612.     </div>
  613. {% endblock %}""blog/list.twig""/home/xs031638/hieiyuba.xyz/public_html/shop/app/template/default/blog/list.twig");
  614.     }
  615. }