<?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;
/* @CoreShopFrontend/Register/register.html.twig */
class __TwigTemplate_434862252ba27be6982e26705248379e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 3
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);
}
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", "@CoreShopFrontend/Register/register.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@CoreShopFrontend/Register/register.html.twig"));
// line 1
$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));
// line 2
$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"));
// line 5
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", false, false, true, 5);
// line 3
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
echo " <div class=\"container\">
<div class=\"profile-title-row\">
<h1>PROFIL</h1>
</div>
</div>
<div class=\"container register-login-container\">
";
// line 14
$context['_parent'] = $context;
$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", false, false, true, 14));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 15
echo " <div class=\"alert-row\">
<div class=\"col-12 alert alert-secondary \" role=\"alert\">
";
// line 17
if (twig_test_iterable($context["messages"])) {
// line 18
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["text"]) {
// line 19
echo " <p>";
echo $this->sandbox->ensureToStringAllowed($context["text"], 19, $this->source);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['text'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " ";
} else {
// line 22
echo " <p>";
echo $this->sandbox->ensureToStringAllowed($context["messages"], 22, $this->source);
echo "</p>
";
}
// line 24
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo "
";
// line 28
if ((isset($context["lastError"]) || array_key_exists("lastError", $context) ? $context["lastError"] : (function () { throw new RuntimeError('Variable "lastError" does not exist.', 28, $this->source); })())) {
// line 29
echo " <div class=\"alert-row\">
<div class=\"col-12 alert alert-secondary \" role=\"alert\">
<h3>Hiba:</h3>
<p>Sikertelen bejelentkezés</p>
</div>
</div>
";
}
// line 36
echo "
<div class=\"row register-login-row\">
";
// line 38
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()()]));
echo "
<div class=\"col profile-register\">
";
// line 40
$this->loadTemplate("@CoreShopFrontend/Register/_register-form.html.twig", "@CoreShopFrontend/Register/register.html.twig", 40)->display($context);
// line 41
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 46
public function block_scripts($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", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 47
echo " ";
$this->displayParentBlock("scripts", $context, $blocks);
echo "
<script>
window.isClubPage = ";
// line 49
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", null, true);
echo " ? true : false;
</script>
";
// line 51
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", false, false, true, 51);
// line 52
echo " ";
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", false, false, true, 52);
// line 53
echo " ";
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", false, false, true, 53);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CoreShopFrontend/Register/register.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set clubPage = is_clubsite(editmode, document) %}
{% set _layout = clubPage ? 'seikoclub/layout.html.twig' : '@CoreShopFrontend/layout.html.twig' %}
{% extends _layout %}
{% do pimcore_head_script().appendFile(asset('js/profile.js'), 'text/javascript') %}
{% block content %}
<div class=\"container\">
<div class=\"profile-title-row\">
<h1>PROFIL</h1>
</div>
</div>
<div class=\"container register-login-container\">
{% for label, messages in app.flashes() %}
<div class=\"alert-row\">
<div class=\"col-12 alert alert-secondary \" role=\"alert\">
{% if messages is iterable %}
{% for text in messages %}
<p>{{ text | raw }}</p>
{% endfor %}
{% else %}
<p>{{ messages | raw }}</p>
{% endif %}
</div>
</div>
{% endfor %}
{% if lastError %}
<div class=\"alert-row\">
<div class=\"col-12 alert alert-secondary \" role=\"alert\">
<h3>Hiba:</h3>
<p>Sikertelen bejelentkezés</p>
</div>
</div>
{% endif %}
<div class=\"row register-login-row\">
{{ render(controller('CoreShop\\\\Bundle\\\\FrontendBundle\\\\Controller\\\\SecurityController::loginAction', {renderLayout: false, failure: pimcore_url(), target: pimcore_url()})) }}
<div class=\"col profile-register\">
{% include '@CoreShopFrontend/Register/_register-form.html.twig' %}
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
{{ parent() }}
<script>
window.isClubPage = {{ clubPage }} ? true : false;
</script>
{% do pimcore_head_script().appendFile(asset('js/toggle_password_visibility.js')) %}
{% do pimcore_head_script().appendFile(asset('js/password_hint.js')) %}
{% do pimcore_head_script().appendFile(asset('js/passwords_match.js')) %}
{% endblock %}", "@CoreShopFrontend/Register/register.html.twig", "/home/zoltan/public_html/boutique-v2/templates/seikoboutique/templates/bundles/CoreShopFrontendBundle/Register/register.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "do" => 5, "for" => 14, "if" => 17, "include" => 40);
static $filters = array("raw" => 19, "escape" => 49);
static $functions = array("is_clubsite" => 1, "pimcore_head_script" => 5, "asset" => 5, "render" => 38, "controller" => 38, "pimcore_url" => 38);
try {
$this->sandbox->checkSecurity(
['set', 'do', 'for', 'if', 'include'],
['raw', 'escape'],
['is_clubsite', 'pimcore_head_script', 'asset', 'render', 'controller', 'pimcore_url']
);
} 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;
}
}
}