<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* default_frame.twig */
class __TwigTemplate_b443465f53d5ef4f15c08307dfdf6957 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
'javascript' => [$this, 'block_javascript'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default_frame.twig"));
// line 1
echo "<!doctype html>
";
// line 12
echo "<html lang=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["eccube_config"] ?? null), "locale", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "\">
<head prefix=\"og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#\">
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<meta name=\"eccube-csrf-token\" content=\"";
// line 16
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(twig_constant("Eccube\\Common\\Constant::TOKEN_NAME")), "html", null, true);
echo "\">
<title>";
// line 17
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["BaseInfo"] ?? null), "shop_name", [], "any", false, false, true, 17), 17, $this->source), "html", null, true);
if ((array_key_exists("subtitle", $context) && !twig_test_empty(($context["subtitle"] ?? null)))) {
echo " / ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["subtitle"] ?? null), 17, $this->source), "html", null, true);
} elseif ((array_key_exists("title", $context) && !twig_test_empty(($context["title"] ?? null)))) {
echo " / ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["title"] ?? null), 17, $this->source), "html", null, true);
}
echo "</title>
";
// line 18
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "meta_tags", [], "any", false, false, true, 18))) {
// line 19
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, twig_template_from_string($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "meta_tags", [], "any", false, false, true, 19), 19, $this->source)), array(), true, false, true);
echo "
";
// line 20
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "description", [], "any", false, false, true, 20))) {
// line 21
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "description", [], "any", false, false, true, 21), 21, $this->source), "html", null, true);
echo "\">
";
}
// line 23
echo " ";
} else {
// line 24
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "meta.twig");
echo "
";
}
// line 26
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "author", [], "any", false, false, true, 26))) {
// line 27
echo " <meta name=\"author\" content=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "author", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
echo "\">
";
}
// line 29
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "keyword", [], "any", false, false, true, 29))) {
// line 30
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "keyword", [], "any", false, false, true, 30), 30, $this->source), "html", null, true);
echo "\">
";
}
// line 32
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "meta_robots", [], "any", false, false, true, 32))) {
// line 33
echo " <meta name=\"robots\" content=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Page"] ?? null), "meta_robots", [], "any", false, false, true, 33), 33, $this->source), "html", null, true);
echo "\">
";
}
// line 35
echo " <link rel=\"icon\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/favicon.ico", "user_data"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/all.css\" integrity=\"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
echo "\">
<script src=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front.bundle.js", "bundle"), "html", null, true);
echo "\"></script>
";
// line 39
$this->displayBlock('stylesheet', $context, $blocks);
// line 40
echo " <script>
\$(function() {
\$.ajaxSetup({
'headers': {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content')
}
});
});
</script>
";
// line 50
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Head", [], "any", false, false, true, 50)) {
// line 51
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Head", [], "any", false, false, true, 51)]);
echo "
";
}
// line 53
echo " ";
// line 54
echo " ";
if (array_key_exists("plugin_assets", $context)) {
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "@admin/snippet.twig", ["snippets" => ($context["plugin_assets"] ?? null)]);
}
// line 55
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/customize.css", "user_data"), "html", null, true);
echo "\">
<!-- Google tag (gtag.js) -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=G-5JMVH53FE5\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5JMVH53FE5');
</script>
<!-- Google tag (gtag.js) -->
<script async src=\"https://www.googletagmanager.com/gtag/js?id=G-E9VMRRGXWS\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-E9VMRRGXWS');
</script>
</head>
<body id=\"page_";
// line 74
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, true, 74), "get", [0 => "_route"], "method", false, false, true, 74), 74, $this->source), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, ((array_key_exists("body_class", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(($context["body_class"] ?? null), 74, $this->source), "other_page")) : ("other_page")), "html", null, true);
echo "\">
";
// line 76
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "BodyAfter", [], "any", false, false, true, 76)) {
// line 77
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "BodyAfter", [], "any", false, false, true, 77)]);
echo "
";
}
// line 79
echo "
";
// line 80
if (($context["isMaintenance"] ?? null)) {
// line 81
echo " <div class=\"ec-maintenanceAlert\">
<div>
<div class=\"ec-maintenanceAlert__icon\"><img src=\"";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"/></div>
";
// line 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メンテナンスモードが有効になっています。"), "html", null, true);
echo "
</div>
</div>
";
}
// line 88
echo "
<div class=\"ec-layoutRole\">
<div class=\"header_bg\"></div>
";
// line 92
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Header", [], "any", false, false, true, 92)) {
// line 93
echo " <header class=\"ec-layoutRole__header\">
";
// line 94
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Header", [], "any", false, false, true, 94)]);
echo "
</header>
";
}
// line 97
echo "
";
// line 99
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "ContentsTop", [], "any", false, false, true, 99)) {
// line 100
echo " <div class=\"ec-layoutRole__contentTop\">
";
// line 101
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "ContentsTop", [], "any", false, false, true, 101)]);
echo "
</div>
";
}
// line 104
echo "
<div class=\"ec-layoutRole__contents\">
";
// line 107
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "SideLeft", [], "any", false, false, true, 107)) {
// line 108
echo " <aside class=\"ec-layoutRole__left\">
";
// line 109
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "SideLeft", [], "any", false, false, true, 109)]);
echo "
</aside>
";
}
// line 112
echo "
";
// line 113
$context["layoutRoleMain"] = "ec-layoutRole__main";
// line 114
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "ColumnNum", [], "any", false, false, true, 114) == 2)) {
// line 115
echo " ";
$context["layoutRoleMain"] = "ec-layoutRole__mainWithColumn";
// line 116
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "ColumnNum", [], "any", false, false, true, 116) == 3)) {
// line 117
echo " ";
$context["layoutRoleMain"] = "ec-layoutRole__mainBetweenColumn";
// line 118
echo " ";
}
// line 119
echo "
<main class=\"";
// line 120
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["layoutRoleMain"] ?? null), 120, $this->source), "html", null, true);
echo "\">
";
// line 122
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "MainTop", [], "any", false, false, true, 122)) {
// line 123
echo " <div class=\"ec-layoutRole__mainTop\">
";
// line 124
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "MainTop", [], "any", false, false, true, 124)]);
echo "
</div>
";
}
// line 127
echo "
";
// line 129
echo " ";
$this->displayBlock('main', $context, $blocks);
// line 130
echo "
";
// line 132
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "MainBottom", [], "any", false, false, true, 132)) {
// line 133
echo " <div class=\"ec-layoutRole__mainBottom\">
";
// line 134
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "MainBottom", [], "any", false, false, true, 134)]);
echo "
</div>
";
}
// line 137
echo " </main>
";
// line 140
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "SideRight", [], "any", false, false, true, 140)) {
// line 141
echo " <aside class=\"ec-layoutRole__right\">
";
// line 142
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "SideRight", [], "any", false, false, true, 142)]);
echo "
</aside>
";
}
// line 145
echo " </div>
";
// line 148
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "ContentsBottom", [], "any", false, false, true, 148)) {
// line 149
echo " <div class=\"ec-layoutRole__contentBottom\">
";
// line 150
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "ContentsBottom", [], "any", false, false, true, 150)]);
echo "
</div>
";
}
// line 153
echo "
<div class=\"footer_bg2\"></div>
";
// line 156
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Footer", [], "any", false, false, true, 156)) {
// line 157
echo " <footer class=\"ec-layoutRole__footer\">
";
// line 158
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Footer", [], "any", false, false, true, 158)]);
echo "
</footer>
";
}
// line 161
echo "</div><!-- ec-layoutRole -->
<div class=\"ec-overlayRole\"></div>
<div class=\"ec-drawerRoleClose\"><i class=\"fas fa-times\"></i></div>
<div class=\"ec-drawerRole\">
";
// line 167
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Drawer", [], "any", false, false, true, 167)) {
// line 168
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "Drawer", [], "any", false, false, true, 168)]);
echo "
";
}
// line 170
echo "</div>
<div class=\"ec-blockTopBtn pagetop\">
<div>▲</div>
<div>";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("TOP"), "html", null, true);
echo "</div>
</div>
";
// line 175
$this->loadTemplate("@common/lang.twig", "default_frame.twig", 175)->display($context);
// line 176
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/function.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 177
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/eccube.js"), "html", null, true);
echo "\"></script>
";
// line 178
$this->displayBlock('javascript', $context, $blocks);
// line 180
if (twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "CloseBodyBefore", [], "any", false, false, true, 180)) {
// line 181
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, ($context["Layout"] ?? null), "CloseBodyBefore", [], "any", false, false, true, 181)]);
echo "
";
}
// line 184
if (array_key_exists("plugin_snippets", $context)) {
// line 185
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "snippet.twig", ["snippets" => ($context["plugin_snippets"] ?? null)]);
echo "
";
}
// line 187
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/customize.js", "user_data"), "html", null, true);
echo "\"></script>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 39
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 129
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 178
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default_frame.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 469 => 178, 457 => 129, 445 => 39, 433 => 187, 427 => 185, 425 => 184, 419 => 181, 417 => 180, 415 => 178, 411 => 177, 406 => 176, 404 => 175, 399 => 173, 394 => 170, 388 => 168, 385 => 167, 378 => 161, 372 => 158, 369 => 157, 366 => 156, 362 => 153, 356 => 150, 353 => 149, 350 => 148, 346 => 145, 340 => 142, 337 => 141, 334 => 140, 330 => 137, 324 => 134, 321 => 133, 318 => 132, 315 => 130, 312 => 129, 309 => 127, 303 => 124, 300 => 123, 297 => 122, 293 => 120, 290 => 119, 287 => 118, 284 => 117, 281 => 116, 278 => 115, 275 => 114, 273 => 113, 270 => 112, 264 => 109, 261 => 108, 258 => 107, 254 => 104, 248 => 101, 245 => 100, 242 => 99, 239 => 97, 233 => 94, 230 => 93, 227 => 92, 222 => 88, 215 => 84, 211 => 83, 207 => 81, 205 => 80, 202 => 79, 196 => 77, 194 => 76, 188 => 74, 165 => 55, 160 => 54, 158 => 53, 152 => 51, 149 => 50, 138 => 40, 136 => 39, 132 => 38, 128 => 37, 122 => 35, 116 => 33, 113 => 32, 107 => 30, 104 => 29, 98 => 27, 95 => 26, 89 => 24, 86 => 23, 80 => 21, 78 => 20, 73 => 19, 71 => 18, 60 => 17, 56 => 16, 48 => 12, 45 => 1,);
}
public function getSourceContext()
{
return new Source("", "default_frame.twig", "/home/meihansl/meihan-sl.com/public_html/app/template/default/default_frame.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 17, "block" => 39, "set" => 113, "include" => 175);
static $filters = array("escape" => 12, "default" => 74, "trans" => 84);
static $functions = array("csrf_token" => 16, "constant" => 16, "include" => 19, "template_from_string" => 19, "asset" => 35);
try {
$this->sandbox->checkSecurity(
['if', 'block', 'set', 'include'],
['escape', 'default', 'trans'],
['csrf_token', 'constant', 'include', 'template_from_string', 'asset']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}