var/cache/dev/twig/9b/9bb0e02231a6a708fbb379b7543ba93c.php line 60

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/signInSso.html.twig */
  14. class __TwigTemplate_d490a8a9ad7f44e8dbb2cd009f194cfe 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/signInSso.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/signInSso.html.twig"));
  40.         $this->parent $this->loadTemplate("signin.html.twig""Account/signInSso.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.         echo "
  57. ";
  58.         // line 4
  59.         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"falsefalsetrue4);
  60.         // line 5
  61.         echo "
  62.  ";
  63.         // line 6
  64.         if ( !(isset($context["loggedin"]) || array_key_exists("loggedin"$context) ? $context["loggedin"] : (function () { throw new RuntimeError('Variable "loggedin" does not exist.'6$this->source); })())) {
  65.             // line 7
  66.             echo "<div class=\"container\">
  67. \t<a href=\"/";
  68.             // line 8
  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.'8$this->source); })()), 8$this->source), "html"nulltrue);
  70.             echo "\"><img class=\"signin-logo\" src=\"/Arabic_vertical_logo.png\" width=\"80\"  alt=\"image description\"></a>
  71.     <div class=\"item-container login-form-wrapper sign-in-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 12
  76.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline");
  77.             echo "</h1>
  78. \t\t\t\t<h2><em>";
  79.             // line 13
  80.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline");
  81.             echo "</em></h2>
  82. \t  \t\t</div>
  83.       <h3>";
  84.             // line 15
  85.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign In"), "html"nulltrue);
  86.             echo "</h3>
  87. \t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">";
  88.             // line 16
  89.             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"nulltrue);
  90.             echo "</span></p>
  91. \t\t\t<form class=\"cart-form\" action=\"/";
  92.             // line 17
  93.             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"nulltrue);
  94.             echo "/account/sign-in\" method=\"post\">
  95. \t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"ns\" value=\"";
  96.             // line 18
  97.             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"nulltrue);
  98.             echo "\"/>
  99. \t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"redirecturl\" value=\"";
  100.             // line 19
  101.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue19), "headers", [], "any"falsefalsetrue19), "get", ["referer"], "method"falsefalsetrue19), 19$this->source), "html"nulltrue);
  102.             echo "\"/>
  103. \t\t\t\t<label><h4>Email</h4>
  104. \t\t\t\t  \t<input type=\"email\" name=\"email\" placeholder=\"Enter your email\" required>
  105. \t\t\t\t  \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
  106. \t\t\t\t</label>
  107. \t\t\t\t<label><h4>Password</h4>
  108. \t\t\t\t \t<input type=\"password\" name=\"password\" placeholder=\"Enter your password\" required>
  109. \t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
  110. \t\t\t\t</label>
  111. \t\t\t\t<button type=\"submit\" name=\"continue\" class=\"btn\" style=\"background-color:#91ce50;\">Submit</button>
  112. \t\t\t\t<div class=\"spacer\"></div>
  113.         <a class=\"button-small\" href=\"/";
  114.             // line 30
  115.             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"nulltrue);
  116.             echo "/account/forgot-password\">Forgot password?</a>
  117. \t\t\t</form>
  118.       <h3>Not registered yet?</h3>
  119.       <a class=\"btn\" href=\"/";
  120.             // line 33
  121.             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"nulltrue);
  122.             echo "/account/register\">Register here</a>
  123.       <div class=\"spacer\"></div>
  124.       ";
  125.             // line 36
  126.             echo "\t  \t</div>
  127.   \t</div>
  128. </div>
  129. ";
  130.         }
  131.         
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133.         
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  135.     }
  136.     /**
  137.      * @codeCoverageIgnore
  138.      */
  139.     public function getTemplateName()
  140.     {
  141.         return "Account/signInSso.html.twig";
  142.     }
  143.     /**
  144.      * @codeCoverageIgnore
  145.      */
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     /**
  151.      * @codeCoverageIgnore
  152.      */
  153.     public function getDebugInfo()
  154.     {
  155.         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,);
  156.     }
  157.     public function getSourceContext()
  158.     {
  159.         return new Source("{% extends 'signin.html.twig' %}
  160. {% block content %}
  161. {% do pimcore_head_link().appendStylesheet(asset('website/static/css/shop-homepage.css')) %}
  162.  {% if not loggedin %}
  163. <div class=\"container\">
  164. \t<a href=\"/{{ locale }}\"><img class=\"signin-logo\" src=\"/Arabic_vertical_logo.png\" width=\"80\"  alt=\"image description\"></a>
  165.     <div class=\"item-container login-form-wrapper sign-in-wrapper\">
  166. \t  \t<div class=\"row form-container\">
  167. \t  \t\t<div class=\"form-info\">
  168. \t  \t\t\t<h1>{{ pimcore_input(\"headline\") }}</h1>
  169. \t\t\t\t<h2><em>{{ pimcore_input(\"subline\") }}</em></h2>
  170. \t  \t\t</div>
  171.       <h3>{{ 'Sign In'|trans }}</h3>
  172. \t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">{{ errormessage }}</span></p>
  173. \t\t\t<form class=\"cart-form\" action=\"/{{ locale }}/account/sign-in\" method=\"post\">
  174. \t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"ns\" value=\"{{ nextstep }}\"/>
  175. \t\t\t\t<input class=\"form-control\" type=\"hidden\" name=\"redirecturl\" value=\"{{ app.request.headers.get('referer') }}\"/>
  176. \t\t\t\t<label><h4>Email</h4>
  177. \t\t\t\t  \t<input type=\"email\" name=\"email\" placeholder=\"Enter your email\" required>
  178. \t\t\t\t  \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
  179. \t\t\t\t</label>
  180. \t\t\t\t<label><h4>Password</h4>
  181. \t\t\t\t \t<input type=\"password\" name=\"password\" placeholder=\"Enter your password\" required>
  182. \t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
  183. \t\t\t\t</label>
  184. \t\t\t\t<button type=\"submit\" name=\"continue\" class=\"btn\" style=\"background-color:#91ce50;\">Submit</button>
  185. \t\t\t\t<div class=\"spacer\"></div>
  186.         <a class=\"button-small\" href=\"/{{ locale }}/account/forgot-password\">Forgot password?</a>
  187. \t\t\t</form>
  188.       <h3>Not registered yet?</h3>
  189.       <a class=\"btn\" href=\"/{{ locale }}/account/register\">Register here</a>
  190.       <div class=\"spacer\"></div>
  191.       {# <a class=\"button-small\" href=\"{{ \"espirits.login.employeeloginurl\"|trans }}\">{{ pimcore_input('employeesigninbutton') }}</a> #}
  192. \t  \t</div>
  193.   \t</div>
  194. </div>
  195. {% endif %}
  196. {% endblock %}
  197. ""Account/signInSso.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Account/signInSso.html.twig");
  198.     }
  199.     
  200.     public function checkSecurity()
  201.     {
  202.         static $tags = array("do" => 4"if" => 6);
  203.         static $filters = array("escape" => 8"trans" => 15);
  204.         static $functions = array("pimcore_head_link" => 4"asset" => 4"pimcore_input" => 12);
  205.         try {
  206.             $this->sandbox->checkSecurity(
  207.                 ['do''if'],
  208.                 ['escape''trans'],
  209.                 ['pimcore_head_link''asset''pimcore_input']
  210.             );
  211.         } catch (SecurityError $e) {
  212.             $e->setSourceContext($this->source);
  213.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  214.                 $e->setTemplateLine($tags[$e->getTagName()]);
  215.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  216.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  217.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  218.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  219.             }
  220.             throw $e;
  221.         }
  222.     }
  223. }