var/cache/dev/twig/f8/f83c14b19db1cce1d34e96baba02717fb3a4b4bf2608165e8fbd824a67a9865e.php line 39

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_c1758c9d56778e9db931cf7d5f93f4a4799a0c1246204ee6d2eaa53e7698c525 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.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "fullwidth_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/detail.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/detail.twig"));
  39.         $this->parent $this->loadTemplate("fullwidth_frame.twig""blog/detail.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_javascript($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  54.         
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  56.         
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  58.     }
  59.     // line 5
  60.     public function block_main($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  67.         // line 6
  68.         echo "
  69. <div class=\"news_detail_head\">
  70.     <div class=\"home_title__inner home_title__detail_inner\">
  71.         <h2 class=\"home_ja_title\">
  72.             <span class=\"news_text__top\">
  73.                 <span class=\"date\">";
  74.         // line 12
  75.         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.'12$this->source); })()), "release_date", [], "any"falsefalsefalse12), "Y.m.d"), "html"nulltrue);
  76.         echo "</span>
  77.                 ";
  78.         // line 13
  79.         if (twig_test_empty(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.'13$this->source); })()), "getBlogCategories", [], "any"falsefalsefalse13))) {
  80.             // line 14
  81.             echo "                    <span class=\"list_category_link\">[お知らせ]</span>
  82.                 ";
  83.         } else {
  84.             // line 16
  85.             echo "                    ";
  86.             $context['_parent'] = $context;
  87.             $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.'16$this->source); })()), "getBlogCategories", [], "any"falsefalsefalse16));
  88.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  89.                 // line 17
  90.                 echo "                     <span class=\"list_category_link\">
  91.                      [";
  92.                 // line 18
  93.                 (((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse18), "getName", [], "any"falsefalsefalse18)) > 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"falsefalsefalse18), "getName", [], "any"falsefalsefalse18)), ["&nbsp;" => " "]), 015) . "..."), "html"nulltrue))) : (print (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getCategory", [], "any"falsefalsefalse18), "getName", [], "any"falsefalsefalse18))));
  94.                 echo "]
  95.                      </span>
  96.                     ";
  97.             }
  98.             $_parent $context['_parent'];
  99.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  100.             $context array_intersect_key($context$_parent) + $_parent;
  101.             // line 21
  102.             echo "                ";
  103.         }
  104.         // line 22
  105.         echo "            </span><!--/.news_text__top-->
  106.             ";
  107.         // line 24
  108.         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.'24$this->source); })()), "title", [], "any"falsefalsefalse24), "html"nulltrue);
  109.         echo "
  110.         </h2>
  111.     </div><!--/.home_title__inner-->
  112. </div><!--/.news_detail_head-->
  113. <div class=\"news_container\">
  114.     <div class=\"news_body_content\">
  115.         ";
  116.         // line 31
  117.         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.'31$this->source); })()), "getMainListImage", [], "any"falsefalsefalse31)) {
  118.             // line 32
  119.             echo "            <div class=\"news_body_thumb\">
  120.                 <img src=\"";
  121.             // line 33
  122.             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.'33$this->source); })()), "getMainListImage", [], "any"falsefalsefalse33)), "save_image"), "html"nulltrue);
  123.             echo "\" class=\"main_image_blog\">
  124.             </div><!--/.news_body_thumb-->
  125.         ";
  126.         }
  127.         // line 36
  128.         echo "        <div class=\"news_body_content__inner\">
  129.         ";
  130.         // line 37
  131.         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.'37$this->source); })()), "body", [], "any"falsefalsefalse37);
  132.         echo "
  133.         </div><!--/.news_body_content__inner-->
  134.     </div><!--/.news_body_content-->
  135. </div><!--/.news_container-->
  136. <div class=\"news_detail_foot\">
  137.     <div class=\"news_detail_foot__inner\">
  138.         <div class=\"news_detail_foot__inner__link\">
  139.             <a class=\"base_link_brn\" href=\"";
  140.         // line 46
  141.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  142.         echo "news/\">
  143.                 <span>お知らせ一覧</span>
  144.                 <span>お知らせ一覧</span>
  145.             </a>
  146.         </div><!--/.sp_center_link_btn-->
  147.         ";
  148.         // line 53
  149.         echo "        ";
  150.         $context["page_url"] = (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage") . "/news/") . 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.'53$this->source); })()), "id", [], "any"falsefalsefalse53));
  151.         // line 54
  152.         echo "        ";
  153.         $context["image_url"] = ("https://online.ikus.furniture" $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.'54$this->source); })()), "getMainListImage", [], "any"falsefalsefalse54)), "save_image"));
  154.         // line 55
  155.         echo "        <ul class=\"cart_btn_bottom_sns\">
  156.             <li>
  157.                 <a class=\"pinterest\" href=\"https://www.pinterest.com/pin/create/button/?url=";
  158.         // line 57
  159.         echo twig_escape_filter($this->envtwig_urlencode_filter((isset($context["page_url"]) || array_key_exists("page_url"$context) ? $context["page_url"] : (function () { throw new RuntimeError('Variable "page_url" does not exist.'57$this->source); })())), "html"nulltrue);
  160.         echo "&media=";
  161.         echo twig_escape_filter($this->env, (isset($context["image_url"]) || array_key_exists("image_url"$context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.'57$this->source); })()), "html"nulltrue);
  162.         echo "\" target=\"_blank\">
  163.                     <img src=\"";
  164.         // line 58
  165.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon_pinterest.svg"), "html"nulltrue);
  166.         echo "\">
  167.                 </a>
  168.             </li>
  169.             <li>
  170.                 <a class=\"line\" href=\"https://social-plugins.line.me/lineit/share?url=";
  171.         // line 62
  172.         echo twig_escape_filter($this->envtwig_urlencode_filter((isset($context["page_url"]) || array_key_exists("page_url"$context) ? $context["page_url"] : (function () { throw new RuntimeError('Variable "page_url" does not exist.'62$this->source); })())), "html"nulltrue);
  173.         echo "\" target=\"_blank\">
  174.                     <img src=\"";
  175.         // line 63
  176.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon_line.svg"), "html"nulltrue);
  177.         echo "\">
  178.                 </a>
  179.             </li>
  180.             <li>
  181.                 <a class=\"twitter\" href=\"https://twitter.com/intent/tweet?url=";
  182.         // line 67
  183.         echo twig_escape_filter($this->envtwig_urlencode_filter((isset($context["page_url"]) || array_key_exists("page_url"$context) ? $context["page_url"] : (function () { throw new RuntimeError('Variable "page_url" does not exist.'67$this->source); })())), "html"nulltrue);
  184.         echo "\" target=\"_blank\">
  185.                     <img src=\"";
  186.         // line 68
  187.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon_twitter.svg"), "html"nulltrue);
  188.         echo "\">
  189.                 </a>
  190.             </li>
  191.             <li>
  192.                 <a class=\"facebook\" href=\"https://www.facebook.com/sharer/sharer.php?u=";
  193.         // line 72
  194.         echo twig_escape_filter($this->envtwig_urlencode_filter((isset($context["page_url"]) || array_key_exists("page_url"$context) ? $context["page_url"] : (function () { throw new RuntimeError('Variable "page_url" does not exist.'72$this->source); })())), "html"nulltrue);
  195.         echo "\" target=\"_blank\">
  196.                     <img src=\"";
  197.         // line 73
  198.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/icon_facebook.svg"), "html"nulltrue);
  199.         echo "\">
  200.                 </a>
  201.             </li>
  202.         </ul>
  203.     </div><!--/.news_detail_foot__inner-->
  204. </div><!--/.news_detail_foot-->
  205. ";
  206.         
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  208.         
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  210.     }
  211.     public function getTemplateName()
  212.     {
  213.         return "blog/detail.twig";
  214.     }
  215.     public function isTraitable()
  216.     {
  217.         return false;
  218.     }
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  223 => 73,  219 => 72,  212 => 68,  208 => 67,  201 => 63,  197 => 62,  190 => 58,  184 => 57,  180 => 55,  177 => 54,  174 => 53,  165 => 46,  153 => 37,  150 => 36,  144 => 33,  141 => 32,  139 => 31,  129 => 24,  125 => 22,  122 => 21,  113 => 18,  110 => 17,  105 => 16,  101 => 14,  99 => 13,  95 => 12,  87 => 6,  77 => 5,  59 => 3,  36 => 1,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{% extends 'fullwidth_frame.twig' %}
  226. {% block javascript %}{% endblock %}
  227. {% block main %}
  228. <div class=\"news_detail_head\">
  229.     <div class=\"home_title__inner home_title__detail_inner\">
  230.         <h2 class=\"home_ja_title\">
  231.             <span class=\"news_text__top\">
  232.                 <span class=\"date\">{{ blog.release_date|date('Y.m.d')}}</span>
  233.                 {% if blog.getBlogCategories is empty %}
  234.                     <span class=\"list_category_link\">[お知らせ]</span>
  235.                 {% else %}
  236.                     {% for category in blog.getBlogCategories %}
  237.                      <span class=\"list_category_link\">
  238.                      [{{ category.getCategory.getName|length > 15 ? category.getCategory.getName|striptags|replace({('&nbsp;'):' '})|slice(0, 15)|raw ~ '...' : category.getCategory.getName|raw }}]
  239.                      </span>
  240.                     {% endfor %}
  241.                 {% endif %}
  242.             </span><!--/.news_text__top-->
  243.             {{ blog.title }}
  244.         </h2>
  245.     </div><!--/.home_title__inner-->
  246. </div><!--/.news_detail_head-->
  247. <div class=\"news_container\">
  248.     <div class=\"news_body_content\">
  249.         {% if blog.getMainListImage %}
  250.             <div class=\"news_body_thumb\">
  251.                 <img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class=\"main_image_blog\">
  252.             </div><!--/.news_body_thumb-->
  253.         {% endif %}
  254.         <div class=\"news_body_content__inner\">
  255.         {{ blog.body|raw }}
  256.         </div><!--/.news_body_content__inner-->
  257.     </div><!--/.news_body_content-->
  258. </div><!--/.news_container-->
  259. <div class=\"news_detail_foot\">
  260.     <div class=\"news_detail_foot__inner\">
  261.         <div class=\"news_detail_foot__inner__link\">
  262.             <a class=\"base_link_brn\" href=\"{{ url('homepage') }}news/\">
  263.                 <span>お知らせ一覧</span>
  264.                 <span>お知らせ一覧</span>
  265.             </a>
  266.         </div><!--/.sp_center_link_btn-->
  267.         {# SNSシェア #}
  268.         {% set page_url = url('homepage') ~ '/news/' ~ blog.id %}
  269.         {% set image_url = 'https://online.ikus.furniture' ~ asset(blog.getMainListImage|no_image_product, 'save_image') %}
  270.         <ul class=\"cart_btn_bottom_sns\">
  271.             <li>
  272.                 <a class=\"pinterest\" href=\"https://www.pinterest.com/pin/create/button/?url={{ page_url|url_encode }}&media={{ image_url }}\" target=\"_blank\">
  273.                     <img src=\"{{ asset('assets/img/common/icon_pinterest.svg') }}\">
  274.                 </a>
  275.             </li>
  276.             <li>
  277.                 <a class=\"line\" href=\"https://social-plugins.line.me/lineit/share?url={{ page_url|url_encode }}\" target=\"_blank\">
  278.                     <img src=\"{{ asset('assets/img/common/icon_line.svg') }}\">
  279.                 </a>
  280.             </li>
  281.             <li>
  282.                 <a class=\"twitter\" href=\"https://twitter.com/intent/tweet?url={{ page_url|url_encode }}\" target=\"_blank\">
  283.                     <img src=\"{{ asset('assets/img/common/icon_twitter.svg') }}\">
  284.                 </a>
  285.             </li>
  286.             <li>
  287.                 <a class=\"facebook\" href=\"https://www.facebook.com/sharer/sharer.php?u={{ page_url|url_encode }}\" target=\"_blank\">
  288.                     <img src=\"{{ asset('assets/img/common/icon_facebook.svg') }}\">
  289.                 </a>
  290.             </li>
  291.         </ul>
  292.     </div><!--/.news_detail_foot__inner-->
  293. </div><!--/.news_detail_foot-->
  294. {% endblock %}
  295. {#
  296. {% block stylesheet %}
  297. <style>
  298. .pluginCMBblog .post_meta {
  299.     display: flex;
  300.     list-style: none;
  301.     margin: 0;
  302.     padding: 0;
  303.     width: 95%;
  304.     margin: 0 auto;
  305. }
  306. .pluginCMBblog .blog_category{
  307.     margin: 0;
  308.     padding: 0;
  309. }
  310. .pluginCMBblog .blog_category{
  311.     display: initial;
  312. }
  313. .pluginCMBblog .blog_category li{
  314.     display: initial;
  315.     border-right: 1px solid #ddd;
  316. }
  317. .pluginCMBblog .blog_category li:last-child {
  318.     border-right: none;
  319. }
  320. .pluginCMBblog .post_meta .post_meta_list{
  321.     padding-right: 2rem;
  322. }
  323. .pluginCMBblog .list_category_link{
  324.     color: #337ab7;
  325.     padding: 0 0.5rem;
  326. }
  327. .pluginCMBblog .figure__main_image {
  328.     padding: 0;
  329.     margin: 3rem 0;
  330.     display: grid;
  331.     justify-content: stretch;
  332.     align-items: flex-end;
  333. }
  334. .pluginCMBblog .main_image_blog,
  335. .pluginCMBblog figcaption {
  336.     padding: 0;
  337.     grid-column: 1/2;
  338.     grid-row: 1/2;
  339. }
  340. .pluginCMBblog figcaption {
  341.     text-align: center;
  342.     padding: 0.4rem 2rem;
  343.     font-size: 1.3rem;
  344.     background-color: rgba(0,0,0,.7);
  345.     color: #fff;
  346.     overflow: hidden;
  347.     white-space: normal;
  348.     word-wrap: break-word;
  349. }
  350. .pluginCMBblog .post_meta_list.time{
  351.     width: 15rem;
  352.     display: inline-table;
  353. }
  354. .pluginCMBblog .tag_dl{
  355.     display: flex;
  356. }
  357. .pluginCMBblog .blog_detail .blog_Title{
  358.     word-break: break-word;
  359.     margin-bottom: 20px;
  360. }
  361. .pluginCMBblog .cm_blog_main_image img{
  362.     max-width: 100%;
  363.     width: 100%;
  364. }
  365. ul.tag-ul {
  366.     padding-left:8px;
  367.     list-style: none;
  368.     display: flex;
  369.     flex-wrap: wrap;
  370. }
  371. ul.tag-ul > li {
  372.     margin: 0.4em;
  373.     padding: 0 0.8em;
  374.     border: 1px solid #ccc;
  375.     border-radius: 5px;
  376. }
  377. ul.tag-ul > li > a:hover {
  378.     text-decoration: none;
  379. }
  380. h3.tag-header {
  381.   padding: 1rem 2rem;
  382.   border-left: 4px solid #000;
  383. }
  384. .w-100 {
  385.     width: 100%
  386. }
  387. .side-bar > div {
  388.     width: 90%;
  389.     margin:40px auto;
  390. }
  391. h5.tag-header {
  392.   padding: 1rem 2rem;
  393.   border-left: 4px solid #000;
  394. }
  395. .month-archive a {
  396.     text-decoration: underline;
  397.     display: block;
  398.     padding: 3px 27px;
  399. }
  400. .ec-productRole__description > p img {
  401.     width: calc(var(--width));
  402.     margin-bottom: 15px;
  403. }
  404. .archive-link-div {
  405.     max-height: 600px;
  406.     overflow-y: scroll;
  407. }
  408. .archive-link-div::-webkit-scrollbar {
  409.     display: none;
  410. }
  411. @media screen and (max-width: 768px){
  412.     .pluginCMBblog .post_meta {
  413.         display: block;
  414.     }
  415.     .pluginCMBblog .post_meta_list.time{
  416.         width: 100%;
  417.     }
  418.     .side-bar > div {
  419.         width: 100%
  420.     }
  421. }
  422. @media only screen and (min-width: 768px) {
  423.     .ec-shelfGrid .ec-shelfGrid__item-image {
  424.         height: 150px;
  425.     }
  426.     h3.tag-header {
  427.         margin: 63px 16px 20px;
  428.     }
  429.     .side-bar {
  430.         width: 280px;
  431.         background-color: #f6f6f6;
  432.     }
  433.     .ec-role {
  434.         display: flex;
  435.         justify-content: flex-start
  436.     }
  437.     .mt-65 {
  438.         margin-top: 65px!important;
  439.     }
  440. }
  441. </style>
  442. {% endblock %}
  443. {% block main %}
  444. <div class=\"ec-role blog_detail pluginCMBblog\">
  445.     <div class=\"w-100\">
  446.         <div class=\"ec-pageHeader\">
  447.             <h1 class=\"blog_Title\">{{ blog.title }}</h1>
  448.         </div>
  449.         <ul class=\"post_meta \">
  450.             <li class=\"post_meta_list time\"><i class=\"fas fa-calendar-alt\"></i>&nbsp;{{blog.release_date|date('Y-m-d')}}</li>
  451.             <li class=\"post_meta_list\">
  452.                 <dl class=\"tag_dl\">
  453.                     <dt><i class=\"fas fa-tags\"></i></dt>
  454.                     <dd>
  455.                         <ul class=\"blog_category\">
  456.                             {% for category in blog.getBlogCategories %}
  457.                             <li class=\"{{category.getCategory.class}}\">
  458.                                 <a href=\"{{ url('cm_blog_pro_page_list', {categories: [category.getCategory().getId()]}) }}\" class=\"list_category_link\">
  459.                                 {{ category.getCategory.getName|raw }}
  460.                                 </a>
  461.                             </li>
  462.                             {% endfor %}
  463.                         </ul>
  464.                     </dd>
  465.                 </dl>
  466.             </li>
  467.         </ul>
  468.         <div class=\"ec-off1Grid\">
  469.             <div class=\"ec-off1Grid__cell\">
  470.                 <div class=\"cm_blog_main_image\">
  471.                     <figure class=\"figure__main_image\">
  472.                         {% if blog.getMainListImage %}
  473.                         <img src=\"{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}\" class=\"main_image_blog\"></img>
  474.                         {% else %}
  475.                         <img class='item_blog_image'></img>
  476.                         {% endif %}
  477.                         {% if blog.getFigCaption %}
  478.                         <figcaption>{{ blog.getFigCaption }}</figcaption>
  479.                         {% endif %}
  480.                     </figure>
  481.                 </div>
  482.                     <div class=\"ec-grid2__cell\">
  483.                     <div class=\"ec-productRole__profile\">
  484.                         <div class=\"ec-productRole__description\">{{ blog.body|raw }}
  485.                         </div>
  486.                     </div>
  487.                 </div>
  488.             </div>
  489.         </div>
  490.         {% if tags|length > 0 %}
  491.             <h3 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.tag'|trans }}</h3>
  492.             <ul class=\"tag-ul\">
  493.                 {% for tag in tags %}
  494.                     <li>
  495.                         <a href=\"{{ url('cm_blog_pro_page_list', {tag: tag|trim }) }}\">{{ tag |trim }}</a>
  496.                     </li>
  497.                 {% endfor %}
  498.             </ul>
  499.         {% endif %}
  500.         <h3 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.related_product'|trans }}</h3>
  501.         <div class=\"ec-shelfRole\">
  502.             <ul class=\"ec-shelfGrid\">
  503.                 {% for product in blog.getBlogProduct %}
  504.                     <li class=\"ec-shelfGrid__item\">
  505.                         <a href=\"{{ url('product_detail', {'id': product.getProduct.id}) }}\">
  506.                             <p class=\"ec-shelfGrid__item-image\">
  507.                                 <img src=\"{{ asset(product.getProduct.main_list_image|no_image_product, 'save_image') }}\">
  508.                             </p>
  509.                             <p>{{ product.getProduct.name }}</p>
  510.                             <p class=\"price02-default\">
  511.                                 {% if product.getProduct.hasProductClass %}
  512.                                     {% if product.getProduct.getPrice02Min == product.getProduct.getPrice02Max %}
  513.                                         {{ product.getProduct.getPrice02IncTaxMin|price }}
  514.                                     {% else %}
  515.                                         {{ product.getProduct.getPrice02IncTaxMin|price }} ~ {{ product.getProduct.getPrice02IncTaxMax|price }}
  516.                                     {% endif %}
  517.                                 {% else %}
  518.                                     {{ product.getProduct.getPrice02IncTaxMin|price }}
  519.                                 {% endif %}
  520.                             </p>
  521.                         </a>
  522.                     </li>
  523.                 {% endfor %}
  524.             </ul>
  525.         </div>
  526.     </div>
  527.     <div class=\"side-bar\">
  528.         <div class=\"mt-65 month-archive\">
  529.             <h5 class=\"tag-header\">{{ 'plg.CMBlogPro.blog.month_archive'|trans }}</h5>
  530.             <div class=\"archive-link-div\">
  531.                 {% for key, month in monthArr %}
  532.                     <a href=\"{{ url('cm_blog_pro_page_list', {date: key}) }}\">{{ month }}</a>
  533.                 {% endfor %}
  534.             </div>
  535.         </div>
  536.     </div>
  537. </div>
  538. {% endblock %}
  539. #}""blog/detail.twig""/home/xs626321/ikus.furniture/public_html/dev/app/template/default/blog/detail.twig");
  540.     }
  541. }