<?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;
/* public/component/_main_header_content.html.twig */
class __TwigTemplate_4bd3bd9d4754339bd3025a6d527d47580cb77be49716604edabfd7095973e54b 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", "public/component/_main_header_content.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "public/component/_main_header_content.html.twig"));
// line 1
echo "<header class=\"main-header\" style=\"padding-right: 0\">
<!-- logo-->
<a href=\"";
// line 3
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
echo "\" class=\"logo-holder\"
style=\"font-size: 1.1rem;height: 50px; color: white; top: 15px !important;\">
<img src=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("asset_url", ["path" => "/images/logo.png", "h" => "60"]), "html", null, true);
echo "\" style=\"margin-right: 20px; border: 1px #ab1b15 solid; border-radius: 50%\" alt=\"\">
<span class=\"header-site-name\">";
// line 6
echo twig_escape_filter($this->env, (isset($context["default_app_name"]) || array_key_exists("default_app_name", $context) ? $context["default_app_name"] : (function () { throw new RuntimeError('Variable "default_app_name" does not exist.', 6, $this->source); })()), "html", null, true);
echo "</span>
</a>
<!-- logo end-->
<!-- header-search_btn-->
<div class=\"header-search_btn show-search-button\"><i class=\"fal fa-search\"></i><span>Recherche</span></div>
<!-- header-search_btn end-->
<!-- nav-button-wrap-->
<div class=\"nav-button-wrap color-bg\">
<div class=\"nav-button\">
<span></span><span></span><span></span>
</div>
</div>
<!-- nav-button-wrap end-->
<!-- header opt -->
";
// line 22
if (( !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.', 22, $this->source); })()), "user", [], "any", false, false, false, 22) || (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.', 22, $this->source); })()), "user", [], "any", false, false, false, 22) && (0 === twig_compare(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.', 22, $this->source); })()), "user", [], "any", false, false, false, 22), "role", [], "any", false, false, false, 22), twig_get_attribute($this->env, $this->source, (isset($context["role_service"]) || array_key_exists("role_service", $context) ? $context["role_service"] : (function () { throw new RuntimeError('Variable "role_service" does not exist.', 22, $this->source); })()), "roleAdmin", [], "any", false, false, false, 22)))))) {
// line 23
echo " <div data-target-modal=\"#login-modal\" class=\"show-reg-form modal-open avatar-img\"
style=\"margin-right: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px\"
data-srcav=\"";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/images/avatar/7.png"), "html", null, true);
echo "\">
<i class=\"fal fa-user profile-icon\"></i>
<div class=\"profile-content\">Se connecter</div>
</div>
";
} else {
// line 30
echo " <div class=\"header-user-menu\"
style=\"margin: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px; padding-left: 30px\">
<div class=\"header-user-name\" style=\"padding-top: 0\">
<span style=\"top: -11px\">
";
// line 34
$context["profileImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("asset_url", ["path" => "/images/logo.png", "h" => "38"]);
// line 35
echo " ";
if ((0 !== twig_compare(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.', 35, $this->source); })()), "user", [], "any", false, false, false, 35), "image", [], "any", false, false, false, 35), ""))) {
// line 36
echo " ";
$context["profileImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("asset_url", ["path" => ($this->extensions['App\Twig\Extension\Utils']->getParameter("image_user_directory_prefix") . 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.', 36, $this->source); })()), "user", [], "any", false, false, false, 36), "image", [], "any", false, false, false, 36)), "h" => "38"]);
// line 37
echo " ";
}
// line 38
echo " <img src=\"";
echo twig_escape_filter($this->env, (isset($context["profileImage"]) || array_key_exists("profileImage", $context) ? $context["profileImage"] : (function () { throw new RuntimeError('Variable "profileImage" does not exist.', 38, $this->source); })()), "html", null, true);
echo "\" alt=\"\" class=\"image-profile\">
</span>
<div class=\"profile-content\">
";
// line 41
echo twig_escape_filter($this->env, (twig_slice($this->env, 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.', 41, $this->source); })()), "user", [], "any", false, false, false, 41), "fullName", [], "any", false, false, false, 41), 0, 10) . "..."), "html", null, true);
echo "
</div>
</div>
<ul>
<li><a href=\"";
// line 45
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile");
echo "\">Profile</a></li>
";
// line 47
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_prayer_index");
echo "\">Mes sujets de prière</a></li>
";
// line 49
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Déconnexion</a></li>
</ul>
</div>
";
}
// line 53
echo "
<!-- header opt end-->
<!-- navigation -->
<div class=\"nav-holder main-menu\">
<nav>
<ul class=\"no-list-style\">
<li>
<a href=\"";
// line 61
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("prayer");
echo "\" class=\"";
echo (((0 === twig_compare((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 61, $this->source); })()), "prayer"))) ? ("act-link") : (""));
echo "\">Sujets de
prières</a>
</li>
";
// line 64
if ( !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.', 64, $this->source); })()), "user", [], "any", false, false, false, 64)) {
// line 65
echo " <li><a href=\"javascript:void(0)\" data-target-route=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_prayer_new");
echo "\" class=\"";
echo (((0 === twig_compare((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 65, $this->source); })()), "customer_prayer_new"))) ? ("act-link") : (""));
echo " modal-open\" data-target-modal=\"#login-modal\">Soumettre un sujet de prière pour le pays</a></li>
";
} else {
// line 67
echo " <li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_prayer_new");
echo "\" class=\"";
echo (((0 === twig_compare((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 67, $this->source); })()), "customer_prayer_new"))) ? ("act-link") : (""));
echo "\">Soumettre un sujet de prière pour le pays</a></li>
";
}
// line 69
echo " </ul>
</nav>
</div>
<!-- navigation end -->
<!-- header-search_container -->
<div class=\"header-search_container header-search vis-search\">
<div class=\"container small-container\">
";
// line 76
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\IndexController:searchForm"));
echo "
<div class=\"header-search_close color-bg\"><i class=\"fal fa-long-arrow-up\"></i></div>
</div>
</div>
<!-- header-search_container end -->
</header>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "public/component/_main_header_content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 182 => 76, 173 => 69, 165 => 67, 157 => 65, 155 => 64, 147 => 61, 137 => 53, 129 => 49, 124 => 47, 120 => 45, 113 => 41, 106 => 38, 103 => 37, 100 => 36, 97 => 35, 95 => 34, 89 => 30, 81 => 25, 77 => 23, 75 => 22, 56 => 6, 52 => 5, 47 => 3, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<header class=\"main-header\" style=\"padding-right: 0\">
<!-- logo-->
<a href=\"{{ path('index') }}\" class=\"logo-holder\"
style=\"font-size: 1.1rem;height: 50px; color: white; top: 15px !important;\">
<img src=\"{{ url('asset_url', {'path': '/images/logo.png', 'h':'60' }) }}\" style=\"margin-right: 20px; border: 1px #ab1b15 solid; border-radius: 50%\" alt=\"\">
<span class=\"header-site-name\">{{ default_app_name }}</span>
</a>
<!-- logo end-->
<!-- header-search_btn-->
<div class=\"header-search_btn show-search-button\"><i class=\"fal fa-search\"></i><span>Recherche</span></div>
<!-- header-search_btn end-->
<!-- nav-button-wrap-->
<div class=\"nav-button-wrap color-bg\">
<div class=\"nav-button\">
<span></span><span></span><span></span>
</div>
</div>
<!-- nav-button-wrap end-->
<!-- header opt -->
{% if not app.user or (app.user and app.user.role == role_service.roleAdmin) %}
<div data-target-modal=\"#login-modal\" class=\"show-reg-form modal-open avatar-img\"
style=\"margin-right: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px\"
data-srcav=\"{{ asset('townhub/images/avatar/7.png') }}\">
<i class=\"fal fa-user profile-icon\"></i>
<div class=\"profile-content\">Se connecter</div>
</div>
{% else %}
<div class=\"header-user-menu\"
style=\"margin: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px; padding-left: 30px\">
<div class=\"header-user-name\" style=\"padding-top: 0\">
<span style=\"top: -11px\">
{% set profileImage = url('asset_url', {'path': '/images/logo.png', 'h':'38' }) %}
{% if app.user.image != \"\" %}
{% set profileImage = url('asset_url', {'path': get_parameter('image_user_directory_prefix') ~ app.user.image, 'h':'38' }) %}
{% endif %}
<img src=\"{{ profileImage }}\" alt=\"\" class=\"image-profile\">
</span>
<div class=\"profile-content\">
{{ app.user.fullName|slice(0,10) ~ '...' }}
</div>
</div>
<ul>
<li><a href=\"{{ path('profile') }}\">Profile</a></li>
{# <li><a href=\"{{ path('customer_prayer_new') }}\">Soumettre un sujet de prière</a></li>#}
<li><a href=\"{{ path('customer_prayer_index') }}\">Mes sujets de prière</a></li>
{# <li><a href=\"{{ path('customer_praying_index') }}\">Mes participations</a></li>#}
<li><a href=\"{{ path('app_logout') }}\">Déconnexion</a></li>
</ul>
</div>
{% endif %}
<!-- header opt end-->
<!-- navigation -->
<div class=\"nav-holder main-menu\">
<nav>
<ul class=\"no-list-style\">
<li>
<a href=\"{{ path('prayer') }}\" class=\"{{ currentRoute == \"prayer\" ? \"act-link\" : \"\" }}\">Sujets de
prières</a>
</li>
{% if not app.user %}
<li><a href=\"javascript:void(0)\" data-target-route=\"{{ path('customer_prayer_new') }}\" class=\"{{ currentRoute == \"customer_prayer_new\" ? \"act-link\" : \"\" }} modal-open\" data-target-modal=\"#login-modal\">Soumettre un sujet de prière pour le pays</a></li>
{% else %}
<li><a href=\"{{ path('customer_prayer_new') }}\" class=\"{{ currentRoute == \"customer_prayer_new\" ? \"act-link\" : \"\" }}\">Soumettre un sujet de prière pour le pays</a></li>
{% endif %}
</ul>
</nav>
</div>
<!-- navigation end -->
<!-- header-search_container -->
<div class=\"header-search_container header-search vis-search\">
<div class=\"container small-container\">
{{ render(controller('App\\\\Controller\\\\IndexController:searchForm')) }}
<div class=\"header-search_close color-bg\"><i class=\"fal fa-long-arrow-up\"></i></div>
</div>
</div>
<!-- header-search_container end -->
</header>
", "public/component/_main_header_content.html.twig", "/var/www/my-preprod/php74/jppmada/srcs/templates/public/component/_main_header_content.html.twig");
}
}