var/cache/dev/twig/f4/f4add2f2e40a7ed151060745603e23de.php line 52

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/list.twig */
  14. class __TwigTemplate_df5275e49cccd7a6901d12299b260f3f 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/list.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/list.twig"));
  42.         // line 10
  43.         $context["post_list"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->postList(["page_count" => 10]);
  44.         // line 20
  45.         $context["breadcrumbs"] = [=> ["name" => "ニュース"]];
  46.         // line 7
  47.         $this->parent $this->loadTemplate("default_frame.twig""@TabaCMS2/default/list.twig"7);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 12
  55.     public function block_javascript($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  62.         // line 13
  63.         echo "    ";
  64.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("script.js""script");
  65.         echo "
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.     }
  72.     // line 16
  73.     public function block_stylesheet($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  80.         // line 17
  81.         echo "    ";
  82.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("style.css""style");
  83.         echo "
  84. ";
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.     }
  90.     // line 22
  91.     public function block_main($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  98.         // line 23
  99.         echo "    <section class=\"px-6 pb-10 pt-[7.5rem] md:pt-20 md:pb-1 text-black\">
  100.         <div class=\"mx-auto w-full max-w-[63rem]\">
  101.             <h1 class=\"flex items-start gap-4 md:gap-2\">
  102.                 <span class=\"block h-[7.5rem] w-0.5 bg-gradient-to-b from-[#ADAAA6] md:h-16 md:w-px\"></span>
  103.                 <p class=\"text-[2rem] font-light leading-normal tracking-widest md:text-xl\">
  104.                     ニュース</p>
  105.             </h1>
  106.         </div>
  107.     </section>
  108.     ";
  109.         // line 32
  110.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/breadcrumb.twig");
  111.         echo "
  112.     <section class=\"px-6 pb-[7.5rem] md:pb-20 text-black tracking-wider\">
  113.         <div class=\"mx-auto w-full max-w-[50rem]\">
  114.             <div class=\"grid border-t border-sub-gray\">
  115.                 ";
  116.         // line 36
  117.         $context['_parent'] = $context;
  118.         $context['_seq'] = twig_ensure_traversable((isset($context["post_list"]) || array_key_exists("post_list"$context) ? $context["post_list"] : (function () { throw new RuntimeError('Variable "post_list" does not exist.'36$this->source); })()));
  119.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  120.             // line 37
  121.             echo "                    <a href=\"";
  122.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  123.             echo "\" class=\"grid gap-6 py-10 md:gap-4 border-b border-sub-gray hover\">
  124.                         <h2 class=\"line-clamp-2 text-xl md:text-base font-medium leading-[1.8] text-black \">
  125.                             <span class=\"sr-only\">タイトル:</span>
  126.                             ";
  127.             // line 40
  128.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue40), 40$this->source), "html"nulltrue);
  129.             echo "</h2>
  130.                         <time datetime=";
  131.             // line 41
  132.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getPublicDate", [], "any"falsefalsetrue41), 41$this->source), "Y-m-d"), "html"nulltrue);
  133.             echo " class=\"text-right text-sm text-black\">
  134.                             <span class=\"sr-only\">投稿日:</span>
  135.                             ";
  136.             // line 43
  137.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getPublicDate", [], "any"falsefalsetrue43), 43$this->source), "Y.m.d"), "html"nulltrue);
  138.             echo "</time>
  139.                     </a>
  140.                 ";
  141.         }
  142.         $_parent $context['_parent'];
  143.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  144.         $context array_intersect_key($context$_parent) + $_parent;
  145.         // line 46
  146.         echo "            </div>
  147.             ";
  148.         // line 47
  149.         if ((twig_get_attribute($this->env$this->source, (isset($context["post_list"]) || array_key_exists("post_list"$context) ? $context["post_list"] : (function () { throw new RuntimeError('Variable "post_list" does not exist.'47$this->source); })()), "totalItemCount", [], "any"falsefalsetrue47) > 0)) {
  150.             // line 48
  151.             echo "                ";
  152.             $this->loadTemplate("pager.twig""@TabaCMS2/default/list.twig"48)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["post_list"]) || array_key_exists("post_list"$context) ? $context["post_list"] : (function () { throw new RuntimeError('Variable "post_list" does not exist.'48$this->source); })()), "paginationData", [], "any"falsefalsetrue48)]));
  153.             // line 49
  154.             echo "            ";
  155.         }
  156.         // line 50
  157.         echo "        </div>
  158.     </section>
  159. ";
  160.         
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162.         
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  164.     }
  165.     public function getTemplateName()
  166.     {
  167.         return "@TabaCMS2/default/list.twig";
  168.     }
  169.     public function isTraitable()
  170.     {
  171.         return false;
  172.     }
  173.     public function getDebugInfo()
  174.     {
  175.         return array (  181 => 50,  178 => 49,  175 => 48,  173 => 47,  170 => 46,  161 => 43,  156 => 41,  152 => 40,  145 => 37,  141 => 36,  134 => 32,  123 => 23,  113 => 22,  100 => 17,  90 => 16,  77 => 13,  67 => 12,  56 => 7,  54 => 20,  52 => 10,  39 => 7,);
  176.     }
  177.     public function getSourceContext()
  178.     {
  179.         return new Source("{#
  180. Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
  181. For the full copyright and license information, please view the LICENSE
  182. file that was distributed with this source code.
  183. #}
  184. {% extends 'default_frame.twig' %}
  185. {# 投稿リストの取得 #}
  186. {% set post_list = TabaCMSPostList({page_count:10}) %}
  187. {% block javascript %}
  188.     {{ TabaCMSAsset('script.js','script')|raw }}
  189. {% endblock javascript %}
  190. {% block stylesheet %}
  191.     {{ TabaCMSAsset('style.css','style')|raw }}
  192. {% endblock stylesheet %}
  193. {% set breadcrumbs = [{'name': 'ニュース'}] %}
  194. {% block main %}
  195.     <section class=\"px-6 pb-10 pt-[7.5rem] md:pt-20 md:pb-1 text-black\">
  196.         <div class=\"mx-auto w-full max-w-[63rem]\">
  197.             <h1 class=\"flex items-start gap-4 md:gap-2\">
  198.                 <span class=\"block h-[7.5rem] w-0.5 bg-gradient-to-b from-[#ADAAA6] md:h-16 md:w-px\"></span>
  199.                 <p class=\"text-[2rem] font-light leading-normal tracking-widest md:text-xl\">
  200.                     ニュース</p>
  201.             </h1>
  202.         </div>
  203.     </section>
  204.     {{ include('Block/breadcrumb.twig') }}
  205.     <section class=\"px-6 pb-[7.5rem] md:pb-20 text-black tracking-wider\">
  206.         <div class=\"mx-auto w-full max-w-[50rem]\">
  207.             <div class=\"grid border-t border-sub-gray\">
  208.                 {% for post in post_list %}
  209.                     <a href=\"{{ post.getURI }}\" class=\"grid gap-6 py-10 md:gap-4 border-b border-sub-gray hover\">
  210.                         <h2 class=\"line-clamp-2 text-xl md:text-base font-medium leading-[1.8] text-black \">
  211.                             <span class=\"sr-only\">タイトル:</span>
  212.                             {{ post.getTitle }}</h2>
  213.                         <time datetime={{ post.getPublicDate|date('Y-m-d') }} class=\"text-right text-sm text-black\">
  214.                             <span class=\"sr-only\">投稿日:</span>
  215.                             {{ post.getPublicDate|date('Y.m.d') }}</time>
  216.                     </a>
  217.                 {% endfor %}
  218.             </div>
  219.             {% if post_list.totalItemCount > 0 %}
  220.                 {% include \"pager.twig\" with {'pages':post_list.paginationData} %}
  221.             {% endif %}
  222.         </div>
  223.     </section>
  224. {% endblock %}
  225. ""@TabaCMS2/default/list.twig""/home/xs545372/itsukushi-store.com/public_html/stg.itsukushi-store.com/app/Plugin/TabaCMS2/Resource/template/default/list.twig");
  226.     }
  227.     
  228.     public function checkSecurity()
  229.     {
  230.         static $tags = array("set" => 10"for" => 36"if" => 47"include" => 48);
  231.         static $filters = array("raw" => 13"escape" => 37"date" => 41);
  232.         static $functions = array("TabaCMSPostList" => 10"TabaCMSAsset" => 13"include" => 32);
  233.         try {
  234.             $this->sandbox->checkSecurity(
  235.                 ['set''for''if''include'],
  236.                 ['raw''escape''date'],
  237.                 ['TabaCMSPostList''TabaCMSAsset''include']
  238.             );
  239.         } catch (SecurityError $e) {
  240.             $e->setSourceContext($this->source);
  241.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  242.                 $e->setTemplateLine($tags[$e->getTagName()]);
  243.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  244.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  245.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  246.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  247.             }
  248.             throw $e;
  249.         }
  250.     }
  251. }