<?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;
/* Account/signInSso.html.twig */
class __TwigTemplate_d490a8a9ad7f44e8dbb2cd009f194cfe extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "signin.html.twig";
}
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", "Account/signInSso.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Account/signInSso.html.twig"));
$this->parent = $this->loadTemplate("signin.html.twig", "Account/signInSso.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
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 3
echo "
";
// line 4
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", false, false, true, 4);
// line 5
echo "
";
// line 6
if ( !(isset($context["loggedin"]) || array_key_exists("loggedin", $context) ? $context["loggedin"] : (function () { throw new RuntimeError('Variable "loggedin" does not exist.', 6, $this->source); })())) {
// line 7
echo "<div class=\"container\">
\t<a href=\"/";
// line 8
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.', 8, $this->source); })()), 8, $this->source), "html", null, true);
echo "\"><img class=\"signin-logo\" src=\"/Arabic_vertical_logo.png\" width=\"80\" alt=\"image description\"></a>
<div class=\"item-container login-form-wrapper sign-in-wrapper\">
\t \t<div class=\"row form-container\">
\t \t\t<div class=\"form-info\">
\t \t\t\t<h1>";
// line 12
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline");
echo "</h1>
\t\t\t\t<h2><em>";
// line 13
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "subline");
echo "</em></h2>
\t \t\t</div>
<h3>";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign In"), "html", null, true);
echo "</h3>
\t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">";
// line 16
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.', 16, $this->source); })()), 16, $this->source), "html", null, true);
echo "</span></p>
\t\t\t<form class=\"cart-form\" action=\"/";
// line 17
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.', 17, $this->source); })()), 17, $this->source), "html", null, true);
echo "/account/sign-in\" method=\"post\">
\t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"ns\" value=\"";
// line 18
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["nextstep"]) || array_key_exists("nextstep", $context) ? $context["nextstep"] : (function () { throw new RuntimeError('Variable "nextstep" does not exist.', 18, $this->source); })()), 18, $this->source), "html", null, true);
echo "\"/>
\t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"redirecturl\" value=\"";
// line 19
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 19, $this->source); })()), "request", [], "any", false, false, true, 19), "headers", [], "any", false, false, true, 19), "get", ["referer"], "method", false, false, true, 19), 19, $this->source), "html", null, true);
echo "\"/>
\t\t\t\t<label><h4>Email</h4>
\t\t\t\t \t<input type=\"email\" name=\"email\" placeholder=\"Enter your email\" required>
\t\t\t\t \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
\t\t\t\t</label>
\t\t\t\t<label><h4>Password</h4>
\t\t\t\t \t<input type=\"password\" name=\"password\" placeholder=\"Enter your password\" required>
\t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
\t\t\t\t</label>
\t\t\t\t<button type=\"submit\" name=\"continue\" class=\"btn\" style=\"background-color:#91ce50;\">Submit</button>
\t\t\t\t<div class=\"spacer\"></div>
<a class=\"button-small\" href=\"/";
// line 30
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.', 30, $this->source); })()), 30, $this->source), "html", null, true);
echo "/account/forgot-password\">Forgot password?</a>
\t\t\t</form>
<h3>Not registered yet?</h3>
<a class=\"btn\" href=\"/";
// line 33
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.', 33, $this->source); })()), 33, $this->source), "html", null, true);
echo "/account/register\">Register here</a>
<div class=\"spacer\"></div>
";
// line 36
echo "\t \t</div>
\t</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Account/signInSso.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 140 => 36, 135 => 33, 129 => 30, 115 => 19, 111 => 18, 107 => 17, 103 => 16, 99 => 15, 94 => 13, 90 => 12, 83 => 8, 80 => 7, 78 => 6, 75 => 5, 73 => 4, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'signin.html.twig' %}
{% block content %}
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/shop-homepage.css')) %}
{% if not loggedin %}
<div class=\"container\">
\t<a href=\"/{{ locale }}\"><img class=\"signin-logo\" src=\"/Arabic_vertical_logo.png\" width=\"80\" alt=\"image description\"></a>
<div class=\"item-container login-form-wrapper sign-in-wrapper\">
\t \t<div class=\"row form-container\">
\t \t\t<div class=\"form-info\">
\t \t\t\t<h1>{{ pimcore_input(\"headline\") }}</h1>
\t\t\t\t<h2><em>{{ pimcore_input(\"subline\") }}</em></h2>
\t \t\t</div>
<h3>{{ 'Sign In'|trans }}</h3>
\t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">{{ errormessage }}</span></p>
\t\t\t<form class=\"cart-form\" action=\"/{{ locale }}/account/sign-in\" method=\"post\">
\t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"ns\" value=\"{{ nextstep }}\"/>
\t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"redirecturl\" value=\"{{ app.request.headers.get('referer') }}\"/>
\t\t\t\t<label><h4>Email</h4>
\t\t\t\t \t<input type=\"email\" name=\"email\" placeholder=\"Enter your email\" required>
\t\t\t\t \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
\t\t\t\t</label>
\t\t\t\t<label><h4>Password</h4>
\t\t\t\t \t<input type=\"password\" name=\"password\" placeholder=\"Enter your password\" required>
\t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
\t\t\t\t</label>
\t\t\t\t<button type=\"submit\" name=\"continue\" class=\"btn\" style=\"background-color:#91ce50;\">Submit</button>
\t\t\t\t<div class=\"spacer\"></div>
<a class=\"button-small\" href=\"/{{ locale }}/account/forgot-password\">Forgot password?</a>
\t\t\t</form>
<h3>Not registered yet?</h3>
<a class=\"btn\" href=\"/{{ locale }}/account/register\">Register here</a>
<div class=\"spacer\"></div>
{# <a class=\"button-small\" href=\"{{ \"espirits.login.employeeloginurl\"|trans }}\">{{ pimcore_input('employeesigninbutton') }}</a> #}
\t \t</div>
\t</div>
</div>
{% endif %}
{% endblock %}
", "Account/signInSso.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Account/signInSso.html.twig");
}
public function checkSecurity()
{
static $tags = array("do" => 4, "if" => 6);
static $filters = array("escape" => 8, "trans" => 15);
static $functions = array("pimcore_head_link" => 4, "asset" => 4, "pimcore_input" => 12);
try {
$this->sandbox->checkSecurity(
['do', 'if'],
['escape', 'trans'],
['pimcore_head_link', 'asset', 'pimcore_input']
);
} 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;
}
}
}