<?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;
/* base.html.twig */
class __TwigTemplate_9f3c9e56714a14e9470956dc137df9d8 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'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
];
}
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", "base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"UTF-8\">
<title>";
// line 5
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
// line 6
$this->displayBlock('stylesheets', $context, $blocks);
// line 11
echo " ";
$this->displayBlock('javascripts', $context, $blocks);
// line 14
echo " </head>
<body>
<nav
class=\"navbar navbar-expand-lg navbar-light bg-light px-1\"
";
// line 18
echo (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) ? ("style=\"background-color: red !important\"") : (""));
echo "
>
<div class=\"container-fluid\">
<a class=\"navbar-brand\" href=\"";
// line 21
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage");
echo "\">
<p class=\"pl-2 d-inline font-weight-bold\" style=\"color: #444;\">
Crypto admin
</p>
</a>
<button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbar-collapsable\" aria-controls=\"navbarTogglerDemo01\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
<div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
<ul class=\"navbar-nav me-auto mb-2 mb-lg-0\">
";
// line 34
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 35
echo " <li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 36
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
echo "\">Admin</a>
</li>
";
}
// line 39
echo " </ul>
</div>
";
// line 43
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 44
echo " <div class=\"dropdown\">
<button
class=\"dropdown-toggle btn\"
type=\"button\"
id=\"user-dropdown\"
data-bs-toggle=\"dropdown\"
aria-expanded=\"false\"
>
<img
src=\"";
// line 53
echo twig_escape_filter($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.', 53, $this->source); })()), "user", [], "any", false, false, false, 53), "avatarUrl", [], "any", false, false, false, 53), "html", null, true);
echo "\"
alt=\"";
// line 54
echo twig_escape_filter($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.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "fullName", [], "any", false, false, false, 54), "html", null, true);
echo " Avatar\"
width=\"26px\">
</button>
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"user-dropdown\">
";
// line 58
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
// line 59
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 60
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["_switch_user" => "_exit"]);
// line 62
echo "\">Exit Impersonation</a>
</li>
";
}
// line 65
echo " <li>
<a class=\"dropdown-item\" href=\"";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_profile_show");
echo "\">Profile</a>
</li>
<li>
<a class=\"dropdown-item\" href=\"";
// line 69
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\">Log Out</a>
</li>
</ul>
</div>
";
} else {
// line 74
echo " <a class=\"nav-link text-black-50\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
echo "\">Log In</a>
";
}
// line 76
echo " </div>
</div>
</nav>
";
// line 80
$this->displayBlock('body', $context, $blocks);
// line 81
echo "
<footer class=\"mt-5 p-3 text-center\">
Hapon web developer corp<i style=\"color: green;\" class=\"fa fa-robot\"></i>
</footer>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
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"));
echo "Big kush!";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
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 7
echo " <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Spartan&display=swap\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css\" integrity=\"sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=\" crossorigin=\"anonymous\" />
";
// line 9
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 12
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 80
public function block_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 258 => 80, 245 => 12, 235 => 11, 223 => 9, 219 => 7, 209 => 6, 190 => 5, 174 => 81, 172 => 80, 166 => 76, 160 => 74, 152 => 69, 146 => 66, 143 => 65, 138 => 62, 136 => 60, 133 => 59, 131 => 58, 124 => 54, 120 => 53, 109 => 44, 107 => 43, 101 => 39, 95 => 36, 92 => 35, 90 => 34, 74 => 21, 68 => 18, 62 => 14, 59 => 11, 57 => 6, 53 => 5, 47 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"UTF-8\">
<title>{% block title %}Big kush!{% endblock %}</title>
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Spartan&display=swap\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css\" integrity=\"sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=\" crossorigin=\"anonymous\" />
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body>
<nav
class=\"navbar navbar-expand-lg navbar-light bg-light px-1\"
{{ is_granted('ROLE_PREVIOUS_ADMIN') ? 'style=\"background-color: red !important\"' }}
>
<div class=\"container-fluid\">
<a class=\"navbar-brand\" href=\"{{ path('app_homepage') }}\">
<p class=\"pl-2 d-inline font-weight-bold\" style=\"color: #444;\">
Crypto admin
</p>
</a>
<button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbar-collapsable\" aria-controls=\"navbarTogglerDemo01\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
<div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
<div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
<ul class=\"navbar-nav me-auto mb-2 mb-lg-0\">
{% if is_granted('ROLE_ADMIN') %}
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"{{ path('admin') }}\">Admin</a>
</li>
{% endif %}
</ul>
</div>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<div class=\"dropdown\">
<button
class=\"dropdown-toggle btn\"
type=\"button\"
id=\"user-dropdown\"
data-bs-toggle=\"dropdown\"
aria-expanded=\"false\"
>
<img
src=\"{{ app.user.avatarUrl }}\"
alt=\"{{ app.user.fullName }} Avatar\"
width=\"26px\">
</button>
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"user-dropdown\">
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('app_homepage', {
'_switch_user': '_exit'
}) }}\">Exit Impersonation</a>
</li>
{% endif %}
<li>
<a class=\"dropdown-item\" href=\"{{ path('app_profile_show') }}\">Profile</a>
</li>
<li>
<a class=\"dropdown-item\" href=\"{{ path('app_logout') }}\">Log Out</a>
</li>
</ul>
</div>
{% else %}
<a class=\"nav-link text-black-50\" href=\"{{ path('app_login') }}\">Log In</a>
{% endif %}
</div>
</div>
</nav>
{% block body %}{% endblock %}
<footer class=\"mt-5 p-3 text-center\">
Hapon web developer corp<i style=\"color: green;\" class=\"fa fa-robot\"></i>
</footer>
</body>
</html>
", "base.html.twig", "/home/u538818725/domains/growupcrypto.site/public_html/templates/base.html.twig");
}
}