var/cache/dev/twig/a8/a8ec8be621e6cfdaafb8d7b5b754af2f.php line 54

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. /* Contact/index.twig */
  14. class __TwigTemplate_d5ae11e7024494570a830f94a2ef1b10 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""Contact/index.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Contact/index.twig"));
  41.         // line 13
  42.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'13$this->source); })()), [=> "Form/form_div_layout.twig"], true);
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""Contact/index.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 15
  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.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 16
  60.         echo "    <script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
  61. ";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 19
  68.     public function block_main($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  75.         // line 20
  76.         echo "
  77.     <div class=\"ec-contactRole\">
  78.         <div class=\"ec-pageHeader\">
  79.             <h1>";
  80.         // line 23
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html"nulltrue);
  82.         echo "</h1>
  83.         </div>
  84.         <div class=\"ec-off1Grid\">
  85.             <div class=\"ec-off1Grid__cell\">
  86.                 <form method=\"post\" action=\"";
  87.         // line 27
  88.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  89.         echo "\" class=\"h-adr\" novalidate>
  90.                     <span class=\"p-country-name\" style=\"display:none;\">Japan</span>
  91.                     ";
  92.         // line 29
  93.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })()), "_token", [], "any"falsefalsetrue29), 29$this->source), 'widget');
  94.         echo "
  95.                     <p class=\"ec-para-normal\">";
  96.         // line 30
  97.         echo twig_nl2br(twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("内容によっては回答をさしあげるのにお時間をいただくこともございます。
  98. また、休業日は翌営業日以降の対応となりますのでご了承ください。
  99. "), "html"nulltrue));
  100.         // line 32
  101.         echo "</p>
  102.                     <div class=\"ec-borderedDefs\">
  103.                         <dl>
  104.                             <dt>
  105.                                 ";
  106.         // line 36
  107.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'36$this->source); })()), "name", [], "any"falsefalsetrue36), 36$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お名前"]);
  108.         echo "
  109.                             </dt>
  110.                             <dd>
  111.                                 <div class=\"ec-halfInput";
  112.         // line 39
  113.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'39$this->source); })()), "name", [], "any"falsefalsetrue39), "name01", [], "any"falsefalsetrue39), 39$this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'39$this->source); })()), "name", [], "any"falsefalsetrue39), "name02", [], "any"falsefalsetrue39), 39$this->source))) ? (" error") : (""));
  114.         echo "\">
  115.                                     ";
  116.         // line 40
  117.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "name", [], "any"falsefalsetrue40), "name01", [], "any"falsefalsetrue40), 40$this->source), 'widget', ["attr" => ["placeholder" => "姓"]]);
  118.         echo "
  119.                                     ";
  120.         // line 41
  121.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'41$this->source); })()), "name", [], "any"falsefalsetrue41), "name02", [], "any"falsefalsetrue41), 41$this->source), 'widget', ["attr" => ["placeholder" => "名"]]);
  122.         echo "
  123.                                     ";
  124.         // line 42
  125.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'42$this->source); })()), "name", [], "any"falsefalsetrue42), "name01", [], "any"falsefalsetrue42), 42$this->source), 'errors');
  126.         echo "
  127.                                     ";
  128.         // line 43
  129.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'43$this->source); })()), "name", [], "any"falsefalsetrue43), "name02", [], "any"falsefalsetrue43), 43$this->source), 'errors');
  130.         echo "
  131.                                 </div>
  132.                             </dd>
  133.                         </dl>
  134.                         <dl>
  135.                             <dt>
  136.                                 ";
  137.         // line 49
  138.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'49$this->source); })()), "kana", [], "any"falsefalsetrue49), 49$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お名前(カナ)"]);
  139.         echo "
  140.                             </dt>
  141.                             <dd>
  142.                                 <div class=\"ec-halfInput";
  143.         // line 52
  144.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'52$this->source); })()), "kana", [], "any"falsefalsetrue52), "kana01", [], "any"falsefalsetrue52), 52$this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'52$this->source); })()), "kana", [], "any"falsefalsetrue52), "kana02", [], "any"falsefalsetrue52), 52$this->source))) ? (" error") : (""));
  145.         echo "\">
  146.                                     ";
  147.         // line 53
  148.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'53$this->source); })()), "kana", [], "any"falsefalsetrue53), "kana01", [], "any"falsefalsetrue53), 53$this->source), 'widget', ["attr" => ["placeholder" => "セイ"]]);
  149.         echo "
  150.                                     ";
  151.         // line 54
  152.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'54$this->source); })()), "kana", [], "any"falsefalsetrue54), "kana02", [], "any"falsefalsetrue54), 54$this->source), 'widget', ["attr" => ["placeholder" => "メイ"]]);
  153.         echo "
  154.                                     ";
  155.         // line 55
  156.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'55$this->source); })()), "kana", [], "any"falsefalsetrue55), "kana01", [], "any"falsefalsetrue55), 55$this->source), 'errors');
  157.         echo "
  158.                                     ";
  159.         // line 56
  160.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'56$this->source); })()), "kana", [], "any"falsefalsetrue56), "kana02", [], "any"falsefalsetrue56), 56$this->source), 'errors');
  161.         echo "
  162.                                 </div>
  163.                             </dd>
  164.                         </dl>
  165.                         <dl>
  166.                             <dt>
  167.                                 ";
  168.         // line 62
  169.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'62$this->source); })()), "address", [], "any"falsefalsetrue62), 62$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "住所"]);
  170.         echo "
  171.                             </dt>
  172.                             <dd>
  173.                                 <div class=\"ec-zipInput";
  174.         // line 65
  175.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'65$this->source); })()), "postal_code", [], "any"falsefalsetrue65), 65$this->source))) ? (" error") : (""));
  176.         echo "\">
  177.                                     <span>";
  178.         // line 66
  179.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("〒"), "html"nulltrue);
  180.         echo "</span>
  181.                                     ";
  182.         // line 67
  183.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'67$this->source); })()), "postal_code", [], "any"falsefalsetrue67), 67$this->source), 'widget');
  184.         echo "
  185.                                     <div class=\"ec-zipInputHelp\">
  186.                                         <div class=\"ec-zipInputHelp__icon\">
  187.                                             <div class=\"ec-icon\"><img
  188.                                                     src=\"";
  189.         // line 71
  190.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/question-white.svg"), "html"nulltrue);
  191.         echo "\" alt=\"\">
  192.                                             </div>
  193.                                         </div><a href=\"https://www.post.japanpost.jp/zipcode/\" target=\"_blank\"><span>";
  194.         // line 73
  195.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("郵便番号検索"), "html"nulltrue);
  196.         echo "</span></a>
  197.                                     </div>
  198.                                     ";
  199.         // line 75
  200.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'75$this->source); })()), "postal_code", [], "any"falsefalsetrue75), 75$this->source), 'errors');
  201.         echo "
  202.                                 </div>
  203.                                 <div class=\"ec-select";
  204.         // line 77
  205.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'77$this->source); })()), "address", [], "any"falsefalsetrue77), "pref", [], "any"falsefalsetrue77), 77$this->source))) ? (" error") : (""));
  206.         echo "\">
  207.                                     ";
  208.         // line 78
  209.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'78$this->source); })()), "address", [], "any"falsefalsetrue78), "pref", [], "any"falsefalsetrue78), 78$this->source), 'widget');
  210.         echo "
  211.                                     ";
  212.         // line 79
  213.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'79$this->source); })()), "address", [], "any"falsefalsetrue79), "pref", [], "any"falsefalsetrue79), 79$this->source), 'errors');
  214.         echo "
  215.                                 </div>
  216.                                 <div class=\"ec-input";
  217.         // line 81
  218.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'81$this->source); })()), "address", [], "any"falsefalsetrue81), "addr01", [], "any"falsefalsetrue81), 81$this->source))) ? (" error") : (""));
  219.         echo "\">
  220.                                     ";
  221.         // line 82
  222.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'82$this->source); })()), "address", [], "any"falsefalsetrue82), "addr01", [], "any"falsefalsetrue82), 82$this->source), 'widget', ["attr" => ["placeholder" => "市区町村名(例:大阪市北区)"]]);
  223.         echo "
  224.                                     ";
  225.         // line 83
  226.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'83$this->source); })()), "address", [], "any"falsefalsetrue83), "addr01", [], "any"falsefalsetrue83), 83$this->source), 'errors');
  227.         echo "
  228.                                 </div>
  229.                                 <div class=\"ec-input";
  230.         // line 85
  231.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'85$this->source); })()), "address", [], "any"falsefalsetrue85), "addr02", [], "any"falsefalsetrue85), 85$this->source))) ? (" error") : (""));
  232.         echo "\">
  233.                                     ";
  234.         // line 86
  235.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'86$this->source); })()), "address", [], "any"falsefalsetrue86), "addr02", [], "any"falsefalsetrue86), 86$this->source), 'widget', ["attr" => ["placeholder" => "番地・ビル名(例:西梅田1丁目6-8)"]]);
  236.         echo "
  237.                                     ";
  238.         // line 87
  239.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'87$this->source); })()), "address", [], "any"falsefalsetrue87), "addr02", [], "any"falsefalsetrue87), 87$this->source), 'errors');
  240.         echo "
  241.                                 </div>
  242.                             </dd>
  243.                         </dl>
  244.                         <dl>
  245.                             <dt>
  246.                                 ";
  247.         // line 93
  248.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'93$this->source); })()), "phone_number", [], "any"falsefalsetrue93), 93$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "電話番号"]);
  249.         echo "
  250.                             </dt>
  251.                             <dd>
  252.                                 <div class=\"ec-telInput";
  253.         // line 96
  254.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'96$this->source); })()), "phone_number", [], "any"falsefalsetrue96), 96$this->source))) ? (" error") : (""));
  255.         echo "\">
  256.                                     ";
  257.         // line 97
  258.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'97$this->source); })()), "phone_number", [], "any"falsefalsetrue97), 97$this->source), 'widget');
  259.         echo "
  260.                                     ";
  261.         // line 98
  262.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'98$this->source); })()), "phone_number", [], "any"falsefalsetrue98), 98$this->source), 'errors');
  263.         echo "
  264.                                 </div>
  265.                             </dd>
  266.                         </dl>
  267.                         <dl>
  268.                             <dt>
  269.                                 ";
  270.         // line 104
  271.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'104$this->source); })()), "email", [], "any"falsefalsetrue104), 104$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "メールアドレス"]);
  272.         echo "
  273.                             </dt>
  274.                             <dd>
  275.                                 <div class=\"ec-input";
  276.         // line 107
  277.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'107$this->source); })()), "email", [], "any"falsefalsetrue107), 107$this->source))) ? (" error") : (""));
  278.         echo "\">
  279.                                     ";
  280.         // line 108
  281.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'108$this->source); })()), "email", [], "any"falsefalsetrue108), 108$this->source), 'widget');
  282.         echo "
  283.                                     ";
  284.         // line 109
  285.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'109$this->source); })()), "email", [], "any"falsefalsetrue109), 109$this->source), 'errors');
  286.         echo "
  287.                                 </div>
  288.                             </dd>
  289.                         </dl>
  290.                         <dl>
  291.                             <dt>
  292.                                 ";
  293.         // line 115
  294.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'115$this->source); })()), "contents", [], "any"falsefalsetrue115), 115$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お問い合わせ内容"]);
  295.         echo "
  296.                             </dt>
  297.                             <dd>
  298.                                 <div class=\"ec-input";
  299.         // line 118
  300.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'118$this->source); })()), "contents", [], "any"falsefalsetrue118), 118$this->source))) ? (" error") : (""));
  301.         echo "\">
  302.                                     ";
  303.         // line 119
  304.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'119$this->source); })()), "contents", [], "any"falsefalsetrue119), 119$this->source), 'widget');
  305.         echo "
  306.                                     ";
  307.         // line 120
  308.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'120$this->source); })()), "contents", [], "any"falsefalsetrue120), 120$this->source), 'errors');
  309.         echo "
  310.                                 </div>
  311.                                 <p>";
  312.         // line 122
  313.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文に関するお問い合わせには、必ず「ご注文番号」をご記入くださいますようお願いいたします。"), "html"nulltrue);
  314.         echo "</p>
  315.                             </dd>
  316.                         </dl>
  317.                         ";
  318.         // line 126
  319.         echo "                        ";
  320.         $context['_parent'] = $context;
  321.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'126$this->source); })()), function ($__f__) use ($context$macros) { $context["f"] = $__f__; return twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue126), "eccube_form_options", [], "any"falsefalsetrue126), "auto_render", [], "any"falsefalsetrue126); }));
  322.         foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  323.             // line 127
  324.             echo "                            ";
  325.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue127), "eccube_form_options", [], "any"falsefalsetrue127), "form_theme", [], "any"falsefalsetrue127)) {
  326.                 // line 128
  327.                 echo "                                ";
  328.                 $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue128), "eccube_form_options", [], "any"falsefalsetrue128), "form_theme", [], "any"falsefalsetrue128)], true);
  329.                 // line 129
  330.                 echo "                                ";
  331.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 129$this->source), 'row');
  332.                 echo "
  333.                             ";
  334.             } else {
  335.                 // line 131
  336.                 echo "                                <dl>
  337.                                     <dt>
  338.                                         ";
  339.                 // line 133
  340.                 $context["label_class"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsetruetrue133), "label_attr", [], "any"falsetruetrue133), "class", [], "any"truetruetrue133)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue133), "label_attr", [], "any"falsefalsetrue133), "class", [], "any"falsefalsetrue133)) : (""));
  341.                 // line 134
  342.                 echo "                                        ";
  343.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 134$this->source), 'label', ["label_attr" => ["class" => ($this->sandbox->ensureToStringAllowed((isset($context["label_class"]) || array_key_exists("label_class"$context) ? $context["label_class"] : (function () { throw new RuntimeError('Variable "label_class" does not exist.'134$this->source); })()), 134$this->source) . " ec-label")]] + (twig_test_empty($_label_ $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue134), "label", [], "any"falsefalsetrue134), 134$this->source)) ? [] : ["label" => $_label_]));
  344.                 echo "
  345.                                     </dt>
  346.                                     <dd>
  347.                                         <div class=\"";
  348.                 // line 137
  349.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue137), "eccube_form_options", [], "any"falsefalsetrue137), "style_class", [], "any"falsefalsetrue137), 137$this->source), "html"nulltrue);
  350.                 echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed($context["f"], 137$this->source))) ? (" error") : (""));
  351.                 echo "\">
  352.                                             ";
  353.                 // line 138
  354.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 138$this->source), 'widget');
  355.                 echo "
  356.                                             ";
  357.                 // line 139
  358.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 139$this->source), 'errors');
  359.                 echo "
  360.                                         </div>
  361.                                     </dd>
  362.                                 </dl>
  363.                             ";
  364.             }
  365.             // line 144
  366.             echo "                        ";
  367.         }
  368.         $_parent $context['_parent'];
  369.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  370.         $context array_intersect_key($context$_parent) + $_parent;
  371.         // line 145
  372.         echo "                    </div>
  373.                     <div class=\"ec-RegisterRole__actions\">
  374.                         <div class=\"ec-off4Grid\">
  375.                             <div class=\"ec-off4Grid__cell\">
  376.                                 <button type=\"submit\" class=\"ec-blockBtn--action\" name=\"mode\" value=\"confirm\">";
  377.         // line 149
  378.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("確認ページへ"), "html"nulltrue);
  379.         echo "
  380.                                 </button>
  381.                             </div>
  382.                         </div>
  383.                     </div>
  384.                 </form>
  385.             </div>
  386.         </div>
  387.     </div>
  388. ";
  389.         
  390.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  391.         
  392.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  393.     }
  394.     public function getTemplateName()
  395.     {
  396.         return "Contact/index.twig";
  397.     }
  398.     public function isTraitable()
  399.     {
  400.         return false;
  401.     }
  402.     public function getDebugInfo()
  403.     {
  404.         return array (  397 => 149,  391 => 145,  385 => 144,  377 => 139,  373 => 138,  368 => 137,  361 => 134,  359 => 133,  355 => 131,  349 => 129,  346 => 128,  343 => 127,  338 => 126,  332 => 122,  327 => 120,  323 => 119,  319 => 118,  313 => 115,  304 => 109,  300 => 108,  296 => 107,  290 => 104,  281 => 98,  277 => 97,  273 => 96,  267 => 93,  258 => 87,  254 => 86,  250 => 85,  245 => 83,  241 => 82,  237 => 81,  232 => 79,  228 => 78,  224 => 77,  219 => 75,  214 => 73,  209 => 71,  202 => 67,  198 => 66,  194 => 65,  188 => 62,  179 => 56,  175 => 55,  171 => 54,  167 => 53,  163 => 52,  157 => 49,  148 => 43,  144 => 42,  140 => 41,  136 => 40,  132 => 39,  126 => 36,  120 => 32,  116 => 30,  112 => 29,  107 => 27,  100 => 23,  95 => 20,  85 => 19,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  405.     }
  406.     public function getSourceContext()
  407.     {
  408.         return new Source("{#
  409. This file is part of EC-CUBE
  410. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  411. http://www.ec-cube.co.jp/
  412. For the full copyright and license information, please view the LICENSE
  413. file that was distributed with this source code.
  414. #}
  415. {% extends 'default_frame.twig' %}
  416. {% form_theme form 'Form/form_div_layout.twig' %}
  417. {% block javascript %}
  418.     <script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
  419. {% endblock javascript %}
  420. {% block main %}
  421.     <div class=\"ec-contactRole\">
  422.         <div class=\"ec-pageHeader\">
  423.             <h1>{{ 'お問い合わせ'|trans }}</h1>
  424.         </div>
  425.         <div class=\"ec-off1Grid\">
  426.             <div class=\"ec-off1Grid__cell\">
  427.                 <form method=\"post\" action=\"{{ url('contact') }}\" class=\"h-adr\" novalidate>
  428.                     <span class=\"p-country-name\" style=\"display:none;\">Japan</span>
  429.                     {{ form_widget(form._token) }}
  430.                     <p class=\"ec-para-normal\">{{ '内容によっては回答をさしあげるのにお時間をいただくこともございます。
  431. また、休業日は翌営業日以降の対応となりますのでご了承ください。
  432. '|trans|nl2br }}</p>
  433.                     <div class=\"ec-borderedDefs\">
  434.                         <dl>
  435.                             <dt>
  436.                                 {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  437.                             </dt>
  438.                             <dd>
  439.                                 <div class=\"ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}\">
  440.                                     {{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓' }}) }}
  441.                                     {{ form_widget(form.name.name02, {'attr': { 'placeholder': '名' }}) }}
  442.                                     {{ form_errors(form.name.name01) }}
  443.                                     {{ form_errors(form.name.name02) }}
  444.                                 </div>
  445.                             </dd>
  446.                         </dl>
  447.                         <dl>
  448.                             <dt>
  449.                                 {{ form_label(form.kana, 'お名前(カナ)', {'label_attr': {'class': 'ec-label'}}) }}
  450.                             </dt>
  451.                             <dd>
  452.                                 <div class=\"ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error' }}\">
  453.                                     {{ form_widget(form.kana.kana01, {'attr': { 'placeholder': 'セイ' }}) }}
  454.                                     {{ form_widget(form.kana.kana02, {'attr': { 'placeholder': 'メイ' }}) }}
  455.                                     {{ form_errors(form.kana.kana01) }}
  456.                                     {{ form_errors(form.kana.kana02) }}
  457.                                 </div>
  458.                             </dd>
  459.                         </dl>
  460.                         <dl>
  461.                             <dt>
  462.                                 {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  463.                             </dt>
  464.                             <dd>
  465.                                 <div class=\"ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}\">
  466.                                     <span>{{ '〒'|trans }}</span>
  467.                                     {{ form_widget(form.postal_code) }}
  468.                                     <div class=\"ec-zipInputHelp\">
  469.                                         <div class=\"ec-zipInputHelp__icon\">
  470.                                             <div class=\"ec-icon\"><img
  471.                                                     src=\"{{ asset('assets/icon/question-white.svg') }}\" alt=\"\">
  472.                                             </div>
  473.                                         </div><a href=\"https://www.post.japanpost.jp/zipcode/\" target=\"_blank\"><span>{{ '郵便番号検索'|trans }}</span></a>
  474.                                     </div>
  475.                                     {{ form_errors(form.postal_code) }}
  476.                                 </div>
  477.                                 <div class=\"ec-select{{ has_errors(form.address.pref) ? ' error' }}\">
  478.                                     {{ form_widget(form.address.pref) }}
  479.                                     {{ form_errors(form.address.pref) }}
  480.                                 </div>
  481.                                 <div class=\"ec-input{{ has_errors(form.address.addr01) ? ' error' }}\">
  482.                                     {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  483.                                     {{ form_errors(form.address.addr01) }}
  484.                                 </div>
  485.                                 <div class=\"ec-input{{ has_errors(form.address.addr02) ? ' error' }}\">
  486.                                     {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  487.                                     {{ form_errors(form.address.addr02) }}
  488.                                 </div>
  489.                             </dd>
  490.                         </dl>
  491.                         <dl>
  492.                             <dt>
  493.                                 {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  494.                             </dt>
  495.                             <dd>
  496.                                 <div class=\"ec-telInput{{ has_errors(form.phone_number) ? ' error' }}\">
  497.                                     {{ form_widget(form.phone_number) }}
  498.                                     {{ form_errors(form.phone_number) }}
  499.                                 </div>
  500.                             </dd>
  501.                         </dl>
  502.                         <dl>
  503.                             <dt>
  504.                                 {{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
  505.                             </dt>
  506.                             <dd>
  507.                                 <div class=\"ec-input{{ has_errors(form.email) ? ' error' }}\">
  508.                                     {{ form_widget(form.email) }}
  509.                                     {{ form_errors(form.email) }}
  510.                                 </div>
  511.                             </dd>
  512.                         </dl>
  513.                         <dl>
  514.                             <dt>
  515.                                 {{ form_label(form.contents, 'お問い合わせ内容', { 'label_attr': { 'class': 'ec-label' }}) }}
  516.                             </dt>
  517.                             <dd>
  518.                                 <div class=\"ec-input{{ has_errors(form.contents) ? ' error' }}\">
  519.                                     {{ form_widget(form.contents) }}
  520.                                     {{ form_errors(form.contents) }}
  521.                                 </div>
  522.                                 <p>{{ 'ご注文に関するお問い合わせには、必ず「ご注文番号」をご記入くださいますようお願いいたします。'|trans }}</p>
  523.                             </dd>
  524.                         </dl>
  525.                         {# エンティティ拡張の自動出力 #}
  526.                         {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  527.                             {% if f.vars.eccube_form_options.form_theme %}
  528.                                 {% form_theme f f.vars.eccube_form_options.form_theme %}
  529.                                 {{ form_row(f) }}
  530.                             {% else %}
  531.                                 <dl>
  532.                                     <dt>
  533.                                         {% set label_class =  f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
  534.                                         {{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
  535.                                     </dt>
  536.                                     <dd>
  537.                                         <div class=\"{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}\">
  538.                                             {{ form_widget(f) }}
  539.                                             {{ form_errors(f) }}
  540.                                         </div>
  541.                                     </dd>
  542.                                 </dl>
  543.                             {% endif %}
  544.                         {% endfor %}
  545.                     </div>
  546.                     <div class=\"ec-RegisterRole__actions\">
  547.                         <div class=\"ec-off4Grid\">
  548.                             <div class=\"ec-off4Grid__cell\">
  549.                                 <button type=\"submit\" class=\"ec-blockBtn--action\" name=\"mode\" value=\"confirm\">{{ '確認ページへ'|trans }}
  550.                                 </button>
  551.                             </div>
  552.                         </div>
  553.                     </div>
  554.                 </form>
  555.             </div>
  556.         </div>
  557.     </div>
  558. {% endblock %}
  559. ""Contact/index.twig""/home/egonet/c-bcl.com/public_html/shop/src/Eccube/Resource/template/default/Contact/index.twig");
  560.     }
  561.     
  562.     public function checkSecurity()
  563.     {
  564.         static $tags = array("form_theme" => 13"for" => 126"if" => 127"set" => 133);
  565.         static $filters = array("escape" => 23"trans" => 23"nl2br" => 32"filter" => 126);
  566.         static $functions = array("url" => 27"form_widget" => 29"form_label" => 36"has_errors" => 39"form_errors" => 42"asset" => 71"form_row" => 129);
  567.         try {
  568.             $this->sandbox->checkSecurity(
  569.                 ['form_theme''for''if''set'],
  570.                 ['escape''trans''nl2br''filter'],
  571.                 ['url''form_widget''form_label''has_errors''form_errors''asset''form_row']
  572.             );
  573.         } catch (SecurityError $e) {
  574.             $e->setSourceContext($this->source);
  575.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  576.                 $e->setTemplateLine($tags[$e->getTagName()]);
  577.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  578.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  579.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  580.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  581.             }
  582.             throw $e;
  583.         }
  584.     }
  585. }