<?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;
/* login/oauth2-login.html.twig */
class __TwigTemplate_b024e3c3acf2298e44685d2e53f3e6e9fe6fa20c2498ecf2a07622c117c34c4e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login/oauth2-login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login/oauth2-login.html.twig"));
// line 1
$context["login_third"] = (($this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.enabled") || $this->extensions['AppBundle\Twig\WebExtension']->getSetting("sync_department_setting.enable")) && !(0 === twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("sync_department_setting.type"), "LDAP")));
// line 2
if ((isset($context["login_third"]) || array_key_exists("login_third", $context) ? $context["login_third"] : (function () { throw new RuntimeError('Variable "login_third" does not exist.', 2, $this->source); })())) {
// line 3
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("CorporateTrainingBundle\\Controller\\LoginController::oauth2LoginsBlockAction", ["targetPath" => (isset($context["_target_path"]) || array_key_exists("_target_path", $context) ? $context["_target_path"] : (function () { throw new RuntimeError('Variable "_target_path" does not exist.', 3, $this->source); })()), "displayName" => true, "isMayday" => (((isset($context["isMayday"]) || array_key_exists("isMayday", $context))) ? (_twig_default_filter((isset($context["isMayday"]) || array_key_exists("isMayday", $context) ? $context["isMayday"] : (function () { throw new RuntimeError('Variable "isMayday" does not exist.', 3, $this->source); })()), 0)) : (0))]));
echo "
";
}
// line 5
echo "
";
// line 6
if ((1 === twig_compare((((isset($context["liveLogin"]) || array_key_exists("liveLogin", $context))) ? (_twig_default_filter((isset($context["liveLogin"]) || array_key_exists("liveLogin", $context) ? $context["liveLogin"] : (function () { throw new RuntimeError('Variable "liveLogin" does not exist.', 6, $this->source); })()), 0)) : (0)), 0))) {
// line 7
echo " ";
$context["activity"] = $this->extensions['AppBundle\Twig\DataExtension']->getData("LiveActivity", ["id" => (isset($context["liveLogin"]) || array_key_exists("liveLogin", $context) ? $context["liveLogin"] : (function () { throw new RuntimeError('Variable "liveLogin" does not exist.', 7, $this->source); })())]);
// line 8
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "advancedSetting", [], "any", false, true, false, 8), "openSettingOutsider", [], "any", true, true, false, 8)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "advancedSetting", [], "any", false, true, false, 8), "openSettingOutsider", [], "any", false, false, false, 8), 0)) : (0))) {
// line 9
echo " <div class=\"live-login\">
<a class=\"btn btn-link\" href=\"";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_outsider_login", ["activityId" => (isset($context["liveLogin"]) || array_key_exists("liveLogin", $context) ? $context["liveLogin"] : (function () { throw new RuntimeError('Variable "liveLogin" does not exist.', 10, $this->source); })())]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("live_login.btn.outsider_login"), "html", null, true);
echo "</a>
</div>
";
}
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "login/oauth2-login.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 67 => 10, 64 => 9, 61 => 8, 58 => 7, 56 => 6, 53 => 5, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set login_third = (setting('login_bind.enabled') or setting('sync_department_setting.enable')) and not (setting('sync_department_setting.type') == 'LDAP') %}
{% if login_third %}
{{ render(controller('CorporateTrainingBundle\\\\Controller\\\\LoginController::oauth2LoginsBlockAction', {targetPath:_target_path,displayName:true,isMayday:isMayday|default(0)})) }}
{% endif %}
{% if liveLogin|default(0) >0 %}
{% set activity = data('LiveActivity', {'id': liveLogin }) %}
{% if activity.advancedSetting.openSettingOutsider|default(0) %}
<div class=\"live-login\">
<a class=\"btn btn-link\" href=\"{{ path('live_outsider_login', {'activityId': liveLogin}) }}\">{{'live_login.btn.outsider_login'|trans}}</a>
</div>
{% endif %}
{% endif %}", "login/oauth2-login.html.twig", "/var/www/hangzhou/hz-2.77.edusoho.cn/app/Resources/views/login/oauth2-login.html.twig");
}
}