var/cache/dev/twig/2a/2a42e2388dc8a76177c5c5ae87819718.php line 41

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. /* __string_template__103145ddcd52d5080a3ad68db6c27693 */
  14. class __TwigTemplate_b5149dcfff3464cc70eab8ed0f9bc184 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__103145ddcd52d5080a3ad68db6c27693"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 14
  42.         $context["price_ranges"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\lecastPriceSelectBlock42\\Entity\\PriceRange"), "getPriceRange", [], "any"falsefalsetrue14);
  43.         // line 15
  44.         $context["price_range_text"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsefalsetrue15), "query", [], "any"falsefalsetrue15), "get", [=> "price_range"], "method"falsefalsetrue15);
  45.         // line 11
  46.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__103145ddcd52d5080a3ad68db6c27693"11);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.     }
  51.     // line 17
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 18
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 20
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  78.             // line 21
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue21), 21$this->source), "js"), "html"nulltrue);
  81.             echo "\": ";
  82.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 21$this->source));
  83.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue21) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 22
  87.             echo "            ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 23
  101.         echo "        };
  102.         \$(function() {
  103.             // 表示件数を変更
  104.             \$('.disp-number').change(function() {
  105.                 var dispNumber = \$(this).val();
  106.                 \$('#disp_number').val(dispNumber);
  107.                 \$('#pageno').val(1);
  108.                 \$(\"#form1\").submit();
  109.             });
  110.             // 並び順を変更
  111.             \$('.order-by').change(function() {
  112.                 var orderBy = \$(this).val();
  113.                 \$('#orderby').val(orderBy);
  114.                 \$('#pageno').val(1);
  115.                 \$(\"#form1\").submit();
  116.             });
  117.             \$('.add-cart').on('click', function(e) {
  118.                 var \$form = \$(this).parents('li').find('form');
  119.                 // 個数フォームのチェック
  120.                 var \$quantity = \$form.parent().find('.quantity');
  121.                 if (\$quantity.val() < 1) {
  122.                     \$quantity[0].setCustomValidity('";
  123.         // line 49
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  125.         echo "');
  126.                     setTimeout(function() {
  127.                         loadingOverlay('hide');
  128.                     }, 100);
  129.                     return true;
  130.                 } else {
  131.                     \$quantity[0].setCustomValidity('');
  132.                 }
  133.                 e.preventDefault();
  134.                 \$.ajax({
  135.                     url: \$form.attr('action'),
  136.                     type: \$form.attr('method'),
  137.                     data: \$form.serialize(),
  138.                     dataType: 'json',
  139.                     beforeSend: function(xhr, settings) {
  140.                         // Buttonを無効にする
  141.                         \$('.add-cart').prop('disabled', true);
  142.                     }
  143.                 }).done(function(data) {
  144.                     // レスポンス内のメッセージをalertで表示
  145.                     \$.each(data.messages, function() {
  146.                         \$('#ec-modal-header').html(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 77
  153.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("block_cart");
  154.         echo "',
  155.                         type: 'GET',
  156.                         dataType: 'html'
  157.                     }).done(function(html) {
  158.                         \$('.ec-headerRole__cart').html(html);
  159.                     });
  160.                 }).fail(function(data) {
  161.                     alert('";
  162.         // line 84
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
  172.             \$('.ec-modal').hide()
  173.         });
  174.     </script>
  175. \t<script type=\"text/javascript\">
  176. \t\tjQuery(function(\$){
  177. \t\t\t\$(\".ec-shelfRole .quantity\").after('<span id=\"add1\" class=\"plus\">+</span>').before('<span id=\"minus1\" class=\"minus\">-</span>');
  178. \t\t\t\$(\".plus\").click(function(){
  179. \t\t\t\tvar currentVal = parseInt(jQuery(this).prev(\".ec-shelfRole .quantity\").val());
  180. \t\t\t\tif (!currentVal || currentVal==\"\" || currentVal == \"NaN\") currentVal = 0;
  181. \t\t\t\t\$(this).prev(\".ec-shelfRole .quantity\").val(currentVal + 1);
  182. \t\t\t});
  183. \t\t\t\$(\".minus\").click(function(){
  184. \t\t\t\tvar currentVal = parseInt(jQuery(this).next(\".ec-shelfRole .quantity\").val());
  185. \t\t\t\tif (currentVal == \"NaN\") currentVal = 0;
  186. \t\t\t\tif (currentVal > 0) {
  187. \t\t\t\t\t\$(this).next(\".ec-shelfRole .quantity\").val(currentVal - 1);
  188. \t\t\t\t}
  189. \t\t\t});
  190. \t\t});
  191.     </script>
  192. \t<script type=\"text/javascript\">
  193. \t\t\$(function() {
  194. \t\t\t\$('.ec-searchnavRole__infos .ec-searchnavRole__actions .square').click(function() {
  195. \t\t\t\t\$(this).addClass('active');
  196. \t\t\t\t\$('.ec-searchnavRole__infos .ec-searchnavRole__actions .list').removeClass('active');
  197. \t\t\t\t
  198. \t\t\t\t\$('.ec-shelfGrid').removeClass('column1');
  199. \t\t\t\t";
  200.         // line 123
  201.         if ((twig_get_attribute($this->env$this->source, ($context["Layout"] ?? null), "SideLeft", [], "any"falsefalsetrue123) || twig_get_attribute($this->env$this->source, ($context["Layout"] ?? null), "SideRight", [], "any"falsefalsetrue123))) {
  202.             // line 124
  203.             echo "\t\t\t\t\t\$('.ec-shelfGrid__item').addClass('column4');
  204. \t\t\t\t";
  205.         } else {
  206.             // line 126
  207.             echo "\t\t\t\t\t\$('.ec-shelfGrid__item').addClass('column5');
  208. \t\t\t\t";
  209.         }
  210.         // line 128
  211.         echo "\t\t\t});
  212. \t\t\t\$('.ec-searchnavRole__infos .ec-searchnavRole__actions .list').click(function() {
  213. \t\t\t\t\$(this).addClass('active');
  214. \t\t\t\t\$('.ec-searchnavRole__infos .ec-searchnavRole__actions .square').removeClass('active');
  215. \t\t\t\t\$('.ec-shelfGrid').addClass('column1');
  216. \t\t\t\t";
  217.         // line 135
  218.         if ((twig_get_attribute($this->env$this->source, ($context["Layout"] ?? null), "SideLeft", [], "any"falsefalsetrue135) || twig_get_attribute($this->env$this->source, ($context["Layout"] ?? null), "SideRight", [], "any"falsefalsetrue135))) {
  219.             // line 136
  220.             echo "\t\t\t\t\t\$('.ec-shelfGrid__item').removeClass('column4');
  221. \t\t\t\t";
  222.         } else {
  223.             // line 138
  224.             echo "\t\t\t\t\t\$('.ec-shelfGrid__item').removeClass('column5');
  225. \t\t\t\t";
  226.         }
  227.         // line 140
  228.         echo "\t\t\t});
  229. \t\t});
  230.     </script>
  231. ";
  232.         
  233.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  234.     }
  235.     // line 145
  236.     public function block_main($context, array $blocks = [])
  237.     {
  238.         $macros $this->macros;
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  240.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  241.         // line 146
  242.         echo "    ";
  243.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "category_id", [], "any"falsefalsetrue146), "vars", [], "any"falsefalsetrue146), "errors", [], "any"falsefalsetrue146)) > 0)) {
  244.             // line 147
  245.             echo "        <div class=\"ec-searchnavRole\">
  246.             <p class=\"errormsg text-danger\">";
  247.             // line 148
  248.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  249.             echo "</p>
  250.         </div>
  251.     ";
  252.         } else {
  253.             // line 151
  254.             echo "        <div class=\"ec-searchnavRole\">
  255.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  256.                 ";
  257.             // line 153
  258.             $context['_parent'] = $context;
  259.             $context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
  260.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  261.                 // line 154
  262.                 echo "                    <input type=\"hidden\" id=\"";
  263.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue154), "id", [], "any"falsefalsetrue154), 154$this->source), "html"nulltrue);
  264.                 echo "\"
  265.                            name=\"";
  266.                 // line 155
  267.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue155), "full_name", [], "any"falsefalsetrue155), 155$this->source), "html"nulltrue);
  268.                 echo "\"
  269.                            ";
  270.                 // line 156
  271.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue156), "value", [], "any"falsefalsetrue156))) {
  272.                     echo "value=\"";
  273.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue156), "value", [], "any"falsefalsetrue156), 156$this->source), "html"nulltrue);
  274.                     echo "\" ";
  275.                 }
  276.                 echo "/>
  277.                 ";
  278.             }
  279.             $_parent $context['_parent'];
  280.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  281.             $context array_intersect_key($context$_parent) + $_parent;
  282.             // line 158
  283.             echo "            </form>
  284.             <!-- ▼item_list▼ -->
  285.             <div class=\"ec-shelfRole\">
  286.                 <div class=\"ec-itemNav\" style=\"color: #ff8c00;\">【価格帯】</div>
  287.                 <ul class=\"ec-itemNav__nav\">
  288.                     ";
  289.             // line 164
  290.             $context['_parent'] = $context;
  291.             $context['_seq'] = twig_ensure_traversable(($context["price_ranges"] ?? null));
  292.             foreach ($context['_seq'] as $context["_key"] => $context["PriceRange"]) {
  293.                 // line 165
  294.                 echo "                        <li>
  295.                             <a style=\"background: #ffffe0;\" href=\"";
  296.                 // line 166
  297.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list", ["price_range" => (($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["PriceRange"], "min_value", [], "any"falsefalsetrue166), 166$this->source) . "-") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["PriceRange"], "max_value", [], "any"falsefalsetrue166), 166$this->source))]), "html"nulltrue);
  298.                 if ( !(null === ($context["Category"] ?? null))) {
  299.                     echo "&category_id=";
  300.                     $context['_parent'] = $context;
  301.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsetrue166));
  302.                     $context['loop'] = [
  303.                       'parent' => $context['_parent'],
  304.                       'index0' => 0,
  305.                       'index'  => 1,
  306.                       'first'  => true,
  307.                     ];
  308.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  309.                         $length count($context['_seq']);
  310.                         $context['loop']['revindex0'] = $length 1;
  311.                         $context['loop']['revindex'] = $length;
  312.                         $context['loop']['length'] = $length;
  313.                         $context['loop']['last'] = === $length;
  314.                     }
  315.                     foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  316.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue166)) {
  317.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue166), 166$this->source), "html"nulltrue);
  318.                         }
  319.                         ++$context['loop']['index0'];
  320.                         ++$context['loop']['index'];
  321.                         $context['loop']['first'] = false;
  322.                         if (isset($context['loop']['length'])) {
  323.                             --$context['loop']['revindex0'];
  324.                             --$context['loop']['revindex'];
  325.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  326.                         }
  327.                     }
  328.                     $_parent $context['_parent'];
  329.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  330.                     $context array_intersect_key($context$_parent) + $_parent;
  331.                 }
  332.                 echo "\">
  333.                                 <p>";
  334.                 // line 167
  335.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["PriceRange"], "display_name", [], "any"falsefalsetrue167), 167$this->source);
  336.                 echo "</p>
  337.                             </a>
  338.                         </li>
  339.                     ";
  340.             }
  341.             $_parent $context['_parent'];
  342.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['PriceRange'], $context['_parent'], $context['loop']);
  343.             $context array_intersect_key($context$_parent) + $_parent;
  344.             // line 171
  345.             echo "                </ul>
  346.                 ";
  347.             // line 172
  348.             if ( !twig_test_empty(($context["price_range_text"] ?? null))) {
  349.                 echo "<p style=\"width: 77%; background: #666666; color: #ffffff; font-weight: bold;\"> > ";
  350.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(($context["price_range_text"] ?? null), 172$this->source), "html"nulltrue);
  351.                 echo "円で絞込 </p>";
  352.             }
  353.             // line 173
  354.             echo "            </div>
  355.             <!-- ▲item_list▲ -->
  356. <br />
  357.             <div class=\"ec-searchnavRole__topicpath\">
  358.                 <ol class=\"ec-topicpath\">
  359.                     <li class=\"ec-topicpath__item\"><a href=\"";
  360.             // line 178
  361.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  362.             echo "\">";
  363.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全ての商品"), "html"nulltrue);
  364.             echo "</a>
  365.                     </li>
  366.                     ";
  367.             // line 180
  368.             if ( !(null === ($context["Category"] ?? null))) {
  369.                 // line 181
  370.                 echo "                        ";
  371.                 $context['_parent'] = $context;
  372.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsetrue181));
  373.                 $context['loop'] = [
  374.                   'parent' => $context['_parent'],
  375.                   'index0' => 0,
  376.                   'index'  => 1,
  377.                   'first'  => true,
  378.                 ];
  379.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  380.                     $length count($context['_seq']);
  381.                     $context['loop']['revindex0'] = $length 1;
  382.                     $context['loop']['revindex'] = $length;
  383.                     $context['loop']['length'] = $length;
  384.                     $context['loop']['last'] = === $length;
  385.                 }
  386.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  387.                     // line 182
  388.                     echo "                            <li class=\"ec-topicpath__divider\"><i class=\"ec-headerNav__itemIcon fas fa-angle-right fa-fw\"></i></li>
  389.                             <li class=\"ec-topicpath__item";
  390.                     // line 183
  391.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue183)) {
  392.                         echo "--active";
  393.                     }
  394.                     echo "\"><a
  395.                                         href=\"";
  396.                     // line 184
  397.                     echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  398.                     echo "?category_id=";
  399.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue184), 184$this->source), "html"nulltrue);
  400.                     echo "\">";
  401.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue184), 184$this->source), "html"nulltrue);
  402.                     echo "</a>
  403.                             </li>
  404.                         ";
  405.                     ++$context['loop']['index0'];
  406.                     ++$context['loop']['index'];
  407.                     $context['loop']['first'] = false;
  408.                     if (isset($context['loop']['length'])) {
  409.                         --$context['loop']['revindex0'];
  410.                         --$context['loop']['revindex'];
  411.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  412.                     }
  413.                 }
  414.                 $_parent $context['_parent'];
  415.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  416.                 $context array_intersect_key($context$_parent) + $_parent;
  417.                 // line 187
  418.                 echo "                    ";
  419.             }
  420.             // line 188
  421.             echo "                    ";
  422.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue188), "value", [], "any"falsefalsetrue188) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue188), "value", [], "any"falsefalsetrue188), "name", [], "any"falsefalsetrue188))) {
  423.                 // line 189
  424.                 echo "                        <li class=\"ec-topicpath__item\">";
  425.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue189), "value", [], "any"falsefalsetrue189), "name", [], "any"falsefalsetrue189)]), "html"nulltrue);
  426.                 echo "</li>
  427.                     ";
  428.             }
  429.             // line 191
  430.             echo "                </ol>
  431.             </div>
  432.             <div class=\"ec-searchnavRole__infos\">
  433.                 <div class=\"ec-searchnavRole__counter\">
  434.                     ";
  435.             // line 196
  436.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue196) > 0)) {
  437.                 // line 197
  438.                 echo "                        ";
  439.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue197)]);
  440.                 echo "
  441.                     ";
  442.             } else {
  443.                 // line 199
  444.                 echo "                        <span>";
  445.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  446.                 echo "</span>
  447.                     ";
  448.             }
  449.             // line 201
  450.             echo "                </div>
  451.                 ";
  452.             // line 202
  453.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue202) > 0)) {
  454.                 // line 203
  455.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  456.                         <div class=\"ec-select\">
  457.                         \t<span class=\"square active\"><i class=\"fas fa-th\"></i></span><!-- ★初期値「縦一列(1カラム)」①/③ span classから「active」を削除 -->
  458.                             <span class=\"list\"><i class=\"fas fa-list\"></i></span><!-- ★初期値「縦一列(1カラム)」②/③ span classに「active」を追加 -->
  459.                             ";
  460.                 // line 207
  461.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "disp_number", [], "any"falsefalsetrue207), 207$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  462.                 echo "
  463.                             ";
  464.                 // line 208
  465.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "orderby", [], "any"falsefalsetrue208), 208$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  466.                 echo "
  467.                         </div>
  468.                     </div>
  469.                 ";
  470.             }
  471.             // line 212
  472.             echo "            </div>
  473.         </div>
  474.         
  475.         ";
  476.             // line 215
  477.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue215) > 0)) {
  478.                 // line 216
  479.                 echo "            <div class=\"ec-shelfRole\">
  480.                 <ul class=\"ec-shelfGrid\"><!-- ★初期値「縦一列(1カラム)」②/③ classに「column1」を追加 -->
  481.                     ";
  482.                 // line 218
  483.                 $context['_parent'] = $context;
  484.                 $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  485.                 $context['loop'] = [
  486.                   'parent' => $context['_parent'],
  487.                   'index0' => 0,
  488.                   'index'  => 1,
  489.                   'first'  => true,
  490.                 ];
  491.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  492.                     $length count($context['_seq']);
  493.                     $context['loop']['revindex0'] = $length 1;
  494.                     $context['loop']['revindex'] = $length;
  495.                     $context['loop']['length'] = $length;
  496.                     $context['loop']['last'] = === $length;
  497.                 }
  498.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  499.                     // line 219
  500.                     echo "                        <li class=\"ec-shelfGrid__item";
  501.                     if ((twig_get_attribute($this->env$this->source, ($context["Layout"] ?? null), "SideLeft", [], "any"falsefalsetrue219) || twig_get_attribute($this->env$this->source, ($context["Layout"] ?? null), "SideRight", [], "any"falsefalsetrue219))) {
  502.                         echo " column4";
  503.                     } else {
  504.                         echo " column5";
  505.                     }
  506.                     echo "\">
  507.                             
  508. \t\t\t\t\t\t\t<div class=\"ec-shelfGrid__item-image\">
  509. \t\t\t\t\t\t\t\t<a href=\"";
  510.                     // line 222
  511.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue222)]), "html"nulltrue);
  512.                     echo "\"><img src=\"";
  513.                     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["Product"], "main_list_image", [], "any"falsefalsetrue222), 222$this->source)), "save_image"), "html"nulltrue);
  514.                     echo "\"></a>
  515. \t\t\t\t\t\t\t</div>
  516.                             
  517. \t\t\t\t\t\t\t<div class=\"name_price_area\">
  518.                                 <a href=\"";
  519.                     // line 226
  520.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue226)]), "html"nulltrue);
  521.                     echo "\">
  522.                                     <p class=\"product_name\">";
  523.                     // line 227
  524.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue227), 227$this->source), "html"nulltrue);
  525.                     echo "</p>
  526.                                 <p class=\"price02-default\">
  527.                                     ";
  528.                     // line 229
  529.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue229)) {
  530.                         // line 230
  531.                         echo "                                        ";
  532.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue230) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue230))) {
  533.                             // line 231
  534.                             echo "                                            ";
  535.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue231), 231$this->source)), "html"nulltrue);
  536.                             echo "
  537.                                         ";
  538.                         } else {
  539.                             // line 233
  540.                             echo "                                            ";
  541.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue233), 233$this->source)), "html"nulltrue);
  542.                             echo " ~ ";
  543.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue233), 233$this->source)), "html"nulltrue);
  544.                             echo "
  545.                                         ";
  546.                         }
  547.                         // line 235
  548.                         echo "                                    ";
  549.                     } else {
  550.                         // line 236
  551.                         echo "                                        ";
  552.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue236), 236$this->source)), "html"nulltrue);
  553.                         echo "
  554.                                     ";
  555.                     }
  556.                     // line 238
  557.                     echo "                                </p>
  558.                                     <p class=\"description_list\">";
  559.                     // line 239
  560.                     echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue239), 239$this->source));
  561.                     echo "</p>
  562.                             </a>
  563.                             ";
  564.                     // line 242
  565.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue242)) {
  566.                         // line 243
  567.                         echo "                                ";
  568.                         $context["form"] = (($__internal_compile_0 = ($context["forms"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue243)] ?? null) : null);
  569.                         // line 244
  570.                         echo "                                <form name=\"form";
  571.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue244), 244$this->source), "html"nulltrue);
  572.                         echo "\" id=\"productForm";
  573.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue244), 244$this->source), "html"nulltrue);
  574.                         echo "\" action=\"";
  575.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue244)]), "html"nulltrue);
  576.                         echo "\" method=\"post\">
  577.                                     <div class=\"ec-productRole__actions\">
  578.                                         ";
  579.                         // line 246
  580.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue246)) {
  581.                             // line 247
  582.                             echo "                                            <div class=\"ec-select\">
  583.                                                 ";
  584.                             // line 248
  585.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsetrue248), 248$this->source), 'widget');
  586.                             echo "
  587.                                                 ";
  588.                             // line 249
  589.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsetrue249), 249$this->source), 'errors');
  590.                             echo "
  591.                                             </div>
  592.                                             ";
  593.                             // line 251
  594.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue251)) {
  595.                                 // line 252
  596.                                 echo "                                                <div class=\"ec-select\">
  597.                                                     ";
  598.                                 // line 253
  599.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsetrue253), 253$this->source), 'widget');
  600.                                 echo "
  601.                                                     ";
  602.                                 // line 254
  603.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsetrue254), 254$this->source), 'errors');
  604.                                 echo "
  605.                                                 </div>
  606.                                             ";
  607.                             }
  608.                             // line 257
  609.                             echo "                                        ";
  610.                         }
  611.                         // line 258
  612.                         echo "                                            ";
  613.                         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Product/option.twig");
  614.                         echo "<div class=\"ec-numberInput\">
  615.                                             ";
  616.                         // line 259
  617.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsetrue259), 259$this->source), 'widget', ["attr" => ["class" => "quantity"]]);
  618.                         echo "
  619.                                             ";
  620.                         // line 260
  621.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsetrue260), 260$this->source), 'errors');
  622.                         echo "
  623.                                         </div>
  624.                                     </div>
  625.                                     ";
  626.                         // line 263
  627.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(($context["form"] ?? null), 263$this->source), 'rest');
  628.                         echo "
  629.                                 </form>
  630.                                 <div class=\"ec-productRole__btn\">
  631.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  632.                         // line 266
  633.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue266), 266$this->source), "html"nulltrue);
  634.                         echo "\" form=\"productForm";
  635.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue266), 266$this->source), "html"nulltrue);
  636.                         echo "\">
  637.                                         <i class=\"fas fa-shopping-cart\"></i> ";
  638.                         // line 267
  639.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  640.                         echo "
  641.                                     </button>
  642.                                 </div>
  643.                             ";
  644.                     } else {
  645.                         // line 271
  646.                         echo "                                <div class=\"ec-productRole__btn\">
  647.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  648.                                         ";
  649.                         // line 273
  650.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  651.                         echo "
  652.                                     </button>
  653.                                 </div>
  654.                             ";
  655.                     }
  656.                     // line 277
  657.                     echo "                            </div>
  658.                         </li>
  659.                     ";
  660.                     ++$context['loop']['index0'];
  661.                     ++$context['loop']['index'];
  662.                     $context['loop']['first'] = false;
  663.                     if (isset($context['loop']['length'])) {
  664.                         --$context['loop']['revindex0'];
  665.                         --$context['loop']['revindex'];
  666.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  667.                     }
  668.                 }
  669.                 $_parent $context['_parent'];
  670.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  671.                 $context array_intersect_key($context$_parent) + $_parent;
  672.                 // line 280
  673.                 echo "                </ul>
  674.             </div>
  675.             ";
  676.                 // line 282
  677.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Product/option_description.twig");
  678.                 echo "<div class=\"ec-modal\">
  679.                 <div class=\"ec-modal-overlay\">
  680.                     <div class=\"ec-modal-wrap\">
  681.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  682.                 // line 285
  683.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  684.                 echo "\" alt=\"\"/></span></span>
  685.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  686.                 // line 286
  687.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  688.                 echo "</div>
  689.                         <div class=\"ec-modal-box\">
  690.                             <div class=\"ec-role\">
  691.                                 <span class=\"ec-inlineBtn--cancel\">";
  692.                 // line 289
  693.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  694.                 echo "</span>
  695.                                 <a href=\"";
  696.                 // line 290
  697.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
  698.                 echo "\" class=\"ec-inlineBtn--action\">";
  699.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  700.                 echo "</a>
  701.                             </div>
  702.                         </div>
  703.                     </div>
  704.                 </div>
  705.             </div>
  706.             <div class=\"ec-pagerRole\">
  707.                 ";
  708.                 // line 297
  709.                 $this->loadTemplate("pager.twig""__string_template__103145ddcd52d5080a3ad68db6c27693"297)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"falsefalsetrue297)]));
  710.                 // line 298
  711.                 echo "            </div>
  712.         ";
  713.             }
  714.             // line 300
  715.             echo "    ";
  716.         }
  717.         
  718.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  719.     }
  720.     public function getTemplateName()
  721.     {
  722.         return "__string_template__103145ddcd52d5080a3ad68db6c27693";
  723.     }
  724.     public function isTraitable()
  725.     {
  726.         return false;
  727.     }
  728.     public function getDebugInfo()
  729.     {
  730.         return array (  745 => 300,  741 => 298,  739 => 297,  727 => 290,  723 => 289,  717 => 286,  713 => 285,  707 => 282,  703 => 280,  687 => 277,  680 => 273,  676 => 271,  669 => 267,  663 => 266,  657 => 263,  651 => 260,  647 => 259,  642 => 258,  639 => 257,  633 => 254,  629 => 253,  626 => 252,  624 => 251,  619 => 249,  615 => 248,  612 => 247,  610 => 246,  600 => 244,  597 => 243,  595 => 242,  589 => 239,  586 => 238,  580 => 236,  577 => 235,  569 => 233,  563 => 231,  560 => 230,  558 => 229,  553 => 227,  549 => 226,  540 => 222,  529 => 219,  512 => 218,  508 => 216,  506 => 215,  501 => 212,  494 => 208,  490 => 207,  484 => 203,  482 => 202,  479 => 201,  473 => 199,  467 => 197,  465 => 196,  458 => 191,  452 => 189,  449 => 188,  446 => 187,  425 => 184,  419 => 183,  416 => 182,  398 => 181,  396 => 180,  389 => 178,  382 => 173,  376 => 172,  373 => 171,  363 => 167,  325 => 166,  322 => 165,  318 => 164,  310 => 158,  298 => 156,  294 => 155,  289 => 154,  285 => 153,  281 => 151,  275 => 148,  272 => 147,  269 => 146,  262 => 145,  252 => 140,  248 => 138,  244 => 136,  242 => 135,  233 => 128,  229 => 126,  225 => 124,  223 => 123,  181 => 84,  171 => 77,  140 => 49,  112 => 23,  98 => 22,  90 => 21,  73 => 20,  69 => 18,  62 => 17,  54 => 11,  52 => 15,  50 => 14,  48 => 13,  38 => 11,);
  731.     }
  732.     public function getSourceContext()
  733.     {
  734.         return new Source("""__string_template__103145ddcd52d5080a3ad68db6c27693""");
  735.     }
  736.     
  737.     public function checkSecurity()
  738.     {
  739.         static $tags = array("set" => 13"for" => 20"if" => 21"include" => 297);
  740.         static $filters = array("escape" => 21"raw" => 21"trans" => 49"length" => 146"no_image_product" => 222"price" => 231"nl2br" => 239);
  741.         static $functions = array("repository" => 14"class_categories_as_json" => 21"url" => 77"form_widget" => 207"asset" => 222"form_errors" => 249"include" => 258"form_rest" => 263);
  742.         try {
  743.             $this->sandbox->checkSecurity(
  744.                 ['set''for''if''include'],
  745.                 ['escape''raw''trans''length''no_image_product''price''nl2br'],
  746.                 ['repository''class_categories_as_json''url''form_widget''asset''form_errors''include''form_rest']
  747.             );
  748.         } catch (SecurityError $e) {
  749.             $e->setSourceContext($this->source);
  750.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  751.                 $e->setTemplateLine($tags[$e->getTagName()]);
  752.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  753.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  754.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  755.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  756.             }
  757.             throw $e;
  758.         }
  759.     }
  760. }