var/cache/dev/twig/a0/a0383407d1359249f52cd31c1f918652.php line 57

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. /* @CoreShopFrontend/Register/register.html.twig */
  14. class __TwigTemplate_434862252ba27be6982e26705248379e 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.             'scripts' => [$this'block_scripts'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 3
  32.         return $this->loadTemplate((isset($context["_layout"]) || array_key_exists("_layout"$context) ? $context["_layout"] : (function () { throw new RuntimeError('Variable "_layout" does not exist.'3$this->source); })()), "@CoreShopFrontend/Register/register.html.twig"3);
  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""@CoreShopFrontend/Register/register.html.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""@CoreShopFrontend/Register/register.html.twig"));
  41.         // line 1
  42.         $context["clubPage"] = $this->env->getFunction('is_clubsite')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })()), 1$this->source), $this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'1$this->source); })()), 1$this->source));
  43.         // line 2
  44.         $context["_layout"] = (((isset($context["clubPage"]) || array_key_exists("clubPage"$context) ? $context["clubPage"] : (function () { throw new RuntimeError('Variable "clubPage" does not exist.'2$this->source); })())) ? ("seikoclub/layout.html.twig") : ("@CoreShopFrontend/layout.html.twig"));
  45.         // line 5
  46.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/profile.js"), "text/javascript"], "method"falsefalsetrue5);
  47.         // line 3
  48.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 7
  55.     public function block_content($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 8
  63.         echo "    <div class=\"container\">
  64.         <div class=\"profile-title-row\">
  65.             <h1>PROFIL</h1>
  66.         </div>
  67.     </div>
  68.     <div class=\"container register-login-container\">
  69.         ";
  70.         // line 14
  71.         $context['_parent'] = $context;
  72.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "flashes", [], "method"falsefalsetrue14));
  73.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  74.             // line 15
  75.             echo "            <div class=\"alert-row\">
  76.                 <div class=\"col-12 alert alert-secondary \" role=\"alert\">
  77.                     ";
  78.             // line 17
  79.             if (twig_test_iterable($context["messages"])) {
  80.                 // line 18
  81.                 echo "                        ";
  82.                 $context['_parent'] = $context;
  83.                 $context['_seq'] = twig_ensure_traversable($context["messages"]);
  84.                 foreach ($context['_seq'] as $context["_key"] => $context["text"]) {
  85.                     // line 19
  86.                     echo "                            <p>";
  87.                     echo $this->sandbox->ensureToStringAllowed($context["text"], 19$this->source);
  88.                     echo "</p>
  89.                         ";
  90.                 }
  91.                 $_parent $context['_parent'];
  92.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['text'], $context['_parent'], $context['loop']);
  93.                 $context array_intersect_key($context$_parent) + $_parent;
  94.                 // line 21
  95.                 echo "                    ";
  96.             } else {
  97.                 // line 22
  98.                 echo "                        <p>";
  99.                 echo $this->sandbox->ensureToStringAllowed($context["messages"], 22$this->source);
  100.                 echo "</p>
  101.                     ";
  102.             }
  103.             // line 24
  104.             echo "                </div>
  105.             </div>
  106.         ";
  107.         }
  108.         $_parent $context['_parent'];
  109.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  110.         $context array_intersect_key($context$_parent) + $_parent;
  111.         // line 27
  112.         echo "
  113.         ";
  114.         // line 28
  115.         if ((isset($context["lastError"]) || array_key_exists("lastError"$context) ? $context["lastError"] : (function () { throw new RuntimeError('Variable "lastError" does not exist.'28$this->source); })())) {
  116.             // line 29
  117.             echo "            <div class=\"alert-row\">
  118.                 <div class=\"col-12 alert alert-secondary \" role=\"alert\">
  119.                     <h3>Hiba:</h3>
  120.                     <p>Sikertelen bejelentkezés</p>
  121.                 </div>
  122.             </div>
  123.         ";
  124.         }
  125.         // line 36
  126.         echo "
  127.         <div class=\"row register-login-row\">
  128.             ";
  129.         // line 38
  130.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("CoreShop\\Bundle\\FrontendBundle\\Controller\\SecurityController::loginAction", ["renderLayout" => false"failure" => $this->env->getFunction('pimcore_url')->getCallable()(), "target" => $this->env->getFunction('pimcore_url')->getCallable()()]));
  131.         echo "
  132.             <div class=\"col profile-register\">
  133.                 ";
  134.         // line 40
  135.         $this->loadTemplate("@CoreShopFrontend/Register/_register-form.html.twig""@CoreShopFrontend/Register/register.html.twig"40)->display($context);
  136.         // line 41
  137.         echo "            </div>
  138.         </div>
  139.     </div>
  140. ";
  141.         
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  143.         
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  145.     }
  146.     // line 46
  147.     public function block_scripts($context, array $blocks = [])
  148.     {
  149.         $macros $this->macros;
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  154.         // line 47
  155.         echo "    ";
  156.         $this->displayParentBlock("scripts"$context$blocks);
  157.         echo "
  158.     <script>
  159.         window.isClubPage = ";
  160.         // line 49
  161.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["clubPage"]) || array_key_exists("clubPage"$context) ? $context["clubPage"] : (function () { throw new RuntimeError('Variable "clubPage" does not exist.'49$this->source); })()), 49$this->source), "html"nulltrue);
  162.         echo " ? true : false;
  163.     </script>
  164.     ";
  165.         // line 51
  166.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/toggle_password_visibility.js")], "method"falsefalsetrue51);
  167.         // line 52
  168.         echo "    ";
  169.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/password_hint.js")], "method"falsefalsetrue52);
  170.         // line 53
  171.         echo "    ";
  172.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/passwords_match.js")], "method"falsefalsetrue53);
  173.         
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  175.         
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  177.     }
  178.     public function getTemplateName()
  179.     {
  180.         return "@CoreShopFrontend/Register/register.html.twig";
  181.     }
  182.     public function isTraitable()
  183.     {
  184.         return false;
  185.     }
  186.     public function getDebugInfo()
  187.     {
  188.         return array (  190 => 53,  187 => 52,  185 => 51,  180 => 49,  174 => 47,  164 => 46,  151 => 41,  149 => 40,  144 => 38,  140 => 36,  131 => 29,  129 => 28,  126 => 27,  118 => 24,  112 => 22,  109 => 21,  100 => 19,  95 => 18,  93 => 17,  89 => 15,  85 => 14,  77 => 8,  67 => 7,  57 => 3,  55 => 5,  53 => 2,  51 => 1,  38 => 3,);
  189.     }
  190.     public function getSourceContext()
  191.     {
  192.         return new Source("{% set clubPage = is_clubsite(editmode, document) %}
  193. {% set _layout = clubPage ? 'seikoclub/layout.html.twig' : '@CoreShopFrontend/layout.html.twig' %}
  194. {% extends _layout %}
  195. {% do pimcore_head_script().appendFile(asset('js/profile.js'), 'text/javascript') %}
  196. {% block content %}
  197.     <div class=\"container\">
  198.         <div class=\"profile-title-row\">
  199.             <h1>PROFIL</h1>
  200.         </div>
  201.     </div>
  202.     <div class=\"container register-login-container\">
  203.         {% for label, messages in app.flashes() %}
  204.             <div class=\"alert-row\">
  205.                 <div class=\"col-12 alert alert-secondary \" role=\"alert\">
  206.                     {% if messages is iterable %}
  207.                         {% for text in messages %}
  208.                             <p>{{ text | raw }}</p>
  209.                         {% endfor %}
  210.                     {% else %}
  211.                         <p>{{ messages | raw }}</p>
  212.                     {% endif %}
  213.                 </div>
  214.             </div>
  215.         {% endfor %}
  216.         {% if lastError %}
  217.             <div class=\"alert-row\">
  218.                 <div class=\"col-12 alert alert-secondary \" role=\"alert\">
  219.                     <h3>Hiba:</h3>
  220.                     <p>Sikertelen bejelentkezés</p>
  221.                 </div>
  222.             </div>
  223.         {% endif %}
  224.         <div class=\"row register-login-row\">
  225.             {{ render(controller('CoreShop\\\\Bundle\\\\FrontendBundle\\\\Controller\\\\SecurityController::loginAction', {renderLayout: false, failure: pimcore_url(), target: pimcore_url()})) }}
  226.             <div class=\"col profile-register\">
  227.                 {% include '@CoreShopFrontend/Register/_register-form.html.twig' %}
  228.             </div>
  229.         </div>
  230.     </div>
  231. {% endblock %}
  232. {% block scripts %}
  233.     {{ parent() }}
  234.     <script>
  235.         window.isClubPage = {{ clubPage }} ? true : false;
  236.     </script>
  237.     {% do pimcore_head_script().appendFile(asset('js/toggle_password_visibility.js')) %}
  238.     {% do pimcore_head_script().appendFile(asset('js/password_hint.js')) %}
  239.     {% do pimcore_head_script().appendFile(asset('js/passwords_match.js')) %}
  240. {% endblock %}""@CoreShopFrontend/Register/register.html.twig""/home/zoltan/public_html/boutique-v2/templates/seikoboutique/templates/bundles/CoreShopFrontendBundle/Register/register.html.twig");
  241.     }
  242.     
  243.     public function checkSecurity()
  244.     {
  245.         static $tags = array("set" => 1"do" => 5"for" => 14"if" => 17"include" => 40);
  246.         static $filters = array("raw" => 19"escape" => 49);
  247.         static $functions = array("is_clubsite" => 1"pimcore_head_script" => 5"asset" => 5"render" => 38"controller" => 38"pimcore_url" => 38);
  248.         try {
  249.             $this->sandbox->checkSecurity(
  250.                 ['set''do''for''if''include'],
  251.                 ['raw''escape'],
  252.                 ['is_clubsite''pimcore_head_script''asset''render''controller''pimcore_url']
  253.             );
  254.         } catch (SecurityError $e) {
  255.             $e->setSourceContext($this->source);
  256.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  257.                 $e->setTemplateLine($tags[$e->getTagName()]);
  258.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  259.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  260.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  261.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  262.             }
  263.             throw $e;
  264.         }
  265.     }
  266. }