<?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;
/* security.html.twig */
class __TwigTemplate_65cb2cc80443773b81e94c99b4ffb6bf extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'scripts' => [$this, 'block_scripts'],
'content' => [$this, 'block_content'],
];
}
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", "security.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html lang=\"fr\">
<head>
<title>My Flow - Connexion";
// line 4
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
yield "</title>
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
<meta charset=\"utf-8\" />
";
// line 7
if (($this->extensions['App\Twig\UserTwig']->isAgency() == true)) {
// line 8
yield " <link rel=\"shortcut icon\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\UserTwig']->dynamicFavicon()), "html", null, true);
yield "\"/>
";
} else {
// line 10
yield " <link rel=\"shortcut icon\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/media/favicon.ico"), "html", null, true);
yield "\"/>
";
}
// line 12
yield " <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700|Titillium+Web:300,400,500,600,700\" />
";
// line 13
yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
// line 18
yield "
";
// line 19
yield from $this->unwrap()->yieldBlock('scripts', $context, $blocks);
// line 22
yield " ";
if ( !(null === 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.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "attributes", [], "any", false, false, false, 22), "get", ["agency_connect"], "method", false, false, false, 22))) {
// line 23
yield " ";
$context["userCompanyDataContent"] = $this->extensions['App\Twig\CompanyDataTwig']->getUserCompanyDataAgency(CoreExtension::getAttribute($this->env, $this->source, 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.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "attributes", [], "any", false, false, false, 23), "get", ["agency_connect"], "method", false, false, false, 23), "id", [], "array", false, false, false, 23));
// line 24
yield " ";
$context["company"] = $this->extensions['App\Twig\CompanyDataTwig']->getCompany(CoreExtension::getAttribute($this->env, $this->source, 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.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "attributes", [], "any", false, false, false, 24), "get", ["agency_connect"], "method", false, false, false, 24), "id", [], "array", false, false, false, 24));
// line 25
yield " ";
}
// line 26
yield " ";
if (array_key_exists("userCompanyDataContent", $context)) {
// line 27
yield " ";
$context["user_primary_color"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 27, $this->source); })()), "primary_color", [], "any", false, false, false, 27))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 27, $this->source); })()), "primary_color", [], "any", false, false, false, 27)) : ("#f975c4"));
// line 28
yield " ";
$context["user_second_color"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 28, $this->source); })()), "second_color", [], "any", false, false, false, 28))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 28, $this->source); })()), "second_color", [], "any", false, false, false, 28)) : ("#08085c"));
// line 29
yield " ";
$context["user_text_color"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 29, $this->source); })()), "text_color", [], "any", false, false, false, 29))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 29, $this->source); })()), "text_color", [], "any", false, false, false, 29)) : ("#1968CD"));
// line 30
yield " ";
$context["user_icon_color"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 30, $this->source); })()), "icon_color", [], "any", false, false, false, 30))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 30, $this->source); })()), "icon_color", [], "any", false, false, false, 30)) : ("#4a4b68"));
// line 31
yield " ";
$context["user_background_color"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 31, $this->source); })()), "background_color", [], "any", false, false, false, 31))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 31, $this->source); })()), "background_color", [], "any", false, false, false, 31)) : ("#04006E"));
// line 32
yield " ";
$context["user_title_color"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 32, $this->source); })()), "title_color", [], "any", false, false, false, 32))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 32, $this->source); })()), "title_color", [], "any", false, false, false, 32)) : ("#08085c"));
// line 33
yield " ";
$context["user_company_logo"] = (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 33, $this->source); })()), "logo_company", [], "any", false, false, false, 33))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["userCompanyDataContent"]) || array_key_exists("userCompanyDataContent", $context) ? $context["userCompanyDataContent"] : (function () { throw new RuntimeError('Variable "userCompanyDataContent" does not exist.', 33, $this->source); })()), "logo_company", [], "any", false, false, false, 33)) : (""));
// line 34
yield " ";
} else {
// line 35
yield " ";
$context["userCompanyDataContent"] = "";
// line 36
yield " ";
$context["user_primary_color"] = "#f975c4";
// line 37
yield " ";
$context["user_second_color"] = "#08085c";
// line 38
yield " ";
$context["user_text_color"] = "#1968CD";
// line 39
yield " ";
$context["user_icon_color"] = "#4a4b68";
// line 40
yield " ";
$context["user_background_color"] = "#04006E";
// line 41
yield " ";
$context["user_title_color"] = "#08085c";
// line 42
yield " ";
$context["user_company_logo"] = "";
// line 43
yield " ";
}
// line 44
yield "
</head>
<body id=\"kt_body login\" class=\"bg-body\" data-turbo=\"false\">
<style type=\"text/css\">
:root {
--my-flow-pink:";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["user_primary_color"]) || array_key_exists("user_primary_color", $context) ? $context["user_primary_color"] : (function () { throw new RuntimeError('Variable "user_primary_color" does not exist.', 50, $this->source); })()), "html", null, true);
yield "; /*couleur principale #f975c4*/
}
";
// line 54
yield " button.btn-primary-custom,a.btn-primary-custom{
background-color:var(--my-flow-pink) !important;
}
.color-primary{
color:var(--my-flow-pink) !important;
}
.color-second{
color:#000064 !important;
}
input:checked[type=checkbox]{
background-color:var(--my-flow-pink) !important;
}
";
// line 67
yield "</style>
<div class=\"d-flex flex-column flex-root\" style=\"justify-content:center\">
<div class=\"\">
";
// line 70
yield Twig\Extension\CoreExtension::include($this->env, $context, "_flashbag.html.twig");
yield "
<div class=\"py-10 \">
<div class=\"\">
";
// line 82
yield " <div class=\"\">
";
// line 83
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 84
yield " </div>
</div>
</div>
</div>
</div>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
// line 4
public function block_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 13
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 14
yield " ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("plugins/global/plugins.bundle");
yield "
";
// line 15
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("css/style.bundle");
yield "
";
// line 16
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 19
public function block_scripts($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", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 20
yield " ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 83
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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 286 => 83, 272 => 20, 262 => 19, 249 => 16, 245 => 15, 240 => 14, 230 => 13, 211 => 4, 193 => 84, 191 => 83, 188 => 82, 182 => 70, 177 => 67, 163 => 54, 157 => 50, 149 => 44, 146 => 43, 143 => 42, 140 => 41, 137 => 40, 134 => 39, 131 => 38, 128 => 37, 125 => 36, 122 => 35, 119 => 34, 116 => 33, 113 => 32, 110 => 31, 107 => 30, 104 => 29, 101 => 28, 98 => 27, 95 => 26, 92 => 25, 89 => 24, 86 => 23, 83 => 22, 81 => 19, 78 => 18, 76 => 13, 73 => 12, 67 => 10, 61 => 8, 59 => 7, 53 => 4, 48 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"fr\">
<head>
<title>My Flow - Connexion{% block title %}{% endblock %}</title>
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
<meta charset=\"utf-8\" />
{% if is_agency() == true %}
<link rel=\"shortcut icon\" href=\"{{ asset(dynamic_favicon()) }}\"/>
{% else %}
<link rel=\"shortcut icon\" href=\"{{ asset('build/media/favicon.ico') }}\"/>
{% endif %}
<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700|Titillium+Web:300,400,500,600,700\" />
{% block stylesheets %}
{{ encore_entry_link_tags('plugins/global/plugins.bundle') }}
{{ encore_entry_link_tags('css/style.bundle') }}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block scripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
{% if app.request.attributes.get('agency_connect') is not null %}
{% set userCompanyDataContent = get_user_company_data_agency(app.request.attributes.get('agency_connect')['id']) %}
{% set company = get_company(app.request.attributes.get('agency_connect')['id']) %}
{% endif %}
{% if userCompanyDataContent is defined %}
{% set user_primary_color = userCompanyDataContent.primary_color is not empty ? userCompanyDataContent.primary_color : '#f975c4'%}
{% set user_second_color = userCompanyDataContent.second_color is not empty ? userCompanyDataContent.second_color : '#08085c' %}
{% set user_text_color = userCompanyDataContent.text_color is not empty ? userCompanyDataContent.text_color : '#1968CD' %}
{% set user_icon_color = userCompanyDataContent.icon_color is not empty ? userCompanyDataContent.icon_color : '#4a4b68' %}
{% set user_background_color = userCompanyDataContent.background_color is not empty ? userCompanyDataContent.background_color : '#04006E' %}
{% set user_title_color = userCompanyDataContent.title_color is not empty ? userCompanyDataContent.title_color : '#08085c' %}
{% set user_company_logo = userCompanyDataContent.logo_company is not empty ? userCompanyDataContent.logo_company : '' %}
{% else %}
{% set userCompanyDataContent = ''%}
{% set user_primary_color = '#f975c4' %}
{% set user_second_color = '#08085c' %}
{% set user_text_color = '#1968CD' %}
{% set user_icon_color = '#4a4b68' %}
{% set user_background_color = '#04006E' %}
{% set user_title_color = '#08085c' %}
{% set user_company_logo = '' %}
{% endif %}
</head>
<body id=\"kt_body login\" class=\"bg-body\" data-turbo=\"false\">
<style type=\"text/css\">
:root {
--my-flow-pink:{{user_primary_color}}; /*couleur principale #f975c4*/
}
{# debut Custom primary color #}
button.btn-primary-custom,a.btn-primary-custom{
background-color:var(--my-flow-pink) !important;
}
.color-primary{
color:var(--my-flow-pink) !important;
}
.color-second{
color:#000064 !important;
}
input:checked[type=checkbox]{
background-color:var(--my-flow-pink) !important;
}
{# fin text de détails #}
</style>
<div class=\"d-flex flex-column flex-root\" style=\"justify-content:center\">
<div class=\"\">
{{ include('_flashbag.html.twig') }}
<div class=\"py-10 \">
<div class=\"\">
{# <div class=\"mb-5 container-logo\" >
<a href=\"{{ path('app_login') }}\">
{% if company is defined and company is not null and company.logoName is not null %}
<img style=\"max-width: 175px;height: auto;max-height: 75px;\" width=\"auto\" src=\"{{ asset('/uploads/images/company/') }}{{ company.logoName }}\" class=\"app-logo\" alt=\"my flow logo\">
{% else %}
<img src=\"{{ asset('build/media/logo-myflow.png') }}\" class=\"app-logo\" alt=\"my flow logo\">
{% endif %}
</a>
</div> #}
<div class=\"\">
{% block content %}{% endblock %}
</div>
</div>
</div>
</div>
</div>
</body>
</html>
", "security.html.twig", "/var/www/vhosts/my-flow.fr/app.dev.my-flow.fr/templates/security.html.twig");
}
}