var/cache/dev/twig/8e/8e166431e3a7585e6794923724aaefbcb9c7666e84e87cada3b95bb33e6481be.php line 182

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* public/component/_main_header_content.html.twig */
  14. class __TwigTemplate_4bd3bd9d4754339bd3025a6d527d47580cb77be49716604edabfd7095973e54b extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""public/component/_main_header_content.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""public/component/_main_header_content.html.twig"));
  33.         // line 1
  34.         echo "<header class=\"main-header\" style=\"padding-right: 0\">
  35.     <!-- logo-->
  36.     <a href=\"";
  37.         // line 3
  38.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index");
  39.         echo "\" class=\"logo-holder\"
  40.        style=\"font-size: 1.1rem;height: 50px; color: white; top: 15px !important;\">
  41.         <img src=\"";
  42.         // line 5
  43.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("asset_url", ["path" => "/images/logo.png""h" => "60"]), "html"nulltrue);
  44.         echo "\" style=\"margin-right: 20px; border: 1px #ab1b15 solid; border-radius: 50%\" alt=\"\">
  45.         <span class=\"header-site-name\">";
  46.         // line 6
  47.         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"nulltrue);
  48.         echo "</span>
  49.     </a>
  50.     <!-- logo end-->
  51.     <!-- header-search_btn-->
  52.     <div class=\"header-search_btn show-search-button\"><i class=\"fal fa-search\"></i><span>Recherche</span></div>
  53.     <!-- header-search_btn end-->
  54.     <!-- nav-button-wrap-->
  55.     <div class=\"nav-button-wrap color-bg\">
  56.         <div class=\"nav-button\">
  57.             <span></span><span></span><span></span>
  58.         </div>
  59.     </div>
  60.     <!-- nav-button-wrap end-->
  61.     <!-- header opt -->
  62.     ";
  63.         // line 22
  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.'22$this->source); })()), "user", [], "any"falsefalsefalse22) || (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"falsefalsefalse22) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse22), "role", [], "any"falsefalsefalse22), 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"falsefalsefalse22)))))) {
  65.             // line 23
  66.             echo "        <div data-target-modal=\"#login-modal\" class=\"show-reg-form modal-open avatar-img\"
  67.              style=\"margin-right: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px\"
  68.              data-srcav=\"";
  69.             // line 25
  70.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("townhub/images/avatar/7.png"), "html"nulltrue);
  71.             echo "\">
  72.             <i class=\"fal fa-user profile-icon\"></i>
  73.             <div class=\"profile-content\">Se connecter</div>
  74.         </div>
  75.     ";
  76.         } else {
  77.             // line 30
  78.             echo "        <div class=\"header-user-menu\"
  79.              style=\"margin: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px; padding-left: 30px\">
  80.             <div class=\"header-user-name\" style=\"padding-top: 0\">
  81.                 <span style=\"top: -11px\">
  82.                     ";
  83.             // line 34
  84.             $context["profileImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("asset_url", ["path" => "/images/logo.png""h" => "38"]);
  85.             // line 35
  86.             echo "                    ";
  87.             if ((!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse35), "image", [], "any"falsefalsefalse35), ""))) {
  88.                 // line 36
  89.                 echo "                        ";
  90.                 $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->sourcetwig_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"falsefalsefalse36), "image", [], "any"falsefalsefalse36)), "h" => "38"]);
  91.                 // line 37
  92.                 echo "                    ";
  93.             }
  94.             // line 38
  95.             echo "                    <img src=\"";
  96.             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"nulltrue);
  97.             echo "\" alt=\"\" class=\"image-profile\">
  98.                 </span>
  99.                 <div class=\"profile-content\">
  100.                     ";
  101.             // line 41
  102.             echo twig_escape_filter($this->env, (twig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse41), "fullName", [], "any"falsefalsefalse41), 010) . "..."), "html"nulltrue);
  103.             echo "
  104.                 </div>
  105.             </div>
  106.             <ul>
  107.                 <li><a href=\"";
  108.             // line 45
  109.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile");
  110.             echo "\">Profile</a></li>
  111. ";
  112.             // line 47
  113.             echo "                <li><a href=\"";
  114.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_prayer_index");
  115.             echo "\">Mes sujets de prière</a></li>
  116. ";
  117.             // line 49
  118.             echo "                <li><a href=\"";
  119.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  120.             echo "\">Déconnexion</a></li>
  121.             </ul>
  122.         </div>
  123.     ";
  124.         }
  125.         // line 53
  126.         echo "
  127.     <!-- header opt end-->
  128.     <!--  navigation -->
  129.     <div class=\"nav-holder main-menu\">
  130.         <nav>
  131.             <ul class=\"no-list-style\">
  132.                 <li>
  133.                     <a href=\"";
  134.         // line 61
  135.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("prayer");
  136.         echo "\" class=\"";
  137.         echo (((=== 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") : (""));
  138.         echo "\">Sujets de
  139.                         prières</a>
  140.                 </li>
  141.                 ";
  142.         // line 64
  143.         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"falsefalsefalse64)) {
  144.             // line 65
  145.             echo "                    <li><a href=\"javascript:void(0)\" data-target-route=\"";
  146.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_prayer_new");
  147.             echo "\" class=\"";
  148.             echo (((=== 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") : (""));
  149.             echo " modal-open\" data-target-modal=\"#login-modal\">Soumettre un sujet de prière pour le pays</a></li>
  150.                 ";
  151.         } else {
  152.             // line 67
  153.             echo "                    <li><a href=\"";
  154.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_prayer_new");
  155.             echo "\" class=\"";
  156.             echo (((=== 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") : (""));
  157.             echo "\">Soumettre un sujet de prière pour le pays</a></li>
  158.                 ";
  159.         }
  160.         // line 69
  161.         echo "            </ul>
  162.         </nav>
  163.     </div>
  164.     <!-- navigation  end -->
  165.     <!-- header-search_container -->
  166.     <div class=\"header-search_container header-search vis-search\">
  167.         <div class=\"container small-container\">
  168.             ";
  169.         // line 76
  170.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\IndexController:searchForm"));
  171.         echo "
  172.             <div class=\"header-search_close color-bg\"><i class=\"fal fa-long-arrow-up\"></i></div>
  173.         </div>
  174.     </div>
  175.     <!-- header-search_container  end -->
  176. </header>
  177. ";
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.     }
  183.     public function getTemplateName()
  184.     {
  185.         return "public/component/_main_header_content.html.twig";
  186.     }
  187.     public function isTraitable()
  188.     {
  189.         return false;
  190.     }
  191.     public function getDebugInfo()
  192.     {
  193.         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,);
  194.     }
  195.     public function getSourceContext()
  196.     {
  197.         return new Source("<header class=\"main-header\" style=\"padding-right: 0\">
  198.     <!-- logo-->
  199.     <a href=\"{{ path('index') }}\" class=\"logo-holder\"
  200.        style=\"font-size: 1.1rem;height: 50px; color: white; top: 15px !important;\">
  201.         <img src=\"{{ url('asset_url', {'path': '/images/logo.png', 'h':'60' }) }}\" style=\"margin-right: 20px; border: 1px #ab1b15 solid; border-radius: 50%\" alt=\"\">
  202.         <span class=\"header-site-name\">{{ default_app_name }}</span>
  203.     </a>
  204.     <!-- logo end-->
  205.     <!-- header-search_btn-->
  206.     <div class=\"header-search_btn show-search-button\"><i class=\"fal fa-search\"></i><span>Recherche</span></div>
  207.     <!-- header-search_btn end-->
  208.     <!-- nav-button-wrap-->
  209.     <div class=\"nav-button-wrap color-bg\">
  210.         <div class=\"nav-button\">
  211.             <span></span><span></span><span></span>
  212.         </div>
  213.     </div>
  214.     <!-- nav-button-wrap end-->
  215.     <!-- header opt -->
  216.     {% if not app.user or (app.user and app.user.role == role_service.roleAdmin) %}
  217.         <div data-target-modal=\"#login-modal\" class=\"show-reg-form modal-open avatar-img\"
  218.              style=\"margin-right: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px\"
  219.              data-srcav=\"{{ asset('townhub/images/avatar/7.png') }}\">
  220.             <i class=\"fal fa-user profile-icon\"></i>
  221.             <div class=\"profile-content\">Se connecter</div>
  222.         </div>
  223.     {% else %}
  224.         <div class=\"header-user-menu\"
  225.              style=\"margin: 0; height: 80px; top: 0; display: flex; align-items: center; justify-content: center; width: 200px; padding-left: 30px\">
  226.             <div class=\"header-user-name\" style=\"padding-top: 0\">
  227.                 <span style=\"top: -11px\">
  228.                     {% set profileImage = url('asset_url', {'path': '/images/logo.png', 'h':'38' }) %}
  229.                     {% if app.user.image != \"\" %}
  230.                         {% set profileImage = url('asset_url', {'path': get_parameter('image_user_directory_prefix') ~ app.user.image, 'h':'38' }) %}
  231.                     {% endif %}
  232.                     <img src=\"{{ profileImage }}\" alt=\"\" class=\"image-profile\">
  233.                 </span>
  234.                 <div class=\"profile-content\">
  235.                     {{ app.user.fullName|slice(0,10) ~ '...' }}
  236.                 </div>
  237.             </div>
  238.             <ul>
  239.                 <li><a href=\"{{ path('profile') }}\">Profile</a></li>
  240. {#                <li><a href=\"{{ path('customer_prayer_new') }}\">Soumettre un sujet de prière</a></li>#}
  241.                 <li><a href=\"{{ path('customer_prayer_index') }}\">Mes sujets de prière</a></li>
  242. {#                <li><a href=\"{{ path('customer_praying_index') }}\">Mes participations</a></li>#}
  243.                 <li><a href=\"{{ path('app_logout') }}\">Déconnexion</a></li>
  244.             </ul>
  245.         </div>
  246.     {% endif %}
  247.     <!-- header opt end-->
  248.     <!--  navigation -->
  249.     <div class=\"nav-holder main-menu\">
  250.         <nav>
  251.             <ul class=\"no-list-style\">
  252.                 <li>
  253.                     <a href=\"{{ path('prayer') }}\" class=\"{{ currentRoute == \"prayer\" ? \"act-link\" : \"\" }}\">Sujets de
  254.                         prières</a>
  255.                 </li>
  256.                 {% if not app.user %}
  257.                     <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>
  258.                 {% else %}
  259.                     <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>
  260.                 {% endif %}
  261.             </ul>
  262.         </nav>
  263.     </div>
  264.     <!-- navigation  end -->
  265.     <!-- header-search_container -->
  266.     <div class=\"header-search_container header-search vis-search\">
  267.         <div class=\"container small-container\">
  268.             {{ render(controller('App\\\\Controller\\\\IndexController:searchForm')) }}
  269.             <div class=\"header-search_close color-bg\"><i class=\"fal fa-long-arrow-up\"></i></div>
  270.         </div>
  271.     </div>
  272.     <!-- header-search_container  end -->
  273. </header>
  274. ""public/component/_main_header_content.html.twig""/var/www/my-preprod/php74/jppmada/srcs/templates/public/component/_main_header_content.html.twig");
  275.     }
  276. }