176 lines
9.5 KiB
PHP
176 lines
9.5 KiB
PHP
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Extension\CoreExtension;
|
|
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;
|
|
use Twig\TemplateWrapper;
|
|
|
|
/* @HWIOAuth/Connect/connect_confirm.html.twig */
|
|
class __TwigTemplate_4dbabafb96ea6ab9281d2b05a883e598 extends Template
|
|
{
|
|
private Source $source;
|
|
/**
|
|
* @var array<string, Template>
|
|
*/
|
|
private array $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->blocks = [
|
|
'hwi_oauth_content' => [$this, 'block_hwi_oauth_content'],
|
|
];
|
|
}
|
|
|
|
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
|
|
{
|
|
// line 1
|
|
return "@HWIOAuth/layout.html.twig";
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@HWIOAuth/Connect/connect_confirm.html.twig"));
|
|
|
|
$this->parent = $this->loadTemplate("@HWIOAuth/layout.html.twig", "@HWIOAuth/Connect/connect_confirm.html.twig", 1);
|
|
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
}
|
|
|
|
// line 3
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_hwi_oauth_content(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hwi_oauth_content"));
|
|
|
|
// line 4
|
|
yield " <h3>";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header.connecting", [], "HWIOAuthBundle"), "html", null, true);
|
|
yield "</h3>
|
|
<div class=\"row\">
|
|
<div class=\"span6\">
|
|
<p>";
|
|
// line 7
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("connect.confirm.text", ["%service%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 7, $this->source); })()), [], "HWIOAuthBundle"), "%name%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["userInformation"]) || array_key_exists("userInformation", $context) ? $context["userInformation"] : (function () { throw new RuntimeError('Variable "userInformation" does not exist.', 7, $this->source); })()), "realName", [], "any", false, false, false, 7)], "HWIOAuthBundle"), "html", null, true);
|
|
yield "</p>
|
|
<p>
|
|
";
|
|
// line 9
|
|
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 9, $this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hwi_oauth_connect_service", ["service" => (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 9, $this->source); })()), "key" => (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 9, $this->source); })())]), "attr" => ["class" => "registration_register"]]);
|
|
yield "
|
|
";
|
|
// line 10
|
|
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 10, $this->source); })()), 'widget');
|
|
yield "
|
|
<div>
|
|
<button type=\"submit\" class=\"btn btn-primary\">";
|
|
// line 12
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("connect.confirm.submit", [], "HWIOAuthBundle"), "html", null, true);
|
|
yield "</button>
|
|
<a href=\"";
|
|
// line 13
|
|
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hwi_oauth_connect");
|
|
yield "\" class=\"btn\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("connect.confirm.cancel", [], "HWIOAuthBundle"), "html", null, true);
|
|
yield "</a>
|
|
</div>
|
|
";
|
|
// line 15
|
|
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), 'form_end');
|
|
yield "
|
|
</p>
|
|
</div>
|
|
<div class=\"span6\">
|
|
";
|
|
// line 19
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["userInformation"] ?? null), "profilePicture", [], "any", true, true, false, 19) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userInformation"]) || array_key_exists("userInformation", $context) ? $context["userInformation"] : (function () { throw new RuntimeError('Variable "userInformation" does not exist.', 19, $this->source); })()), "profilePicture", [], "any", false, false, false, 19)))) {
|
|
// line 20
|
|
yield " <img src=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userInformation"]) || array_key_exists("userInformation", $context) ? $context["userInformation"] : (function () { throw new RuntimeError('Variable "userInformation" does not exist.', 20, $this->source); })()), "profilePicture", [], "any", false, false, false, 20), "html", null, true);
|
|
yield "\" />
|
|
";
|
|
}
|
|
// line 22
|
|
yield " </div>
|
|
</div>
|
|
";
|
|
|
|
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
|
|
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "@HWIOAuth/Connect/connect_confirm.html.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 114 => 22, 108 => 20, 106 => 19, 99 => 15, 92 => 13, 88 => 12, 83 => 10, 79 => 9, 74 => 7, 67 => 4, 57 => 3, 40 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("{% extends '@HWIOAuth/layout.html.twig' %}
|
|
|
|
{% block hwi_oauth_content %}
|
|
<h3>{{ 'header.connecting' | trans({}, 'HWIOAuthBundle')}}</h3>
|
|
<div class=\"row\">
|
|
<div class=\"span6\">
|
|
<p>{{ 'connect.confirm.text' | trans({'%service%': service | trans({}, 'HWIOAuthBundle'), '%name%': userInformation.realName}, 'HWIOAuthBundle') }}</p>
|
|
<p>
|
|
{{ form_start(form, {'action': path('hwi_oauth_connect_service', {'service': service, 'key': key}), 'attr': {'class': 'registration_register'}}) }}
|
|
{{ form_widget(form) }}
|
|
<div>
|
|
<button type=\"submit\" class=\"btn btn-primary\">{{ 'connect.confirm.submit' | trans({}, 'HWIOAuthBundle') }}</button>
|
|
<a href=\"{{ path('hwi_oauth_connect') }}\" class=\"btn\">{{ 'connect.confirm.cancel' | trans({}, 'HWIOAuthBundle') }}</a>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
</p>
|
|
</div>
|
|
<div class=\"span6\">
|
|
{% if userInformation.profilePicture is defined and userInformation.profilePicture is not empty %}
|
|
<img src=\"{{ userInformation.profilePicture }}\" />
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock hwi_oauth_content %}
|
|
", "@HWIOAuth/Connect/connect_confirm.html.twig", "/home/skylar/Projects/mycomments-api/vendor/hwi/oauth-bundle/src/Resources/views/Connect/connect_confirm.html.twig");
|
|
}
|
|
}
|