var/cache/dev/twig/aa/aafb5e58ada2baf343ca989f98a4507c.php line 42

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. /* @TabaCMS2/default/post.twig */
  14. class __TwigTemplate_a4f85f566487d2f452b9c17338bcf245 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 7
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@TabaCMS2/default/post.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@TabaCMS2/default/post.twig"));
  42.         // line 9
  43.         $context["category_list"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->categoryList(["type_data_key" => "news"]);
  44.         // line 11
  45.         $context["new_post_list"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->postList(["page_count" => 5"type_data_key" => "news""category_data_key" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "request", [], "any"falsefalsetrue11), "query", [], "any"falsefalsetrue11), "get", [=> "category_data_key"], "method"falsefalsetrue11)]);
  46.         // line 13
  47.         $context["body_class"] = "tabacms_post_page";
  48.         // line 16
  49.         $context["post"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->post();
  50.         // line 7
  51.         $this->parent $this->loadTemplate("default_frame.twig""@TabaCMS2/default/post.twig"7);
  52.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  53.         
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.     }
  58.     // line 18
  59.     public function block_javascript($context, array $blocks = [])
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  66.         // line 19
  67.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("script.js""script");
  68.         echo "
  69. ";
  70.         // line 20
  71.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'20$this->source); })()), "getScript", [], "any"falsefalsetrue20), 20$this->source);
  72.         echo "
  73. <script>
  74.     function openLineShare() {
  75.         const lineUrl = 'https://social-plugins.line.me/lineit/share?url=';
  76.         const url = location.href;
  77.         window.open(`\${lineUrl}\${url}`)
  78.     }
  79. </script>
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 30
  87.     public function block_stylesheet($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  94.         // line 31
  95.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("style.css""style");
  96.         echo "
  97. ";
  98.         
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100.         
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  102.     }
  103.     // line 34
  104.     public function block_main($context, array $blocks = [])
  105.     {
  106.         $macros $this->macros;
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  111.         // line 35
  112.         echo "<div class=\"flex w-[990px] justify-between mx-auto mt-[40px] lg:mt-6 lg:w-full lg:flex-col lg:items-center lg:px-4\">
  113.     <div class=\"w-[720px] text-[#000000] md:w-full\">
  114.         ";
  115.         // line 37
  116.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'37$this->source); })()), "getThumbnail", [], "any"falsefalsetrue37))) {
  117.             // line 38
  118.             echo "                <img src=\"";
  119.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'38$this->source); })()), "getThumbnail", [], "any"falsefalsetrue38), 38$this->source), "save_image"), "html"nulltrue);
  120.             echo "\" class=\"w-full h-[500px] object-cover mb-10 md:mb-3\">
  121.         ";
  122.         }
  123.         // line 40
  124.         echo "        <div class=\"px-[60px] md:px-0\">
  125.             <h1 class=\"text-3xl font-extralight text-center mb-5 md:text-xl md:mb-3\">";
  126.         // line 41
  127.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'41$this->source); })()), "getTitle", [], "any"falsefalsetrue41), 41$this->source);
  128.         echo "</h1>
  129.             <div class=\"flex gap-4 text-sm mb-10 md:mb-6 md:text-xs md:gap-3\">
  130.                 <time class=\"\">
  131.                     ";
  132.         // line 44
  133.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'44$this->source); })()), "getPublicDate", [], "any"falsefalsetrue44), 44$this->source), "Y.m.d"), "html"nulltrue);
  134.         echo "更新
  135.                 </time>
  136.                 <span>";
  137.         // line 46
  138.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'46$this->source); })()), "category", [], "any"falsefalsetrue46), "categoryName", [], "any"falsefalsetrue46), 46$this->source), "html"nulltrue);
  139.         echo "</span>
  140.             </div>
  141.             <section>
  142.                 ";
  143.         // line 49
  144.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'49$this->source); })()), "getBody", [], "any"falsefalsetrue49), 49$this->source);
  145.         echo "
  146.             </section>
  147.         </div>
  148.         <div
  149.             class=\"hover mt-20 mb-6 md:mt-10\"
  150.             onclick=\"openLineShare()\"
  151.         >
  152.             <img class=\"h-8 w-8 md:mx-auto\" src=\"";
  153.         // line 56
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/line-icon.svg"), "html"nulltrue);
  155.         echo "\" />
  156.         </div>
  157.         <div class=\"flex justify-center mb-10 md:mb-7\">
  158.             <a href=\"";
  159.         // line 59
  160.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "reading"]);
  161.         echo "\" class=\"text-lg hover underline md:text-sm\">
  162.                 <p>記事一覧</p>
  163.             </a>
  164.         </div>
  165.         ";
  166.         // line 63
  167.         if ( !twig_test_empty((isset($context["new_post_list"]) || array_key_exists("new_post_list"$context) ? $context["new_post_list"] : (function () { throw new RuntimeError('Variable "new_post_list" does not exist.'63$this->source); })()))) {
  168.             // line 64
  169.             echo "            <div class=\"pt-8 px-20 lg:py-4 border-t-2 border-[#CCC] lg:px-0\">
  170.                 <h3 class=\"text-lg font-bold mb-6 md:mb-4 md:text-base\">新着記事:</h3>
  171.                 <ul class=\"flex flex-col gap-4\">
  172.                     ";
  173.             // line 67
  174.             $context['_parent'] = $context;
  175.             $context['_seq'] = twig_ensure_traversable((isset($context["new_post_list"]) || array_key_exists("new_post_list"$context) ? $context["new_post_list"] : (function () { throw new RuntimeError('Variable "new_post_list" does not exist.'67$this->source); })()));
  176.             foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  177.                 // line 68
  178.                 echo "                        <a href=\"";
  179.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue68), 68$this->source), "html"nulltrue);
  180.                 echo "\" class=\"hover\">
  181.                             <li class=\"flex gap-[2%] md:gap-[4%]\">
  182.                                 <img src=\"";
  183.                 // line 70
  184.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "thumbnail", [], "any"falsefalsetrue70), 70$this->source)), "save_image"), "html"nulltrue);
  185.                 echo "\" class=\"w-[28%] h-[88px] object-contain md:w-[18%]\"></img>
  186.                                 <p class=\"w-[68%] underline md:text-sm md:w-[80%]\">";
  187.                 // line 71
  188.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "title", [], "any"falsefalsetrue71), 71$this->source), "html"nulltrue);
  189.                 echo "</p>
  190.                             </li>
  191.                         </a>
  192.                     ";
  193.             }
  194.             $_parent $context['_parent'];
  195.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  196.             $context array_intersect_key($context$_parent) + $_parent;
  197.             // line 75
  198.             echo "                </ul>
  199.             </div>
  200.         ";
  201.         }
  202.         // line 78
  203.         echo "    </div>
  204.     <div class=\"w-[200px] lg:w-full flex flex-col lg:pt-4 lg:border-t-2 border-[#CCC]\">
  205.         <div class=\"text-sm font-light text-[#000] lg:p-7 lg:mt-7 lg:bg-[#F6F6F6]\">
  206.             <p>Category :</p>
  207.             <div class=\"mt-[10px] text-[#000000] lg:font-normal\">
  208.             ";
  209.         // line 83
  210.         $context['_parent'] = $context;
  211.         $context['_seq'] = twig_ensure_traversable((isset($context["category_list"]) || array_key_exists("category_list"$context) ? $context["category_list"] : (function () { throw new RuntimeError('Variable "category_list" does not exist.'83$this->source); })()));
  212.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  213.             // line 84
  214.             echo "                <p>
  215.                     <button class=\"category-button w-full text-left my-[2px] underline hover\" data-category-key=\"";
  216.             // line 85
  217.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "dataKey", [], "any"falsefalsetrue85), 85$this->source), "html"nulltrue);
  218.             echo "\">
  219.                         ";
  220.             // line 86
  221.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "categoryName", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  222.             echo " (";
  223.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "postCount", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  224.             echo ")
  225.                     </button>
  226.                 </p>
  227.             ";
  228.         }
  229.         $_parent $context['_parent'];
  230.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  231.         $context array_intersect_key($context$_parent) + $_parent;
  232.         // line 90
  233.         echo "            </div>
  234.         </div>
  235.         <div class=\"mb-[20px] hover mt-[25px] lg:hidden\">
  236.             <a href=\"";
  237.         // line 93
  238.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "showroom"]);
  239.         echo "\">
  240.                 <img src=\"";
  241.         // line 94
  242.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/info/showroom.svg"), "html"nulltrue);
  243.         echo "\" class=\"w-full\">
  244.             </a>
  245.         </div>
  246.         <div class=\"second mb-[20px] hover lg:hidden\">
  247.             ";
  248.         // line 99
  249.         echo "                <img src=\"";
  250.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/info/catalog.svg"), "html"nulltrue);
  251.         echo "\" class=\"w-full\">
  252.             ";
  253.         // line 101
  254.         echo "        </div>
  255.     </div>
  256. </div>
  257. <div class=\"w-[990px] mx-auto lg:w-full\">
  258.    <div class=\"w-full lg:px-12 mt-[130px] md:mt-10 mb-8 md:mb-0\">
  259. \t        <ul id=\"breadcrumbs\" class=\"border-t-[1px] border-[#EFEFEF] py-5 md:py-4 w-full md:text-xs text-sm tracking-widest flex items-center gap-x-1\">
  260.                 <li>
  261.                     <a href=\"";
  262.         // line 108
  263.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  264.         echo "\" class=\"hover\">
  265.                         <span>HOME</span>
  266.                     </a>
  267.                 </li>
  268.                 <span>/</span>
  269.                 <li>
  270.                     <a href=\"";
  271.         // line 114
  272.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("user_data", ["route" => "reading"]);
  273.         echo "\" class=\"hover\">
  274.                         <span>お知らせ</span>
  275.                     </a>
  276.                 </li>
  277.                 <span>/</span>
  278.                 <li>
  279.                     <span>";
  280.         // line 120
  281.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'120$this->source); })()), "title", [], "any"falsefalsetrue120), 120$this->source), "html"nulltrue);
  282.         echo "</span>
  283.                 </li>
  284.             </ul>
  285.         </div>
  286. </div>
  287. ";
  288.         
  289.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  290.         
  291.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  292.     }
  293.     public function getTemplateName()
  294.     {
  295.         return "@TabaCMS2/default/post.twig";
  296.     }
  297.     public function isTraitable()
  298.     {
  299.         return false;
  300.     }
  301.     public function getDebugInfo()
  302.     {
  303.         return array (  305 => 120,  296 => 114,  287 => 108,  278 => 101,  273 => 99,  266 => 94,  262 => 93,  257 => 90,  245 => 86,  241 => 85,  238 => 84,  234 => 83,  227 => 78,  222 => 75,  212 => 71,  208 => 70,  202 => 68,  198 => 67,  193 => 64,  191 => 63,  184 => 59,  178 => 56,  168 => 49,  162 => 46,  157 => 44,  151 => 41,  148 => 40,  142 => 38,  140 => 37,  136 => 35,  126 => 34,  114 => 31,  104 => 30,  85 => 20,  81 => 19,  71 => 18,  60 => 7,  58 => 16,  56 => 13,  54 => 11,  52 => 9,  39 => 7,);
  304.     }
  305.     public function getSourceContext()
  306.     {
  307.         return new Source("{#
  308. Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
  309. For the full copyright and license information, please view the LICENSE
  310. file that was distributed with this source code.
  311. #}
  312. {% extends 'default_frame.twig' %}
  313. {% set category_list = TabaCMSCategoryList({type_data_key:'news'}) %}
  314. {% set new_post_list = TabaCMSPostList({ page_count: 5, type_data_key: 'news', category_data_key: app.request.query.get('category_data_key') }) %}
  315. {% set body_class = 'tabacms_post_page' %}
  316. {# 投稿データの取得 #}
  317. {% set post = TabaCMSPost() %}
  318. {% block javascript %}
  319. {{ TabaCMSAsset('script.js','script')|raw }}
  320. {{ post.getScript|raw }}
  321. <script>
  322.     function openLineShare() {
  323.         const lineUrl = 'https://social-plugins.line.me/lineit/share?url=';
  324.         const url = location.href;
  325.         window.open(`\${lineUrl}\${url}`)
  326.     }
  327. </script>
  328. {% endblock javascript %}
  329. {% block stylesheet %}
  330. {{ TabaCMSAsset('style.css','style')|raw }}
  331. {% endblock stylesheet %}
  332. {% block main %}
  333. <div class=\"flex w-[990px] justify-between mx-auto mt-[40px] lg:mt-6 lg:w-full lg:flex-col lg:items-center lg:px-4\">
  334.     <div class=\"w-[720px] text-[#000000] md:w-full\">
  335.         {% if post.getThumbnail is not empty %}
  336.                 <img src=\"{{ asset(post.getThumbnail,'save_image') }}\" class=\"w-full h-[500px] object-cover mb-10 md:mb-3\">
  337.         {% endif %}
  338.         <div class=\"px-[60px] md:px-0\">
  339.             <h1 class=\"text-3xl font-extralight text-center mb-5 md:text-xl md:mb-3\">{{ post.getTitle|raw }}</h1>
  340.             <div class=\"flex gap-4 text-sm mb-10 md:mb-6 md:text-xs md:gap-3\">
  341.                 <time class=\"\">
  342.                     {{ post.getPublicDate|date('Y.m.d') }}更新
  343.                 </time>
  344.                 <span>{{ post.category.categoryName }}</span>
  345.             </div>
  346.             <section>
  347.                 {{ post.getBody|raw }}
  348.             </section>
  349.         </div>
  350.         <div
  351.             class=\"hover mt-20 mb-6 md:mt-10\"
  352.             onclick=\"openLineShare()\"
  353.         >
  354.             <img class=\"h-8 w-8 md:mx-auto\" src=\"{{ asset('assets/icon/line-icon.svg') }}\" />
  355.         </div>
  356.         <div class=\"flex justify-center mb-10 md:mb-7\">
  357.             <a href=\"{{ url('user_data',{'route':'reading'}) }}\" class=\"text-lg hover underline md:text-sm\">
  358.                 <p>記事一覧</p>
  359.             </a>
  360.         </div>
  361.         {% if new_post_list is not empty %}
  362.             <div class=\"pt-8 px-20 lg:py-4 border-t-2 border-[#CCC] lg:px-0\">
  363.                 <h3 class=\"text-lg font-bold mb-6 md:mb-4 md:text-base\">新着記事:</h3>
  364.                 <ul class=\"flex flex-col gap-4\">
  365.                     {% for post in new_post_list %}
  366.                         <a href=\"{{ post.getURI }}\" class=\"hover\">
  367.                             <li class=\"flex gap-[2%] md:gap-[4%]\">
  368.                                 <img src=\"{{ asset(post.thumbnail|no_image_product, 'save_image') }}\" class=\"w-[28%] h-[88px] object-contain md:w-[18%]\"></img>
  369.                                 <p class=\"w-[68%] underline md:text-sm md:w-[80%]\">{{ post.title }}</p>
  370.                             </li>
  371.                         </a>
  372.                     {% endfor %}
  373.                 </ul>
  374.             </div>
  375.         {% endif %}
  376.     </div>
  377.     <div class=\"w-[200px] lg:w-full flex flex-col lg:pt-4 lg:border-t-2 border-[#CCC]\">
  378.         <div class=\"text-sm font-light text-[#000] lg:p-7 lg:mt-7 lg:bg-[#F6F6F6]\">
  379.             <p>Category :</p>
  380.             <div class=\"mt-[10px] text-[#000000] lg:font-normal\">
  381.             {% for category in category_list %}
  382.                 <p>
  383.                     <button class=\"category-button w-full text-left my-[2px] underline hover\" data-category-key=\"{{ category.dataKey }}\">
  384.                         {{ category.categoryName }} ({{ category.postCount }})
  385.                     </button>
  386.                 </p>
  387.             {% endfor %}
  388.             </div>
  389.         </div>
  390.         <div class=\"mb-[20px] hover mt-[25px] lg:hidden\">
  391.             <a href=\"{{ url('user_data',{'route': 'showroom'}) }}\">
  392.                 <img src=\"{{ asset('assets/img/info/showroom.svg') }}\" class=\"w-full\">
  393.             </a>
  394.         </div>
  395.         <div class=\"second mb-[20px] hover lg:hidden\">
  396.             {# <a href=\"{{ url('contact_catalog') }}\"> #}
  397.                 <img src=\"{{ asset('assets/img/info/catalog.svg') }}\" class=\"w-full\">
  398.             {# </a> #}
  399.         </div>
  400.     </div>
  401. </div>
  402. <div class=\"w-[990px] mx-auto lg:w-full\">
  403.    <div class=\"w-full lg:px-12 mt-[130px] md:mt-10 mb-8 md:mb-0\">
  404. \t        <ul id=\"breadcrumbs\" class=\"border-t-[1px] border-[#EFEFEF] py-5 md:py-4 w-full md:text-xs text-sm tracking-widest flex items-center gap-x-1\">
  405.                 <li>
  406.                     <a href=\"{{ url('homepage') }}\" class=\"hover\">
  407.                         <span>HOME</span>
  408.                     </a>
  409.                 </li>
  410.                 <span>/</span>
  411.                 <li>
  412.                     <a href=\"{{ url('user_data',{'route': 'reading'}) }}\" class=\"hover\">
  413.                         <span>お知らせ</span>
  414.                     </a>
  415.                 </li>
  416.                 <span>/</span>
  417.                 <li>
  418.                     <span>{{post.title}}</span>
  419.                 </li>
  420.             </ul>
  421.         </div>
  422. </div>
  423. {% endblock %}
  424. ""@TabaCMS2/default/post.twig""/home/xs082386/manaka-store.com/public_html/stg-renewal.manaka-store.com/app/Plugin/TabaCMS2/Resource/template/default/post.twig");
  425.     }
  426.     
  427.     public function checkSecurity()
  428.     {
  429.         static $tags = array("set" => 9"if" => 37"for" => 67);
  430.         static $filters = array("raw" => 19"escape" => 38"date" => 44"no_image_product" => 70);
  431.         static $functions = array("TabaCMSCategoryList" => 9"TabaCMSPostList" => 11"TabaCMSPost" => 16"TabaCMSAsset" => 19"asset" => 38"url" => 59);
  432.         try {
  433.             $this->sandbox->checkSecurity(
  434.                 ['set''if''for'],
  435.                 ['raw''escape''date''no_image_product'],
  436.                 ['TabaCMSCategoryList''TabaCMSPostList''TabaCMSPost''TabaCMSAsset''asset''url']
  437.             );
  438.         } catch (SecurityError $e) {
  439.             $e->setSourceContext($this->source);
  440.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  441.                 $e->setTemplateLine($tags[$e->getTagName()]);
  442.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  443.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  444.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  445.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  446.             }
  447.             throw $e;
  448.         }
  449.     }
  450. }