var/cache/dev/twig/79/79848c4c9bd94fdabf2e0ff6b10e12b6.php line 107

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. /* Account/register.html.twig */
  14. class __TwigTemplate_0fcfbd64e1dda6f55e1b4720404fb46a extends 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "signin.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Account/register.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Account/register.html.twig"));
  40.         $this->parent $this->loadTemplate("signin.html.twig""Account/register.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 2
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 3
  56.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("website/static/css/shop-homepage.css")], "method"falsefalsetrue3);
  57.         // line 4
  58.         if ( !(isset($context["loggedin"]) || array_key_exists("loggedin"$context) ? $context["loggedin"] : (function () { throw new RuntimeError('Variable "loggedin" does not exist.'4$this->source); })())) {
  59.             // line 5
  60.             echo "<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  61. <script>
  62. \tfunction onSubmit(token) {
  63. \t\tdocument.getElementById(\"register-form\").submit();
  64. \t}
  65. </script>
  66. <div class=\"container\">
  67. \t<a href=\"/";
  68.             // line 12
  69.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'12$this->source); })()), 12$this->source), "html"nulltrue);
  70.             echo "\"><img class=\"signin-logo\" src=\"/SA_logo_inst_Positive_RGB.png\" width=\"282\"  alt=\"image description\"></a>
  71.     <div class=\"item-container login-form-wrapper register-form-wrapper\">
  72. \t  \t<div class=\"row form-container\">
  73. \t  \t\t<div class=\"form-info\">
  74. \t  \t\t\t<h1> ";
  75.             // line 16
  76.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline");
  77.             echo "</h1>
  78. \t\t\t\t<h2><em>";
  79.             // line 17
  80.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline");
  81.             echo "</em></h2>
  82. \t  \t\t</div>
  83. \t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">";
  84.             // line 19
  85.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["errormessage"]) || array_key_exists("errormessage"$context) ? $context["errormessage"] : (function () { throw new RuntimeError('Variable "errormessage" does not exist.'19$this->source); })()), 19$this->source), "html"nulltrue);
  86.             echo "</span></p>
  87. \t\t\t<form id=\"register-form\" class=\"cart-form\" action=\"/";
  88.             // line 20
  89.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'20$this->source); })()), 20$this->source), "html"nulltrue);
  90.             echo "/account/register\" method=\"post\">
  91.         \t\t<label class=\"required\"><h4>";
  92.             // line 21
  93.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.firstname"), "html"nulltrue);
  94.             echo "</h4>
  95. \t\t\t\t  \t<input type=\"text\" value=\"";
  96.             // line 22
  97.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["firstname"]) || array_key_exists("firstname"$context) ? $context["firstname"] : (function () { throw new RuntimeError('Variable "firstname" does not exist.'22$this->source); })()), 22$this->source), "html"nulltrue);
  98.             echo "\" name=\"firstname\" placeholder=\"";
  99.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.firstname"), "html"nulltrue);
  100.             echo "\" required>
  101. \t\t\t\t</label>
  102.         \t\t<label class=\"required\"><h4>";
  103.             // line 24
  104.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.lastname"), "html"nulltrue);
  105.             echo "</h4>
  106. \t\t\t\t  \t<input type=\"text\" value=\"";
  107.             // line 25
  108.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["lastname"]) || array_key_exists("lastname"$context) ? $context["lastname"] : (function () { throw new RuntimeError('Variable "lastname" does not exist.'25$this->source); })()), 25$this->source), "html"nulltrue);
  109.             echo "\" name=\"lastname\" placeholder=\"";
  110.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.lastname"), "html"nulltrue);
  111.             echo "\" required>
  112. \t\t\t\t</label>
  113. \t\t\t\t<label class=\"required\"><h4>";
  114.             // line 27
  115.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.email"), "html"nulltrue);
  116.             echo "</h4>
  117. \t\t\t\t  \t<input type=\"email\" value=\"";
  118.             // line 28
  119.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["email"]) || array_key_exists("email"$context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.'28$this->source); })()), 28$this->source), "html"nulltrue);
  120.             echo "\" name=\"email\" placeholder=\"";
  121.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.email"), "html"nulltrue);
  122.             echo "\" required>
  123. \t\t\t\t  \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
  124.             \t\t";
  125.             // line 30
  126.             if (((isset($context["errorfield"]) || array_key_exists("errorfield"$context) ? $context["errorfield"] : (function () { throw new RuntimeError('Variable "errorfield" does not exist.'30$this->source); })()) == "email")) {
  127.                 echo "<span class=\"error-icon\">&#9888</span>";
  128.             }
  129.             // line 31
  130.             echo "\t\t\t\t</label>
  131.         \t\t<div class=\"spacer\"></div>
  132. \t\t\t\t<label class=\"required\"><h4>";
  133.             // line 33
  134.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.country"), "html"nulltrue);
  135.             echo "</h4>
  136. \t\t\t\t\t<select name=\"country\" required>
  137. \t\t\t\t\t\t";
  138.             // line 35
  139.             $context['_parent'] = $context;
  140.             $context['_seq'] = twig_ensure_traversable((isset($context["countries"]) || array_key_exists("countries"$context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.'35$this->source); })()));
  141.             foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  142.                 // line 36
  143.                 echo "\t\t\t\t\t\t\t<option data-image=\"";
  144.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["country"], "Icon", [], "any"falsefalsetrue36), 36$this->source), "html"nulltrue);
  145.                 echo "\" value=\"";
  146.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["country"], "Value", [], "any"falsefalsetrue36), 36$this->source), "html"nulltrue);
  147.                 echo "\" ";
  148.                 if (twig_get_attribute($this->env$this->source$context["country"], "Selected", [], "any"truetruetrue36)) {
  149.                     echo " ";
  150.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["country"], "Selected", [], "any"falsefalsetrue36), 36$this->source), "html"nulltrue);
  151.                     echo " ";
  152.                 }
  153.                 echo ">&nbsp;";
  154.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["country"], "Name", [], "any"falsefalsetrue36), 36$this->source), "html"nulltrue);
  155.                 echo "</option>
  156. \t\t\t\t\t\t";
  157.             }
  158.             $_parent $context['_parent'];
  159.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
  160.             $context array_intersect_key($context$_parent) + $_parent;
  161.             // line 38
  162.             echo "\t\t\t\t\t</select>
  163. \t\t\t\t</label>
  164. \t\t\t\t<label class=\"required\"><h4>";
  165.             // line 40
  166.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.company"), "html"nulltrue);
  167.             echo "</h4>
  168. \t\t\t\t\t<input type=\"text\" value=\"";
  169.             // line 41
  170.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["company"]) || array_key_exists("company"$context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.'41$this->source); })()), 41$this->source), "html"nulltrue);
  171.             echo "\" name=\"company\" placeholder=\"";
  172.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.company"), "html"nulltrue);
  173.             echo "\" required>
  174. \t\t\t\t\t";
  175.             // line 42
  176.             if (((isset($context["errorfield"]) || array_key_exists("errorfield"$context) ? $context["errorfield"] : (function () { throw new RuntimeError('Variable "errorfield" does not exist.'42$this->source); })()) == "companyName")) {
  177.                 echo "<span class=\"error-icon\">&#9888</span>";
  178.             }
  179.             // line 43
  180.             echo "\t\t\t\t</label>
  181.         \t\t<div class=\"spacer\"></div>
  182. \t\t\t\t<label class=\"required\"><h4>";
  183.             // line 46
  184.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.createpassword"), "html"nulltrue);
  185.             echo "</h4>
  186.           \t\t\t<div class=\"input-info\">";
  187.             // line 47
  188.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.passwordrequirements"), "html"nulltrue);
  189.             echo "</div>
  190. \t\t\t\t \t<input type=\"password\" name=\"createpassword\" placeholder=\"";
  191.             // line 48
  192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.createpassword"), "html"nulltrue);
  193.             echo "\" required>
  194. \t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
  195.           \t\t\t";
  196.             // line 50
  197.             if (((isset($context["errorfield"]) || array_key_exists("errorfield"$context) ? $context["errorfield"] : (function () { throw new RuntimeError('Variable "errorfield" does not exist.'50$this->source); })()) == "password")) {
  198.                 echo "<span class=\"error-icon\">&#9888</span>";
  199.             }
  200.             // line 51
  201.             echo "\t\t\t\t</label>
  202. \t\t\t\t<label class=\"required\"><h4>";
  203.             // line 52
  204.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.verifypassword"), "html"nulltrue);
  205.             echo "</h4>
  206. \t\t\t\t \t<input type=\"password\" name=\"verifypassword\" placeholder=\"";
  207.             // line 53
  208.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.verifypassword"), "html"nulltrue);
  209.             echo "\" required>
  210. \t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
  211. \t\t\t\t</label>
  212. \t\t\t\t<!--button name=\"continue\" class=\"btn g-recaptcha\" data-sitekey=\"6LcXqEQUAAAAABGksCu-WbBmhQgDdhtwOSnftsOS\" data-callback='onSubmit'>";
  213.             // line 56
  214.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""register");
  215.             echo "</button-->
  216. \t\t\t\t<button name=\"continue\" class=\"btn \"  data-callback='onSubmit'>";
  217.             // line 57
  218.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""register");
  219.             echo "</button>
  220. \t\t\t\t
  221. \t\t\t</form>
  222. \t  \t</div>
  223. \t</div>
  224. </div>
  225. ";
  226.         }
  227.         
  228.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  229.         
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  231.     }
  232.     /**
  233.      * @codeCoverageIgnore
  234.      */
  235.     public function getTemplateName()
  236.     {
  237.         return "Account/register.html.twig";
  238.     }
  239.     /**
  240.      * @codeCoverageIgnore
  241.      */
  242.     public function isTraitable()
  243.     {
  244.         return false;
  245.     }
  246.     /**
  247.      * @codeCoverageIgnore
  248.      */
  249.     public function getDebugInfo()
  250.     {
  251.         return array (  233 => 57,  229 => 56,  223 => 53,  219 => 52,  216 => 51,  212 => 50,  207 => 48,  203 => 47,  199 => 46,  194 => 43,  190 => 42,  184 => 41,  180 => 40,  176 => 38,  157 => 36,  153 => 35,  148 => 33,  144 => 31,  140 => 30,  133 => 28,  129 => 27,  122 => 25,  118 => 24,  111 => 22,  107 => 21,  103 => 20,  99 => 19,  94 => 17,  90 => 16,  83 => 12,  74 => 5,  72 => 4,  70 => 3,  60 => 2,  37 => 1,);
  252.     }
  253.     public function getSourceContext()
  254.     {
  255.         return new Source("{% extends 'signin.html.twig' %}
  256. {% block content %}
  257. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/shop-homepage.css')) %}
  258. {% if not loggedin %}
  259. <script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  260. <script>
  261. \tfunction onSubmit(token) {
  262. \t\tdocument.getElementById(\"register-form\").submit();
  263. \t}
  264. </script>
  265. <div class=\"container\">
  266. \t<a href=\"/{{ locale }}\"><img class=\"signin-logo\" src=\"/SA_logo_inst_Positive_RGB.png\" width=\"282\"  alt=\"image description\"></a>
  267.     <div class=\"item-container login-form-wrapper register-form-wrapper\">
  268. \t  \t<div class=\"row form-container\">
  269. \t  \t\t<div class=\"form-info\">
  270. \t  \t\t\t<h1> {{ pimcore_input(\"headline\") }}</h1>
  271. \t\t\t\t<h2><em>{{ pimcore_input('subline') }}</em></h2>
  272. \t  \t\t</div>
  273. \t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">{{ errormessage }}</span></p>
  274. \t\t\t<form id=\"register-form\" class=\"cart-form\" action=\"/{{ locale }}/account/register\" method=\"post\">
  275.         \t\t<label class=\"required\"><h4>{{ \"espirits.login.firstname\"|trans }}</h4>
  276. \t\t\t\t  \t<input type=\"text\" value=\"{{ firstname }}\" name=\"firstname\" placeholder=\"{{ \"espirits.login.firstname\"|trans }}\" required>
  277. \t\t\t\t</label>
  278.         \t\t<label class=\"required\"><h4>{{ \"espirits.login.lastname\"|trans }}</h4>
  279. \t\t\t\t  \t<input type=\"text\" value=\"{{ lastname }}\" name=\"lastname\" placeholder=\"{{ \"espirits.login.lastname\"|trans }}\" required>
  280. \t\t\t\t</label>
  281. \t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.email\"|trans }}</h4>
  282. \t\t\t\t  \t<input type=\"email\" value=\"{{ email }}\" name=\"email\" placeholder=\"{{ \"espirits.login.email\"|trans }}\" required>
  283. \t\t\t\t  \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
  284.             \t\t{% if errorfield == 'email' %}<span class=\"error-icon\">&#9888</span>{% endif %}
  285. \t\t\t\t</label>
  286.         \t\t<div class=\"spacer\"></div>
  287. \t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.country\"|trans }}</h4>
  288. \t\t\t\t\t<select name=\"country\" required>
  289. \t\t\t\t\t\t{% for country in countries %}
  290. \t\t\t\t\t\t\t<option data-image=\"{{ country.Icon }}\" value=\"{{ country.Value }}\" {% if country.Selected is defined %} {{ country.Selected }} {% endif %}>&nbsp;{{ country.Name }}</option>
  291. \t\t\t\t\t\t{% endfor %}
  292. \t\t\t\t\t</select>
  293. \t\t\t\t</label>
  294. \t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.company\"|trans }}</h4>
  295. \t\t\t\t\t<input type=\"text\" value=\"{{ company }}\" name=\"company\" placeholder=\"{{ \"espirits.login.company\"|trans }}\" required>
  296. \t\t\t\t\t{% if errorfield == 'companyName' %}<span class=\"error-icon\">&#9888</span>{% endif %}
  297. \t\t\t\t</label>
  298.         \t\t<div class=\"spacer\"></div>
  299. \t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.createpassword\"|trans }}</h4>
  300.           \t\t\t<div class=\"input-info\">{{ \"espirits.login.passwordrequirements\"|trans }}</div>
  301. \t\t\t\t \t<input type=\"password\" name=\"createpassword\" placeholder=\"{{ \"espirits.login.createpassword\"|trans }}\" required>
  302. \t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
  303.           \t\t\t{% if errorfield == 'password' %}<span class=\"error-icon\">&#9888</span>{% endif %}
  304. \t\t\t\t</label>
  305. \t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.verifypassword\"|trans }}</h4>
  306. \t\t\t\t \t<input type=\"password\" name=\"verifypassword\" placeholder=\"{{ \"espirits.login.verifypassword\"|trans }}\" required>
  307. \t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
  308. \t\t\t\t</label>
  309. \t\t\t\t<!--button name=\"continue\" class=\"btn g-recaptcha\" data-sitekey=\"6LcXqEQUAAAAABGksCu-WbBmhQgDdhtwOSnftsOS\" data-callback='onSubmit'>{{ pimcore_input(\"register\") }}</button-->
  310. \t\t\t\t<button name=\"continue\" class=\"btn \"  data-callback='onSubmit'>{{ pimcore_input(\"register\") }}</button>
  311. \t\t\t\t
  312. \t\t\t</form>
  313. \t  \t</div>
  314. \t</div>
  315. </div>
  316. {% endif %}
  317. {% endblock %}""Account/register.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Account/register.html.twig");
  318.     }
  319.     
  320.     public function checkSecurity()
  321.     {
  322.         static $tags = array("do" => 3"if" => 4"for" => 35);
  323.         static $filters = array("escape" => 12"trans" => 21);
  324.         static $functions = array("pimcore_head_link" => 3"asset" => 3"pimcore_input" => 16);
  325.         try {
  326.             $this->sandbox->checkSecurity(
  327.                 ['do''if''for'],
  328.                 ['escape''trans'],
  329.                 ['pimcore_head_link''asset''pimcore_input']
  330.             );
  331.         } catch (SecurityError $e) {
  332.             $e->setSourceContext($this->source);
  333.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  334.                 $e->setTemplateLine($tags[$e->getTagName()]);
  335.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  336.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  337.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  338.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  339.             }
  340.             throw $e;
  341.         }
  342.     }
  343. }