var/cache/dev/twig/be/be6654be57be2a0cfe484ec1b26cfb93cf43459e988848f498b63aeaeec68d57.php line 169

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* base.html.twig */
  15. class __TwigTemplate_228e5f3ce856b084ce64409f12efb4ca831399e958787e48b395fb9f096b83ad extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.             'title' => [$this'block_title'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'menu' => [$this'block_menu'],
  28.             'body' => [$this'block_body'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  39.         // line 1
  40.         yield "<!DOCTYPE html>
  41. <html lang=\"lt\">
  42.     <head>
  43.         <meta charset=\"UTF-8\">
  44.         <title>";
  45.         // line 5
  46.         yield from $this->unwrap()->yieldBlock('title'$context$blocks);
  47.         yield "</title>
  48.         ";
  49.         // line 6
  50.         yield from $this->unwrap()->yieldBlock('stylesheets'$context$blocks);
  51.         // line 9
  52.         yield "    </head>
  53.     <body>
  54.     ";
  55.         // line 11
  56.         yield from $this->unwrap()->yieldBlock('menu'$context$blocks);
  57.         // line 45
  58.         yield "    ";
  59.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  60.         // line 46
  61.         yield "        ";
  62.         yield from $this->unwrap()->yieldBlock('javascripts'$context$blocks);
  63.         // line 51
  64.         yield "    </body>
  65. </html>
  66. ";
  67.         
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  69.         
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  71.         return; yield '';
  72.     }
  73.     // line 5
  74.     public function block_title($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  81.         yield "Welcome!";
  82.         
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  84.         
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  86.         return; yield '';
  87.     }
  88.     // line 6
  89.     public function block_stylesheets($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  96.         // line 7
  97.         yield "            <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">
  98.         ";
  99.         
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  101.         
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  103.         return; yield '';
  104.     }
  105.     // line 11
  106.     public function block_menu($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  113.         // line 12
  114.         yield "        <nav class=\"navbar navbar-expand-lg navbar-light bg-light\">
  115.             <a class=\"navbar-brand t\" href=\"/\">";
  116.         // line 13
  117.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Products catalog", [], "messages");
  118.         yield "</a>
  119.             <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarSupportedContent\" aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  120.                 <span class=\"navbar-toggler-icon\"></span>
  121.             </button>
  122.             <div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
  123.                 <ul class=\"navbar-nav mr-auto\">
  124.                     <li class=\"nav-item\">
  125.                         <a class=\"nav-link\" href=\"";
  126.         // line 21
  127.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gt.catalog.customs.keywords_list");
  128.         yield "\">";
  129.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Customs keywords", [], "messages");
  130.         yield "</a>
  131.                     </li>
  132.                     <li class=\"nav-item\">
  133.                         <a class=\"nav-link\" href=\"";
  134.         // line 24
  135.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gt.catalog.customs.show_assignments_prognoze");
  136.         yield "\">";
  137.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Show assignment prognoze", [], "messages");
  138.         yield "</a>
  139.                     </li>
  140.                 </ul>
  141. ";
  142.         // line 31
  143.         yield "                <div>";
  144.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
  145.             // line 33
  146.             yield "                        ";
  147.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'33$this->source); })()), "user", [], "any"falsefalsefalse33), "email", [], "any"falsefalsefalse33), "html"nulltrue);
  148.             yield "
  149.                         <a href=\"/logout\">Logout</a>
  150.                         ";
  151.         } else {
  152.             // line 36
  153.             yield "                            <a href=\"/login\">Login</a>
  154.                     ";
  155.         }
  156.         // line 38
  157.         yield "                    ";
  158.         if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'38$this->source); })()), "user", [], "any"falsefalsefalse38))) {
  159.             // line 39
  160.             yield "                        <a href=\"";
  161.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gt.catalog.users_edit", ["id" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'39$this->source); })()), "user", [], "any"falsefalsefalse39), "id", [], "any"falsefalsefalse39)]), "html"nulltrue);
  162.             yield "\">Edit</a>
  163.                     ";
  164.         }
  165.         // line 41
  166.         yield "                </div>
  167.             </div>
  168.         </nav>
  169.     ";
  170.         
  171.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  172.         
  173.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  174.         return; yield '';
  175.     }
  176.     // line 45
  177.     public function block_body($context, array $blocks = [])
  178.     {
  179.         $macros $this->macros;
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  181.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  182.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  184.         
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  186.         
  187.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  188.         return; yield '';
  189.     }
  190.     // line 46
  191.     public function block_javascripts($context, array $blocks = [])
  192.     {
  193.         $macros $this->macros;
  194.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  195.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  197.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  198.         // line 47
  199.         yield "            <script src=\"https://code.jquery.com/jquery-3.4.1.slim.min.js\" integrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" crossorigin=\"anonymous\"></script>
  200.             <script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\" integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"></script>
  201.             <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js\" integrity=\"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6\" crossorigin=\"anonymous\"></script>
  202.         ";
  203.         
  204.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  205.         
  206.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  207.         return; yield '';
  208.     }
  209.     /**
  210.      * @codeCoverageIgnore
  211.      */
  212.     public function getTemplateName()
  213.     {
  214.         return "base.html.twig";
  215.     }
  216.     /**
  217.      * @codeCoverageIgnore
  218.      */
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  234 => 47,  224 => 46,  205 => 45,  191 => 41,  185 => 39,  182 => 38,  178 => 36,  171 => 33,  168 => 31,  160 => 24,  152 => 21,  141 => 13,  138 => 12,  128 => 11,  116 => 7,  106 => 6,  86 => 5,  73 => 51,  70 => 46,  67 => 45,  65 => 11,  61 => 9,  59 => 6,  55 => 5,  49 => 1,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("<!DOCTYPE html>
  226. <html lang=\"lt\">
  227.     <head>
  228.         <meta charset=\"UTF-8\">
  229.         <title>{% block title %}Welcome!{% endblock %}</title>
  230.         {% block stylesheets %}
  231.             <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">
  232.         {% endblock %}
  233.     </head>
  234.     <body>
  235.     {% block menu %}
  236.         <nav class=\"navbar navbar-expand-lg navbar-light bg-light\">
  237.             <a class=\"navbar-brand t\" href=\"/\">{% trans %}Products catalog{% endtrans %}</a>
  238.             <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarSupportedContent\" aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  239.                 <span class=\"navbar-toggler-icon\"></span>
  240.             </button>
  241.             <div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
  242.                 <ul class=\"navbar-nav mr-auto\">
  243.                     <li class=\"nav-item\">
  244.                         <a class=\"nav-link\" href=\"{{ path('gt.catalog.customs.keywords_list') }}\">{% trans %}Customs keywords{% endtrans %}</a>
  245.                     </li>
  246.                     <li class=\"nav-item\">
  247.                         <a class=\"nav-link\" href=\"{{ path('gt.catalog.customs.show_assignments_prognoze') }}\">{% trans %}Show assignment prognoze{% endtrans %}</a>
  248.                     </li>
  249.                 </ul>
  250. {#                <form class=\"form-inline my-2 my-lg-0\">#}
  251. {#                    <input class=\"form-control mr-sm-2\" type=\"search\" placeholder=\"Search\" aria-label=\"Search\">#}
  252. {#                    <button class=\"btn btn-outline-success my-2 my-sm-0\" type=\"submit\">Search</button>#}
  253. {#                </form>#}
  254.                 <div>{% if is_granted('IS_AUTHENTICATED_FULLY') %}
  255. {#                        {{ dump(app.user) }}#}
  256.                         {{ app.user.email }}
  257.                         <a href=\"/logout\">Logout</a>
  258.                         {% else %}
  259.                             <a href=\"/login\">Login</a>
  260.                     {% endif %}
  261.                     {% if app.user is not empty %}
  262.                         <a href=\"{{ path( 'gt.catalog.users_edit', {id:app.user.id}) }}\">Edit</a>
  263.                     {% endif %}
  264.                 </div>
  265.             </div>
  266.         </nav>
  267.     {% endblock %}
  268.     {% block body %}{% endblock %}
  269.         {% block javascripts %}
  270.             <script src=\"https://code.jquery.com/jquery-3.4.1.slim.min.js\" integrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" crossorigin=\"anonymous\"></script>
  271.             <script src=\"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js\" integrity=\"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo\" crossorigin=\"anonymous\"></script>
  272.             <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js\" integrity=\"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6\" crossorigin=\"anonymous\"></script>
  273.         {% endblock %}
  274.     </body>
  275. </html>
  276. ""base.html.twig""/home/katalogas/public_html/templates/base.html.twig");
  277.     }
  278. }