var/cache/dev/twig/e0/e08753cadde81259c065d9e5e170fdba.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. /* Topics/index.twig */
  14. class __TwigTemplate_53109f5db443c1156a409bf651387339 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.             'main' => [$this'block_main'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 16
  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""Topics/index.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""Topics/index.twig"));
  40.         // line 18
  41.         $context["body_class"] = "topics_page";
  42.         // line 16
  43.         $this->parent $this->loadTemplate("default_frame.twig""Topics/index.twig"16);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 20
  51.     public function block_main($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  58.         // line 21
  59.         echo "
  60. <div>
  61.     <div>
  62.     \t<p class=\"topics\">
  63. \t\t\t<b>";
  64.         // line 25
  65.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Topic"]) || array_key_exists("Topic"$context) ? $context["Topic"] : (function () { throw new RuntimeError('Variable "Topic" does not exist.'25$this->source); })()), "topix_cdate", [], "any"falsefalsetrue25), 25$this->source), "Y年m月d日"), "html"nulltrue);
  66.         echo " (";
  67.         echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\ServiceExtension']->SetJWeek($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Topic"]) || array_key_exists("Topic"$context) ? $context["Topic"] : (function () { throw new RuntimeError('Variable "Topic" does not exist.'25$this->source); })()), "topix_cdate", [], "any"falsefalsetrue25), 25$this->source)), "html"nulltrue);
  68.         echo ")</b>
  69. \t\t</p>
  70. \t\t<div>
  71.             ";
  72.         // line 28
  73.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Topic"]) || array_key_exists("Topic"$context) ? $context["Topic"] : (function () { throw new RuntimeError('Variable "Topic" does not exist.'28$this->source); })()), "topix_comment", [], "any"falsefalsetrue28), 28$this->source);
  74.         echo "
  75.         <div>
  76.     <div>    
  77.     <div>
  78.         <p>
  79.             <b class=\"b-style\">アーカイブ</b>
  80.         <p>
  81.         <ul class=\"topics-ul-m0\">
  82.             ";
  83.         // line 36
  84.         $context['_parent'] = $context;
  85.         $context['_seq'] = twig_ensure_traversable((isset($context["Topics"]) || array_key_exists("Topics"$context) ? $context["Topics"] : (function () { throw new RuntimeError('Variable "Topics" does not exist.'36$this->source); })()));
  86.         foreach ($context['_seq'] as $context["_key"] => $context["Topic"]) {
  87.             // line 37
  88.             echo "                <li>
  89.                     <a href=\"";
  90.             // line 38
  91.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topics");
  92.             echo "?dt=";
  93.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Topic"], "topix_cdate", [], "any"falsefalsetrue38), 38$this->source), "Ymd"), "html"nulltrue);
  94.             echo "\" class=\"\">";
  95.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Topic"], "topix_cdate", [], "any"falsefalsetrue38), 38$this->source), "Y年m月"), "html"nulltrue);
  96.             echo "</a>
  97.                 </li>
  98.             ";
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Topic'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 41
  104.         echo "        </ul>
  105. \t</div>
  106. </div>
  107. ";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     public function getTemplateName()
  114.     {
  115.         return "Topics/index.twig";
  116.     }
  117.     public function isTraitable()
  118.     {
  119.         return false;
  120.     }
  121.     public function getDebugInfo()
  122.     {
  123.         return array (  118 => 41,  105 => 38,  102 => 37,  98 => 36,  87 => 28,  79 => 25,  73 => 21,  63 => 20,  52 => 16,  50 => 18,  37 => 16,);
  124.     }
  125.     public function getSourceContext()
  126.     {
  127.         return new Source("{# @version  EC=CUBE4.1 TWIG
  128.  # @copyright 株式会社 翔 kakeru.co.jp
  129.  # @author
  130.  # 2022年08月22日作成
  131.  #
  132.  # app/template/default/Topics/index.twig
  133.  #
  134.  #
  135.  # トピックス
  136.  #
  137.  #
  138.  #
  139.  #
  140.  #                                                  ≡≡≡┏(^o^)┛
  141.  ##############################################################}
  142.  {% extends 'default_frame.twig' %}
  143. {% set body_class = 'topics_page' %}
  144. {% block main %}
  145. <div>
  146.     <div>
  147.     \t<p class=\"topics\">
  148. \t\t\t<b>{{ Topic.topix_cdate|date('Y年m月d日')}} ({{Topic.topix_cdate|jweek}})</b>
  149. \t\t</p>
  150. \t\t<div>
  151.             {{ Topic.topix_comment|raw }}
  152.         <div>
  153.     <div>    
  154.     <div>
  155.         <p>
  156.             <b class=\"b-style\">アーカイブ</b>
  157.         <p>
  158.         <ul class=\"topics-ul-m0\">
  159.             {% for Topic in Topics %}
  160.                 <li>
  161.                     <a href=\"{{ url('topics') }}?dt={{ Topic.topix_cdate|date('Ymd')  }}\" class=\"\">{{ Topic.topix_cdate|date('Y年m月') }}</a>
  162.                 </li>
  163.             {% endfor %}
  164.         </ul>
  165. \t</div>
  166. </div>
  167. {% endblock %}""Topics/index.twig""/var/www/html/app/template/default/Topics/index.twig");
  168.     }
  169.     
  170.     public function checkSecurity()
  171.     {
  172.         static $tags = array("set" => 18"for" => 36);
  173.         static $filters = array("escape" => 25"date" => 25"jweek" => 25"raw" => 28);
  174.         static $functions = array("url" => 38);
  175.         try {
  176.             $this->sandbox->checkSecurity(
  177.                 ['set''for'],
  178.                 ['escape''date''jweek''raw'],
  179.                 ['url']
  180.             );
  181.         } catch (SecurityError $e) {
  182.             $e->setSourceContext($this->source);
  183.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  184.                 $e->setTemplateLine($tags[$e->getTagName()]);
  185.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  186.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  187.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  188.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  189.             }
  190.             throw $e;
  191.         }
  192.     }
  193. }