var/cache/dev/twig/23/231e5b71291b748f75b7e382b8d6a581.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* index/login.html.twig */
  16. class __TwigTemplate_0278cb5ad62b2f8c840e1c86f4129d6c extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'title' => [$this, 'block_title'],
  29. 'content' => [$this, 'block_content'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "base.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index/login.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index/login.html.twig"));
  44. $this->parent = $this->load("base.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 3
  50. /**
  51. * @return iterable<null|scalar|\Stringable>
  52. */
  53. public function block_title(array $context, array $blocks = []): iterable
  54. {
  55. $macros = $this->macros;
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  60. yield "Login";
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63. yield from [];
  64. }
  65. // line 5
  66. /**
  67. * @return iterable<null|scalar|\Stringable>
  68. */
  69. public function block_content(array $context, array $blocks = []): iterable
  70. {
  71. $macros = $this->macros;
  72. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  74. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  76. // line 6
  77. yield "
  78. <div class=\"row\" style=\"margin-top: 50px;\">
  79. <div class=\"col s12 m6 offset-m3 l4 offset-l4\">
  80. <div class=\"card\">
  81. <div class=\"card-content center-align\">
  82. <span class=\"card-title\">Welcome</span>
  83. ";
  84. // line 13
  85. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "session", [], "any", false, false, false, 13), "get", ["_security.last_error"], "method", false, false, false, 13)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  86. // line 14
  87. yield " <div class=\"red-text\" style=\"margin: 20px 0; padding: 15px; background-color: #ffebee; border-radius: 4px;\">
  88. ";
  89. // line 15
  90. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "session", [], "any", false, false, false, 15), "get", ["_security.last_error"], "method", false, false, false, 15), "messageKey", [], "any", false, false, false, 15), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "session", [], "any", false, false, false, 15), "get", ["_security.last_error"], "method", false, false, false, 15), "messageData", [], "any", false, false, false, 15), "security"), "html", null, true);
  91. yield "
  92. </div>
  93. ";
  94. }
  95. // line 18
  96. yield "
  97. <p style=\"color: #757575; margin: 20px 0 30px 0;\">
  98. Please sign in with your Smartstream Gmail account
  99. </p>
  100. <a href=\"";
  101. // line 23
  102. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hwi_oauth_service_redirect", ["service" => "google"]);
  103. yield "\"
  104. class=\"btn btn-large stv-pink\"
  105. style=\"\">
  106. <img src=\"/images/google.svg\" alt=\"Google Logo\"
  107. style=\"width: 24px; height: 24px; vertical-align: middle; margin-right: 10px;\">
  108. Sign in with Google
  109. </a>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. ";
  115. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117. yield from [];
  118. }
  119. /**
  120. * @codeCoverageIgnore
  121. */
  122. public function getTemplateName(): string
  123. {
  124. return "index/login.html.twig";
  125. }
  126. /**
  127. * @codeCoverageIgnore
  128. */
  129. public function isTraitable(): bool
  130. {
  131. return false;
  132. }
  133. /**
  134. * @codeCoverageIgnore
  135. */
  136. public function getDebugInfo(): array
  137. {
  138. return array ( 127 => 23, 120 => 18, 114 => 15, 111 => 14, 109 => 13, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
  139. }
  140. public function getSourceContext(): Source
  141. {
  142. return new Source("{% extends 'base.html.twig' %}
  143. {% block title %}Login{% endblock %}
  144. {% block content %}
  145. <div class=\"row\" style=\"margin-top: 50px;\">
  146. <div class=\"col s12 m6 offset-m3 l4 offset-l4\">
  147. <div class=\"card\">
  148. <div class=\"card-content center-align\">
  149. <span class=\"card-title\">Welcome</span>
  150. {% if app.session.get('_security.last_error') %}
  151. <div class=\"red-text\" style=\"margin: 20px 0; padding: 15px; background-color: #ffebee; border-radius: 4px;\">
  152. {{ app.session.get('_security.last_error').messageKey|trans(app.session.get('_security.last_error').messageData, 'security') }}
  153. </div>
  154. {% endif %}
  155. <p style=\"color: #757575; margin: 20px 0 30px 0;\">
  156. Please sign in with your Smartstream Gmail account
  157. </p>
  158. <a href=\"{{ path('hwi_oauth_service_redirect', {'service': 'google'}) }}\"
  159. class=\"btn btn-large stv-pink\"
  160. style=\"\">
  161. <img src=\"/images/google.svg\" alt=\"Google Logo\"
  162. style=\"width: 24px; height: 24px; vertical-align: middle; margin-right: 10px;\">
  163. Sign in with Google
  164. </a>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. {% endblock %}
  170. ", "index/login.html.twig", "/var/www/ssp-mgr-dev.smartstream.tv/templates/index/login.html.twig");
  171. }
  172. }