<?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;
/* nav_simple.html.twig */
class __TwigTemplate_8f432dcecd5d8cb37a65e27d399c8f535cb2acdf3bbf979749a1b6a8047b50c6 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", "nav_simple.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "nav_simple.html.twig"));
// line 1
echo "<nav id=\"main-nav\" class=\"navbar fixed-top\" style=\"\">
<div class=\"container-fluid\">
<a class=\"navbar-brand\" href=\"";
// line 3
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
echo "\">
<img class=\"\" style=\"max-height: 45px\" src=\"";
// line 4
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/logo.png"), "html", null, true);
echo "\">
</a>
<ul class=\"breadcrumb breadcrumb-separatorless fw-bold fs-7 pt-1\">
<li class=\"breadcrumb-item text-dark\">
<a href=\"#\" class=\"ml-4\" data-kt-menu-trigger=\"click\"
data-kt-menu-placement=\"bottom-start\">
<img class=\"\" style=\"width: 30px;height: 30px\" src=\"";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/dot.png"), "html", null, true);
echo "\" alt=\"\">
</a>
<div class=\"menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-600 menu-state-bg-light-primary fw-bold fs-7 w-200px py-4\"
data-kt-menu=\"true\">
<div class=\"menu-item px-3\">
<a href=\"";
// line 21
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_about");
echo "\" class=\"menu-link px-3\">
";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("about_educatii"), "html", null, true);
echo "
</a>
</div>
<div class=\"menu-item px-3\">
<a href=\"";
// line 26
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_page");
echo "\" class=\"menu-link px-3\">
";
// line 27
if ((0 === twig_compare((isset($context["blog_name"]) || array_key_exists("blog_name", $context) ? $context["blog_name"] : (function () { throw new RuntimeError('Variable "blog_name" does not exist.', 27, $this->source); })()), ""))) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("blog_title"), "html", null, true);
echo " ";
} else {
echo " ";
echo (isset($context["blog_name"]) || array_key_exists("blog_name", $context) ? $context["blog_name"] : (function () { throw new RuntimeError('Variable "blog_name" does not exist.', 27, $this->source); })());
echo " ";
}
// line 28
echo " </a>
</div>
<div class=\"menu-item px-3\">
<a href=\"";
// line 32
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_contact");
echo "\" class=\"menu-link px-3\">
";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact"), "html", null, true);
echo "
</a>
</div>
<div class=\"menu-item px-3\">
<a href=\"";
// line 38
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_cgu");
echo "\" class=\"menu-link px-3\">
";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cgu"), "html", null, true);
echo "
</a>
</div>
<div class=\"menu-item px-5 ml-3\">
";
// line 43
if ((0 === twig_compare(twig_length_filter($this->env, (isset($context["languages"]) || array_key_exists("languages", $context) ? $context["languages"] : (function () { throw new RuntimeError('Variable "languages" does not exist.', 43, $this->source); })())), 3))) {
// line 44
echo "
";
// line 45
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 45, $this->source); })()), "request", [], "any", false, false, false, 45), "cookies", [], "any", false, false, false, 45), "get", [0 => "lang"], "method", false, false, false, 45), "third"))) {
// line 46
echo " <a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('first')\" > <span class=\"fa fa-globe\"></span> ";
echo twig_escape_filter($this->env, (isset($context["first_language"]) || array_key_exists("first_language", $context) ? $context["first_language"] : (function () { throw new RuntimeError('Variable "first_language" does not exist.', 46, $this->source); })()), "html", null, true);
echo " </a> |
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('second')\" > <span class=\"fa fa-globe\"></span> ";
// line 47
echo twig_escape_filter($this->env, (isset($context["second_language"]) || array_key_exists("second_language", $context) ? $context["second_language"] : (function () { throw new RuntimeError('Variable "second_language" does not exist.', 47, $this->source); })()), "html", null, true);
echo " </a>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 48
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 48, $this->source); })()), "request", [], "any", false, false, false, 48), "cookies", [], "any", false, false, false, 48), "get", [0 => "lang"], "method", false, false, false, 48), "second"))) {
// line 49
echo " <a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('first')\" > <span class=\"fa fa-globe\"></span> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("first_language"), "html", null, true);
echo " </a> |
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('third')\" ><span class=\"fa fa-globe\"></span> ";
// line 50
echo twig_escape_filter($this->env, (isset($context["third_language"]) || array_key_exists("third_language", $context) ? $context["third_language"] : (function () { throw new RuntimeError('Variable "third_language" does not exist.', 50, $this->source); })()), "html", null, true);
echo " </a>
";
} else {
// line 52
echo " <a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('second')\" > <span class=\"fa fa-globe\"></span> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("second_language"), "html", null, true);
echo " </a> |
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('third')\" > <span class=\"fa fa-globe\"></span> ";
// line 53
echo twig_escape_filter($this->env, (isset($context["third_language"]) || array_key_exists("third_language", $context) ? $context["third_language"] : (function () { throw new RuntimeError('Variable "third_language" does not exist.', 53, $this->source); })()), "html", null, true);
echo " </a>
";
}
// line 55
echo " ";
} elseif ((0 === twig_compare(twig_length_filter($this->env, (isset($context["languages"]) || array_key_exists("languages", $context) ? $context["languages"] : (function () { throw new RuntimeError('Variable "languages" does not exist.', 55, $this->source); })())), 2))) {
// line 56
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "cookies", [], "any", false, false, false, 56), "get", [0 => "lang"], "method", false, false, false, 56), "second"))) {
// line 57
echo " <a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('first')\" ><span class=\"fa fa-globe\"></span> ";
echo twig_escape_filter($this->env, (isset($context["first_language"]) || array_key_exists("first_language", $context) ? $context["first_language"] : (function () { throw new RuntimeError('Variable "first_language" does not exist.', 57, $this->source); })()), "html", null, true);
echo " </a>
";
} else {
// line 59
echo " <a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('second')\" > <span class=\"fa fa-globe\"></span> ";
echo twig_escape_filter($this->env, (isset($context["second_language"]) || array_key_exists("second_language", $context) ? $context["second_language"] : (function () { throw new RuntimeError('Variable "second_language" does not exist.', 59, $this->source); })()), "html", null, true);
echo " </a>
";
}
// line 61
echo " ";
} else {
// line 62
echo "
";
}
// line 64
echo " </div>
<div class=\"menu-item px-3\">
";
// line 66
if (((0 === twig_compare(twig_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.', 66, $this->source); })()), "user", [], "any", false, false, false, 66), "anon.")) || (0 === twig_compare(twig_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.', 66, $this->source); })()), "user", [], "any", false, false, false, 66), null)))) {
// line 67
echo "
<a href=\"";
// line 68
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\" class=\"menu-link px-2\"><span class=\"fa fa-key\" style=\"margin-right: 4px\"></span> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login"), "html", null, true);
echo "</a>
";
}
// line 71
echo " </div>
</div>
</li>
</ul>
</div>
</nav>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "nav_simple.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 208 => 71, 200 => 68, 197 => 67, 195 => 66, 191 => 64, 187 => 62, 184 => 61, 178 => 59, 172 => 57, 169 => 56, 166 => 55, 161 => 53, 156 => 52, 151 => 50, 146 => 49, 144 => 48, 140 => 47, 135 => 46, 133 => 45, 130 => 44, 128 => 43, 121 => 39, 117 => 38, 109 => 33, 105 => 32, 99 => 28, 89 => 27, 85 => 26, 78 => 22, 74 => 21, 62 => 12, 51 => 4, 47 => 3, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<nav id=\"main-nav\" class=\"navbar fixed-top\" style=\"\">
<div class=\"container-fluid\">
<a class=\"navbar-brand\" href=\"{{ path('index') }}\">
<img class=\"\" style=\"max-height: 45px\" src=\"{{ asset('assets/logo.png') }}\">
</a>
<ul class=\"breadcrumb breadcrumb-separatorless fw-bold fs-7 pt-1\">
<li class=\"breadcrumb-item text-dark\">
<a href=\"#\" class=\"ml-4\" data-kt-menu-trigger=\"click\"
data-kt-menu-placement=\"bottom-start\">
<img class=\"\" style=\"width: 30px;height: 30px\" src=\"{{ asset('assets/dot.png') }}\" alt=\"\">
</a>
<div class=\"menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-600 menu-state-bg-light-primary fw-bold fs-7 w-200px py-4\"
data-kt-menu=\"true\">
<div class=\"menu-item px-3\">
<a href=\"{{ path('app_about') }}\" class=\"menu-link px-3\">
{{ 'about_educatii'|trans }}
</a>
</div>
<div class=\"menu-item px-3\">
<a href=\"{{ path('blog_page') }}\" class=\"menu-link px-3\">
{% if blog_name == ''%} {{ 'blog_title'|trans}} {% else%} {{ blog_name|raw }} {% endif%}
</a>
</div>
<div class=\"menu-item px-3\">
<a href=\"{{ path('app_contact') }}\" class=\"menu-link px-3\">
{{ 'contact'|trans }}
</a>
</div>
<div class=\"menu-item px-3\">
<a href=\"{{ path('app_cgu') }}\" class=\"menu-link px-3\">
{{ 'cgu'|trans }}
</a>
</div>
<div class=\"menu-item px-5 ml-3\">
{% if languages|length == 3 %}
{% if app.request.cookies.get('lang') == 'third' %}
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('first')\" > <span class=\"fa fa-globe\"></span> {{ first_language }} </a> |
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('second')\" > <span class=\"fa fa-globe\"></span> {{ second_language }} </a>
{% elseif app.request.cookies.get('lang') == 'second' %}
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('first')\" > <span class=\"fa fa-globe\"></span> {{ 'first_language'|trans }} </a> |
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('third')\" ><span class=\"fa fa-globe\"></span> {{ third_language }} </a>
{% else %}
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('second')\" > <span class=\"fa fa-globe\"></span> {{ 'second_language'|trans }} </a> |
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('third')\" > <span class=\"fa fa-globe\"></span> {{ third_language}} </a>
{% endif %}
{% elseif languages|length == 2 %}
{% if app.request.cookies.get('lang') == 'second' %}
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('first')\" ><span class=\"fa fa-globe\"></span> {{ first_language}} </a>
{% else %}
<a class=\"lang\" } style=\"font-size: 10px;\" href=\"javascript:void(0)\" onclick=\"changeLang('second')\" > <span class=\"fa fa-globe\"></span> {{ second_language}} </a>
{% endif %}
{% else %}
{% endif %}
</div>
<div class=\"menu-item px-3\">
{% if app.user == 'anon.' or app.user == null %}
<a href=\"{{ path('login') }}\" class=\"menu-link px-2\"><span class=\"fa fa-key\" style=\"margin-right: 4px\"></span> {{ 'login'|trans }}</a>
{% endif %}
</div>
</div>
</li>
</ul>
</div>
</nav>
", "nav_simple.html.twig", "/var/www/html/educatii/templates/nav_simple.html.twig");
}
}