var/cache/dev/twig/e0/e01d465596034f9f4f9916d3ae7b60cf.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/detail.twig */
  14. class __TwigTemplate_344b4e83694acbdef7d044052e49d6ba 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/detail.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/detail.twig"));
  40.         $this->parent $this->loadTemplate("default_frame.twig""blog/detail.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. .pluginCMBblog .post_meta {
  71.     display: flex;
  72.     list-style: none;
  73.     margin: 0;
  74.     padding: 0;
  75.     width: 95%;
  76.     margin: 0 auto;
  77. }
  78. .pluginCMBblog .blog_category{
  79.     margin: 0;
  80.     padding: 0;
  81. }
  82. .pluginCMBblog .blog_category{
  83.     display: initial;
  84. }
  85. .pluginCMBblog .blog_category li{
  86.     display: initial;
  87.     border-right: 1px solid #ddd;
  88. }
  89. .pluginCMBblog .blog_category li:last-child {
  90.     border-right: none;
  91. }
  92. .pluginCMBblog .post_meta .post_meta_list{
  93.     padding-right: 2rem;
  94. }
  95. .pluginCMBblog .list_category_link{
  96.     color: #337ab7;
  97.     padding: 0 0.5rem;
  98. }
  99. .pluginCMBblog .figure__main_image {
  100.     padding: 0;
  101.     margin: 3rem 0;
  102.     display: grid;
  103.     justify-content: stretch;
  104.     align-items: flex-end;
  105. }
  106. .pluginCMBblog .main_image_blog,
  107. .pluginCMBblog figcaption {
  108.     padding: 0;
  109.     grid-column: 1/2;
  110.     grid-row: 1/2;
  111. }
  112. .pluginCMBblog figcaption {
  113.     text-align: center;
  114.     padding: 0.4rem 2rem;
  115.     font-size: 1.3rem;
  116.     background-color: rgba(0,0,0,.7);
  117.     color: #fff;
  118.     overflow: hidden;
  119.     white-space: normal;
  120.     word-wrap: break-word;
  121. }
  122. .pluginCMBblog .post_meta_list.time{
  123.     width: 15rem;
  124.     display: inline-table;
  125. }
  126. .pluginCMBblog .tag_dl{
  127.     display: flex;
  128. }
  129. .pluginCMBblog .blog_detail .blog_Title{
  130.     word-break: break-word;
  131.     margin-bottom: 20px;
  132. }
  133. .pluginCMBblog .cm_blog_main_image img{
  134.     max-width: 100%;
  135.     width: 100%;
  136. }
  137. ul.tag-ul {
  138.     padding-left:8px;
  139.     list-style: none;
  140.     display: flex;
  141.     flex-wrap: wrap;
  142. }
  143. ul.tag-ul > li {
  144.     margin: 0.4em;
  145.     padding: 0 0.8em;
  146.     border: 1px solid #ccc;
  147.     border-radius: 5px;
  148. }
  149. ul.tag-ul > li > a:hover {
  150.     text-decoration: none;
  151. }
  152. h3.tag-header {
  153.   padding: 1rem 2rem;
  154.   border-left: 4px solid #000;
  155. }
  156. .w-100 {
  157.     width: 100%
  158. }
  159. .side-bar > div {
  160.     width: 90%;
  161.     margin:40px auto;
  162. }
  163. h5.tag-header {
  164.   padding: 1rem 2rem;
  165.   border-left: 4px solid #000;
  166. }
  167. .month-archive a {
  168.     text-decoration: underline;
  169.     display: block;
  170.     padding: 3px 27px;
  171. }
  172. .ec-productRole__description > p img {
  173.     width: calc(var(--width));
  174.     margin-bottom: 15px;
  175. }
  176. .archive-link-div {
  177.     max-height: 600px;
  178.     overflow-y: scroll;
  179. }
  180. .archive-link-div::-webkit-scrollbar {
  181.     display: none;
  182. }
  183. @media screen and (max-width: 768px){
  184.     .pluginCMBblog .post_meta {
  185.         display: block;
  186.     }
  187.     
  188.     .pluginCMBblog .post_meta_list.time{
  189.         width: 100%;
  190.     }
  191.     .side-bar > div {
  192.         width: 100%
  193.     }
  194. }
  195. @media only screen and (min-width: 768px) {
  196.     .ec-shelfGrid .ec-shelfGrid__item-image {
  197.         height: 150px;
  198.     }
  199.     h3.tag-header {
  200.         margin: 63px 16px 20px;
  201.     }
  202.     .side-bar {
  203.         width: 280px;
  204.         background-color: #f6f6f6;
  205.     }
  206. /*▼RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▼*/
  207. /*
  208.     .ec-role {
  209.         display: flex;
  210.         justify-content: flex-start
  211.     }
  212. */
  213.     .blog_box {
  214.         display: flex;
  215.         justify-content: flex-start
  216.     }
  217. /*▲RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▲*/
  218.     .mt-65 {
  219.         margin-top: 65px!important;
  220.     }
  221. }
  222. </style>
  223. ";
  224.         
  225.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  226.         
  227.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  228.     }
  229.     // line 167
  230.     public function block_main($context, array $blocks = [])
  231.     {
  232.         $macros $this->macros;
  233.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  235.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  236.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  237.         // line 168
  238.         echo "
  239. <div class=\"ec-role blog_detail pluginCMBblog\">
  240.     <div class=\"blog_box\">
  241.         <div class=\"w-100\">
  242.             <div class=\"ec-pageHeader\">
  243.                 <h1 class=\"blog_Title\">";
  244.         // line 173
  245.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'173$this->source); })()), "title", [], "any"falsefalsefalse173), "html"nulltrue);
  246.         echo "</h1>
  247.             </div>
  248.             <ul class=\"post_meta \">
  249.                 <li class=\"post_meta_list time\"><i class=\"fas fa-calendar-alt\"></i>&nbsp;";
  250.         // line 176
  251.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'176$this->source); })()), "release_date", [], "any"falsefalsefalse176), "Y-m-d"), "html"nulltrue);
  252.         echo "</li>
  253.                 <li class=\"post_meta_list\">
  254.                     <dl class=\"tag_dl\">
  255.                         <dt><i class=\"fas fa-tags\"></i></dt>
  256.                         <dd>
  257.                             <ul class=\"blog_category\">
  258.                                 ";
  259.         // line 182
  260.         $context['_parent'] = $context;
  261.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'182$this->source); })()), "getBlogCategories", [], "any"falsefalsefalse182));
  262.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  263.             // line 183
  264.             echo "                                <li class=\"";
  265.             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);
  266.             echo "\">
  267.                                     <a href=\"";
  268.             // line 184
  269.             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);
  270.             echo "\" class=\"list_category_link\">
  271.                                     ";
  272.             // line 185
  273.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse185), "getName", [], "any"falsefalsefalse185);
  274.             echo "
  275.                                     </a>
  276.                                 </li>
  277.                                 ";
  278.         }
  279.         $_parent $context['_parent'];
  280.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  281.         $context array_intersect_key($context$_parent) + $_parent;
  282.         // line 188
  283.         echo "        
  284.                             </ul> 
  285.                         </dd>
  286.                     </dl>
  287.                 </li>
  288.             </ul>
  289.             <div class=\"ec-off1Grid\">
  290.                 <div class=\"ec-off1Grid__cell\">
  291.                     <div class=\"cm_blog_main_image\">
  292.                     
  293.                         <figure class=\"figure__main_image\"> 
  294.                             ";
  295.         // line 199
  296.         if (twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'199$this->source); })()), "getMainListImage", [], "any"falsefalsefalse199)) {
  297.             // line 200
  298.             echo "                            <img src=\"";
  299.             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, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'200$this->source); })()), "getMainListImage", [], "any"falsefalsefalse200)), "save_image"), "html"nulltrue);
  300.             echo "\" class=\"main_image_blog\"></img>
  301.                             ";
  302.         } else {
  303.             // line 202
  304.             echo "                            <img class='item_blog_image'></img>
  305.                             ";
  306.         }
  307.         // line 204
  308.         echo "                            ";
  309.         if (twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'204$this->source); })()), "getFigCaption", [], "any"falsefalsefalse204)) {
  310.             // line 205
  311.             echo "                            <figcaption>";
  312.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'205$this->source); })()), "getFigCaption", [], "any"falsefalsefalse205), "html"nulltrue);
  313.             echo "</figcaption>
  314.                             ";
  315.         }
  316.         // line 207
  317.         echo "                        </figure>
  318.                     </div>
  319.                         <div class=\"ec-grid2__cell\">
  320.                         <div class=\"ec-productRole__profile\">
  321.                             <div class=\"ec-productRole__description\">";
  322.         // line 211
  323.         echo twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'211$this->source); })()), "body", [], "any"falsefalsefalse211);
  324.         echo "
  325.                             </div>
  326.                         </div>
  327.                     </div>
  328.                 </div>
  329.             </div>
  330.             ";
  331.         // line 217
  332.         if ((twig_length_filter($this->env, (isset($context["tags"]) || array_key_exists("tags"$context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.'217$this->source); })())) > 0)) {
  333.             // line 218
  334.             echo "                <h3 class=\"tag-header\">";
  335.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("plg.CMBlogPro.blog.tag"), "html"nulltrue);
  336.             echo "</h3>
  337.                 <ul class=\"tag-ul\">
  338.                     ";
  339.             // line 220
  340.             $context['_parent'] = $context;
  341.             $context['_seq'] = twig_ensure_traversable((isset($context["tags"]) || array_key_exists("tags"$context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.'220$this->source); })()));
  342.             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  343.                 // line 221
  344.                 echo "                        <li>
  345.                             <a href=\"";
  346.                 // line 222
  347.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_list", ["tag" => twig_trim_filter($context["tag"])]), "html"nulltrue);
  348.                 echo "\">";
  349.                 echo twig_escape_filter($this->envtwig_trim_filter($context["tag"]), "html"nulltrue);
  350.                 echo "</a>
  351.                         </li>
  352.                     ";
  353.             }
  354.             $_parent $context['_parent'];
  355.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  356.             $context array_intersect_key($context$_parent) + $_parent;
  357.             // line 225
  358.             echo "                </ul>
  359.             ";
  360.         }
  361.         // line 227
  362.         echo "            <h3 class=\"tag-header\">";
  363.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("plg.CMBlogPro.blog.related_product"), "html"nulltrue);
  364.         echo "</h3>
  365.             <div class=\"ec-shelfRole\">
  366.                 <ul class=\"ec-shelfGrid\">
  367.                     ";
  368.         // line 230
  369.         $context['_parent'] = $context;
  370.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'230$this->source); })()), "getBlogProduct", [], "any"falsefalsefalse230));
  371.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  372.             // line 231
  373.             echo "                        <li class=\"ec-shelfGrid__item\">
  374.                             <a href=\"";
  375.             // line 232
  376.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse232), "id", [], "any"falsefalsefalse232)]), "html"nulltrue);
  377.             echo "\">
  378.                                 <p class=\"ec-shelfGrid__item-image\">
  379.                                     <img src=\"";
  380.             // line 234
  381.             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->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse234), "main_list_image", [], "any"falsefalsefalse234)), "save_image"), "html"nulltrue);
  382.             echo "\">
  383.                                 </p>
  384.                                 <p>";
  385.             // line 236
  386.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse236), "name", [], "any"falsefalsefalse236), "html"nulltrue);
  387.             echo "</p>
  388.                                 <p class=\"price02-default\">
  389.                                     ";
  390.             // line 238
  391.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse238), "hasProductClass", [], "any"falsefalsefalse238)) {
  392.                 // line 239
  393.                 echo "                                        ";
  394.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse239), "getPrice02Min", [], "any"falsefalsefalse239) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse239), "getPrice02Max", [], "any"falsefalsefalse239))) {
  395.                     // line 240
  396.                     echo "                                            ";
  397.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse240), "getPrice02IncTaxMin", [], "any"falsefalsefalse240)), "html"nulltrue);
  398.                     echo "
  399.                                         ";
  400.                 } else {
  401.                     // line 242
  402.                     echo "                                            ";
  403.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse242), "getPrice02IncTaxMin", [], "any"falsefalsefalse242)), "html"nulltrue);
  404.                     echo " ~ ";
  405.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse242), "getPrice02IncTaxMax", [], "any"falsefalsefalse242)), "html"nulltrue);
  406.                     echo "
  407.                                         ";
  408.                 }
  409.                 // line 244
  410.                 echo "                                    ";
  411.             } else {
  412.                 // line 245
  413.                 echo "                                        ";
  414.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "getProduct", [], "any"falsefalsefalse245), "getPrice02IncTaxMin", [], "any"falsefalsefalse245)), "html"nulltrue);
  415.                 echo "
  416.                                     ";
  417.             }
  418.             // line 247
  419.             echo "                                </p>
  420.                             </a>
  421.                         </li>
  422.                     ";
  423.         }
  424.         $_parent $context['_parent'];
  425.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  426.         $context array_intersect_key($context$_parent) + $_parent;
  427.         // line 251
  428.         echo "                </ul>
  429.             </div>
  430.         </div>
  431.         <div class=\"side-bar\">
  432.             <div class=\"mt-65 month-archive\">
  433.                 <h5 class=\"tag-header\">";
  434.         // line 256
  435.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("plg.CMBlogPro.blog.month_archive"), "html"nulltrue);
  436.         echo "</h5>
  437.                 <div class=\"archive-link-div\">
  438.                     ";
  439.         // line 258
  440.         $context['_parent'] = $context;
  441.         $context['_seq'] = twig_ensure_traversable((isset($context["monthArr"]) || array_key_exists("monthArr"$context) ? $context["monthArr"] : (function () { throw new RuntimeError('Variable "monthArr" does not exist.'258$this->source); })()));
  442.         foreach ($context['_seq'] as $context["key"] => $context["month"]) {
  443.             // line 259
  444.             echo "                        <a href=\"";
  445.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cm_blog_pro_page_list", ["date" => $context["key"]]), "html"nulltrue);
  446.             echo "\">";
  447.             echo twig_escape_filter($this->env$context["month"], "html"nulltrue);
  448.             echo "</a>
  449.                     ";
  450.         }
  451.         $_parent $context['_parent'];
  452.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['month'], $context['_parent'], $context['loop']);
  453.         $context array_intersect_key($context$_parent) + $_parent;
  454.         // line 261
  455.         echo "                </div>
  456.             </div>
  457.         </div>
  458.     </div>
  459. </div>
  460. ";
  461.         
  462.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  463.         
  464.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  465.     }
  466.     public function getTemplateName()
  467.     {
  468.         return "blog/detail.twig";
  469.     }
  470.     public function isTraitable()
  471.     {
  472.         return false;
  473.     }
  474.     public function getDebugInfo()
  475.     {
  476.         return array (  484 => 261,  473 => 259,  469 => 258,  464 => 256,  457 => 251,  448 => 247,  442 => 245,  439 => 244,  431 => 242,  425 => 240,  422 => 239,  420 => 238,  415 => 236,  410 => 234,  405 => 232,  402 => 231,  398 => 230,  391 => 227,  387 => 225,  376 => 222,  373 => 221,  369 => 220,  363 => 218,  361 => 217,  352 => 211,  346 => 207,  340 => 205,  337 => 204,  333 => 202,  327 => 200,  325 => 199,  312 => 188,  302 => 185,  298 => 184,  293 => 183,  289 => 182,  280 => 176,  274 => 173,  267 => 168,  257 => 167,  88 => 6,  78 => 5,  60 => 3,  37 => 1,);
  477.     }
  478.     public function getSourceContext()
  479.     {
  480.         return new Source("{% extends 'default_frame.twig' %}
  481. {% block javascript %}{% endblock %}
  482. {% block stylesheet %}
  483. <style>
  484. .pluginCMBblog .post_meta {
  485.     display: flex;
  486.     list-style: none;
  487.     margin: 0;
  488.     padding: 0;
  489.     width: 95%;
  490.     margin: 0 auto;
  491. }
  492. .pluginCMBblog .blog_category{
  493.     margin: 0;
  494.     padding: 0;
  495. }
  496. .pluginCMBblog .blog_category{
  497.     display: initial;
  498. }
  499. .pluginCMBblog .blog_category li{
  500.     display: initial;
  501.     border-right: 1px solid #ddd;
  502. }
  503. .pluginCMBblog .blog_category li:last-child {
  504.     border-right: none;
  505. }
  506. .pluginCMBblog .post_meta .post_meta_list{
  507.     padding-right: 2rem;
  508. }
  509. .pluginCMBblog .list_category_link{
  510.     color: #337ab7;
  511.     padding: 0 0.5rem;
  512. }
  513. .pluginCMBblog .figure__main_image {
  514.     padding: 0;
  515.     margin: 3rem 0;
  516.     display: grid;
  517.     justify-content: stretch;
  518.     align-items: flex-end;
  519. }
  520. .pluginCMBblog .main_image_blog,
  521. .pluginCMBblog figcaption {
  522.     padding: 0;
  523.     grid-column: 1/2;
  524.     grid-row: 1/2;
  525. }
  526. .pluginCMBblog figcaption {
  527.     text-align: center;
  528.     padding: 0.4rem 2rem;
  529.     font-size: 1.3rem;
  530.     background-color: rgba(0,0,0,.7);
  531.     color: #fff;
  532.     overflow: hidden;
  533.     white-space: normal;
  534.     word-wrap: break-word;
  535. }
  536. .pluginCMBblog .post_meta_list.time{
  537.     width: 15rem;
  538.     display: inline-table;
  539. }
  540. .pluginCMBblog .tag_dl{
  541.     display: flex;
  542. }
  543. .pluginCMBblog .blog_detail .blog_Title{
  544.     word-break: break-word;
  545.     margin-bottom: 20px;
  546. }
  547. .pluginCMBblog .cm_blog_main_image img{
  548.     max-width: 100%;
  549.     width: 100%;
  550. }
  551. ul.tag-ul {
  552.     padding-left:8px;
  553.     list-style: none;
  554.     display: flex;
  555.     flex-wrap: wrap;
  556. }
  557. ul.tag-ul > li {
  558.     margin: 0.4em;
  559.     padding: 0 0.8em;
  560.     border: 1px solid #ccc;
  561.     border-radius: 5px;
  562. }
  563. ul.tag-ul > li > a:hover {
  564.     text-decoration: none;
  565. }
  566. h3.tag-header {
  567.   padding: 1rem 2rem;
  568.   border-left: 4px solid #000;
  569. }
  570. .w-100 {
  571.     width: 100%
  572. }
  573. .side-bar > div {
  574.     width: 90%;
  575.     margin:40px auto;
  576. }
  577. h5.tag-header {
  578.   padding: 1rem 2rem;
  579.   border-left: 4px solid #000;
  580. }
  581. .month-archive a {
  582.     text-decoration: underline;
  583.     display: block;
  584.     padding: 3px 27px;
  585. }
  586. .ec-productRole__description > p img {
  587.     width: calc(var(--width));
  588.     margin-bottom: 15px;
  589. }
  590. .archive-link-div {
  591.     max-height: 600px;
  592.     overflow-y: scroll;
  593. }
  594. .archive-link-div::-webkit-scrollbar {
  595.     display: none;
  596. }
  597. @media screen and (max-width: 768px){
  598.     .pluginCMBblog .post_meta {
  599.         display: block;
  600.     }
  601.     
  602.     .pluginCMBblog .post_meta_list.time{
  603.         width: 100%;
  604.     }
  605.     .side-bar > div {
  606.         width: 100%
  607.     }
  608. }
  609. @media only screen and (min-width: 768px) {
  610.     .ec-shelfGrid .ec-shelfGrid__item-image {
  611.         height: 150px;
  612.     }
  613.     h3.tag-header {
  614.         margin: 63px 16px 20px;
  615.     }
  616.     .side-bar {
  617.         width: 280px;
  618.         background-color: #f6f6f6;
  619.     }
  620. /*▼RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▼*/
  621. /*
  622.     .ec-role {
  623.         display: flex;
  624.         justify-content: flex-start
  625.     }
  626. */
  627.     .blog_box {
  628.         display: flex;
  629.         justify-content: flex-start
  630.     }
  631. /*▲RZ 2023.09.11 EDIT ec-roleのスタイルをこのページに限定 ▲*/
  632.     .mt-65 {
  633.         margin-top: 65px!important;
  634.     }
  635. }
  636. </style>
  637. {% endblock %}
  638. {% block main %}
  639. <div class=\"ec-role blog_detail pluginCMBblog\">
  640.     <div class=\"blog_box\">
  641.         <div class=\"w-100\">
  642.             <div class=\"ec-pageHeader\">
  643.                 <h1 class=\"blog_Title\">{{ blog.title }}</h1>
  644.             </div>
  645.             <ul class=\"post_meta \">
  646.                 <li class=\"post_meta_list time\"><i class=\"fas fa-calendar-alt\"></i>&nbsp;{{blog.release_date|date('Y-m-d')}}</li>
  647.                 <li class=\"post_meta_list\">
  648.                     <dl class=\"tag_dl\">
  649.                         <dt><i class=\"fas fa-tags\"></i></dt>
  650.                         <dd>
  651.                             <ul class=\"blog_category\">
  652.                                 {% for category in blog.getBlogCategories %}
  653.                                 <li class=\"{{category.getCategory.class}}\">
  654.                                     <a href=\"{{ url('cm_blog_pro_page_list', {categories: [category.getCategory().getId()]}) }}\" class=\"list_category_link\">
  655.                                     {{ category.getCategory.getName|raw }}
  656.                                     </a>
  657.                                 </li>
  658.                                 {% endfor %}        
  659.                             </ul> 
  660.                         </dd>
  661.                     </dl>
  662.                 </li>
  663.             </ul>
  664.             <div class=\"ec-off1Grid\">
  665.                 <div class=\"ec-off1Grid__cell\">
  666.                     <div class=\"cm_blog_main_image\">
  667.                     
  668.                         <figure class=\"figure__main_image\"> 
  669.                             {% if blog.getMainListImage %}
  670.                             <img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class=\"main_image_blog\"></img>
  671.                             {% else %}
  672.                             <img class='item_blog_image'></img>
  673.                             {% endif %}
  674.                             {% if blog.getFigCaption %}
  675.                             <figcaption>{{ blog.getFigCaption }}</figcaption>
  676.                             {% endif %}
  677.                         </figure>
  678.                     </div>
  679.                         <div class=\"ec-grid2__cell\">
  680.                         <div class=\"ec-productRole__profile\">
  681.                             <div class=\"ec-productRole__description\">{{ blog.body|raw }}
  682.                             </div>
  683.                         </div>
  684.                     </div>
  685.                 </div>
  686.             </div>
  687.             {% if tags|length > 0 %}
  688.                 <h3 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.tag'|trans }}</h3>
  689.                 <ul class=\"tag-ul\">
  690.                     {% for tag in tags %}
  691.                         <li>
  692.                             <a href=\"{{ url('cm_blog_pro_page_list', {tag: tag|trim }) }}\">{{ tag |trim }}</a>
  693.                         </li>
  694.                     {% endfor %}
  695.                 </ul>
  696.             {% endif %}
  697.             <h3 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.related_product'|trans }}</h3>
  698.             <div class=\"ec-shelfRole\">
  699.                 <ul class=\"ec-shelfGrid\">
  700.                     {% for product in blog.getBlogProduct %}
  701.                         <li class=\"ec-shelfGrid__item\">
  702.                             <a href=\"{{ url('product_detail', {'id': product.getProduct.id}) }}\">
  703.                                 <p class=\"ec-shelfGrid__item-image\">
  704.                                     <img src=\"{{ asset(product.getProduct.main_list_image|no_image_product, 'save_image') }}\">
  705.                                 </p>
  706.                                 <p>{{ product.getProduct.name }}</p>
  707.                                 <p class=\"price02-default\">
  708.                                     {% if product.getProduct.hasProductClass %}
  709.                                         {% if product.getProduct.getPrice02Min == product.getProduct.getPrice02Max %}
  710.                                             {{ product.getProduct.getPrice02IncTaxMin|price }}
  711.                                         {% else %}
  712.                                             {{ product.getProduct.getPrice02IncTaxMin|price }} ~ {{ product.getProduct.getPrice02IncTaxMax|price }}
  713.                                         {% endif %}
  714.                                     {% else %}
  715.                                         {{ product.getProduct.getPrice02IncTaxMin|price }}
  716.                                     {% endif %}
  717.                                 </p>
  718.                             </a>
  719.                         </li>
  720.                     {% endfor %}
  721.                 </ul>
  722.             </div>
  723.         </div>
  724.         <div class=\"side-bar\">
  725.             <div class=\"mt-65 month-archive\">
  726.                 <h5 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.month_archive'|trans }}</h5>
  727.                 <div class=\"archive-link-div\">
  728.                     {% for key, month in monthArr %}
  729.                         <a href=\"{{ url('cm_blog_pro_page_list', {date: key}) }}\">{{ month }}</a>
  730.                     {% endfor %}
  731.                 </div>
  732.             </div>
  733.         </div>
  734.     </div>
  735. </div>
  736. {% endblock %}""blog/detail.twig""/home/xs031638/hieiyuba.xyz/public_html/shop/app/template/default/blog/detail.twig");
  737.     }
  738. }