var/cache/dev/twig/73/7399c08132b7c40893c643ebb1cce569.php line 37

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. /* base.html.twig */
  14. class __TwigTemplate_9f3c9e56714a14e9470956dc137df9d8 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.             'title' => [$this'block_title'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.             'body' => [$this'block_body'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         // line 1
  38.         echo "<!DOCTYPE html>
  39. <html lang=\"en\">
  40.     <head>
  41.         <meta charset=\"UTF-8\">
  42.         <title>";
  43.         // line 5
  44.         $this->displayBlock('title'$context$blocks);
  45.         echo "</title>
  46.         ";
  47.         // line 6
  48.         $this->displayBlock('stylesheets'$context$blocks);
  49.         // line 11
  50.         echo "        ";
  51.         $this->displayBlock('javascripts'$context$blocks);
  52.         // line 14
  53.         echo "    </head>
  54.     <body>
  55.         <nav
  56.                 class=\"navbar navbar-expand-lg navbar-light bg-light px-1\"
  57.                 ";
  58.         // line 18
  59.         echo (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) ? ("style=\"background-color: red !important\"") : (""));
  60.         echo "
  61.         >
  62.             <div class=\"container-fluid\">
  63.                 <a class=\"navbar-brand\" href=\"";
  64.         // line 21
  65.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage");
  66.         echo "\">
  67.                     <p class=\"pl-2 d-inline font-weight-bold\" style=\"color: #444;\">
  68.                         Crypto admin
  69.                     </p>
  70.                 </a>
  71.                 <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\">
  72.                     <span class=\"navbar-toggler-icon\"></span>
  73.                 </button>
  74.                 <div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
  75.                     <div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
  76.                         <ul class=\"navbar-nav me-auto mb-2 mb-lg-0\">
  77.                             ";
  78.         // line 34
  79.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  80.             // line 35
  81.             echo "                                <li class=\"nav-item\">
  82.                                     <a class=\"nav-link\" href=\"";
  83.             // line 36
  84.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
  85.             echo "\">Admin</a>
  86.                                 </li>
  87.                             ";
  88.         }
  89.         // line 39
  90.         echo "                        </ul>
  91.                     </div>
  92.                     ";
  93.         // line 43
  94.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  95.             // line 44
  96.             echo "                        <div class=\"dropdown\">
  97.                             <button
  98.                                     class=\"dropdown-toggle btn\"
  99.                                     type=\"button\"
  100.                                     id=\"user-dropdown\"
  101.                                     data-bs-toggle=\"dropdown\"
  102.                                     aria-expanded=\"false\"
  103.                             >
  104.                                 <img
  105.                                         src=\"";
  106.             // line 53
  107.             echo twig_escape_filter($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.'53$this->source); })()), "user", [], "any"falsefalsefalse53), "avatarUrl", [], "any"falsefalsefalse53), "html"nulltrue);
  108.             echo "\"
  109.                                         alt=\"";
  110.             // line 54
  111.             echo twig_escape_filter($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.'54$this->source); })()), "user", [], "any"falsefalsefalse54), "fullName", [], "any"falsefalsefalse54), "html"nulltrue);
  112.             echo " Avatar\"
  113.                                         width=\"26px\">
  114.                             </button>
  115.                             <ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"user-dropdown\">
  116.                                 ";
  117.             // line 58
  118.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  119.                 // line 59
  120.                 echo "                                    <li>
  121.                                         <a class=\"dropdown-item\" href=\"";
  122.                 // line 60
  123.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["_switch_user" => "_exit"]);
  124.                 // line 62
  125.                 echo "\">Exit Impersonation</a>
  126.                                     </li>
  127.                                 ";
  128.             }
  129.             // line 65
  130.             echo "                                <li>
  131.                                     <a class=\"dropdown-item\" href=\"";
  132.             // line 66
  133.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_profile_show");
  134.             echo "\">Profile</a>
  135.                                 </li>
  136.                                 <li>
  137.                                     <a class=\"dropdown-item\" href=\"";
  138.             // line 69
  139.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  140.             echo "\">Log Out</a>
  141.                                 </li>
  142.                             </ul>
  143.                         </div>
  144.                     ";
  145.         } else {
  146.             // line 74
  147.             echo "                        <a class=\"nav-link text-black-50\" href=\"";
  148.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  149.             echo "\">Log In</a>
  150.                     ";
  151.         }
  152.         // line 76
  153.         echo "                </div>
  154.             </div>
  155.         </nav>
  156.         ";
  157.         // line 80
  158.         $this->displayBlock('body'$context$blocks);
  159.         // line 81
  160.         echo "
  161.         <footer class=\"mt-5 p-3 text-center\">
  162.             Hapon web developer corp<i style=\"color: green;\" class=\"fa fa-robot\"></i>
  163.         </footer>
  164.     </body>
  165. </html>
  166. ";
  167.         
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.     }
  172.     // line 5
  173.     public function block_title($context, array $blocks = [])
  174.     {
  175.         $macros $this->macros;
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  180.         echo "Big kush!";
  181.         
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183.         
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  185.     }
  186.     // line 6
  187.     public function block_stylesheets($context, array $blocks = [])
  188.     {
  189.         $macros $this->macros;
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  194.         // line 7
  195.         echo "            <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Spartan&display=swap\">
  196.             <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css\" integrity=\"sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=\" crossorigin=\"anonymous\" />
  197.             ";
  198.         // line 9
  199.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  200.         echo "
  201.         ";
  202.         
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  204.         
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206.     }
  207.     // line 11
  208.     public function block_javascripts($context, array $blocks = [])
  209.     {
  210.         $macros $this->macros;
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  213.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  215.         // line 12
  216.         echo "            ";
  217.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  218.         echo "
  219.         ";
  220.         
  221.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  222.         
  223.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  224.     }
  225.     // line 80
  226.     public function block_body($context, array $blocks = [])
  227.     {
  228.         $macros $this->macros;
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  231.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  233.         
  234.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  235.         
  236.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237.     }
  238.     /**
  239.      * @codeCoverageIgnore
  240.      */
  241.     public function getTemplateName()
  242.     {
  243.         return "base.html.twig";
  244.     }
  245.     /**
  246.      * @codeCoverageIgnore
  247.      */
  248.     public function isTraitable()
  249.     {
  250.         return false;
  251.     }
  252.     /**
  253.      * @codeCoverageIgnore
  254.      */
  255.     public function getDebugInfo()
  256.     {
  257.         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,);
  258.     }
  259.     public function getSourceContext()
  260.     {
  261.         return new Source("<!DOCTYPE html>
  262. <html lang=\"en\">
  263.     <head>
  264.         <meta charset=\"UTF-8\">
  265.         <title>{% block title %}Big kush!{% endblock %}</title>
  266.         {% block stylesheets %}
  267.             <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Spartan&display=swap\">
  268.             <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css\" integrity=\"sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=\" crossorigin=\"anonymous\" />
  269.             {{ encore_entry_link_tags('app') }}
  270.         {% endblock %}
  271.         {% block javascripts %}
  272.             {{ encore_entry_script_tags('app') }}
  273.         {% endblock %}
  274.     </head>
  275.     <body>
  276.         <nav
  277.                 class=\"navbar navbar-expand-lg navbar-light bg-light px-1\"
  278.                 {{ is_granted('ROLE_PREVIOUS_ADMIN') ? 'style=\"background-color: red !important\"' }}
  279.         >
  280.             <div class=\"container-fluid\">
  281.                 <a class=\"navbar-brand\" href=\"{{ path('app_homepage') }}\">
  282.                     <p class=\"pl-2 d-inline font-weight-bold\" style=\"color: #444;\">
  283.                         Crypto admin
  284.                     </p>
  285.                 </a>
  286.                 <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\">
  287.                     <span class=\"navbar-toggler-icon\"></span>
  288.                 </button>
  289.                 <div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
  290.                     <div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
  291.                         <ul class=\"navbar-nav me-auto mb-2 mb-lg-0\">
  292.                             {% if is_granted('ROLE_ADMIN') %}
  293.                                 <li class=\"nav-item\">
  294.                                     <a class=\"nav-link\" href=\"{{ path('admin') }}\">Admin</a>
  295.                                 </li>
  296.                             {% endif %}
  297.                         </ul>
  298.                     </div>
  299.                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  300.                         <div class=\"dropdown\">
  301.                             <button
  302.                                     class=\"dropdown-toggle btn\"
  303.                                     type=\"button\"
  304.                                     id=\"user-dropdown\"
  305.                                     data-bs-toggle=\"dropdown\"
  306.                                     aria-expanded=\"false\"
  307.                             >
  308.                                 <img
  309.                                         src=\"{{ app.user.avatarUrl }}\"
  310.                                         alt=\"{{ app.user.fullName }} Avatar\"
  311.                                         width=\"26px\">
  312.                             </button>
  313.                             <ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"user-dropdown\">
  314.                                 {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  315.                                     <li>
  316.                                         <a class=\"dropdown-item\" href=\"{{ path('app_homepage', {
  317.                                             '_switch_user': '_exit'
  318.                                         }) }}\">Exit Impersonation</a>
  319.                                     </li>
  320.                                 {% endif %}
  321.                                 <li>
  322.                                     <a class=\"dropdown-item\" href=\"{{ path('app_profile_show') }}\">Profile</a>
  323.                                 </li>
  324.                                 <li>
  325.                                     <a class=\"dropdown-item\" href=\"{{ path('app_logout') }}\">Log Out</a>
  326.                                 </li>
  327.                             </ul>
  328.                         </div>
  329.                     {% else %}
  330.                         <a class=\"nav-link text-black-50\" href=\"{{ path('app_login') }}\">Log In</a>
  331.                     {% endif %}
  332.                 </div>
  333.             </div>
  334.         </nav>
  335.         {% block body %}{% endblock %}
  336.         <footer class=\"mt-5 p-3 text-center\">
  337.             Hapon web developer corp<i style=\"color: green;\" class=\"fa fa-robot\"></i>
  338.         </footer>
  339.     </body>
  340. </html>
  341. ""base.html.twig""/home/u538818725/domains/growupcrypto.site/public_html/templates/base.html.twig");
  342.     }
  343. }