var/cache/dev/twig/d1/d16590aa0f2935ff5333ec493ebef9ad.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. /* @user_data/reading.twig */
  14. class __TwigTemplate_baee3010536f6232edb0e0202c801e07 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 1
  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""@user_data/reading.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""@user_data/reading.twig"));
  42.         // line 4
  43.         $context["post_list"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->postList(["page_count" => 10"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.'4$this->source); })()), "request", [], "any"falsefalsetrue4), "query", [], "any"falsefalsetrue4), "get", [=> "category_data_key"], "method"falsefalsetrue4)]);
  44.         // line 5
  45.         $context["category_list"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->categoryList(["type_data_key" => "news"]);
  46.         // line 33
  47.         $context["breadcrumbs"] = [=> ["name" => "ニュース"]];
  48.         // line 1
  49.         $this->parent $this->loadTemplate("default_frame.twig""@user_data/reading.twig"1);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 7
  57.     public function block_javascript($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  64.         // line 8
  65.         echo "    ";
  66.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("script.js""script");
  67.         echo "
  68.     <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  69.     <script>
  70.         \$(document).ready(function() {
  71.             \$('.category-button').on('click', function() {
  72.                 var categoryKey = \$(this).data('category-key');
  73.                 var url = new URL(window.location.href);
  74.                 url.searchParams.set('category_data_key', categoryKey);
  75.                 window.location.href = url.href;
  76.             });
  77.         });
  78.     </script>
  79. ";
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.     }
  85.     // line 22
  86.     public function block_stylesheet($context, array $blocks = [])
  87.     {
  88.         $macros $this->macros;
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  93.         // line 23
  94.         echo "    ";
  95.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("style.css""style");
  96.         echo "
  97.     <style>
  98.         @media (min-width: 769px) {
  99.             .content-container.sp {
  100.                 display: none;
  101.             }
  102.         }
  103.     </style>
  104. ";
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.     }
  110.     // line 35
  111.     public function block_main($context, array $blocks = [])
  112.     {
  113.         $macros $this->macros;
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  118.         // line 36
  119.         echo "    <div class=\"flex w-[990px] justify-between mx-auto lg:w-full lg:flex-col lg:items-center lg:px-4\">
  120.         <div class=\"w-[720px] text-[#000000] md:w-full mt-[40px] lg:mt-6\">
  121.             <p class=\"flex justify-center text-[34px] md:text-2xl font-extralight\">お知らせ</p>
  122.             <p class=\"text-[16px] font-[250] items-center mt-6 md:mt-4 mb-10 md:mb-8 md:text-[14px]\">
  123.                 商品についての情報、お得な情報などをお届けします。
  124.             </p>
  125.             ";
  126.         // line 42
  127.         $context['_parent'] = $context;
  128.         $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.'42$this->source); })()));
  129.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  130.             // line 43
  131.             echo "                <a href=\"";
  132.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue43), 43$this->source), "html"nulltrue);
  133.             echo "\" class=\"hover flex gap-2.5 justify-between my-14 md:my-10 md:w-full h-[210px] md:mx-auto md:flex-col md:h-[auto]\">
  134.                     <div class=\"w-[320px] md:w-full\">
  135.                         <img src=\"";
  136.             // line 45
  137.             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"falsefalsetrue45), 45$this->source)), "save_image"), "html"nulltrue);
  138.             echo "\" class=\"w-[320px] h-full md:w-full md:h-[225px] object-cover\">
  139.                     </div>
  140.                     <div class=\"w-[364px] font-[250px] flex flex-col gap-2 md:w-full\">
  141.                         <h2 class=\"text-2xl text-[#000000] md:text-lg font-extralight\">";
  142.             // line 48
  143.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue48), 48$this->source), "html"nulltrue);
  144.             echo "</h2>
  145.                         ";
  146.             // line 49
  147.             if (twig_get_attribute($this->env$this->source$context["post"], "category", [], "any"falsefalsetrue49)) {
  148.                 // line 50
  149.                 echo "                            <time datetime=";
  150.                 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"falsefalsetrue50), 50$this->source), "Y-m-d"), "html"nulltrue);
  151.                 echo " class=\"text-[13px] text-[#666666]\">
  152.                                 <span>";
  153.                 // line 51
  154.                 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"falsefalsetrue51), 51$this->source), "Y.m.d"), "html"nulltrue);
  155.                 echo "更新<span>
  156.                                 <span class=\"pl-2\">";
  157.                 // line 52
  158.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "category", [], "any"falsefalsetrue52), "categoryName", [], "any"falsefalsetrue52), 52$this->source), "html"nulltrue);
  159.                 echo "<span>
  160.                             </time>
  161.                         ";
  162.             }
  163.             // line 55
  164.             echo "                        ";
  165.             $context["stripped_body"] = twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "body", [], "any"falsefalsetrue55), 55$this->source));
  166.             // line 56
  167.             echo "                        <p class=\"text-[14px] text-[#666666]\">
  168.                             ";
  169.             // line 57
  170.             (((twig_length_filter($this->env, (isset($context["stripped_body"]) || array_key_exists("stripped_body"$context) ? $context["stripped_body"] : (function () { throw new RuntimeError('Variable "stripped_body" does not exist.'57$this->source); })())) > 90)) ? (print (twig_escape_filter($this->env, (twig_slice($this->env, (isset($context["stripped_body"]) || array_key_exists("stripped_body"$context) ? $context["stripped_body"] : (function () { throw new RuntimeError('Variable "stripped_body" does not exist.'57$this->source); })()), 090) . "..."), "html"nulltrue))) : (print ((isset($context["stripped_body"]) || array_key_exists("stripped_body"$context) ? $context["stripped_body"] : (function () { throw new RuntimeError('Variable "stripped_body" does not exist.'57$this->source); })()))));
  171.             echo "
  172.                         </p>
  173.                     </div>
  174.                 </a>
  175.             ";
  176.         }
  177.         $_parent $context['_parent'];
  178.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  179.         $context array_intersect_key($context$_parent) + $_parent;
  180.         // line 62
  181.         echo "            ";
  182.         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.'62$this->source); })()), "totalItemCount", [], "any"falsefalsetrue62) > 0)) {
  183.             // line 63
  184.             echo "                ";
  185.             $this->loadTemplate("pager.twig""@user_data/reading.twig"63)->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.'63$this->source); })()), "paginationData", [], "any"falsefalsetrue63)]));
  186.             // line 64
  187.             echo "            ";
  188.         }
  189.         // line 65
  190.         echo "        </div>
  191.         <div class=\"w-[200px] md:w-full flex flex-col mt-1 md:mt-0\">
  192.             <div class=\"text-sm text-[250] text-[#000000] md:p-[30px] md:mt-6 md:bg-[#F6F6F6]\">
  193.                 <p>Category :</p>
  194.                 <div class=\"mt-[10px] text-[#000000] md:font-[400]\">
  195.                 ";
  196.         // line 70
  197.         $context['_parent'] = $context;
  198.         $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.'70$this->source); })()));
  199.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  200.             // line 71
  201.             echo "                    <p>
  202.                         <button class=\"category-button w-full text-left my-[2px] underline\" data-category-key=\"";
  203.             // line 72
  204.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "dataKey", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  205.             echo "\">
  206.                             ";
  207.             // line 73
  208.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "categoryName", [], "any"falsefalsetrue73), 73$this->source), "html"nulltrue);
  209.             echo " (";
  210.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "postCount", [], "any"falsefalsetrue73), 73$this->source), "html"nulltrue);
  211.             echo ")
  212.                         </button>
  213.                     </p>
  214.                 ";
  215.         }
  216.         $_parent $context['_parent'];
  217.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  218.         $context array_intersect_key($context$_parent) + $_parent;
  219.         // line 77
  220.         echo "                </div>
  221.             </div>
  222.         </div>
  223.     </div>
  224.         ";
  225.         // line 81
  226.         $context["breadcrumbs"] = [=> ["name" => "お知らせ・読み物"]];
  227.         // line 82
  228.         echo "\t    ";
  229.         $this->loadTemplate("Block/breadcrumbs.twig""@user_data/reading.twig"82)->display($context);
  230.         
  231.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  232.         
  233.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  234.     }
  235.     public function getTemplateName()
  236.     {
  237.         return "@user_data/reading.twig";
  238.     }
  239.     public function isTraitable()
  240.     {
  241.         return false;
  242.     }
  243.     public function getDebugInfo()
  244.     {
  245.         return array (  252 => 82,  250 => 81,  244 => 77,  232 => 73,  228 => 72,  225 => 71,  221 => 70,  214 => 65,  211 => 64,  208 => 63,  205 => 62,  194 => 57,  191 => 56,  188 => 55,  182 => 52,  178 => 51,  173 => 50,  171 => 49,  167 => 48,  161 => 45,  155 => 43,  151 => 42,  143 => 36,  133 => 35,  113 => 23,  103 => 22,  79 => 8,  69 => 7,  58 => 1,  56 => 33,  54 => 5,  52 => 4,  39 => 1,);
  246.     }
  247.     public function getSourceContext()
  248.     {
  249.         return new Source("{% extends 'default_frame.twig' %}
  250. {# 投稿リストの取得 #}
  251. {% set post_list = TabaCMSPostList({ page_count: 10, type_data_key: 'news', category_data_key: app.request.query.get('category_data_key') }) %}
  252. {% set category_list = TabaCMSCategoryList({type_data_key:'news'}) %}
  253. {% block javascript %}
  254.     {{ TabaCMSAsset('script.js','script')|raw }}
  255.     <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\"></script>
  256.     <script>
  257.         \$(document).ready(function() {
  258.             \$('.category-button').on('click', function() {
  259.                 var categoryKey = \$(this).data('category-key');
  260.                 var url = new URL(window.location.href);
  261.                 url.searchParams.set('category_data_key', categoryKey);
  262.                 window.location.href = url.href;
  263.             });
  264.         });
  265.     </script>
  266. {% endblock javascript %}
  267. {% block stylesheet %}
  268.     {{ TabaCMSAsset('style.css','style')|raw }}
  269.     <style>
  270.         @media (min-width: 769px) {
  271.             .content-container.sp {
  272.                 display: none;
  273.             }
  274.         }
  275.     </style>
  276. {% endblock stylesheet %}
  277. {% set breadcrumbs = [{'name': 'ニュース'}] %}
  278. {% block main %}
  279.     <div class=\"flex w-[990px] justify-between mx-auto lg:w-full lg:flex-col lg:items-center lg:px-4\">
  280.         <div class=\"w-[720px] text-[#000000] md:w-full mt-[40px] lg:mt-6\">
  281.             <p class=\"flex justify-center text-[34px] md:text-2xl font-extralight\">お知らせ</p>
  282.             <p class=\"text-[16px] font-[250] items-center mt-6 md:mt-4 mb-10 md:mb-8 md:text-[14px]\">
  283.                 商品についての情報、お得な情報などをお届けします。
  284.             </p>
  285.             {% for post in post_list %}
  286.                 <a href=\"{{ post.getURI }}\" class=\"hover flex gap-2.5 justify-between my-14 md:my-10 md:w-full h-[210px] md:mx-auto md:flex-col md:h-[auto]\">
  287.                     <div class=\"w-[320px] md:w-full\">
  288.                         <img src=\"{{ asset(post.thumbnail|no_image_product, 'save_image') }}\" class=\"w-[320px] h-full md:w-full md:h-[225px] object-cover\">
  289.                     </div>
  290.                     <div class=\"w-[364px] font-[250px] flex flex-col gap-2 md:w-full\">
  291.                         <h2 class=\"text-2xl text-[#000000] md:text-lg font-extralight\">{{ post.getTitle }}</h2>
  292.                         {% if post.category %}
  293.                             <time datetime={{ post.getPublicDate|date('Y-m-d') }} class=\"text-[13px] text-[#666666]\">
  294.                                 <span>{{ post.getPublicDate|date('Y.m.d') }}更新<span>
  295.                                 <span class=\"pl-2\">{{ post.category.categoryName }}<span>
  296.                             </time>
  297.                         {% endif %}
  298.                         {% set stripped_body = post.body|striptags %}
  299.                         <p class=\"text-[14px] text-[#666666]\">
  300.                             {{ stripped_body|length > 90 ? stripped_body|slice(0, 90) ~ '...' : stripped_body|raw }}
  301.                         </p>
  302.                     </div>
  303.                 </a>
  304.             {% endfor %}
  305.             {% if post_list.totalItemCount > 0 %}
  306.                 {% include \"pager.twig\" with {'pages':post_list.paginationData} %}
  307.             {% endif %}
  308.         </div>
  309.         <div class=\"w-[200px] md:w-full flex flex-col mt-1 md:mt-0\">
  310.             <div class=\"text-sm text-[250] text-[#000000] md:p-[30px] md:mt-6 md:bg-[#F6F6F6]\">
  311.                 <p>Category :</p>
  312.                 <div class=\"mt-[10px] text-[#000000] md:font-[400]\">
  313.                 {% for category in category_list %}
  314.                     <p>
  315.                         <button class=\"category-button w-full text-left my-[2px] underline\" data-category-key=\"{{ category.dataKey }}\">
  316.                             {{ category.categoryName }} ({{ category.postCount }})
  317.                         </button>
  318.                     </p>
  319.                 {% endfor %}
  320.                 </div>
  321.             </div>
  322.         </div>
  323.     </div>
  324.         {% set breadcrumbs = [{'name': 'お知らせ・読み物'}] %}
  325. \t    {% include('Block/breadcrumbs.twig') %}
  326. {% endblock %}
  327. ""@user_data/reading.twig""/home/xs082386/manaka-store.com/public_html/stg-renewal.manaka-store.com/app/template/user_data/reading.twig");
  328.     }
  329.     
  330.     public function checkSecurity()
  331.     {
  332.         static $tags = array("set" => 4"for" => 42"if" => 49"include" => 63);
  333.         static $filters = array("raw" => 8"escape" => 43"no_image_product" => 45"date" => 50"striptags" => 55"length" => 57"slice" => 57);
  334.         static $functions = array("TabaCMSPostList" => 4"TabaCMSCategoryList" => 5"TabaCMSAsset" => 8"asset" => 45);
  335.         try {
  336.             $this->sandbox->checkSecurity(
  337.                 ['set''for''if''include'],
  338.                 ['raw''escape''no_image_product''date''striptags''length''slice'],
  339.                 ['TabaCMSPostList''TabaCMSCategoryList''TabaCMSAsset''asset']
  340.             );
  341.         } catch (SecurityError $e) {
  342.             $e->setSourceContext($this->source);
  343.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  344.                 $e->setTemplateLine($tags[$e->getTagName()]);
  345.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  346.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  347.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  348.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  349.             }
  350.             throw $e;
  351.         }
  352.     }
  353. }